Module Expr Str Import alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str Call AttributeLoad Str attr ListComp BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareGt Call NameLoad NameLoad Num Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num attr body Return NameLoad For NameStore AttributeLoad NameLoad attr body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body If BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr NameLoad CompareNotIn NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad For TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BoolOpAnd UnaryOpNot Call AttributeLoad NameLoad attr NameLoad CompareNotIn NameLoad NameLoad CompareNotIn NameLoad AttributeLoad NameLoad attr CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad CompareNotIn NameLoad NameLoad decorator_list For NameStore AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Continue If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Continue Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Index Num Assign SubscriptStore NameLoad Index NameLoad AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Assign NameStore BinOpAdd NameLoad Str For NameStore NameLoad body For NameStore NameLoad body If BoolOpOr CompareEq NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body If Call AttributeLoad NameLoad attr Str body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BoolOpAnd AttributeLoad NameLoad attr CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Return If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr Str body For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Break orelse Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore BoolOpAnd AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad CompareNotEq NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If BoolOpAnd NameLoad CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str If BoolOpOr CompareEq NameLoad Str BoolOpAnd CompareEq NameLoad Str NameLoad body Assign NameStore BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore NameLoad If Call AttributeLoad NameLoad attr NameLoad Str body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If Call AttributeLoad NameLoad attr NameLoad Str body Return Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Return BoolOpAnd NameLoad CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore TupleLoad Str Str Str body If Call AttributeLoad NameLoad attr NameLoad body Return SubscriptLoad NameLoad Slice UnaryOpUSub Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str body Continue Assign NameStore ListLoad For NameStore NameLoad body If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr body Return Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad SubscriptLoad NameLoad Index Num attr body Return Call AttributeLoad Str attr NameLoad If CompareIn SubscriptLoad NameLoad Index Num TupleLoad Str Str Str body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A Logic for computing dependency information for closurized JavaScript files.

