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

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

Issue 156763002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
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 // 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.parser; 8 library engine.parser;
9 9
10 import 'java_core.dart'; 10 import 'java_core.dart';
(...skipping 3819 matching lines...) Expand 10 before | Expand all | Expand 10 after
3830 * @param sourceOffset the offset of the first character of the reference sour ce 3830 * @param sourceOffset the offset of the first character of the reference sour ce
3831 * @return the comment reference that was parsed, or `null` if no reference co uld be found 3831 * @return the comment reference that was parsed, or `null` if no reference co uld be found
3832 */ 3832 */
3833 CommentReference parseCommentReference(String referenceSource, int sourceOffse t) { 3833 CommentReference parseCommentReference(String referenceSource, int sourceOffse t) {
3834 // TODO(brianwilkerson) The errors are not getting the right offset/length a nd are being duplicated. 3834 // TODO(brianwilkerson) The errors are not getting the right offset/length a nd are being duplicated.
3835 if (referenceSource.length == 0) { 3835 if (referenceSource.length == 0) {
3836 return null; 3836 return null;
3837 } 3837 }
3838 try { 3838 try {
3839 BooleanErrorListener listener = new BooleanErrorListener(); 3839 BooleanErrorListener listener = new BooleanErrorListener();
3840 Scanner scanner = new Scanner(null, new SubSequenceReader(new CharSequence (referenceSource), sourceOffset), listener); 3840 Scanner scanner = new Scanner(null, new SubSequenceReader(referenceSource, sourceOffset), listener);
3841 scanner.setSourceStart(1, 1); 3841 scanner.setSourceStart(1, 1);
3842 Token firstToken = scanner.tokenize(); 3842 Token firstToken = scanner.tokenize();
3843 if (listener.errorReported) { 3843 if (listener.errorReported) {
3844 return null; 3844 return null;
3845 } 3845 }
3846 Token newKeyword = null; 3846 Token newKeyword = null;
3847 if (matches3(firstToken, Keyword.NEW)) { 3847 if (matches3(firstToken, Keyword.NEW)) {
3848 newKeyword = firstToken; 3848 newKeyword = firstToken;
3849 firstToken = firstToken.next; 3849 firstToken = firstToken.next;
3850 } 3850 }
(...skipping 5747 matching lines...) Expand 10 before | Expand all | Expand 10 after
9598 if ("\n" == separator) { 9598 if ("\n" == separator) {
9599 _writer.print("\n"); 9599 _writer.print("\n");
9600 indent(); 9600 indent();
9601 } else if (i > 0) { 9601 } else if (i > 0) {
9602 _writer.print(separator); 9602 _writer.print(separator);
9603 } 9603 }
9604 _writer.print(tokens[i].lexeme); 9604 _writer.print(tokens[i].lexeme);
9605 } 9605 }
9606 } 9606 }
9607 } 9607 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698