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

Unified Diff: frog/gen.dart

Issue 8681027: Fix bug 578 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: prereviewed Created 9 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
« no previous file with comments | « frog/frogsh ('k') | frog/lang.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/gen.dart
diff --git a/frog/gen.dart b/frog/gen.dart
index 8c68880923fa0d4a83a7db142cc993d7932d2b2e..89952b48cddd395a9462e82d0e4658424259f112 100644
--- a/frog/gen.dart
+++ b/frog/gen.dart
@@ -203,7 +203,7 @@ class WorldGenerator {
var typeName = type.jsname != null ? type.jsname : 'top level';
writer.comment('// ********** Code for ${typeName} **************');
- if (type.isNativeType && !type.isTop) {
+ if (type.isNative && !type.isTop) {
var nativeName = type.definition.nativeType.name;
if (nativeName == '') {
writer.writeln('function ${type.jsname}() {}');
@@ -215,7 +215,7 @@ class WorldGenerator {
if (type.isTop) {
// no preludes for top type
} else if (type.constructors.length == 0) {
- if (!type.isNativeType) {
+ if (!type.isNative) {
// TODO(jimhug): More guards to guarantee staticness
writer.writeln('function ${type.jsname}() {}');
}
@@ -223,7 +223,7 @@ class WorldGenerator {
Member standardConstructor = type.constructors[''];
if (standardConstructor == null ||
standardConstructor.generator == null) {
- if (!type.isNativeType) {
+ if (!type.isNative) {
writer.writeln('function ${type.jsname}() {}');
}
} else {
@@ -252,7 +252,7 @@ class WorldGenerator {
_ensureInheritMembersHelper();
_mixins.writeln('\$inheritsMembers(${c.jsname}, ${p.jsname});');
}
- } else if (!type.isNativeType) {
+ } else if (!type.isNative) {
if (type.parent != null && !type.parent.isObject) {
_ensureInheritsHelper();
writer.writeln('\$inherits(${type.jsname}, ${type.parent.jsname});');
@@ -1125,7 +1125,8 @@ class MethodGenerator implements TreeVisitor {
MethodMember _makeLambdaMethod(String name, FunctionDefinition func) {
var meth = new MethodMember(name, method.declaringType, func);
meth.isLambda = true;
- meth.resolve(method.declaringType);
+ meth.enclosingElement = method;
+ meth.resolve();
world.gen.genMethod(meth, this);
return meth;
}
« no previous file with comments | « frog/frogsh ('k') | frog/lang.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698