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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10834061: Resolve typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated scope handling and type resolution Created 8 years, 5 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
Index: lib/compiler/implementation/compiler.dart
diff --git a/lib/compiler/implementation/compiler.dart b/lib/compiler/implementation/compiler.dart
index abc40e3844ecb79c6f81597dd1aa5ef21c544333..40a0bf272adb78694f20ae7cfb77d7568c51218e 100644
--- a/lib/compiler/implementation/compiler.dart
+++ b/lib/compiler/implementation/compiler.dart
@@ -471,7 +471,7 @@ class Compiler implements DiagnosticListener {
closureClass = lookupSpecialClass(const SourceString('Closure'));
dynamicClass = lookupSpecialClass(const SourceString('Dynamic'));
nullClass = lookupSpecialClass(const SourceString('Null'));
- types = new Types(dynamicClass);
+ types = new Types(this, dynamicClass);
if (!coreLibValid) {
cancel('core library does not contain required classes');
}
@@ -927,9 +927,9 @@ class Compiler implements DiagnosticListener {
() => resolver.resolveFunctionExpression(element, node));
}
- FunctionSignature resolveTypedef(TypedefElement element) {
- return withCurrentElement(element,
- () => resolver.resolveTypedef(element));
+ void resolveTypedef(TypedefElement element) {
+ withCurrentElement(element,
+ () => resolver.resolveTypedef(element));
}
FunctionType computeFunctionType(Element element,
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | lib/compiler/implementation/elements/elements.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698