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

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

Issue 965093003: Fix for issue 22594 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.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 engine.non_error_resolver_test; 5 library engine.non_error_resolver_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/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/error.dart'; 9 import 'package:analyzer/src/generated/error.dart';
10 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; 10 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
(...skipping 4069 matching lines...) Expand 10 before | Expand all | Expand 10 after
4080 Source source = addSource(r''' 4080 Source source = addSource(r'''
4081 class A { 4081 class A {
4082 const A.a(); 4082 const A.a();
4083 const factory A.b() = A.a; 4083 const factory A.b() = A.a;
4084 }'''); 4084 }''');
4085 resolve(source); 4085 resolve(source);
4086 assertNoErrors(source); 4086 assertNoErrors(source);
4087 verify([source]); 4087 verify([source]);
4088 } 4088 }
4089 4089
4090 void test_referencedBeforeDeclaration_cascade() {
4091 Source source = addSource(r'''
4092 testRequestHandler() {}
4093
4094 main() {
4095 var s1 = null;
4096 testRequestHandler()
4097 ..stream(s1);
4098 var stream = 123;
4099 print(stream);
4100 }''');
4101 resolve(source);
4102 assertNoErrors(source);
4103 verify([source]);
4104 }
4105
4090 void test_referenceToDeclaredVariableInInitializer_constructorName() { 4106 void test_referenceToDeclaredVariableInInitializer_constructorName() {
4091 Source source = addSource(r''' 4107 Source source = addSource(r'''
4092 class A { 4108 class A {
4093 A.x() {} 4109 A.x() {}
4094 } 4110 }
4095 f() { 4111 f() {
4096 var x = new A.x(); 4112 var x = new A.x();
4097 }'''); 4113 }''');
4098 resolve(source); 4114 resolve(source);
4099 assertNoErrors(source); 4115 assertNoErrors(source);
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
5366 resolve(source); 5382 resolve(source);
5367 assertNoErrors(source); 5383 assertNoErrors(source);
5368 verify([source]); 5384 verify([source]);
5369 reset(); 5385 reset();
5370 } 5386 }
5371 5387
5372 void _check_wrongNumberOfParametersForOperator1(String name) { 5388 void _check_wrongNumberOfParametersForOperator1(String name) {
5373 _check_wrongNumberOfParametersForOperator(name, "a"); 5389 _check_wrongNumberOfParametersForOperator(name, "a");
5374 } 5390 }
5375 } 5391 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698