All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.instrumentation_template.proto Maven / Gradle / Ivy

Go to download

Closure Compiler is a JavaScript optimizing compiler. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. It is used in many of Google's JavaScript apps, including Gmail, Google Web Search, Google Maps, and Google Docs.

There is a newer version: v20240317
Show newest version
// Copyright 2008 Google Inc. All Rights Reserved.
// Author: [email protected] (Antonio Vicente)
//
// Provides JS Compiler with parameters for the instrumentation pass

syntax = "proto2";

package jscomp;

option java_package = "com.google.javascript.jscomp";
option java_multiple_files = true;

message Instrumentation {
  // name of function(ID = , NAME = );
  // used to inform the harness about the contents of a module
  optional string report_defined = 1;

  // name of function(ID = , NAME = ,
  //     ARGUMENTS = );
  // used to inform the harness about a function call
  optional string report_call = 2;

  // name of function(ID = , VAL = ,
  //     NAME = );
  // used to inform the harness about a function exit.  Must return
  // its second argument.
  //
  // @return VAL
  optional string report_exit = 6;

  // List of variable declarations in the application's source code
  // that should be replaced by variables with the same name that are
  // part of the instrumentation harness.  The presence of these
  // declarations in the original code allows debug UIs that access
  // these variables to compile when the instrumentation pass is
  // disabled.
  repeated string declaration_to_remove = 3;

  // Definition of functions used to report module contents and
  // function calls.  Will be added to the start of the app's main
  // module.
  repeated string init = 4;

  // name of function();
  // used to inform the harness about the app name
  optional string app_name_setter = 5;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy