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

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

Issue 2732023002: Fix test for parsing 'await'. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | 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 // 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 library analyzer.test.generated.parser_test; 5 library analyzer.test.generated.parser_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/standard_ast_factory.dart'; 8 import 'package:analyzer/dart/ast/standard_ast_factory.dart';
9 import 'package:analyzer/dart/ast/token.dart'; 9 import 'package:analyzer/dart/ast/token.dart';
10 import 'package:analyzer/dart/ast/visitor.dart'; 10 import 'package:analyzer/dart/ast/visitor.dart';
(...skipping 4249 matching lines...) Expand 10 before | Expand all | Expand 10 after
4260 void test_parseAssignableSelector_question_dot() { 4260 void test_parseAssignableSelector_question_dot() {
4261 Expression expression = parseAssignableSelector('?.x', true); 4261 Expression expression = parseAssignableSelector('?.x', true);
4262 expect(expression, isNotNull); 4262 expect(expression, isNotNull);
4263 assertNoErrors(); 4263 assertNoErrors();
4264 var propertyAccess = expression as PropertyAccess; 4264 var propertyAccess = expression as PropertyAccess;
4265 expect(propertyAccess.operator.type, TokenType.QUESTION_PERIOD); 4265 expect(propertyAccess.operator.type, TokenType.QUESTION_PERIOD);
4266 expect(propertyAccess.propertyName, isNotNull); 4266 expect(propertyAccess.propertyName, isNotNull);
4267 } 4267 }
4268 4268
4269 void test_parseAwaitExpression() { 4269 void test_parseAwaitExpression() {
4270 AwaitExpression expression = parseAwaitExpression('await x;'); 4270 AwaitExpression expression = parseAwaitExpression('await x');
4271 expect(expression, isNotNull); 4271 expect(expression, isNotNull);
4272 assertNoErrors(); 4272 assertNoErrors();
4273 expect(expression.awaitKeyword, isNotNull); 4273 expect(expression.awaitKeyword, isNotNull);
4274 expect(expression.expression, isNotNull); 4274 expect(expression.expression, isNotNull);
4275 } 4275 }
4276 4276
4277 void test_parseBitwiseAndExpression_normal() { 4277 void test_parseBitwiseAndExpression_normal() {
4278 Expression expression = parseBitwiseAndExpression('x & y'); 4278 Expression expression = parseBitwiseAndExpression('x & y');
4279 expect(expression, isNotNull); 4279 expect(expression, isNotNull);
4280 assertNoErrors(); 4280 assertNoErrors();
(...skipping 10295 matching lines...) Expand 10 before | Expand all | Expand 10 after
14576 expect(typeAlias.name, isNotNull); 14576 expect(typeAlias.name, isNotNull);
14577 expect(typeAlias.typeParameters, isNull); 14577 expect(typeAlias.typeParameters, isNull);
14578 expect(typeAlias.semicolon, isNotNull); 14578 expect(typeAlias.semicolon, isNotNull);
14579 GenericFunctionType functionType = typeAlias.functionType; 14579 GenericFunctionType functionType = typeAlias.functionType;
14580 expect(functionType, isNotNull); 14580 expect(functionType, isNotNull);
14581 expect(functionType.parameters, isNotNull); 14581 expect(functionType.parameters, isNotNull);
14582 expect(functionType.returnType, isNotNull); 14582 expect(functionType.returnType, isNotNull);
14583 expect(functionType.typeParameters, isNull); 14583 expect(functionType.typeParameters, isNull);
14584 } 14584 }
14585 } 14585 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698