com.google.javascript.jscomp.instrumentation_template.proto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler Show documentation
Show all versions of closure-compiler Show documentation
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.
// Copyright 2008 Google Inc. All Rights Reserved.
// Author: [email protected] (Antonio Vicente)
//
// Provides jscompiler 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 = );
// used to inform the harness about the contents of a module
optional string report_defined = 1;
// name of function(ID = );
// used to inform the harness about a function call
optional string report_call = 2;
// name of function(ID = , VAL = );
// used to inform the harness about a function exit. Must return
// its second argument.
//
// @returns 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;
}