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

Side by Side Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 708263002: Clean up references in comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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_test; 8 library engine.parser_test;
9 9
10 import 'package:analyzer/src/generated/error.dart'; 10 import 'package:analyzer/src/generated/error.dart';
(...skipping 8133 matching lines...) Expand 10 before | Expand all | Expand 10 after
8144 expect(following.type, TokenType.PLUS); 8144 expect(following.type, TokenType.PLUS);
8145 } 8145 }
8146 8146
8147 void test_skipTypeName_simple() { 8147 void test_skipTypeName_simple() {
8148 Token following = _skip("skipTypeName", "C +"); 8148 Token following = _skip("skipTypeName", "C +");
8149 expect(following, isNotNull); 8149 expect(following, isNotNull);
8150 expect(following.type, TokenType.PLUS); 8150 expect(following.type, TokenType.PLUS);
8151 } 8151 }
8152 8152
8153 /** 8153 /**
8154 * Invoke the method [Parser#computeStringValue] with the given argument. 8154 * Invoke the method [Parser.computeStringValue] with the given argument.
8155 * 8155 *
8156 * @param lexeme the argument to the method 8156 * @param lexeme the argument to the method
8157 * @param first `true` if this is the first token in a string literal 8157 * @param first `true` if this is the first token in a string literal
8158 * @param last `true` if this is the last token in a string literal 8158 * @param last `true` if this is the last token in a string literal
8159 * @return the result of invoking the method 8159 * @return the result of invoking the method
8160 * @throws Exception if the method could not be invoked or throws an exception 8160 * @throws Exception if the method could not be invoked or throws an exception
8161 */ 8161 */
8162 String _computeStringValue(String lexeme, bool first, bool last) { 8162 String _computeStringValue(String lexeme, bool first, bool last) {
8163 AnalysisErrorListener listener = new AnalysisErrorListener_SimpleParserTest_ computeStringValue(); 8163 AnalysisErrorListener listener = new AnalysisErrorListener_SimpleParserTest_ computeStringValue();
8164 Parser parser = new Parser(null, listener); 8164 Parser parser = new Parser(null, listener);
8165 return invokeParserMethodImpl(parser, "computeStringValue", <Object> [lexeme , first, last], null) as String; 8165 return invokeParserMethodImpl(parser, "computeStringValue", <Object> [lexeme , first, last], null) as String;
8166 } 8166 }
8167 8167
8168 /** 8168 /**
8169 * Invoke the method [Parser#createSyntheticIdentifier] with the parser set to the token 8169 * Invoke the method [Parser.createSyntheticIdentifier] with the parser set to the token
8170 * stream produced by scanning the given source. 8170 * stream produced by scanning the given source.
8171 * 8171 *
8172 * @param source the source to be scanned to produce the token stream being te sted 8172 * @param source the source to be scanned to produce the token stream being te sted
8173 * @return the result of invoking the method 8173 * @return the result of invoking the method
8174 * @throws Exception if the method could not be invoked or throws an exception 8174 * @throws Exception if the method could not be invoked or throws an exception
8175 */ 8175 */
8176 SimpleIdentifier _createSyntheticIdentifier() { 8176 SimpleIdentifier _createSyntheticIdentifier() {
8177 GatheringErrorListener listener = new GatheringErrorListener(); 8177 GatheringErrorListener listener = new GatheringErrorListener();
8178 return ParserTestCase.invokeParserMethod2("createSyntheticIdentifier", "", l istener); 8178 return ParserTestCase.invokeParserMethod2("createSyntheticIdentifier", "", l istener);
8179 } 8179 }
8180 8180
8181 /** 8181 /**
8182 * Invoke the method [Parser#createSyntheticIdentifier] with the parser set to the token 8182 * Invoke the method [Parser.createSyntheticIdentifier] with the parser set to the token
8183 * stream produced by scanning the given source. 8183 * stream produced by scanning the given source.
8184 * 8184 *
8185 * @param source the source to be scanned to produce the token stream being te sted 8185 * @param source the source to be scanned to produce the token stream being te sted
8186 * @return the result of invoking the method 8186 * @return the result of invoking the method
8187 * @throws Exception if the method could not be invoked or throws an exception 8187 * @throws Exception if the method could not be invoked or throws an exception
8188 */ 8188 */
8189 SimpleStringLiteral _createSyntheticStringLiteral() { 8189 SimpleStringLiteral _createSyntheticStringLiteral() {
8190 GatheringErrorListener listener = new GatheringErrorListener(); 8190 GatheringErrorListener listener = new GatheringErrorListener();
8191 return ParserTestCase.invokeParserMethod2("createSyntheticStringLiteral", "" , listener); 8191 return ParserTestCase.invokeParserMethod2("createSyntheticStringLiteral", "" , listener);
8192 } 8192 }
8193 8193
8194 /** 8194 /**
8195 * Invoke the method [Parser#isFunctionDeclaration] with the parser set to the token 8195 * Invoke the method [Parser.isFunctionDeclaration] with the parser set to the token
8196 * stream produced by scanning the given source. 8196 * stream produced by scanning the given source.
8197 * 8197 *
8198 * @param source the source to be scanned to produce the token stream being te sted 8198 * @param source the source to be scanned to produce the token stream being te sted
8199 * @return the result of invoking the method 8199 * @return the result of invoking the method
8200 * @throws Exception if the method could not be invoked or throws an exception 8200 * @throws Exception if the method could not be invoked or throws an exception
8201 */ 8201 */
8202 bool _isFunctionDeclaration(String source) { 8202 bool _isFunctionDeclaration(String source) {
8203 GatheringErrorListener listener = new GatheringErrorListener(); 8203 GatheringErrorListener listener = new GatheringErrorListener();
8204 return ParserTestCase.invokeParserMethod2("isFunctionDeclaration", source, l istener) as bool; 8204 return ParserTestCase.invokeParserMethod2("isFunctionDeclaration", source, l istener) as bool;
8205 } 8205 }
8206 8206
8207 /** 8207 /**
8208 * Invoke the method [Parser#isFunctionExpression] with the parser set to the token stream 8208 * Invoke the method [Parser.isFunctionExpression] with the parser set to the token stream
8209 * produced by scanning the given source. 8209 * produced by scanning the given source.
8210 * 8210 *
8211 * @param source the source to be scanned to produce the token stream being te sted 8211 * @param source the source to be scanned to produce the token stream being te sted
8212 * @return the result of invoking the method 8212 * @return the result of invoking the method
8213 * @throws Exception if the method could not be invoked or throws an exception 8213 * @throws Exception if the method could not be invoked or throws an exception
8214 */ 8214 */
8215 bool _isFunctionExpression(String source) { 8215 bool _isFunctionExpression(String source) {
8216 GatheringErrorListener listener = new GatheringErrorListener(); 8216 GatheringErrorListener listener = new GatheringErrorListener();
8217 // 8217 //
8218 // Scan the source. 8218 // Scan the source.
8219 // 8219 //
8220 Scanner scanner = new Scanner(null, new CharSequenceReader(source), listener ); 8220 Scanner scanner = new Scanner(null, new CharSequenceReader(source), listener );
8221 Token tokenStream = scanner.tokenize(); 8221 Token tokenStream = scanner.tokenize();
8222 // 8222 //
8223 // Parse the source. 8223 // Parse the source.
8224 // 8224 //
8225 Parser parser = new Parser(null, listener); 8225 Parser parser = new Parser(null, listener);
8226 return invokeParserMethodImpl(parser, "isFunctionExpression", <Object> [toke nStream], tokenStream) as bool; 8226 return invokeParserMethodImpl(parser, "isFunctionExpression", <Object> [toke nStream], tokenStream) as bool;
8227 } 8227 }
8228 8228
8229 /** 8229 /**
8230 * Invoke the method [Parser#isInitializedVariableDeclaration] with the parser set to the 8230 * Invoke the method [Parser.isInitializedVariableDeclaration] with the parser set to the
8231 * token stream produced by scanning the given source. 8231 * token stream produced by scanning the given source.
8232 * 8232 *
8233 * @param source the source to be scanned to produce the token stream being te sted 8233 * @param source the source to be scanned to produce the token stream being te sted
8234 * @return the result of invoking the method 8234 * @return the result of invoking the method
8235 * @throws Exception if the method could not be invoked or throws an exception 8235 * @throws Exception if the method could not be invoked or throws an exception
8236 */ 8236 */
8237 bool _isInitializedVariableDeclaration(String source) { 8237 bool _isInitializedVariableDeclaration(String source) {
8238 GatheringErrorListener listener = new GatheringErrorListener(); 8238 GatheringErrorListener listener = new GatheringErrorListener();
8239 return ParserTestCase.invokeParserMethod2("isInitializedVariableDeclaration" , source, listener) as bool; 8239 return ParserTestCase.invokeParserMethod2("isInitializedVariableDeclaration" , source, listener) as bool;
8240 } 8240 }
8241 8241
8242 /** 8242 /**
8243 * Invoke the method [Parser#isSwitchMember] with the parser set to the token stream 8243 * Invoke the method [Parser.isSwitchMember] with the parser set to the token stream
8244 * produced by scanning the given source. 8244 * produced by scanning the given source.
8245 * 8245 *
8246 * @param source the source to be scanned to produce the token stream being te sted 8246 * @param source the source to be scanned to produce the token stream being te sted
8247 * @return the result of invoking the method 8247 * @return the result of invoking the method
8248 * @throws Exception if the method could not be invoked or throws an exception 8248 * @throws Exception if the method could not be invoked or throws an exception
8249 */ 8249 */
8250 bool _isSwitchMember(String source) { 8250 bool _isSwitchMember(String source) {
8251 GatheringErrorListener listener = new GatheringErrorListener(); 8251 GatheringErrorListener listener = new GatheringErrorListener();
8252 return ParserTestCase.invokeParserMethod2("isSwitchMember", source, listener ) as bool; 8252 return ParserTestCase.invokeParserMethod2("isSwitchMember", source, listener ) as bool;
8253 } 8253 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
8302 main() { 8302 main() {
8303 groupSep = ' | '; 8303 groupSep = ' | ';
8304 runReflectiveTests(ComplexParserTest); 8304 runReflectiveTests(ComplexParserTest);
8305 runReflectiveTests(ErrorParserTest); 8305 runReflectiveTests(ErrorParserTest);
8306 runReflectiveTests(IncrementalParserTest); 8306 runReflectiveTests(IncrementalParserTest);
8307 runReflectiveTests(NonErrorParserTest); 8307 runReflectiveTests(NonErrorParserTest);
8308 runReflectiveTests(RecoveryParserTest); 8308 runReflectiveTests(RecoveryParserTest);
8309 runReflectiveTests(ResolutionCopierTest); 8309 runReflectiveTests(ResolutionCopierTest);
8310 runReflectiveTests(SimpleParserTest); 8310 runReflectiveTests(SimpleParserTest);
8311 } 8311 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698