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

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

Issue 322603002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « pkg/analyzer/lib/src/generated/index.dart ('k') | pkg/analyzer/lib/src/generated/resolver.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 // 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 6552 matching lines...) Expand 10 before | Expand all | Expand 10 after
6563 * @param arguments the arguments to the error, used to compose the error mess age 6563 * @param arguments the arguments to the error, used to compose the error mess age
6564 */ 6564 */
6565 void _reportErrorForToken(ParserErrorCode errorCode, Token token, List<Object> arguments) { 6565 void _reportErrorForToken(ParserErrorCode errorCode, Token token, List<Object> arguments) {
6566 _reportError(new AnalysisError.con2(_source, token.offset, Math.max(token.le ngth, 1), errorCode, arguments)); 6566 _reportError(new AnalysisError.con2(_source, token.offset, Math.max(token.le ngth, 1), errorCode, arguments));
6567 } 6567 }
6568 6568
6569 /** 6569 /**
6570 * Skips a block with all containing blocks. 6570 * Skips a block with all containing blocks.
6571 */ 6571 */
6572 void _skipBlock() { 6572 void _skipBlock() {
6573 _currentToken = (_currentToken as BeginToken).endToken.next; 6573 Token endToken = (_currentToken as BeginToken).endToken;
6574 if (endToken == null) {
6575 endToken = _currentToken.next;
6576 while (!identical(endToken, _currentToken)) {
6577 _currentToken = endToken;
6578 endToken = _currentToken.next;
6579 }
6580 _reportErrorForToken(ParserErrorCode.EXPECTED_TOKEN, _currentToken.previou s, ["}"]);
6581 } else {
6582 _currentToken = endToken.next;
6583 }
6574 } 6584 }
6575 6585
6576 /** 6586 /**
6577 * Parse the 'final', 'const', 'var' or type preceding a variable declaration, starting at the 6587 * Parse the 'final', 'const', 'var' or type preceding a variable declaration, starting at the
6578 * given token, without actually creating a type or changing the current token . Return the token 6588 * given token, without actually creating a type or changing the current token . Return the token
6579 * following the type that was parsed, or `null` if the given token is not the first token 6589 * following the type that was parsed, or `null` if the given token is not the first token
6580 * in a valid type. 6590 * in a valid type.
6581 * 6591 *
6582 * <pre> 6592 * <pre>
6583 * finalConstVarOrType ::= 6593 * finalConstVarOrType ::=
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after
7877 7887
7878 /** 7888 /**
7879 * Initialize a newly created error code to have the given message and a sever ity of ERROR. 7889 * Initialize a newly created error code to have the given message and a sever ity of ERROR.
7880 * 7890 *
7881 * @param message the message template used to create the message to be displa yed for the error 7891 * @param message the message template used to create the message to be displa yed for the error
7882 */ 7892 */
7883 const ParserErrorCode.con3(String name, int ordinal, String message) : this.co n2(name, ordinal, ErrorSeverity.ERROR, message, null); 7893 const ParserErrorCode.con3(String name, int ordinal, String message) : this.co n2(name, ordinal, ErrorSeverity.ERROR, message, null);
7884 7894
7885 @override 7895 @override
7886 ErrorType get type => ErrorType.SYNTACTIC_ERROR; 7896 ErrorType get type => ErrorType.SYNTACTIC_ERROR;
7897
7898 @override
7899 String get uniqueName => "${runtimeType.toString()}.${name}";
7887 } 7900 }
7888 7901
7889 /** 7902 /**
7890 * Instances of the class `SyntheticKeywordToken` implement a synthetic keyword token. 7903 * Instances of the class `SyntheticKeywordToken` implement a synthetic keyword token.
7891 */ 7904 */
7892 class Parser_SyntheticKeywordToken extends KeywordToken { 7905 class Parser_SyntheticKeywordToken extends KeywordToken {
7893 /** 7906 /**
7894 * Initialize a newly created token to represent the given keyword. 7907 * Initialize a newly created token to represent the given keyword.
7895 * 7908 *
7896 * @param keyword the keyword being represented by this token 7909 * @param keyword the keyword being represented by this token
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
9080 return trampoline(target, arguments[0], arguments[1]); 9093 return trampoline(target, arguments[0], arguments[1]);
9081 case 3: 9094 case 3:
9082 return trampoline(target, arguments[0], arguments[1], arguments[2]); 9095 return trampoline(target, arguments[0], arguments[1], arguments[2]);
9083 case 4: 9096 case 4:
9084 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]); 9097 return trampoline(target, arguments[0], arguments[1], arguments[2], argu ments[3]);
9085 default: 9098 default:
9086 throw new IllegalArgumentException("Not implemented for > 4 arguments"); 9099 throw new IllegalArgumentException("Not implemented for > 4 arguments");
9087 } 9100 }
9088 } 9101 }
9089 } 9102 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/index.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698