Package com.google.dart.engine.utilities.instrumentation

Examples of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder


   * @param token the first token of the expression
   * @return the expression that was parsed, or {@code null} if the tokens do not represent a
   *         recognizable expression
   */
  public Expression parseExpression(Token token) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("dart.engine.Parser.parseExpression");
    try {
      currentToken = token;
      return parseExpression();
    } finally {
      instrumentation.log(2); //Record if >= 2ms
    }
  }
View Full Code Here


   * @param token the first token of the statement
   * @return the statement that was parsed, or {@code null} if the tokens do not represent a
   *         recognizable statement
   */
  public Statement parseStatement(Token token) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("dart.engine.Parser.parseStatement");
    try {
      currentToken = token;
      return parseStatement();
    } finally {
      instrumentation.log(2); //Record if >= 2ms
    }
  }
View Full Code Here

   * @param token the first token of the sequence of statement
   * @return the statements that were parsed, or {@code null} if the tokens do not represent a
   *         recognizable sequence of statements
   */
  public List<Statement> parseStatements(Token token) {
    InstrumentationBuilder instrumentation = Instrumentation.builder("dart.engine.Parser.parseStatements");
    try {
      currentToken = token;
      return parseStatementList();
    } finally {
      instrumentation.log(2); //Record if >= 2ms
    }
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.