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

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

Issue 2724853002: Revert last 4 commits by lrn@ (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/lib/src/task/dart.dart ('k') | pkg/analyzer/test/src/context/context_test.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 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 3401 matching lines...) Expand 10 before | Expand all | Expand 10 after
3412 } 3412 }
3413 3413
3414 void test_nonIdentifierLibraryName_library() { 3414 void test_nonIdentifierLibraryName_library() {
3415 CompilationUnit unit = parseCompilationUnit( 3415 CompilationUnit unit = parseCompilationUnit(
3416 "library 'lib';", [ParserErrorCode.NON_IDENTIFIER_LIBRARY_NAME]); 3416 "library 'lib';", [ParserErrorCode.NON_IDENTIFIER_LIBRARY_NAME]);
3417 expect(unit, isNotNull); 3417 expect(unit, isNotNull);
3418 } 3418 }
3419 3419
3420 void test_nonIdentifierLibraryName_partOf() { 3420 void test_nonIdentifierLibraryName_partOf() {
3421 CompilationUnit unit = parseCompilationUnit( 3421 CompilationUnit unit = parseCompilationUnit(
3422 "part of 3;", [ParserErrorCode.MISSING_NAME_IN_PART_OF_DIRECTIVE, 3422 "part of 'lib';", [ParserErrorCode.NON_IDENTIFIER_LIBRARY_NAME]);
3423 ParserErrorCode.UNEXPECTED_TOKEN]);
3424 expect(unit, isNotNull); 3423 expect(unit, isNotNull);
3425 } 3424 }
3426 3425
3427 void test_nonPartOfDirectiveInPart_after() { 3426 void test_nonPartOfDirectiveInPart_after() {
3428 parseCompilationUnit("part of l; part 'f.dart';", 3427 parseCompilationUnit("part of l; part 'f.dart';",
3429 [ParserErrorCode.NON_PART_OF_DIRECTIVE_IN_PART]); 3428 [ParserErrorCode.NON_PART_OF_DIRECTIVE_IN_PART]);
3430 } 3429 }
3431 3430
3432 void test_nonPartOfDirectiveInPart_before() { 3431 void test_nonPartOfDirectiveInPart_before() {
3433 parseCompilationUnit("part 'f.dart'; part of m;", 3432 parseCompilationUnit("part 'f.dart'; part of m;",
(...skipping 11143 matching lines...) Expand 10 before | Expand all | Expand 10 after
14577 expect(typeAlias.name, isNotNull); 14576 expect(typeAlias.name, isNotNull);
14578 expect(typeAlias.typeParameters, isNull); 14577 expect(typeAlias.typeParameters, isNull);
14579 expect(typeAlias.semicolon, isNotNull); 14578 expect(typeAlias.semicolon, isNotNull);
14580 GenericFunctionType functionType = typeAlias.functionType; 14579 GenericFunctionType functionType = typeAlias.functionType;
14581 expect(functionType, isNotNull); 14580 expect(functionType, isNotNull);
14582 expect(functionType.parameters, isNotNull); 14581 expect(functionType.parameters, isNotNull);
14583 expect(functionType.returnType, isNotNull); 14582 expect(functionType.returnType, isNotNull);
14584 expect(functionType.typeParameters, isNull); 14583 expect(functionType.typeParameters, isNull);
14585 } 14584 }
14586 } 14585 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698