| OLD | NEW |
| 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 Loading... |
| 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 // TODO(scheglov) analyzer_experimental users don't expect it | 4864 _errorListener.onError(new AnalysisError.con2(_source, offset, length, Tod
oCode.TODO, [matcher.group(2)])); |
| 4865 // _errorListener.onError(new AnalysisError.con2(_source, offset, length, T
odoCode.TODO, [matcher.group(2)])); | |
| 4866 } | 4865 } |
| 4867 } | 4866 } |
| 4868 | 4867 |
| 4869 /** | 4868 /** |
| 4870 * Parse the 'final', 'const', 'var' or type preceding a variable declaration,
starting at the | 4869 * Parse the 'final', 'const', 'var' or type preceding a variable declaration,
starting at the |
| 4871 * given token, without actually creating a type or changing the current token
. Return the token | 4870 * given token, without actually creating a type or changing the current token
. Return the token |
| 4872 * following the type that was parsed, or `null` if the given token is not the
first token | 4871 * following the type that was parsed, or `null` if the given token is not the
first token |
| 4873 * in a valid type. | 4872 * in a valid type. |
| 4874 * | 4873 * |
| 4875 * <pre> | 4874 * <pre> |
| (...skipping 2040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6916 if ("\n" == separator) { | 6915 if ("\n" == separator) { |
| 6917 _writer.print("\n"); | 6916 _writer.print("\n"); |
| 6918 indent(); | 6917 indent(); |
| 6919 } else if (i > 0) { | 6918 } else if (i > 0) { |
| 6920 _writer.print(separator); | 6919 _writer.print(separator); |
| 6921 } | 6920 } |
| 6922 _writer.print(tokens[i].lexeme); | 6921 _writer.print(tokens[i].lexeme); |
| 6923 } | 6922 } |
| 6924 } | 6923 } |
| 6925 } | 6924 } |
| OLD | NEW |