Module Expr Str Assign NameStore Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Str Str BinOpMod Str NameLoad Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Str Assign NameStore Dict Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd ListLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Num CompareEq Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list decorator_list Call NameLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad keyword NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad decorator_list decorator_list Call NameLoad Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad vararg kwarg body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr ListLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr ListLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore ListLoad Str Str Str Str Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Assign NameStore NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad If Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad NameLoad keyword Call NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list decorator_list Call NameLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body If CompareEq Call AttributeLoad NameLoad attr Num Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Num orelse If Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assert UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body Print BinOpMod Str NameLoad Assert CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIn AttributeLoad NameLoad attr NameLoad body Return For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Print BinOpMod Str NameLoad Assert UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A Closure compiler rules for the build system.

Contains the following rules:
closure_js_lint
closure_js_fixstyle
closure_js_library

Assumes Closure Linter is installed and on the path.
 N/A __author__ benvanik@google.com (Ben Vanik) N/A io N/A os N/A re anvil.context RuleContext anvil.rule Rule build_rule anvil.task Task ExecutableTask JavaExecutableTask WriteFileTask N/A anvil.util ClosureJsLintRule N/A Rule N/A N/A A set of linted JS files.
  Passes all source files through the Closure style linter.

  Similar to file_set, all source files are globbed together and de-duplicated
  before being passed on as outputs. If a src_filter is provided then it is used
  to filter all sources.

  Inputs:
    srcs: Source JS file paths.
    namespaces: A list of Closurized namespaces.
    linter_path: Path to the closure_linter module. If omitted the system
        gjslint will be used.

  Outputs:
    All of the source file paths, passed-through unmodified.
   __init__ N/A N/A self name namespaces linter_path N/A None args kwargs N/A N/A Initializes a Closure JS lint rule.

    Args:
      name: Rule name.
      namespaces: A list of Closurized namespaces.
      linter_path: Path to the closure_linter module. If omitted the system
          gjslint will be used.
     N/A N/A N/A N/A super ClosureJsLintRule self __init__ name args kwargs N/A N/A self src_filter *.js N/A N/A self _command gjslint N/A N/A self _extra_args N/A --nobeep N/A N/A self namespaces N/A N/A N/A N/A N/A self namespaces extend namespaces N/A N/A self linter_path linter_path N/A _Context N/A RuleContext N/A begin N/A N/A self N/A N/A N/A N/A N/A N/A super N/A ClosureJsLintRule _Context self begin N/A N/A N/A self _append_output_paths N/A self src_paths N/A N/A N/A self _check_if_cached N/A N/A N/A N/A self _succeed N/A N/A namespaces N/A N/A , join N/A N/A self rule namespaces N/A args N/A --strict --jslint_error=all N/A --closurized_namespaces=%s namespaces N/A command N/A N/A self rule _command N/A env None N/A N/A N/A self rule linter_path N/A N/A command python N/A env N/A PYTHONPATH N/A N/A self rule linter_path N/A args N/A N/A N/A N/A N/A os path join N/A N/A self rule linter_path N/A closure_linter/%s.py N/A N/A self rule _command args N/A src_path N/A N/A self file_delta changed_files N/A N/A N/A N/A N/A N/A src_path find N/A build-out%s N/A os sep -1 N/A N/A N/A src_path find N/A build-gen%s N/A os sep -1 N/A N/A N/A N/A args append src_path N/A d N/A N/A self _run_task_async N/A ExecutableTask N/A self build_env command args env env pretty_name N/A str N/A self rule N/A N/A N/A self _chain d N/A N/A N/A N/A build_rule closure_js_lint ClosureJsFixStyleRule N/A ClosureJsLintRule N/A N/A A set of style-corrected JS files.
  Passes all source files through the Closure style fixer.

  Similar to file_set, all source files are globbed together and de-duplicated
  before being passed on as outputs. If a src_filter is provided then it is used
  to filter all sources.

  This rule is special in that it fixes the style of the source files in-place,
  overwriting them in their source path.

  Inputs:
    srcs: Source JS file paths.
    namespaces: A list of Closurized namespaces.
    linter_path: Path to the closure_linter module. If omitted the system
        gjslint will be used.

  Outputs:
    All of the source file paths, passed-through post-correction.
   __init__ N/A N/A self name namespaces linter_path N/A None args kwargs N/A N/A Initializes a Closure JS style fixing rule.

    Args:
      name: Rule name.
      namespaces: A list of Closurized namespaces.
      linter_path: Path to the closure_linter module. If omitted the system
          gjslint will be used.
     N/A N/A N/A N/A super ClosureJsFixStyleRule self __init__ name namespaces linter_path linter_path args kwargs N/A N/A self _command fixjsstyle N/A N/A self _extra_args N/A N/A N/A N/A build_rule closure_js_fixstyle ClosureJsLibraryRule N/A Rule N/A N/A A Closure compiler JavaScript library.
  Uses the Closure compiler to build a library from the given source files.

  Processes input files using the Closure compiler in the given mode.
  goog.provide and goog.require are used to order the files when concatenated.
  In SIMPLE and ADVANCED modes dependencies are used to remove dead code.

  If UNCOMPILED mode is used, only a -deps.js file is generated. This is a fast
  operation and can be used when interactively running code in a browser in
  uncompiled mode.

  In DEPS mode then only a -deps.js file is generated.

  A compiler JAR must be provided.

  Inputs:
    srcs: All source JS files.
    mode: Compilation mode, one of ['DEPS', UNCOMPILED', 'SIMPLE', 'ADVANCED'].
    compiler_jar: Path to a compiler .jar file.
    entry_points: A list of entry points, such as 'myapp.start'.
    pretty_print: True to pretty print the output.
    debug: True to enable Closure DEBUG consts.
    compiler_flags: A list of string compiler flags.
    externs: Additional extern .js files.
    wrap_with_global: Wrap all output in a closure and call with the given
          global object.
          Example - 'global' -> (function(){...code...}).call(global);
    out: Optional output name. If none is provided than the rule name will be
        used.
    deps_out: Base name for -deps.js file.
        Example - 'library' -> 'library-deps.js'
    file_list_out: A list of files in sorted order required for the given
        entry points.
        Example - 'all_files.txt'

  Outputs:
    A single compiled JS file. If no out is specified a file with the name of
    the rule will be created.
   __init__ N/A N/A self name mode compiler_jar entry_points pretty_print debug compiler_flags externs wrap_with_global out deps_out file_list_out N/A False False None None None None None None args kwargs N/A N/A Initializes a Closure JS library rule.

    Args:
      name: Rule name.
      mode: Compilation mode, one of ['UNCOMPILED', 'SIMPLE', 'ADVANCED'].
      compiler_jar: Path to a compiler .jar file.
      entry_points: A list of entry points, such as 'myapp.start'.
      pretty_print: True to pretty print the output.
      debug: True to enable Closure DEBUG consts.
      compiler_flags: A list of string compiler flags.
      externs: Additional extern .js files.
      wrap_with_global: Wrap all output in a closure and call with the given
          global object.
          Example - 'global' -> (function(){...code...}).call(global);
      out: Optional output name.
      deps_out: Base name for -deps.js file.
          Example - 'library' -> 'library-deps.js'
      file_list_out: A list of files in sorted order required for the given
          entry points.
          Example - 'all_files.txt'
     N/A N/A N/A N/A super ClosureJsLibraryRule self __init__ name args kwargs N/A N/A self src_filter *.js N/A N/A self mode mode N/A N/A self compiler_jar compiler_jar N/A N/A N/A self _append_dependent_paths N/A N/A self compiler_jar N/A N/A self pretty_print pretty_print N/A N/A self debug debug N/A N/A self entry_points N/A N/A N/A isinstance entry_points str N/A N/A N/A N/A N/A self entry_points append entry_points N/A N/A entry_points N/A N/A N/A N/A N/A self entry_points extend entry_points N/A N/A self compiler_flags N/A N/A compiler_flags N/A N/A N/A N/A N/A self compiler_flags extend compiler_flags N/A N/A self externs N/A N/A externs N/A N/A N/A N/A N/A self externs extend externs N/A N/A N/A self _append_dependent_paths N/A self externs N/A N/A self wrap_with_global wrap_with_global N/A N/A self out out N/A N/A self deps_out deps_out N/A N/A self file_list_out file_list_out N/A _Context N/A RuleContext N/A begin N/A N/A self N/A N/A N/A N/A N/A N/A super N/A ClosureJsLibraryRule _Context self begin N/A jar_path N/A N/A N/A self _resolve_input_files N/A N/A N/A self rule compiler_jar N/A 0 N/A args N/A --process_closure_primitives --generate_exports --summary_detail_level=3 --warning_level=VERBOSE N/A N/A N/A args extend N/A N/A self rule compiler_flags N/A deps_only False N/A compiling False N/A N/A N/A N/A self rule mode DEPS N/A N/A deps_only True N/A N/A N/A N/A N/A self rule mode UNCOMPILED N/A N/A compiling True N/A N/A N/A args append --compilation_level=WHITESPACE_ONLY N/A N/A N/A args append --formatting=PRETTY_PRINT N/A N/A N/A args append --formatting=PRINT_INPUT_DELIMITER N/A N/A N/A N/A N/A self rule mode SIMPLE N/A N/A compiling True N/A N/A N/A args append --compilation_level=SIMPLE_OPTIMIZATIONS N/A N/A N/A N/A N/A self rule mode ADVANCED N/A N/A compiling True N/A N/A N/A args append --compilation_level=ADVANCED_OPTIMIZATIONS N/A N/A N/A self rule pretty_print N/A N/A N/A N/A args append --formatting=PRETTY_PRINT N/A N/A N/A args append --formatting=PRINT_INPUT_DELIMITER N/A N/A N/A N/A self rule debug N/A N/A N/A N/A args append --define=goog.DEBUG=false N/A N/A N/A args append --define=goog.asserts.ENABLE_ASSERTS=false N/A N/A N/A self rule wrap_with_global N/A N/A N/A N/A args append N/A --output_wrapper="(function(){%%output%%}).call(%s);" N/A N/A self rule wrap_with_global N/A extern_paths N/A N/A self _resolve_input_files N/A N/A self rule externs N/A extern_path extern_paths N/A N/A N/A N/A args append N/A --externs=%s extern_path N/A entry_point N/A N/A self rule entry_points N/A N/A N/A N/A args append N/A --closure_entry_point=%s entry_point N/A compiling N/A N/A output_path N/A N/A self _get_out_path name N/A N/A self rule out suffix .js N/A N/A N/A self _ensure_output_exists N/A N/A N/A os path dirname output_path N/A N/A N/A self _append_output_paths N/A output_path N/A N/A N/A args append N/A --js_output_file=%s output_path N/A deps_name N/A N/A N/A self rule deps_out N/A N/A self rule out N/A deps_js_path N/A N/A self _get_out_path name deps_name suffix -deps.js N/A N/A N/A self _ensure_output_exists N/A N/A N/A os path dirname deps_js_path N/A N/A N/A self _append_output_paths N/A deps_js_path N/A file_list_path None N/A N/A N/A self rule file_list_out N/A N/A file_list_path N/A N/A self _get_out_path name N/A N/A self rule file_list_out N/A N/A N/A self _ensure_output_exists N/A N/A N/A os path dirname file_list_path N/A N/A N/A self _append_output_paths N/A file_list_path N/A N/A N/A self _check_if_cached N/A N/A N/A N/A self _succeed N/A N/A d N/A N/A self _run_task_async N/A _ScanJsDependenciesTask N/A self build_env N/A self src_paths _deps_scanned N/A N/A dep_graph N/A N/A N/A ds N/A N/A used_paths N/A N/A dep_graph get_transitive_closure N/A N/A self rule entry_points N/A N/A N/A ds append N/A N/A self _run_task_async N/A WriteFileTask N/A self build_env N/A N/A dep_graph get_deps_js deps_js_path N/A file_list_path N/A N/A rel_used_paths N/A N/A N/A N/A os path relpath path N/A N/A self _get_rule_path N/A path used_paths N/A N/A N/A ds append N/A N/A self _run_task_async N/A WriteFileTask N/A self build_env N/A N/A join rel_used_paths file_list_path N/A compiling N/A N/A src_path used_paths N/A N/A N/A N/A args append N/A --js=%s src_path N/A N/A N/A ds append N/A N/A self _run_task_async N/A JavaExecutableTask N/A self build_env jar_path args pretty_name N/A str N/A self rule N/A N/A N/A N/A self _append_output_paths used_paths N/A N/A N/A self _chain ds N/A N/A N/A N/A d add_callback_fn _deps_scanned N/A N/A N/A self _chain_errback d N/A N/A N/A N/A build_rule closure_js_library _ScanJsDependenciesTask N/A Task N/A __init__ N/A N/A self build_env src_paths N/A args kwargs N/A N/A N/A N/A N/A super _ScanJsDependenciesTask self __init__ build_env args kwargs N/A N/A self src_paths src_paths N/A execute N/A N/A self N/A N/A N/A deps_graph N/A JsDependencyGraph N/A self build_env N/A self src_paths N/A deps_graph N/A N/A JsDependencyFile N/A object N/A N/A A single source JS file.
  Parses the file and finds all goog.provide and goog.require statements.
   N/A _PROVIDEREQURE_REGEX N/A N/A re compile goog\.(provide|require)\(\s*['"](.+)['"]\s*\) N/A _GOOG_BASE_LINE  * @provideGoog __init__ N/A N/A self src_path N/A N/A N/A Initializes a JS dependency file.

    Args:
      src_path: Source JS file path.
     N/A N/A self src_path src_path N/A N/A self provides N/A N/A N/A self requires N/A N/A N/A self is_base_js False N/A N/A self is_css_rename_map False N/A N/A N/A io open N/A self src_path rb f N/A N/A N/A N/A self _scan f N/A _scan N/A N/A self f N/A N/A N/A Scans the given file for provides/requires and returns the results.

    Args:
      f: Input file.
     N/A provides N/A set N/A requires N/A set N/A line N/A N/A f readlines N/A N/A match N/A N/A N/A self _PROVIDEREQURE_REGEX match line N/A match N/A N/A N/A N/A N/A match group 1 provide N/A N/A N/A N/A provides add N/A str N/A N/A match group 2 N/A N/A N/A N/A requires add N/A str N/A N/A match group 2 N/A N/A N/A N/A line startswith N/A self _GOOG_BASE_LINE N/A N/A N/A N/A provides add goog N/A N/A self is_base_js True N/A N/A N/A N/A line startswith goog.setCssNameMapping( N/A N/A N/A self is_css_rename_map True N/A N/A self provides N/A list provides N/A N/A N/A N/A self provides sort N/A N/A self requires N/A list requires N/A N/A N/A N/A self requires sort N/A N/A JsDependencyGraph N/A object N/A N/A Represents a JS dependency graph.
  This scans all source JavaScript files to identify their dependencies.
  The result is a queryable list
   __init__ N/A N/A self build_env src_paths N/A args kwargs N/A N/A Initializes a JS dependency graph.

    Args:
      build_env: BuildEnvironment.
      src_paths: A list of source JS paths.
     N/A N/A self build_env build_env N/A N/A self src_paths N/A list src_paths N/A N/A self dep_files N/A N/A N/A self _provide_map N/A N/A N/A self base_dep_file None N/A N/A self base_js_path None N/A src_path N/A self src_paths N/A N/A dep_file N/A JsDependencyFile src_path N/A N/A N/A self dep_files N/A src_path dep_file N/A N/A dep_file is_base_js N/A N/A N/A self base_dep_file dep_file N/A N/A self base_js_path N/A N/A N/A os path dirname N/A dep_file src_path N/A provide N/A dep_file provides N/A N/A N/A N/A provide N/A self _provide_map N/A N/A N/A self _provide_map N/A provide dep_file N/A get_deps_js N/A N/A self N/A N/A N/A Generates the contents of a deps.js file from the dependency graph.

    Returns:
      A string containing all of the lines of a deps.js file.
     N/A base_path N/A N/A self build_env root_path N/A N/A self base_js_path N/A N/A base_path N/A self base_js_path N/A lines N/A // Automatically generated by anvil-build - do not modify N/A src_paths N/A N/A N/A self dep_files keys N/A N/A N/A src_paths sort N/A src_path src_paths N/A N/A dep_file N/A N/A self dep_files N/A src_path N/A rel_path N/A N/A N/A os path relpath N/A dep_file src_path base_path N/A rel_path N/A N/A N/A anvil util strip_build_paths rel_path N/A N/A N/A lines append N/A goog.addDependency('%s', %s, %s); N/A N/A N/A N/A anvil util ensure_forwardslashes rel_path N/A dep_file provides N/A dep_file requires N/A N/A N/A join lines N/A get_transitive_closure N/A N/A self entry_points N/A N/A N/A Identifies the transitive closure of the dependency graph for the given
    entry points.

    Args:
      entry_points: Closure entry points, such as 'my.start'.

    Returns:
      A list of all file paths required by the given entry points.
      The files are sorted in proper dependency order.
     N/A deps_list N/A N/A N/A self base_dep_file N/A N/A N/A N/A deps_list append N/A N/A self base_dep_file src_path N/A entry_point entry_points N/A N/A N/A N/A self _add_dependencies deps_list entry_point N/A dep_file N/A N/A N/A self dep_files values N/A N/A N/A dep_file is_css_rename_map N/A N/A N/A N/A deps_list append N/A dep_file src_path N/A deps_list N/A _add_dependencies N/A N/A self deps_list namespace N/A N/A N/A N/A N/A namespace N/A self _provide_map N/A N/A N/A Namespace %s not provided namespace N/A N/A namespace N/A self _provide_map N/A dep_file N/A N/A self _provide_map N/A namespace N/A N/A N/A dep_file src_path deps_list N/A N/A N/A require N/A dep_file requires N/A N/A N/A require N/A dep_file provides N/A N/A N/A Namespace %s both provided and required in the same file require N/A N/A N/A require N/A dep_file provides N/A N/A N/A self _add_dependencies deps_list require N/A N/A N/A deps_list append N/A dep_file src_path N/A N/A