| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.scanner; | 8 library engine.scanner; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 /** | 167 /** |
| 168 * The template used to create the message to be displayed for this error. | 168 * The template used to create the message to be displayed for this error. |
| 169 */ | 169 */ |
| 170 final String message; | 170 final String message; |
| 171 | 171 |
| 172 /** | 172 /** |
| 173 * The template used to create the correction to be displayed for this error,
or `null` if | 173 * The template used to create the correction to be displayed for this error,
or `null` if |
| 174 * there is no correction information for this error. | 174 * there is no correction information for this error. |
| 175 */ | 175 */ |
| 176 String correction11; | 176 String correction10; |
| 177 | 177 |
| 178 /** | 178 /** |
| 179 * Initialize a newly created error code to have the given message. | 179 * Initialize a newly created error code to have the given message. |
| 180 * | 180 * |
| 181 * @param message the message template used to create the message to be displa
yed for this error | 181 * @param message the message template used to create the message to be displa
yed for this error |
| 182 */ | 182 */ |
| 183 ScannerErrorCode.con1(String name, int ordinal, this.message) : super(name, or
dinal); | 183 ScannerErrorCode.con1(String name, int ordinal, this.message) : super(name, or
dinal); |
| 184 | 184 |
| 185 /** | 185 /** |
| 186 * Initialize a newly created error code to have the given message and correct
ion. | 186 * Initialize a newly created error code to have the given message and correct
ion. |
| 187 * | 187 * |
| 188 * @param message the template used to create the message to be displayed for
the error | 188 * @param message the template used to create the message to be displayed for
the error |
| 189 * @param correction the template used to create the correction to be displaye
d for the error | 189 * @param correction the template used to create the correction to be displaye
d for the error |
| 190 */ | 190 */ |
| 191 ScannerErrorCode.con2(String name, int ordinal, this.message, String correctio
n) : super(name, ordinal) { | 191 ScannerErrorCode.con2(String name, int ordinal, this.message, String correctio
n) : super(name, ordinal) { |
| 192 this.correction11 = correction; | 192 this.correction10 = correction; |
| 193 } | 193 } |
| 194 | 194 |
| 195 String get correction => correction11; | 195 String get correction => correction10; |
| 196 | 196 |
| 197 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; | 197 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; |
| 198 | 198 |
| 199 ErrorType get type => ErrorType.SYNTACTIC_ERROR; | 199 ErrorType get type => ErrorType.SYNTACTIC_ERROR; |
| 200 } | 200 } |
| 201 | 201 |
| 202 /** | 202 /** |
| 203 * Instances of the class `SubSequenceReader` implement a [CharacterReader] that
reads | 203 * Instances of the class `SubSequenceReader` implement a [CharacterReader] that
reads |
| 204 * characters from a character sequence, but adds a delta when reporting the cur
rent character | 204 * characters from a character sequence, but adds a delta when reporting the cur
rent character |
| 205 * offset so that the character sequence can be a subsequence from a larger sequ
ence. | 205 * offset so that the character sequence can be a subsequence from a larger sequ
ence. |
| (...skipping 2521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2727 * @return `true` if this token type represents an operator that can be define
d by users | 2727 * @return `true` if this token type represents an operator that can be define
d by users |
| 2728 */ | 2728 */ |
| 2729 bool get isUserDefinableOperator => identical(_lexeme, "==") || identical(_lex
eme, "~") || identical(_lexeme, "[]") || identical(_lexeme, "[]=") || identical(
_lexeme, "*") || identical(_lexeme, "/") || identical(_lexeme, "%") || identical
(_lexeme, "~/") || identical(_lexeme, "+") || identical(_lexeme, "-") || identic
al(_lexeme, "<<") || identical(_lexeme, ">>") || identical(_lexeme, ">=") || ide
ntical(_lexeme, ">") || identical(_lexeme, "<=") || identical(_lexeme, "<") || i
dentical(_lexeme, "&") || identical(_lexeme, "^") || identical(_lexeme, "|"); | 2729 bool get isUserDefinableOperator => identical(_lexeme, "==") || identical(_lex
eme, "~") || identical(_lexeme, "[]") || identical(_lexeme, "[]=") || identical(
_lexeme, "*") || identical(_lexeme, "/") || identical(_lexeme, "%") || identical
(_lexeme, "~/") || identical(_lexeme, "+") || identical(_lexeme, "-") || identic
al(_lexeme, "<<") || identical(_lexeme, ">>") || identical(_lexeme, ">=") || ide
ntical(_lexeme, ">") || identical(_lexeme, "<=") || identical(_lexeme, "<") || i
dentical(_lexeme, "&") || identical(_lexeme, "^") || identical(_lexeme, "|"); |
| 2730 } | 2730 } |
| 2731 | 2731 |
| 2732 class TokenType_EOF extends TokenType { | 2732 class TokenType_EOF extends TokenType { |
| 2733 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super.
con2(name, ordinal, arg0, arg1); | 2733 TokenType_EOF(String name, int ordinal, TokenClass arg0, String arg1) : super.
con2(name, ordinal, arg0, arg1); |
| 2734 | 2734 |
| 2735 String toString() => "-eof-"; | 2735 String toString() => "-eof-"; |
| 2736 } | 2736 } |
| OLD | NEW |