| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 } | 117 } |
| 118 | 118 |
| 119 @override | 119 @override |
| 120 int get offset => _charOffset; | 120 int get offset => _charOffset; |
| 121 | 121 |
| 122 @override | 122 @override |
| 123 String getString(int start, int endDelta) => _sequence.substring(start, _charO
ffset + 1 + endDelta).toString(); | 123 String getString(int start, int endDelta) => _sequence.substring(start, _charO
ffset + 1 + endDelta).toString(); |
| 124 | 124 |
| 125 @override | 125 @override |
| 126 int peek() { | 126 int peek() { |
| 127 if (_charOffset + 1 >= _sequence.length) { | 127 if (_charOffset + 1 >= _stringLength) { |
| 128 return -1; | 128 return -1; |
| 129 } | 129 } |
| 130 return _sequence.codeUnitAt(_charOffset + 1); | 130 return _sequence.codeUnitAt(_charOffset + 1); |
| 131 } | 131 } |
| 132 | 132 |
| 133 @override | 133 @override |
| 134 void set offset(int offset) { | 134 void set offset(int offset) { |
| 135 _charOffset = offset; | 135 _charOffset = offset; |
| 136 } | 136 } |
| 137 } | 137 } |
| (...skipping 2545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2683 * @param precedingComment the first comment in the list of comments that prec
ede this token | 2683 * @param precedingComment the first comment in the list of comments that prec
ede this token |
| 2684 */ | 2684 */ |
| 2685 TokenWithComment(TokenType type, int offset, this._precedingComment) : super(t
ype, offset); | 2685 TokenWithComment(TokenType type, int offset, this._precedingComment) : super(t
ype, offset); |
| 2686 | 2686 |
| 2687 @override | 2687 @override |
| 2688 Token copy() => new TokenWithComment(type, offset, _precedingComment); | 2688 Token copy() => new TokenWithComment(type, offset, _precedingComment); |
| 2689 | 2689 |
| 2690 @override | 2690 @override |
| 2691 Token get precedingComments => _precedingComment; | 2691 Token get precedingComments => _precedingComment; |
| 2692 } | 2692 } |
| OLD | NEW |