APISonar


com.google.caja.reporting.MessageLevel.LOG

> com > google > caja > reporting > MessageLevel > LOG
com APIs google APIs caja APIs reporting APIs MessageLevel APIs LOG APIs

Example 1
private void checkSemicolon() throws ParseException {
    // Look for a semicolon
    if (tq.checkToken(Punctuation.SEMI)) { return; }
    // None found, so maybe do insertion.
    if (tq.isEmpty()) { return; }
    if (semicolonInserted()) {
      FilePosition semiPoint = FilePosition.endOf(tq.lastPosition());
      MessageLevel lvl = tq.isEmpty() || tq.lookaheadToken(Punctuation.RCURLY)
          ? MessageLevel.LOG : MessageLevel.LINT;
      mq.addMessage(MessageType.SEMICOLON_INSERTED, lvl, semiPoint);
    } else {
      tq.expectToken(Punctuation.SEMI);  // Just used to throw an exception
    }
  }