| 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 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1918 */ | 1918 */ |
| 1919 const ScannerErrorCode.con2(String name, int ordinal, this.message, this.corre
ction) : super(name, ordinal); | 1919 const ScannerErrorCode.con2(String name, int ordinal, this.message, this.corre
ction) : super(name, ordinal); |
| 1920 | 1920 |
| 1921 @override | 1921 @override |
| 1922 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; | 1922 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; |
| 1923 | 1923 |
| 1924 @override | 1924 @override |
| 1925 ErrorType get type => ErrorType.SYNTACTIC_ERROR; | 1925 ErrorType get type => ErrorType.SYNTACTIC_ERROR; |
| 1926 | 1926 |
| 1927 @override | 1927 @override |
| 1928 String get uniqueName => "${runtimeType.toString()}.${name}"; | 1928 String get uniqueName => "$runtimeType.$name"; |
| 1929 } | 1929 } |
| 1930 | 1930 |
| 1931 /** | 1931 /** |
| 1932 * Instances of the class `StringToken` represent a token whose value is indepen
dent of it's | 1932 * Instances of the class `StringToken` represent a token whose value is indepen
dent of it's |
| 1933 * type. | 1933 * type. |
| 1934 */ | 1934 */ |
| 1935 class StringToken extends Token { | 1935 class StringToken extends Token { |
| 1936 /** | 1936 /** |
| 1937 * The lexeme represented by this token. | 1937 * The lexeme represented by this token. |
| 1938 */ | 1938 */ |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2697 * @param precedingComment the first comment in the list of comments that prec
ede this token | 2697 * @param precedingComment the first comment in the list of comments that prec
ede this token |
| 2698 */ | 2698 */ |
| 2699 TokenWithComment(TokenType type, int offset, this._precedingComment) : super(t
ype, offset); | 2699 TokenWithComment(TokenType type, int offset, this._precedingComment) : super(t
ype, offset); |
| 2700 | 2700 |
| 2701 @override | 2701 @override |
| 2702 Token copy() => new TokenWithComment(type, offset, _precedingComment); | 2702 Token copy() => new TokenWithComment(type, offset, _precedingComment); |
| 2703 | 2703 |
| 2704 @override | 2704 @override |
| 2705 Token get precedingComments => _precedingComment; | 2705 Token get precedingComments => _precedingComment; |
| 2706 } | 2706 } |
| OLD | NEW |