Class JsMessageExtractor

java.lang.Object
com.google.javascript.jscomp.JsMessageExtractor

public class JsMessageExtractor extends Object
Extracts messages and message comments from JS code.

Uses a special prefix (e.g. MSG_) to determine which variables are messages. Here are the recognized formats: var MSG_FOO = "foo"; var MSG_FOO_HELP = "this message is used for foo"; var MSG_BAR = function(a, b) { return a + " bar " + b; } var MSG_BAR_HELP = "the bar message";

This class enforces the policy that message variable names must be unique across all JS files.