Closurized JavaScript files express dependencies using goog.require and
goog.provide statements. In order for the linter to detect when a statement is
missing or unnecessary, all identifiers in the JavaScript file must first be
processed to determine if they constitute the creation or usage of a dependency.
 N/A re closure_linter javascripttokens closure_linter tokenutil N/A TokenType N/A javascripttokens JavaScriptTokenType N/A DEFAULT_EXTRA_NAMESPACES N/A goog.testing.asserts goog.testing.jsunit UsedNamespace N/A object N/A N/A A type for information about a used namespace. __init__ N/A N/A self namespace identifier token alias_definition N/A N/A N/A Initializes the instance.

    Args:
      namespace: the namespace of an identifier used in the file
      identifier: the complete identifier
      token: the token that uses the namespace
      alias_definition: a boolean stating whether the namespace is only to used
          for an alias definition and should not be required.
     N/A N/A self namespace namespace N/A N/A self identifier identifier N/A N/A self token token N/A N/A self alias_definition alias_definition N/A GetLine N/A N/A self N/A N/A N/A N/A N/A self token line_number N/A __repr__ N/A N/A self N/A N/A N/A N/A UsedNamespace(%s) N/A N/A ,  join N/A N/A %s=%s N/A k N/A repr v N/A N/A k v N/A N/A N/A self __dict__ iteritems N/A N/A ClosurizedNamespacesInfo N/A object N/A N/A Dependency information for closurized JavaScript files.

  Processes token streams for dependency creation or usage and provides logic
  for determining if a given require or provide statement is unnecessary or if
  there are missing require or provide statements.
   __init__ N/A N/A self closurized_namespaces ignored_extra_namespaces N/A N/A N/A Initializes an instance the ClosurizedNamespacesInfo class.

    Args:
      closurized_namespaces: A list of namespace prefixes that should be
          processed for dependency information. Non-matching namespaces are
          ignored.
      ignored_extra_namespaces: A list of namespaces that should not be reported
          as extra regardless of whether they are actually used.
     N/A N/A self _closurized_namespaces closurized_namespaces N/A N/A self _ignored_extra_namespaces N/A ignored_extra_namespaces DEFAULT_EXTRA_NAMESPACES N/A N/A N/A self Reset N/A Reset N/A N/A self N/A N/A N/A Resets the internal state to prepare for processing a new file. N/A N/A self _provide_tokens N/A N/A N/A self _require_tokens N/A N/A N/A self _provided_namespaces N/A N/A N/A self _required_namespaces N/A N/A N/A self _created_namespaces N/A N/A N/A self _used_namespaces N/A N/A N/A self _suppressed_requires N/A N/A N/A self _duplicate_provide_tokens N/A N/A N/A self _duplicate_require_tokens N/A N/A N/A self _scopified_file False N/A GetProvidedNamespaces N/A N/A self N/A N/A N/A Returns the namespaces which are already provided by this file.

    Returns:
      A list of strings where each string is a 'namespace' corresponding to an
      existing goog.provide statement in the file being checked.
     N/A N/A set N/A self _provided_namespaces N/A GetRequiredNamespaces N/A N/A self N/A N/A N/A Returns the namespaces which are already required by this file.

    Returns:
      A list of strings where each string is a 'namespace' corresponding to an
      existing goog.require statement in the file being checked.
     N/A N/A set N/A self _required_namespaces N/A IsExtraProvide N/A N/A self token N/A N/A N/A Returns whether the given goog.provide token is unnecessary.

    Args:
      token: A goog.provide token.

    Returns:
      True if the given token corresponds to an unnecessary goog.provide
      statement, otherwise False.
     N/A namespace N/A N/A tokenutil GetStringAfterToken token N/A N/A N/A N/A self GetClosurizedNamespace namespace None N/A N/A False N/A N/A token N/A self _duplicate_provide_tokens N/A N/A True N/A N/A created_namespace created_identifier _ N/A self _created_namespaces N/A N/A N/A N/A namespace created_namespace N/A namespace created_identifier N/A N/A False N/A True N/A IsExtraRequire N/A N/A self token N/A N/A N/A Returns whether the given goog.require token is unnecessary.

    Args:
      token: A goog.require token.

    Returns:
      True if the given token corresponds to an unnecessary goog.require
      statement, otherwise False.
     N/A namespace N/A N/A tokenutil GetStringAfterToken token N/A N/A N/A N/A self GetClosurizedNamespace namespace None N/A N/A False N/A N/A namespace N/A self _ignored_extra_namespaces N/A N/A False N/A N/A token N/A self _duplicate_require_tokens N/A N/A True N/A N/A namespace N/A self _suppressed_requires N/A N/A False N/A parts N/A N/A namespace split . N/A N/A N/A N/A len parts 1 N/A N/A N/A N/A parts N/A -2 N/A 0 isupper N/A N/A True N/A ns N/A self _used_namespaces N/A N/A N/A N/A N/A ns alias_definition N/A N/A namespace N/A ns namespace N/A namespace N/A ns identifier N/A N/A False N/A True N/A GetMissingProvides N/A N/A self N/A N/A N/A Returns the dict of missing provided namespaces for the current file.

    Returns:
      Returns a dictionary of key as string and value as integer where each
      string(key) is a namespace that should be provided by this file, but is
      not and integer(value) is first line number where it's defined.
     N/A missing_provides N/A dict N/A N/A namespace identifier line_number N/A self _created_namespaces N/A N/A N/A N/A N/A N/A self _IsPrivateIdentifier identifier N/A namespace N/A self _provided_namespaces N/A identifier N/A self _provided_namespaces N/A namespace N/A self _required_namespaces N/A namespace missing_provides N/A N/A N/A missing_provides N/A namespace line_number N/A missing_provides N/A GetMissingRequires N/A N/A self N/A N/A N/A Returns the dict of missing required namespaces for the current file.

    For each non-private identifier used in the file, find either a
    goog.require, goog.provide or a created identifier that satisfies it.
    goog.require statements can satisfy the identifier by requiring either the
    namespace of the identifier or the identifier itself. goog.provide
    statements can satisfy the identifier by providing the namespace of the
    identifier. A created identifier can only satisfy the used identifier if
    it matches it exactly (necessary since things can be defined on a
    namespace in more than one file). Note that provided namespaces should be
    a subset of created namespaces, but we check both because in some cases we
    can't always detect the creation of the namespace.

    Returns:
      Returns a dictionary of key as string and value integer where each
      string(key) is a namespace that should be required by this file, but is
      not and integer(value) is first line number where it's used.
     N/A external_dependencies N/A set N/A self _required_namespaces N/A N/A N/A external_dependencies add goog N/A N/A N/A external_dependencies add goog.module N/A created_identifiers N/A set N/A N/A unused_namespace identifier unused_line_number N/A self _created_namespaces N/A N/A N/A N/A created_identifiers add identifier N/A missing_requires N/A dict N/A illegal_alias_statements N/A dict ShouldRequireNamespace N/A N/A namespace identifier N/A N/A N/A Checks if a namespace would normally be required. N/A N/A N/A N/A N/A self _IsPrivateIdentifier identifier N/A namespace external_dependencies N/A namespace N/A self _provided_namespaces N/A identifier external_dependencies N/A identifier created_identifiers N/A namespace missing_requires N/A N/A ns N/A self _used_namespaces N/A N/A namespace N/A ns namespace N/A identifier N/A ns identifier N/A N/A N/A N/A ns alias_definition N/A ShouldRequireNamespace namespace identifier N/A N/A N/A missing_requires N/A namespace N/A N/A ns GetLine N/A ns N/A self _used_namespaces N/A N/A N/A N/A N/A ns alias_definition N/A N/A ShouldRequireNamespace N/A ns namespace N/A ns identifier N/A N/A N/A N/A N/A self _FindNamespace N/A ns identifier N/A self _provided_namespaces created_identifiers external_dependencies missing_requires N/A N/A N/A namespace N/A N/A N/A N/A ns identifier rsplit . 1 N/A 0 N/A N/A illegal_alias_statements N/A namespace N/A ns token N/A N/A missing_requires illegal_alias_statements N/A _FindNamespace N/A N/A self identifier N/A namespaces_list N/A N/A Finds the namespace of an identifier given a list of other namespaces.

    Args:
      identifier: An identifier whose parent needs to be defined.
          e.g. for goog.bar.foo we search something that provides
          goog.bar.
      *namespaces_list: var args of iterables of namespace identifiers
    Returns:
      The namespace that the given identifier is part of or None.
     N/A identifier N/A N/A N/A identifier rsplit . 1 N/A 0 N/A identifier_prefix N/A identifier . N/A namespaces namespaces_list N/A N/A namespace namespaces N/A N/A N/A N/A namespace identifier N/A N/A namespace startswith identifier_prefix N/A N/A namespace N/A None N/A _IsPrivateIdentifier N/A N/A self identifier N/A N/A N/A Returns whether the given identifier is private. N/A pieces N/A N/A identifier split . N/A piece pieces N/A N/A N/A N/A piece endswith _ N/A N/A True N/A False N/A IsFirstProvide N/A N/A self token N/A N/A N/A Returns whether token is the first provide token. N/A N/A N/A self _provide_tokens N/A token N/A N/A self _provide_tokens N/A 0 N/A IsFirstRequire N/A N/A self token N/A N/A N/A Returns whether token is the first require token. N/A N/A N/A self _require_tokens N/A token N/A N/A self _require_tokens N/A 0 N/A IsLastProvide N/A N/A self token N/A N/A N/A Returns whether token is the last provide token. N/A N/A N/A self _provide_tokens N/A token N/A N/A self _provide_tokens N/A -1 N/A IsLastRequire N/A N/A self token N/A N/A N/A Returns whether token is the last require token. N/A N/A N/A self _require_tokens N/A token N/A N/A self _require_tokens N/A -1 N/A ProcessToken N/A N/A self token state_tracker N/A N/A N/A Processes the given token for dependency information.

    Args:
      token: The token to process.
      state_tracker: The JavaScript state tracker.
     N/A N/A N/A token type N/A TokenType IDENTIFIER N/A N/A whole_identifier_string N/A N/A tokenutil GetIdentifierForToken token N/A N/A whole_identifier_string None N/A N/A N/A N/A N/A N/A token string goog.require N/A N/A N/A state_tracker InFunction N/A N/A N/A N/A N/A self _require_tokens append token N/A namespace N/A N/A tokenutil GetStringAfterToken token N/A N/A namespace N/A self _required_namespaces N/A N/A N/A N/A N/A self _duplicate_require_tokens append token N/A N/A N/A N/A N/A self _required_namespaces append namespace N/A N/A N/A self _HasSuppression state_tracker extraRequire N/A N/A N/A N/A N/A self _suppressed_requires append namespace N/A N/A N/A self _AddUsedNamespace state_tracker namespace token N/A N/A N/A N/A token string goog.provide N/A N/A N/A N/A N/A self _provide_tokens append token N/A namespace N/A N/A tokenutil GetStringAfterToken token N/A N/A namespace N/A self _provided_namespaces N/A N/A N/A N/A N/A self _duplicate_provide_tokens append token N/A N/A N/A N/A N/A self _provided_namespaces append namespace N/A N/A N/A self _HasSuppression state_tracker extraProvide N/A N/A N/A N/A self _AddCreatedNamespace state_tracker namespace N/A token line_number N/A N/A N/A N/A token string goog.scope N/A N/A N/A self _scopified_file True N/A N/A N/A N/A token string goog.setTestOnly N/A N/A t N/A N/A tokenutil GetAllTokensInSameLine token N/A N/A N/A N/A t type N/A TokenType STRING_TEXT N/A N/A message N/A t string N/A N/A N/A re match ^\w+(\.\w+)+$ message N/A N/A base_namespace N/A N/A N/A message split . 1 N/A 0 N/A N/A base_namespace N/A self _closurized_namespaces N/A N/A N/A N/A self _AddCreatedNamespace state_tracker message N/A token line_number N/A N/A N/A jsdoc N/A N/A state_tracker GetDocComment N/A N/A N/A token metadata N/A N/A token metadata aliased_symbol N/A N/A whole_identifier_string N/A N/A token metadata aliased_symbol N/A N/A N/A N/A N/A token string goog.module.get N/A N/A N/A self _HasSuppression state_tracker extraRequire N/A N/A namespace N/A N/A tokenutil GetStringAfterToken token N/A namespace N/A UsedNamespace namespace namespace token alias_definition False N/A N/A N/A N/A self _used_namespaces append namespace N/A N/A jsdoc N/A N/A jsdoc HasFlag typedef N/A N/A N/A N/A self _AddCreatedNamespace state_tracker whole_identifier_string N/A token line_number namespace N/A N/A self GetClosurizedNamespace whole_identifier_string N/A N/A is_alias_definition N/A N/A token metadata N/A N/A token metadata is_alias_definition N/A N/A N/A self _AddUsedNamespace state_tracker whole_identifier_string token is_alias_definition N/A N/A N/A N/A token type N/A TokenType SIMPLE_LVALUE N/A N/A identifier N/A N/A token values N/A identifier N/A start_token N/A N/A tokenutil GetIdentifierStart token N/A N/A start_token N/A start_token token N/A N/A identifier N/A N/A tokenutil GetIdentifierForToken start_token N/A N/A start_token token N/A N/A start_token N/A start_token metadata N/A N/A start_token metadata aliased_symbol N/A N/A N/A start_token metadata is_alias_definition N/A N/A identifier N/A N/A start_token metadata aliased_symbol N/A identifier N/A N/A namespace N/A N/A self GetClosurizedNamespace identifier N/A N/A N/A state_tracker InFunction N/A N/A N/A N/A self _AddUsedNamespace state_tracker identifier token N/A N/A N/A namespace N/A namespace goog N/A N/A N/A N/A self _AddCreatedNamespace state_tracker identifier N/A token line_number namespace namespace N/A N/A N/A N/A token type N/A TokenType DOC_FLAG N/A N/A flag N/A token attached_object N/A flag_type N/A flag flag_type N/A N/A flag N/A N/A flag HasType N/A flag jstype N/A N/A is_interface N/A N/A N/A N/A state_tracker GetDocComment HasFlag interface N/A N/A N/A flag_type implements N/A N/A flag_type extends is_interface N/A N/A identifier N/A N/A N/A flag jstype alias N/A N/A flag jstype identifier N/A N/A N/A self _AddUsedNamespace state_tracker identifier token N/A _AddCreatedNamespace N/A N/A self state_tracker identifier line_number namespace N/A None N/A N/A Adds the namespace of an identifier to the list of created namespaces.

    If the identifier is annotated with a 'missingProvide' suppression, it is
    not added.

    Args:
      state_tracker: The JavaScriptStateTracker instance.
      identifier: The identifier to add.
      line_number: Line number where namespace is created.
      namespace: The namespace of the identifier or None if the identifier is
          also the namespace.
     N/A N/A namespace N/A N/A namespace identifier N/A N/A N/A self _HasSuppression state_tracker missingProvide N/A N/A N/A N/A N/A N/A self _created_namespaces append N/A namespace identifier line_number N/A _AddUsedNamespace N/A N/A self state_tracker identifier token is_alias_definition N/A False N/A N/A Adds the namespace of an identifier to the list of used namespaces.

    If the identifier is annotated with a 'missingRequire' suppression, it is
    not added.

    Args:
      state_tracker: The JavaScriptStateTracker instance.
      identifier: An identifier which has been used.
      token: The token in which the namespace is used.
      is_alias_definition: If the used namespace is part of an alias_definition.
          Aliased symbols need their parent namespace to be available, if it is
          not yet required through another symbol, an error will be thrown.
     N/A N/A N/A self _HasSuppression state_tracker missingRequire N/A N/A N/A identifier N/A N/A self _GetUsedIdentifier identifier N/A namespace N/A N/A self GetClosurizedNamespace identifier N/A N/A namespace N/A N/A N/A state_tracker IsVariableInScope namespace N/A N/A namespace N/A UsedNamespace namespace identifier token is_alias_definition N/A N/A N/A N/A self _used_namespaces append namespace N/A _HasSuppression N/A N/A self state_tracker suppression N/A N/A N/A jsdoc N/A N/A state_tracker GetDocComment N/A N/A jsdoc N/A suppression N/A jsdoc suppressions N/A _GetUsedIdentifier N/A N/A self identifier N/A N/A N/A Strips apply/call/inherit calls from the identifier. N/A suffix N/A .apply .call .inherit N/A N/A N/A N/A identifier endswith suffix N/A N/A N/A identifier N/A N/A N/A len suffix N/A identifier N/A GetClosurizedNamespace N/A N/A self identifier N/A N/A N/A Given an identifier, returns the namespace that identifier is from.

    Args:
      identifier: The identifier to extract a namespace from.

    Returns:
      The namespace the given identifier resides in, or None if one could not
      be found.
     N/A N/A N/A identifier startswith goog.global N/A N/A None N/A parts N/A N/A identifier split . N/A namespace N/A self _closurized_namespaces N/A N/A N/A N/A N/A identifier startswith N/A namespace . N/A N/A N/A namespace N/A N/A part parts N/A N/A N/A N/A part prototype N/A N/A part isupper N/A N/A N/A N/A . join namespace N/A N/A N/A namespace append part N/A N/A N/A N/A part N/A 0 isupper N/A N/A N/A N/A . join namespace N/A N/A N/A parts N/A -1 N/A apply inherits call N/A N/A N/A N/A parts pop N/A N/A N/A parts pop N/A N/A parts N/A N/A N/A parts N/A -1 endswith _ N/A N/A N/A N/A parts pop N/A N/A N/A . join parts N/A None N/A N/A