| 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 library engine.scanner; | 5 library engine.scanner; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'error.dart'; | 9 import 'error.dart'; |
| 10 import 'java_engine.dart'; | 10 import 'java_engine.dart'; |
| (...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 next = _reader.advance(); | 1494 next = _reader.advance(); |
| 1495 ++nesting; | 1495 ++nesting; |
| 1496 } | 1496 } |
| 1497 } else if (next == 0xD) { | 1497 } else if (next == 0xD) { |
| 1498 next = _reader.advance(); | 1498 next = _reader.advance(); |
| 1499 if (next == 0xA) { | 1499 if (next == 0xA) { |
| 1500 next = _reader.advance(); | 1500 next = _reader.advance(); |
| 1501 } | 1501 } |
| 1502 recordStartOfLine(); | 1502 recordStartOfLine(); |
| 1503 } else if (next == 0xA) { | 1503 } else if (next == 0xA) { |
| 1504 next = _reader.advance(); |
| 1504 recordStartOfLine(); | 1505 recordStartOfLine(); |
| 1505 next = _reader.advance(); | |
| 1506 } else { | 1506 } else { |
| 1507 next = _reader.advance(); | 1507 next = _reader.advance(); |
| 1508 } | 1508 } |
| 1509 } | 1509 } |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 int _tokenizeMultiLineRawString(int quoteChar, int start) { | 1512 int _tokenizeMultiLineRawString(int quoteChar, int start) { |
| 1513 int next = _reader.advance(); | 1513 int next = _reader.advance(); |
| 1514 outer: while (next != -1) { | 1514 outer: while (next != -1) { |
| 1515 while (next != quoteChar) { | 1515 while (next != quoteChar) { |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2662 CommentToken get precedingComments => _precedingComment; | 2662 CommentToken get precedingComments => _precedingComment; |
| 2663 | 2663 |
| 2664 void set precedingComments(CommentToken comment) { | 2664 void set precedingComments(CommentToken comment) { |
| 2665 _precedingComment = comment; | 2665 _precedingComment = comment; |
| 2666 _setCommentParent(_precedingComment); | 2666 _setCommentParent(_precedingComment); |
| 2667 } | 2667 } |
| 2668 | 2668 |
| 2669 @override | 2669 @override |
| 2670 Token copy() => new TokenWithComment(type, offset, precedingComments); | 2670 Token copy() => new TokenWithComment(type, offset, precedingComments); |
| 2671 } | 2671 } |
| OLD | NEW |