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

Unified Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 1207383005: Clean up constructors for ScopedVisitor and derived classes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove commented out code. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/resolver_test.dart
diff --git a/pkg/analyzer/test/generated/resolver_test.dart b/pkg/analyzer/test/generated/resolver_test.dart
index e3607589b03943e9706c9e4b74ba13223359741f..e07053da689a29c39eb0d6bb72d028d2f4538a55 100644
--- a/pkg/analyzer/test/generated/resolver_test.dart
+++ b/pkg/analyzer/test/generated/resolver_test.dart
@@ -1934,7 +1934,10 @@ class ElementResolverTest extends EngineTestCase {
_definingLibrary.definingCompilationUnit = definingCompilationUnit;
Library library = new Library(context, _listener, source);
library.libraryElement = _definingLibrary;
- _visitor = new ResolverVisitor.con1(library, source, _typeProvider);
+ _visitor = new ResolverVisitor(
+ library.libraryElement, source, _typeProvider, library.errorListener,
+ nameScope: library.libraryScope,
+ inheritanceManager: library.inheritanceManager);
try {
return _visitor.elementResolver;
} catch (exception) {
@@ -11084,7 +11087,10 @@ class StaticTypeAnalyzerTest extends EngineTestCase {
definingLibrary.definingCompilationUnit = definingCompilationUnit;
Library library = new Library(context, _listener, source);
library.libraryElement = definingLibrary;
- _visitor = new ResolverVisitor.con1(library, source, _typeProvider);
+ _visitor = new ResolverVisitor(
+ library.libraryElement, source, _typeProvider, library.errorListener,
+ nameScope: library.libraryScope,
+ inheritanceManager: library.inheritanceManager);
_visitor.overrideManager.enterScope();
try {
return _visitor.typeAnalyzer;
@@ -13413,8 +13419,9 @@ class TypeResolverVisitorTest extends EngineTestCase {
new CompilationUnitElementImpl("lib.dart");
_library.libraryElement = element;
_typeProvider = new TestTypeProvider();
- _visitor =
- new TypeResolverVisitor.con1(_library, librarySource, _typeProvider);
+ _visitor = new TypeResolverVisitor(_library.libraryElement, librarySource,
+ _typeProvider, _library.errorListener,
+ nameScope: _library.libraryScope);
}
void test_visitCatchClause_exception() {
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698