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

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

// 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 - 2025 Weber Informatics LLC | Privacy Policy