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

Unified Diff: dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/TypeResolverVisitor.java

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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
Index: dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/TypeResolverVisitor.java
===================================================================
--- dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/TypeResolverVisitor.java (revision 29808)
+++ dart/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/TypeResolverVisitor.java (working copy)
@@ -69,6 +69,7 @@
import com.google.dart.engine.internal.element.PropertyAccessorElementImpl;
import com.google.dart.engine.internal.element.PropertyInducingElementImpl;
import com.google.dart.engine.internal.element.VariableElementImpl;
+import com.google.dart.engine.internal.scope.Scope;
import com.google.dart.engine.internal.type.DynamicTypeImpl;
import com.google.dart.engine.internal.type.FunctionTypeImpl;
import com.google.dart.engine.internal.type.InterfaceTypeImpl;
@@ -164,6 +165,22 @@
dynamicType = typeProvider.getDynamicType();
}
+ /**
+ * Initialize a newly created visitor to resolve the nodes in an AST node.
+ *
+ * @param definingLibrary the element for the library containing the node being visited
+ * @param source the source representing the compilation unit containing the node being visited
+ * @param typeProvider the object used to access the types from the core library
+ * @param nameScope the scope used to resolve identifiers in the node that will first be visited
+ * @param errorListener the error listener that will be informed of any errors that are found
+ * during resolution
+ */
+ public TypeResolverVisitor(LibraryElement definingLibrary, Source source,
+ TypeProvider typeProvider, Scope nameScope, AnalysisErrorListener errorListener) {
+ super(definingLibrary, source, typeProvider, nameScope, errorListener);
+ dynamicType = typeProvider.getDynamicType();
+ }
+
@Override
public Void visitCatchClause(CatchClause node) {
super.visitCatchClause(node);

Powered by Google App Engine
This is Rietveld 408576698