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

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

Issue 1289283004: Initial steps toward adding strong mode to the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
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 engine.ast_test; 5 library engine.ast_test;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/java_core.dart'; 8 import 'package:analyzer/src/generated/java_core.dart';
9 import 'package:analyzer/src/generated/java_engine.dart' show Predicate; 9 import 'package:analyzer/src/generated/java_engine.dart' show Predicate;
10 import 'package:analyzer/src/generated/java_engine.dart'; 10 import 'package:analyzer/src/generated/java_engine.dart';
(...skipping 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after
2455 Keyword.FINAL, AstFactory.typeName4("A"), "a")); 2455 Keyword.FINAL, AstFactory.typeName4("A"), "a"));
2456 } 2456 }
2457 2457
2458 void test_visitFieldFormalParameter_type() { 2458 void test_visitFieldFormalParameter_type() {
2459 _assertSource("A this.a", 2459 _assertSource("A this.a",
2460 AstFactory.fieldFormalParameter(null, AstFactory.typeName4("A"), "a")); 2460 AstFactory.fieldFormalParameter(null, AstFactory.typeName4("A"), "a"));
2461 } 2461 }
2462 2462
2463 void test_visitForEachStatement_declared() { 2463 void test_visitForEachStatement_declared() {
2464 _assertSource( 2464 _assertSource(
2465 "for (a in b) {}", 2465 "for (var a in b) {}",
2466 AstFactory.forEachStatement(AstFactory.declaredIdentifier3("a"), 2466 AstFactory.forEachStatement(AstFactory.declaredIdentifier3("a"),
2467 AstFactory.identifier3("b"), AstFactory.block())); 2467 AstFactory.identifier3("b"), AstFactory.block()));
2468 } 2468 }
2469 2469
2470 void test_visitForEachStatement_variable() { 2470 void test_visitForEachStatement_variable() {
2471 _assertSource( 2471 _assertSource(
2472 "for (a in b) {}", 2472 "for (a in b) {}",
2473 new ForEachStatement.withReference( 2473 new ForEachStatement.withReference(
2474 null, 2474 null,
2475 TokenFactory.tokenFromKeyword(Keyword.FOR), 2475 TokenFactory.tokenFromKeyword(Keyword.FOR),
(...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after
3894 static const List<WrapperKind> values = const [ 3894 static const List<WrapperKind> values = const [
3895 PREFIXED_LEFT, 3895 PREFIXED_LEFT,
3896 PREFIXED_RIGHT, 3896 PREFIXED_RIGHT,
3897 PROPERTY_LEFT, 3897 PROPERTY_LEFT,
3898 PROPERTY_RIGHT, 3898 PROPERTY_RIGHT,
3899 NONE 3899 NONE
3900 ]; 3900 ];
3901 3901
3902 const WrapperKind(String name, int ordinal) : super(name, ordinal); 3902 const WrapperKind(String name, int ordinal) : super(name, ordinal);
3903 } 3903 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698