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

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

Issue 123763002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 // 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 3
4 library engine.parser; 4 library engine.parser;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'java_core.dart'; 7 import 'java_core.dart';
8 import 'instrumentation.dart'; 8 import 'instrumentation.dart';
9 import 'error.dart'; 9 import 'error.dart';
10 import 'source.dart'; 10 import 'source.dart';
(...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 Directive directive = parseDirective(commentAndMetadata); 1733 Directive directive = parseDirective(commentAndMetadata);
1734 if (declarations.length > 0 && !directiveFoundAfterDeclaration) { 1734 if (declarations.length > 0 && !directiveFoundAfterDeclaration) {
1735 reportError10(ParserErrorCode.DIRECTIVE_AFTER_DECLARATION, []); 1735 reportError10(ParserErrorCode.DIRECTIVE_AFTER_DECLARATION, []);
1736 directiveFoundAfterDeclaration = true; 1736 directiveFoundAfterDeclaration = true;
1737 } 1737 }
1738 if (directive is LibraryDirective) { 1738 if (directive is LibraryDirective) {
1739 if (libraryDirectiveFound) { 1739 if (libraryDirectiveFound) {
1740 reportError10(ParserErrorCode.MULTIPLE_LIBRARY_DIRECTIVES, []); 1740 reportError10(ParserErrorCode.MULTIPLE_LIBRARY_DIRECTIVES, []);
1741 } else { 1741 } else {
1742 if (directives.length > 0) { 1742 if (directives.length > 0) {
1743 reportError10(ParserErrorCode.LIBRARY_DIRECTIVE_NOT_FIRST, []); 1743 reportError11(ParserErrorCode.LIBRARY_DIRECTIVE_NOT_FIRST, (direct ive as LibraryDirective).libraryToken, []);
1744 } 1744 }
1745 libraryDirectiveFound = true; 1745 libraryDirectiveFound = true;
1746 } 1746 }
1747 } else if (directive is PartDirective) { 1747 } else if (directive is PartDirective) {
1748 partDirectiveFound = true; 1748 partDirectiveFound = true;
1749 } else if (partDirectiveFound) { 1749 } else if (partDirectiveFound) {
1750 if (directive is ExportDirective) { 1750 if (directive is ExportDirective) {
1751 reportError11(ParserErrorCode.EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, (directive as NamespaceDirective).keyword, []); 1751 reportError11(ParserErrorCode.EXPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, (directive as NamespaceDirective).keyword, []);
1752 } else if (directive is ImportDirective) { 1752 } else if (directive is ImportDirective) {
1753 reportError11(ParserErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, (directive as NamespaceDirective).keyword, []); 1753 reportError11(ParserErrorCode.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE, (directive as NamespaceDirective).keyword, []);
(...skipping 7542 matching lines...) Expand 10 before | Expand all | Expand 10 after
9296 if ("\n" == separator) { 9296 if ("\n" == separator) {
9297 _writer.print("\n"); 9297 _writer.print("\n");
9298 indent(); 9298 indent();
9299 } else if (i > 0) { 9299 } else if (i > 0) {
9300 _writer.print(separator); 9300 _writer.print(separator);
9301 } 9301 }
9302 _writer.print(tokens[i].lexeme); 9302 _writer.print(tokens[i].lexeme);
9303 } 9303 }
9304 } 9304 }
9305 } 9305 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/instrumentation.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698