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

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

Issue 24484004: Don't report TODO in analyzer_experimental. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.parser; 3 library engine.parser;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'java_core.dart'; 5 import 'java_core.dart';
6 import 'instrumentation.dart'; 6 import 'instrumentation.dart';
7 import 'error.dart'; 7 import 'error.dart';
8 import 'source.dart'; 8 import 'source.dart';
9 import 'scanner.dart'; 9 import 'scanner.dart';
10 import 'ast.dart'; 10 import 'ast.dart';
(...skipping 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after
4854 /** 4854 /**
4855 * Look for user defined tasks in comments and convert them into info level an alysis issues. 4855 * Look for user defined tasks in comments and convert them into info level an alysis issues.
4856 * 4856 *
4857 * @param commentToken the comment token to analyze 4857 * @param commentToken the comment token to analyze
4858 */ 4858 */
4859 void scrapeTodoComment(Token commentToken) { 4859 void scrapeTodoComment(Token commentToken) {
4860 JavaPatternMatcher matcher = new JavaPatternMatcher(TodoCode.TODO_REGEX, com mentToken.lexeme); 4860 JavaPatternMatcher matcher = new JavaPatternMatcher(TodoCode.TODO_REGEX, com mentToken.lexeme);
4861 if (matcher.find()) { 4861 if (matcher.find()) {
4862 int offset = commentToken.offset + matcher.start() + matcher.group(1).leng th; 4862 int offset = commentToken.offset + matcher.start() + matcher.group(1).leng th;
4863 int length = matcher.group(2).length; 4863 int length = matcher.group(2).length;
4864 _errorListener.onError(new AnalysisError.con2(_source, offset, length, Tod oCode.TODO, [matcher.group(2)])); 4864 // TODO(scheglov) analyzer_experimental users don't expect it
4865 // _errorListener.onError(new AnalysisError.con2(_source, offset, length, T odoCode.TODO, [matcher.group(2)]));
4865 } 4866 }
4866 } 4867 }
4867 4868
4868 /** 4869 /**
4869 * Parse the 'final', 'const', 'var' or type preceding a variable declaration, starting at the 4870 * Parse the 'final', 'const', 'var' or type preceding a variable declaration, starting at the
4870 * given token, without actually creating a type or changing the current token . Return the token 4871 * given token, without actually creating a type or changing the current token . Return the token
4871 * following the type that was parsed, or `null` if the given token is not the first token 4872 * following the type that was parsed, or `null` if the given token is not the first token
4872 * in a valid type. 4873 * in a valid type.
4873 * 4874 *
4874 * <pre> 4875 * <pre>
(...skipping 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after
6915 if ("\n" == separator) { 6916 if ("\n" == separator) {
6916 _writer.print("\n"); 6917 _writer.print("\n");
6917 indent(); 6918 indent();
6918 } else if (i > 0) { 6919 } else if (i > 0) {
6919 _writer.print(separator); 6920 _writer.print(separator);
6920 } 6921 }
6921 _writer.print(tokens[i].lexeme); 6922 _writer.print(tokens[i].lexeme);
6922 } 6923 }
6923 } 6924 }
6924 } 6925 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698