Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: pkg/analyzer/lib/src/generated/scanner.dart

Issue 1271553002: Issue 23919. Fix for line starts in multiline comments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/scanner_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/scanner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698