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

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

Issue 1668483003: Create ElementAnnotation objects prior to resolution. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 analyzer.test.generated.non_error_resolver_test; 5 library analyzer.test.generated.non_error_resolver_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/error.dart'; 10 import 'package:analyzer/src/generated/error.dart';
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 addNamedSource( 163 addNamedSource(
164 "/lib2.dart", 164 "/lib2.dart",
165 r''' 165 r'''
166 library lib2; 166 library lib2;
167 class N {} 167 class N {}
168 class N2 {}'''); 168 class N2 {}''');
169 computeLibrarySourceErrors(source); 169 computeLibrarySourceErrors(source);
170 assertNoErrors(source); 170 assertNoErrors(source);
171 } 171 }
172 172
173 void test_annotated_partOfDeclaration() {
174 Source source = addSource('library L; part "part.dart";');
175 addNamedSource('/part.dart', '@deprecated part of L;');
176 computeLibrarySourceErrors(source);
177 assertNoErrors(source);
178 verify([source]);
179 }
180
173 void test_argumentTypeNotAssignable_classWithCall_Function() { 181 void test_argumentTypeNotAssignable_classWithCall_Function() {
174 Source source = addSource(r''' 182 Source source = addSource(r'''
175 caller(Function callee) { 183 caller(Function callee) {
176 callee(); 184 callee();
177 } 185 }
178 186
179 class CallMeBack { 187 class CallMeBack {
180 call() => 0; 188 call() => 0;
181 } 189 }
182 190
(...skipping 5877 matching lines...) Expand 10 before | Expand all | Expand 10 after
6060 reset(); 6068 reset();
6061 } 6069 }
6062 6070
6063 void _check_wrongNumberOfParametersForOperator1(String name) { 6071 void _check_wrongNumberOfParametersForOperator1(String name) {
6064 _check_wrongNumberOfParametersForOperator(name, "a"); 6072 _check_wrongNumberOfParametersForOperator(name, "a");
6065 } 6073 }
6066 6074
6067 CompilationUnit _getResolvedLibraryUnit(Source source) => 6075 CompilationUnit _getResolvedLibraryUnit(Source source) =>
6068 analysisContext.getResolvedCompilationUnit2(source, source); 6076 analysisContext.getResolvedCompilationUnit2(source, source);
6069 } 6077 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/incremental_resolver_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