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

Unified Diff: frog/minfrog

Issue 8828008: Modification to the order that classes are printed out so that the prototype (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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: frog/minfrog
===================================================================
--- frog/minfrog (revision 2156)
+++ frog/minfrog (working copy)
@@ -124,14 +124,6 @@
return x.$truncdiv(y);
}
}
-// ********** Code for Clock **************
-function Clock() {}
-Clock.now = function() {
- return new Date().getTime();
-}
-Clock.frequency = function() {
- return 1000;
-}
// ********** Code for Object **************
Object.prototype.get$dynamic = function() {
return this;
@@ -385,6 +377,14 @@
Object.prototype.writeDefinition$2 = function($0, $1) {
return this.noSuchMethod("writeDefinition", [$0, $1]);
};
+// ********** Code for Clock **************
+function Clock() {}
+Clock.now = function() {
+ return new Date().getTime();
+}
+Clock.frequency = function() {
+ return 1000;
+}
// ********** Code for NoSuchMethodException **************
function NoSuchMethodException(_receiver, _functionName, _arguments) {
this._receiver = _receiver;
@@ -648,17 +648,17 @@
// ********** Code for ListIterator **************
function ListIterator(array) {
this._array = array;
- this._dart_coreimpl_pos = 0;
+ this._pos = 0;
// Initializers done
}
ListIterator.prototype.hasNext = function() {
- return this._array.length > this._dart_coreimpl_pos;
+ return this._array.length > this._pos;
}
ListIterator.prototype.next = function() {
if (!this.hasNext()) {
$throw(const$0/*const NoMoreElementsException()*/);
}
- return this._array.$index(this._dart_coreimpl_pos++);
+ return this._array.$index(this._pos++);
}
ListIterator.prototype.hasNext$0 = ListIterator.prototype.hasNext;
ListIterator.prototype.next$0 = ListIterator.prototype.next;
@@ -882,14 +882,6 @@
HashMapImplementation.prototype.getValues$0 = HashMapImplementation.prototype.getValues;
HashMapImplementation.prototype.isEmpty$0 = HashMapImplementation.prototype.isEmpty;
// ********** Code for HashMapImplementation_E$E **************
-function HashMapImplementation_E$E() {
- // Initializers done
- this._numberOfEntries = 0;
- this._numberOfDeleted = 0;
- this._loadLimit = HashMapImplementation._computeLoadLimit(8/*HashMapImplementation._INITIAL_CAPACITY*/);
- this._keys = new ListFactory(8/*HashMapImplementation._INITIAL_CAPACITY*/);
- this._values = new ListFactory(8/*HashMapImplementation._INITIAL_CAPACITY*/);
-}
/** Implements extends for Dart classes on JavaScript prototypes. */
function $inherits(child, parent) {
if (child.prototype.__proto__) {
@@ -902,6 +894,14 @@
}
}
$inherits(HashMapImplementation_E$E, HashMapImplementation);
+function HashMapImplementation_E$E() {
+ // Initializers done
+ this._numberOfEntries = 0;
+ this._numberOfDeleted = 0;
+ this._loadLimit = HashMapImplementation._computeLoadLimit(8/*HashMapImplementation._INITIAL_CAPACITY*/);
+ this._keys = new ListFactory(8/*HashMapImplementation._INITIAL_CAPACITY*/);
+ this._values = new ListFactory(8/*HashMapImplementation._INITIAL_CAPACITY*/);
+}
HashMapImplementation_E$E._computeLoadLimit = function(capacity) {
return $truncdiv((capacity * 3), 4);
}
@@ -1024,11 +1024,11 @@
return (this._probeForLookup(key) != -1);
}
// ********** Code for HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V **************
+$inherits(HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V, HashMapImplementation);
function HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V() {}
-$inherits(HashMapImplementation_K$DoubleLinkedQueueEntry_KeyValuePair_K$V, HashMapImplementation);
// ********** Code for HashMapImplementation_String$EvaluatedValue **************
+$inherits(HashMapImplementation_String$EvaluatedValue, HashMapImplementation);
function HashMapImplementation_String$EvaluatedValue() {}
-$inherits(HashMapImplementation_String$EvaluatedValue, HashMapImplementation);
// ********** Code for HashSetImplementation **************
function HashSetImplementation() {
// Initializers done
@@ -1112,14 +1112,14 @@
return this.some(to$call$1($0));
};
// ********** Code for HashSetImplementation_E **************
+$inherits(HashSetImplementation_E, HashSetImplementation);
function HashSetImplementation_E() {}
-$inherits(HashSetImplementation_E, HashSetImplementation);
// ********** Code for HashSetImplementation_String **************
+$inherits(HashSetImplementation_String, HashSetImplementation);
function HashSetImplementation_String() {}
-$inherits(HashSetImplementation_String, HashSetImplementation);
// ********** Code for HashSetImplementation_Type **************
+$inherits(HashSetImplementation_Type, HashSetImplementation);
function HashSetImplementation_Type() {}
-$inherits(HashSetImplementation_Type, HashSetImplementation);
// ********** Code for HashSetIterator **************
function HashSetIterator(set_) {
this._nextValidIndex = -1;
@@ -1155,13 +1155,13 @@
HashSetIterator.prototype.hasNext$0 = HashSetIterator.prototype.hasNext;
HashSetIterator.prototype.next$0 = HashSetIterator.prototype.next;
// ********** Code for HashSetIterator_E **************
+$inherits(HashSetIterator_E, HashSetIterator);
function HashSetIterator_E(set_) {
this._nextValidIndex = -1;
this._entries = set_._backingMap._keys;
// Initializers done
this._advance();
}
-$inherits(HashSetIterator_E, HashSetIterator);
HashSetIterator_E.prototype._advance = function() {
var length = this._entries.length;
var entry;
@@ -1185,12 +1185,12 @@
KeyValuePair.prototype.get$value = function() { return this.value; };
KeyValuePair.prototype.set$value = function(value) { return this.value = value; };
// ********** Code for KeyValuePair_K$V **************
+$inherits(KeyValuePair_K$V, KeyValuePair);
function KeyValuePair_K$V(key, value) {
this.key = key;
this.value = value;
// Initializers done
}
-$inherits(KeyValuePair_K$V, KeyValuePair);
// ********** Code for LinkedHashMapImplementation **************
function LinkedHashMapImplementation() {
// Initializers done
@@ -1285,11 +1285,11 @@
return this._element;
}
// ********** Code for DoubleLinkedQueueEntry_E **************
+$inherits(DoubleLinkedQueueEntry_E, DoubleLinkedQueueEntry);
function DoubleLinkedQueueEntry_E(e) {
// Initializers done
this._element = e;
}
-$inherits(DoubleLinkedQueueEntry_E, DoubleLinkedQueueEntry);
DoubleLinkedQueueEntry_E.prototype._link = function(p, n) {
this._next = n;
this._previous = p;
@@ -1313,11 +1313,11 @@
return this._previous._asNonSentinelEntry();
}
// ********** Code for DoubleLinkedQueueEntry_KeyValuePair_K$V **************
+$inherits(DoubleLinkedQueueEntry_KeyValuePair_K$V, DoubleLinkedQueueEntry);
function DoubleLinkedQueueEntry_KeyValuePair_K$V(e) {
// Initializers done
this._element = e;
}
-$inherits(DoubleLinkedQueueEntry_KeyValuePair_K$V, DoubleLinkedQueueEntry);
DoubleLinkedQueueEntry_KeyValuePair_K$V.prototype._link = function(p, n) {
this._next = n;
this._previous = p;
@@ -1334,12 +1334,12 @@
return this._previous._asNonSentinelEntry();
}
// ********** Code for _DoubleLinkedQueueEntrySentinel **************
+$inherits(_DoubleLinkedQueueEntrySentinel, DoubleLinkedQueueEntry_E);
function _DoubleLinkedQueueEntrySentinel() {
// Initializers done
DoubleLinkedQueueEntry_E.call(this, null);
this._link(this, this);
}
-$inherits(_DoubleLinkedQueueEntrySentinel, DoubleLinkedQueueEntry_E);
_DoubleLinkedQueueEntrySentinel.prototype.remove = function() {
$throw(const$2/*const EmptyQueueException()*/);
}
@@ -1350,19 +1350,19 @@
$throw(const$2/*const EmptyQueueException()*/);
}
// ********** Code for _DoubleLinkedQueueEntrySentinel_E **************
+$inherits(_DoubleLinkedQueueEntrySentinel_E, _DoubleLinkedQueueEntrySentinel);
function _DoubleLinkedQueueEntrySentinel_E() {
// Initializers done
DoubleLinkedQueueEntry_E.call(this, null);
this._link(this, this);
}
-$inherits(_DoubleLinkedQueueEntrySentinel_E, _DoubleLinkedQueueEntrySentinel);
// ********** Code for _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V **************
+$inherits(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, _DoubleLinkedQueueEntrySentinel);
function _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V() {
// Initializers done
DoubleLinkedQueueEntry_KeyValuePair_K$V.call(this, null);
this._link(this, this);
}
-$inherits(_DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V, _DoubleLinkedQueueEntrySentinel);
// ********** Code for DoubleLinkedQueue **************
function DoubleLinkedQueue() {
// Initializers done
@@ -1461,14 +1461,14 @@
return this.some(to$call$1($0));
};
// ********** Code for DoubleLinkedQueue_E **************
+$inherits(DoubleLinkedQueue_E, DoubleLinkedQueue);
function DoubleLinkedQueue_E() {}
-$inherits(DoubleLinkedQueue_E, DoubleLinkedQueue);
// ********** Code for DoubleLinkedQueue_KeyValuePair_K$V **************
+$inherits(DoubleLinkedQueue_KeyValuePair_K$V, DoubleLinkedQueue);
function DoubleLinkedQueue_KeyValuePair_K$V() {
// Initializers done
this._sentinel = new _DoubleLinkedQueueEntrySentinel_KeyValuePair_K$V();
}
-$inherits(DoubleLinkedQueue_KeyValuePair_K$V, DoubleLinkedQueue);
DoubleLinkedQueue_KeyValuePair_K$V.prototype.addLast = function(value) {
this._sentinel.prepend(value);
}
@@ -1502,12 +1502,12 @@
_DoubleLinkedQueueIterator.prototype.hasNext$0 = _DoubleLinkedQueueIterator.prototype.hasNext;
_DoubleLinkedQueueIterator.prototype.next$0 = _DoubleLinkedQueueIterator.prototype.next;
// ********** Code for _DoubleLinkedQueueIterator_E **************
+$inherits(_DoubleLinkedQueueIterator_E, _DoubleLinkedQueueIterator);
function _DoubleLinkedQueueIterator_E(_sentinel) {
this._sentinel = _sentinel;
// Initializers done
this._currentEntry = this._sentinel;
}
-$inherits(_DoubleLinkedQueueIterator_E, _DoubleLinkedQueueIterator);
// ********** Code for StopwatchImplementation **************
function StopwatchImplementation() {
this._start = null;
@@ -2228,6 +2228,9 @@
}
}
WorldGenerator.prototype.writeType = function(type) {
+ if (type.isWritten) return;
+ type.isWritten = true;
+ if (type.get$parent() != null && !type.get$isNative()) this.writeType(type.get$parent());
if (type.name != null && (type instanceof ConcreteType) && $eq(type.get$library(), $globals.world.get$coreimpl()) && type.name.startsWith('ListFactory')) {
this.writer.writeln(('' + type.get$jsname() + ' = ' + type.get$genericType().get$jsname() + ';'));
return;
@@ -2243,6 +2246,24 @@
this.writer.writeln(('' + type.get$jsname() + ' = ' + nativeName + ';'));
}
}
+ if (!type.get$isTop()) {
+ if ((type instanceof ConcreteType)) {
+ var c = type;
+ this.corejs.ensureInheritsHelper();
+ this.writer.writeln(('\$inherits(' + c.get$jsname() + ', ' + c.genericType.get$jsname() + ');'));
+ for (var p = c._parent;
+ (p instanceof ConcreteType); p = p.get$_parent()) {
+ this._ensureInheritMembersHelper();
+ this._mixins.writeln(('\$inheritsMembers(' + c.get$jsname() + ', ' + p.get$jsname() + ');'));
+ }
+ }
+ else if (!type.get$isNative()) {
+ if (type.get$parent() != null && !type.get$parent().get$isObject()) {
+ this.corejs.ensureInheritsHelper();
+ this.writer.writeln(('\$inherits(' + type.get$jsname() + ', ' + type.get$parent().get$jsname() + ');'));
+ }
+ }
+ }
if (type.get$isTop()) {
}
else if (type.get$constructors().get$length() == 0) {
@@ -2268,24 +2289,6 @@
}
}
}
- if (!type.get$isTop()) {
- if ((type instanceof ConcreteType)) {
- var c = type;
- this.corejs.ensureInheritsHelper();
- this.writer.writeln(('\$inherits(' + c.get$jsname() + ', ' + c.genericType.get$jsname() + ');'));
- for (var p = c._parent;
- (p instanceof ConcreteType); p = p.get$_parent()) {
- this._ensureInheritMembersHelper();
- this._mixins.writeln(('\$inheritsMembers(' + c.get$jsname() + ', ' + p.get$jsname() + ');'));
- }
- }
- else if (!type.get$isNative()) {
- if (type.get$parent() != null && !type.get$parent().get$isObject()) {
- this.corejs.ensureInheritsHelper();
- this.writer.writeln(('\$inherits(' + type.get$jsname() + ', ' + type.get$parent().get$jsname() + ');'));
- }
- }
- }
if (!(type instanceof ConcreteType)) {
this._maybeIsTest(type, type);
}
@@ -4044,6 +4047,7 @@
LibraryImport.prototype.get$library = function() { return this.library; };
LibraryImport.prototype.set$library = function(value) { return this.library = value; };
// ********** Code for Library **************
+$inherits(Library, Element);
function Library(baseSource) {
this.isWritten = false
this.isMarked = false
@@ -4058,7 +4062,6 @@
this.sources = [];
this._privateMembers = new HashMapImplementation();
}
-$inherits(Library, Element);
Library.prototype.get$baseSource = function() { return this.baseSource; };
Library.prototype.get$types = function() { return this.types; };
Library.prototype.set$types = function(value) { return this.types = value; };
@@ -4550,13 +4553,13 @@
Parameter.prototype.genValue$2 = Parameter.prototype.genValue;
Parameter.prototype.resolve$0 = Parameter.prototype.resolve;
// ********** Code for Member **************
+$inherits(Member, Element);
function Member(name, declaringType) {
this.isGenerated = false;
this.declaringType = declaringType;
// Initializers done
Element.call(this, name, declaringType);
}
-$inherits(Member, Element);
Member.prototype.get$declaringType = function() { return this.declaringType; };
Member.prototype.get$generator = function() { return this.generator; };
Member.prototype.set$generator = function(value) { return this.generator = value; };
@@ -4683,12 +4686,12 @@
Member.prototype.provideFieldSyntax$0 = Member.prototype.provideFieldSyntax;
Member.prototype.providePropertySyntax$0 = Member.prototype.providePropertySyntax;
// ********** Code for TypeMember **************
+$inherits(TypeMember, Member);
function TypeMember(type) {
this.type = type;
// Initializers done
Member.call(this, type.name, type.library.topType);
}
-$inherits(TypeMember, Member);
TypeMember.prototype.get$type = function() { return this.type; };
TypeMember.prototype.get$span = function() {
return this.type.definition.span;
@@ -4737,6 +4740,7 @@
TypeMember.prototype.invoke$4$isDynamic = TypeMember.prototype.invoke;
TypeMember.prototype.invoke$5 = TypeMember.prototype.invoke;
// ********** Code for FieldMember **************
+$inherits(FieldMember, Member);
function FieldMember(name, declaringType, definition, value) {
this._providePropertySyntax = false
this._computing = false
@@ -4746,7 +4750,6 @@
// Initializers done
Member.call(this, name, declaringType);
}
-$inherits(FieldMember, Member);
FieldMember.prototype.get$definition = function() { return this.definition; };
FieldMember.prototype.get$value = function() { return this.value; };
FieldMember.prototype.get$type = function() { return this.type; };
@@ -4920,12 +4923,12 @@
FieldMember.prototype.providePropertySyntax$0 = FieldMember.prototype.providePropertySyntax;
FieldMember.prototype.resolve$0 = FieldMember.prototype.resolve;
// ********** Code for PropertyMember **************
+$inherits(PropertyMember, Member);
function PropertyMember(name, declaringType) {
this._provideFieldSyntax = false
// Initializers done
Member.call(this, name, declaringType);
}
-$inherits(PropertyMember, Member);
PropertyMember.prototype.get$getter = function() { return this.getter; };
PropertyMember.prototype.set$getter = function(value) { return this.getter = value; };
PropertyMember.prototype.get$setter = function() { return this.setter; };
@@ -5021,6 +5024,7 @@
PropertyMember.prototype.providePropertySyntax$0 = PropertyMember.prototype.providePropertySyntax;
PropertyMember.prototype.resolve$0 = PropertyMember.prototype.resolve;
// ********** Code for ConcreteMember **************
+$inherits(ConcreteMember, Member);
function ConcreteMember(name, declaringType, baseMember) {
this.baseMember = baseMember;
// Initializers done
@@ -5039,7 +5043,6 @@
}
}
}
-$inherits(ConcreteMember, Member);
ConcreteMember.prototype.get$returnType = function() { return this.returnType; };
ConcreteMember.prototype.set$returnType = function(value) { return this.returnType = value; };
ConcreteMember.prototype.get$parameters = function() { return this.parameters; };
@@ -5162,6 +5165,7 @@
ConcreteMember.prototype.provideFieldSyntax$0 = ConcreteMember.prototype.provideFieldSyntax;
ConcreteMember.prototype.providePropertySyntax$0 = ConcreteMember.prototype.providePropertySyntax;
// ********** Code for MethodMember **************
+$inherits(MethodMember, Member);
function MethodMember(name, declaringType, definition) {
this.isStatic = false
this.isAbstract = false
@@ -5175,7 +5179,6 @@
// Initializers done
Member.call(this, name, declaringType);
}
-$inherits(MethodMember, Member);
MethodMember.prototype.get$definition = function() { return this.definition; };
MethodMember.prototype.set$definition = function(value) { return this.definition = value; };
MethodMember.prototype.get$returnType = function() { return this.returnType; };
@@ -6362,36 +6365,55 @@
InterpStack.prototype.next$0 = function() {
return this.next();
};
+// ********** Code for TokenizerHelpers **************
+function TokenizerHelpers() {
+ // Initializers done
+}
+TokenizerHelpers.isIdentifierStart = function(c) {
+ return ((c >= 97 && c <= 122) || (c >= 65 && c <= 90) || c == 95);
+}
+TokenizerHelpers.isDigit = function(c) {
+ return (c >= 48 && c <= 57);
+}
+TokenizerHelpers.isHexDigit = function(c) {
+ return (TokenizerHelpers.isDigit(c) || (c >= 97 && c <= 102) || (c >= 65 && c <= 70));
+}
+TokenizerHelpers.isIdentifierPart = function(c) {
+ return (TokenizerHelpers.isIdentifierStart(c) || TokenizerHelpers.isDigit(c) || c == 36);
+}
+TokenizerHelpers.isInterpIdentifierPart = function(c) {
+ return (TokenizerHelpers.isIdentifierStart(c) || TokenizerHelpers.isDigit(c));
+}
// ********** Code for TokenizerBase **************
+$inherits(TokenizerBase, TokenizerHelpers);
function TokenizerBase(_source, _skipWhitespace, index) {
this._source = _source;
this._skipWhitespace = _skipWhitespace;
- this._index = index;
+ this._lang_index = index;
// Initializers done
TokenizerHelpers.call(this);
this._text = this._source.get$text();
}
-$inherits(TokenizerBase, TokenizerHelpers);
TokenizerBase.prototype._nextChar = function() {
- if (this._index < this._text.length) {
- return this._text.charCodeAt(this._index++);
+ if (this._lang_index < this._text.length) {
+ return this._text.charCodeAt(this._lang_index++);
}
else {
return 0;
}
}
TokenizerBase.prototype._peekChar = function() {
- if (this._index < this._text.length) {
- return this._text.charCodeAt(this._index);
+ if (this._lang_index < this._text.length) {
+ return this._text.charCodeAt(this._lang_index);
}
else {
return 0;
}
}
TokenizerBase.prototype._maybeEatChar = function(ch) {
- if (this._index < this._text.length) {
- if (this._text.charCodeAt(this._index) == ch) {
- this._index++;
+ if (this._lang_index < this._text.length) {
+ if (this._text.charCodeAt(this._lang_index) == ch) {
+ this._lang_index++;
return true;
}
else {
@@ -6403,15 +6425,15 @@
}
}
TokenizerBase.prototype._finishToken = function(kind) {
- return new Token(kind, this._source, this._startIndex, this._index);
+ return new Token(kind, this._source, this._startIndex, this._lang_index);
}
TokenizerBase.prototype._errorToken = function() {
return this._finishToken(65/*TokenKind.ERROR*/);
}
TokenizerBase.prototype.finishWhitespace = function() {
- this._index--;
- while (this._index < this._text.length) {
- var ch = this._text.charCodeAt(this._index++);
+ this._lang_index--;
+ while (this._lang_index < this._text.length) {
+ var ch = this._text.charCodeAt(this._lang_index++);
if (ch == 32 || ch == 9 || ch == 13) {
}
else if (ch == 10) {
@@ -6420,7 +6442,7 @@
}
}
else {
- this._index--;
+ this._lang_index--;
if (this._skipWhitespace) {
return this.next();
}
@@ -6472,9 +6494,9 @@
return this._errorToken();
}
TokenizerBase.prototype.eatDigits = function() {
- while (this._index < this._text.length) {
- if (TokenizerHelpers.isDigit(this._text.charCodeAt(this._index))) {
- this._index++;
+ while (this._lang_index < this._text.length) {
+ if (TokenizerHelpers.isDigit(this._text.charCodeAt(this._lang_index))) {
+ this._lang_index++;
}
else {
return;
@@ -6482,9 +6504,9 @@
}
}
TokenizerBase.prototype.eatHexDigits = function() {
- while (this._index < this._text.length) {
- if (TokenizerHelpers.isHexDigit(this._text.charCodeAt(this._index))) {
- this._index++;
+ while (this._lang_index < this._text.length) {
+ if (TokenizerHelpers.isHexDigit(this._text.charCodeAt(this._lang_index))) {
+ this._lang_index++;
}
else {
return;
@@ -6492,8 +6514,8 @@
}
}
TokenizerBase.prototype.maybeEatHexDigit = function() {
- if (this._index < this._text.length && TokenizerHelpers.isHexDigit(this._text.charCodeAt(this._index))) {
- this._index++;
+ if (this._lang_index < this._text.length && TokenizerHelpers.isHexDigit(this._text.charCodeAt(this._lang_index))) {
+ this._lang_index++;
return true;
}
return false;
@@ -6511,7 +6533,7 @@
return this.finishNumberExtra(62/*TokenKind.DOUBLE*/);
}
else {
- this._index--;
+ this._lang_index--;
}
}
return this.finishNumberExtra(60/*TokenKind.INTEGER*/);
@@ -6645,9 +6667,9 @@
case 117:
if (this._maybeEatChar(123)) {
- var start = this._index;
+ var start = this._lang_index;
this.eatHexDigits();
- var chars = this._index - start;
+ var chars = this._lang_index - start;
if (chars > 0 && chars <= 6 && this._maybeEatChar(125)) {
hex = this._text.substring(start, start + chars);
break;
@@ -6658,7 +6680,7 @@
}
else {
if (this.maybeEatHexDigit() && this.maybeEatHexDigit() && this.maybeEatHexDigit() && this.maybeEatHexDigit()) {
- hex = this._text.substring(this._index - 4, this._index);
+ hex = this._text.substring(this._lang_index - 4, this._lang_index);
break;
}
else {
@@ -6689,17 +6711,17 @@
if (ch == 36) {
return this._errorToken();
}
- while (this._index < this._text.length) {
- if (!TokenizerHelpers.isInterpIdentifierPart(this._text.charCodeAt(this._index++))) {
- this._index--;
+ while (this._lang_index < this._text.length) {
+ if (!TokenizerHelpers.isInterpIdentifierPart(this._text.charCodeAt(this._lang_index++))) {
+ this._lang_index--;
break;
}
}
}
else {
- while (this._index < this._text.length) {
- if (!TokenizerHelpers.isIdentifierPart(this._text.charCodeAt(this._index++))) {
- this._index--;
+ while (this._lang_index < this._text.length) {
+ if (!TokenizerHelpers.isIdentifierPart(this._text.charCodeAt(this._lang_index++))) {
+ this._lang_index--;
break;
}
}
@@ -6714,13 +6736,13 @@
}
TokenizerBase.prototype.next$0 = TokenizerBase.prototype.next;
// ********** Code for Tokenizer **************
+$inherits(Tokenizer, TokenizerBase);
function Tokenizer(source, skipWhitespace, index) {
// Initializers done
TokenizerBase.call(this, source, skipWhitespace, index);
}
-$inherits(Tokenizer, TokenizerBase);
Tokenizer.prototype.next = function() {
- this._startIndex = this._index;
+ this._startIndex = this._lang_index;
if (this._interpStack != null && this._interpStack.depth == 0) {
var istack = this._interpStack;
this._interpStack = this._interpStack.pop();
@@ -7055,7 +7077,7 @@
}
Tokenizer.prototype.getIdentifierKind = function() {
var i0 = this._startIndex;
- switch (this._index - i0) {
+ switch (this._lang_index - i0) {
case 2:
if (this._text.charCodeAt(i0) == 100) {
@@ -7244,25 +7266,6 @@
}
}
Tokenizer.prototype.next$0 = Tokenizer.prototype.next;
-// ********** Code for TokenizerHelpers **************
-function TokenizerHelpers() {
- // Initializers done
-}
-TokenizerHelpers.isIdentifierStart = function(c) {
- return ((c >= 97 && c <= 122) || (c >= 65 && c <= 90) || c == 95);
-}
-TokenizerHelpers.isDigit = function(c) {
- return (c >= 48 && c <= 57);
-}
-TokenizerHelpers.isHexDigit = function(c) {
- return (TokenizerHelpers.isDigit(c) || (c >= 97 && c <= 102) || (c >= 65 && c <= 70));
-}
-TokenizerHelpers.isIdentifierPart = function(c) {
- return (TokenizerHelpers.isIdentifierStart(c) || TokenizerHelpers.isDigit(c) || c == 36);
-}
-TokenizerHelpers.isInterpIdentifierPart = function(c) {
- return (TokenizerHelpers.isIdentifierStart(c) || TokenizerHelpers.isDigit(c));
-}
// ********** Code for TokenKind **************
function TokenKind() {}
TokenKind.kindToString = function(kind) {
@@ -8093,7 +8096,7 @@
$throw(new IncompleteSourceException(this._previousToken));
}
else if (this._maybeEat(1/*TokenKind.END_OF_FILE*/)) {
- this._error('unexpected end of file', this._peekToken.get$span());
+ this._lang_error('unexpected end of file', this._peekToken.get$span());
return true;
}
else {
@@ -8107,14 +8110,14 @@
this._recover = false;
return true;
}
- this._next();
+ this._lang_next();
}
return false;
}
Parser.prototype._peek = function() {
return this._peekToken.kind;
}
-Parser.prototype._next = function() {
+Parser.prototype._lang_next = function() {
this._previousToken = this._peekToken;
this._peekToken = this.tokenizer.next();
return this._previousToken;
@@ -8149,11 +8152,11 @@
}
Parser.prototype._errorExpected = function(expected) {
if (this.throwOnIncomplete) this.isPrematureEndOfFile();
- var tok = this._next();
+ var tok = this._lang_next();
var message = ('expected ' + expected + ', but found ' + tok);
- this._error(message, tok.get$span());
+ this._lang_error(message, tok.get$span());
}
-Parser.prototype._error = function(message, location) {
+Parser.prototype._lang_error = function(message, location) {
if (this._recover) return;
if (location == null) {
location = this._peekToken.get$span();
@@ -8165,7 +8168,7 @@
var depth = 1;
this._eat(6/*TokenKind.LBRACE*/);
while (true) {
- var tok = this._next();
+ var tok = this._lang_next();
if ($eq(tok.get$kind(), 6/*TokenKind.LBRACE*/)) {
depth += 1;
}
@@ -8174,7 +8177,7 @@
if (depth == 0) return;
}
else if ($eq(tok.get$kind(), 1/*TokenKind.END_OF_FILE*/)) {
- this._error('unexpected end of file during diet parse', tok.get$span());
+ this._lang_error('unexpected end of file during diet parse', tok.get$span());
return;
}
}
@@ -8315,7 +8318,7 @@
return null;
}
}
- this._error('Expected function body (neither { nor => found)');
+ this._lang_error('Expected function body (neither { nor => found)');
}
Parser.prototype.finishField = function(start, modifiers, typeParams, type, name, value) {
if (typeParams != null) {
@@ -8382,7 +8385,7 @@
}
Parser.prototype.factoryConstructorDeclaration = function() {
var start = this._peekToken.start;
- var factoryToken = this._next();
+ var factoryToken = this._lang_next();
var names = [this.identifier()];
while (this._maybeEat(14/*TokenKind.DOT*/)) {
names.add$1(this.identifier());
@@ -8408,7 +8411,7 @@
name = new Identifier('', names.$index(0).get$span());
}
if (names.length > 1) {
- this._error('unsupported qualified name for factory', names.$index(0).get$span());
+ this._lang_error('unsupported qualified name for factory', names.$index(0).get$span());
}
type = new NameTypeReference(false, names.$index(0), null, names.$index(0).get$span());
var di = new DeclaredIdentifier(type, name, this._makeSpan(start));
@@ -8687,7 +8690,7 @@
}
}
if ($eq(cases.length, 0)) {
- this._error('case or default');
+ this._lang_error('case or default');
}
var stmts = [];
while (!this._peekCaseEnd()) {
@@ -8772,7 +8775,7 @@
return type;
}
else {
- this._error('expected type reference');
+ this._lang_error('expected type reference');
return null;
}
}
@@ -8818,7 +8821,7 @@
return this._fixAsType(x);
}
}
- var op = this._next();
+ var op = this._lang_next();
if ($eq(op.get$kind(), 103/*TokenKind.IS*/)) {
var isTrue = !this._maybeEat(19/*TokenKind.NOT*/);
var typeRef = this.type(0);
@@ -8861,7 +8864,7 @@
Parser.prototype.unaryExpression = function() {
var start = this._peekToken.start;
if (this._isPrefixUnaryOperator(this._peek())) {
- var tok = this._next();
+ var tok = this._lang_next();
var expr = this.unaryExpression();
return new UnaryExpression(tok, expr, this._makeSpan(start));
}
@@ -8926,7 +8929,7 @@
case 16/*TokenKind.INCR*/:
case 17/*TokenKind.DECR*/:
- var tok = this._next();
+ var tok = this._lang_next();
return new PostfixExpression(expr, tok, this._makeSpan(expr.get$span().get$start()));
case 9/*TokenKind.ARROW*/:
@@ -8953,7 +8956,7 @@
}
else {
if ((expr instanceof DeclaredIdentifier)) {
- this._error('illegal target for call, did you mean to declare a function?', expr.get$span());
+ this._lang_error('illegal target for call, did you mean to declare a function?', expr.get$span());
}
var args = this.arguments();
return this.finishPostfixExpression(new CallExpression(expr, args, this._makeSpan(expr.get$span().get$start())));
@@ -9038,17 +9041,17 @@
case 61/*TokenKind.HEX_INTEGER*/:
- var t = this._next();
+ var t = this._lang_next();
return new LiteralExpression(Parser.parseHex(t.get$text().substring$1(2)), this._intTypeRef(this._makeSpan(start)), t.get$text(), this._makeSpan(start));
case 60/*TokenKind.INTEGER*/:
- var t = this._next();
+ var t = this._lang_next();
return new LiteralExpression(Math.parseInt(t.get$text()), this._intTypeRef(this._makeSpan(start)), t.get$text(), this._makeSpan(start));
case 62/*TokenKind.DOUBLE*/:
- var t = this._next();
+ var t = this._lang_next();
return new LiteralExpression(Math.parseDouble(t.get$text()), this._doubleTypeRef(this._makeSpan(start)), t.get$text(), this._makeSpan(start));
case 58/*TokenKind.STRING*/:
@@ -9083,7 +9086,7 @@
var lits = [];
var startQuote = null, endQuote = null;
while (this._peekKind(66/*TokenKind.INCOMPLETE_STRING*/)) {
- var token = this._next();
+ var token = this._lang_next();
var text = token.get$text();
if (startQuote == null) {
if (isMultilineString(text)) {
@@ -9111,7 +9114,7 @@
lits.add$1(new VarExpression(id, id.get$span()));
}
}
- var tok = this._next();
+ var tok = this._lang_next();
if ($ne(tok.get$kind(), 58/*TokenKind.STRING*/)) {
this._errorExpected('interpolated string');
}
@@ -9124,20 +9127,20 @@
return new LiteralExpression(text, this._stringTypeRef(span), text, span);
}
Parser.prototype.stringLiteralExpr = function() {
- var token = this._next();
+ var token = this._lang_next();
return this.makeStringLiteral(token.get$text(), token.get$span());
}
Parser.prototype.maybeStringLiteral = function() {
var kind = this._peek();
if ($eq(kind, 58/*TokenKind.STRING*/)) {
- return parseStringLiteral(this._next().get$text());
+ return parseStringLiteral(this._lang_next().get$text());
}
else if ($eq(kind, 59/*TokenKind.STRING_PART*/)) {
- this._next();
+ this._lang_next();
this._errorExpected('string literal, but found interpolated string start');
}
else if ($eq(kind, 66/*TokenKind.INCOMPLETE_STRING*/)) {
- this._next();
+ this._lang_next();
this._errorExpected('string literal, but found incomplete string');
}
return null;
@@ -9175,19 +9178,19 @@
}
this._afterParensIndex = 0;
this._afterParens.clear();
- var tokens = [this._next()];
+ var tokens = [this._lang_next()];
this._lookaheadAfterParens(tokens);
var after = this._peekToken;
tokens.add$1(after);
this.tokenizer = new DivertedTokenSource(tokens, this, this.tokenizer);
- this._next();
+ this._lang_next();
return after;
}
Parser.prototype._lookaheadAfterParens = function(tokens) {
var saved = this._afterParens.length;
this._afterParens.add(null);
while (true) {
- var token = this._next();
+ var token = this._lang_next();
tokens.add(token);
var kind = token.kind;
if (kind == 3/*TokenKind.RPAREN*/ || kind == 1/*TokenKind.END_OF_FILE*/) {
@@ -9209,7 +9212,7 @@
case 15/*TokenKind.ELLIPSIS*/:
this._eat(15/*TokenKind.ELLIPSIS*/);
- this._error('rest no longer supported', this._previousToken.get$span());
+ this._lang_error('rest no longer supported', this._previousToken.get$span());
name = this.identifier().get$name();
break;
@@ -9251,7 +9254,7 @@
var kind = this._peek();
if ($eq(kind, 82/*TokenKind.NEGATE*/)) {
name = ':negate';
- this._next();
+ this._lang_next();
}
else {
name = TokenKind.binaryMethodName(kind);
@@ -9259,7 +9262,7 @@
name = 'operator';
}
else {
- this._next();
+ this._lang_next();
}
}
break;
@@ -9380,7 +9383,7 @@
case 75/*TokenKind.FACTORY*/:
if (modifiers == null) modifiers = [];
- modifiers.add$1(this._next());
+ modifiers.add$1(this._lang_next());
break;
default:
@@ -9481,11 +9484,11 @@
switch (this._peek()) {
case 114/*TokenKind.VOID*/:
- return new TypeReference(this._next().get$span(), $globals.world.voidType);
+ return new TypeReference(this._lang_next().get$span(), $globals.world.voidType);
case 113/*TokenKind.VAR*/:
- return new TypeReference(this._next().get$span(), $globals.world.varType);
+ return new TypeReference(this._lang_next().get$span(), $globals.world.varType);
case 98/*TokenKind.FINAL*/:
@@ -9528,7 +9531,7 @@
var value = null;
if (this._maybeEat(20/*TokenKind.ASSIGN*/)) {
if (!inOptionalBlock) {
- this._error('default values only allowed inside [optional] section');
+ this._lang_error('default values only allowed inside [optional] section');
}
value = this.expression();
}
@@ -9554,7 +9557,7 @@
while (this._maybeEat(11/*TokenKind.COMMA*/)) {
if (this._maybeEat(4/*TokenKind.LBRACK*/)) {
if (inOptionalBlock) {
- this._error('already inside an optional block', this._previousToken.get$span());
+ this._lang_error('already inside an optional block', this._previousToken.get$span());
}
inOptionalBlock = true;
}
@@ -9568,9 +9571,9 @@
return formals;
}
Parser.prototype.identifier = function() {
- var tok = this._next();
+ var tok = this._lang_next();
if (!this._isIdentifier(tok.get$kind())) {
- this._error(('expected identifier, but found ' + tok), tok.get$span());
+ this._lang_error(('expected identifier, but found ' + tok), tok.get$span());
}
return new Identifier(tok.get$text(), this._makeSpan(tok.get$start()));
}
@@ -9585,7 +9588,7 @@
type = expr.get$type();
}
else {
- this._error('bad function body', expr.get$span());
+ this._lang_error('bad function body', expr.get$span());
}
var span = new SourceSpan(expr.get$span().get$file(), expr.get$span().get$start(), body.get$span().get$end());
var func = new FunctionDefinition(null, type, name, formals, null, null, null, body, span);
@@ -9599,7 +9602,7 @@
return e;
}
else {
- this._error('expected declared identifier');
+ this._lang_error('expected declared identifier');
return new DeclaredIdentifier(null, null, e.get$span());
}
}
@@ -9625,16 +9628,16 @@
IncompleteSourceException.prototype.toString$0 = IncompleteSourceException.prototype.toString;
// ********** Code for DivertedTokenSource **************
function DivertedTokenSource(tokens, parser, previousTokenizer) {
- this._pos = 0
+ this._lang_pos = 0
this.tokens = tokens;
this.parser = parser;
this.previousTokenizer = previousTokenizer;
// Initializers done
}
DivertedTokenSource.prototype.next = function() {
- var token = this.tokens.$index(this._pos);
- ++this._pos;
- if (this._pos == this.tokens.length) {
+ var token = this.tokens.$index(this._lang_pos);
+ ++this._lang_pos;
+ if (this._lang_pos == this.tokens.length) {
this.parser.tokenizer = this.previousTokenizer;
}
return token;
@@ -9648,37 +9651,37 @@
Node.prototype.get$span = function() { return this.span; };
Node.prototype.set$span = function(value) { return this.span = value; };
Node.prototype.visit$1 = Node.prototype.visit;
+// ********** Code for Statement **************
+$inherits(Statement, Node);
+function Statement(span) {
+ // Initializers done
+ Node.call(this, span);
+}
// ********** Code for Definition **************
+$inherits(Definition, Statement);
function Definition(span) {
// Initializers done
Statement.call(this, span);
}
-$inherits(Definition, Statement);
Definition.prototype.get$typeParameters = function() {
return null;
}
Definition.prototype.get$nativeType = function() {
return null;
}
-// ********** Code for Statement **************
-function Statement(span) {
- // Initializers done
- Node.call(this, span);
-}
-$inherits(Statement, Node);
// ********** Code for Expression **************
+$inherits(Expression, Node);
function Expression(span) {
// Initializers done
Node.call(this, span);
}
-$inherits(Expression, Node);
// ********** Code for TypeReference **************
+$inherits(TypeReference, Node);
function TypeReference(span, type) {
this.type = type;
// Initializers done
Node.call(this, span);
}
-$inherits(TypeReference, Node);
TypeReference.prototype.get$type = function() { return this.type; };
TypeReference.prototype.set$type = function(value) { return this.type = value; };
TypeReference.prototype.visit = function(visitor) {
@@ -9689,13 +9692,13 @@
}
TypeReference.prototype.visit$1 = TypeReference.prototype.visit;
// ********** Code for DirectiveDefinition **************
+$inherits(DirectiveDefinition, Definition);
function DirectiveDefinition(name, arguments, span) {
this.name = name;
this.arguments = arguments;
// Initializers done
Definition.call(this, span);
}
-$inherits(DirectiveDefinition, Definition);
DirectiveDefinition.prototype.get$name = function() { return this.name; };
DirectiveDefinition.prototype.set$name = function(value) { return this.name = value; };
DirectiveDefinition.prototype.get$arguments = function() { return this.arguments; };
@@ -9705,6 +9708,7 @@
}
DirectiveDefinition.prototype.visit$1 = DirectiveDefinition.prototype.visit;
// ********** Code for TypeDefinition **************
+$inherits(TypeDefinition, Definition);
function TypeDefinition(isClass, name, typeParameters, extendsTypes, implementsTypes, nativeType, factoryType, body, span) {
this.isClass = isClass;
this.name = name;
@@ -9717,7 +9721,6 @@
// Initializers done
Definition.call(this, span);
}
-$inherits(TypeDefinition, Definition);
TypeDefinition.prototype.get$isClass = function() { return this.isClass; };
TypeDefinition.prototype.set$isClass = function(value) { return this.isClass = value; };
TypeDefinition.prototype.get$name = function() { return this.name; };
@@ -9733,13 +9736,13 @@
}
TypeDefinition.prototype.visit$1 = TypeDefinition.prototype.visit;
// ********** Code for FunctionTypeDefinition **************
+$inherits(FunctionTypeDefinition, Definition);
function FunctionTypeDefinition(func, typeParameters, span) {
this.func = func;
this.typeParameters = typeParameters;
// Initializers done
Definition.call(this, span);
}
-$inherits(FunctionTypeDefinition, Definition);
FunctionTypeDefinition.prototype.get$func = function() { return this.func; };
FunctionTypeDefinition.prototype.set$func = function(value) { return this.func = value; };
FunctionTypeDefinition.prototype.get$typeParameters = function() { return this.typeParameters; };
@@ -9749,6 +9752,7 @@
}
FunctionTypeDefinition.prototype.visit$1 = FunctionTypeDefinition.prototype.visit;
// ********** Code for VariableDefinition **************
+$inherits(VariableDefinition, Definition);
function VariableDefinition(modifiers, type, names, values, span) {
this.modifiers = modifiers;
this.type = type;
@@ -9757,7 +9761,6 @@
// Initializers done
Definition.call(this, span);
}
-$inherits(VariableDefinition, Definition);
VariableDefinition.prototype.get$type = function() { return this.type; };
VariableDefinition.prototype.set$type = function(value) { return this.type = value; };
VariableDefinition.prototype.get$names = function() { return this.names; };
@@ -9769,6 +9772,7 @@
}
VariableDefinition.prototype.visit$1 = VariableDefinition.prototype.visit;
// ********** Code for FunctionDefinition **************
+$inherits(FunctionDefinition, Definition);
function FunctionDefinition(modifiers, returnType, name, formals, typeParameters, initializers, nativeBody, body, span) {
this.modifiers = modifiers;
this.returnType = returnType;
@@ -9781,7 +9785,6 @@
// Initializers done
Definition.call(this, span);
}
-$inherits(FunctionDefinition, Definition);
FunctionDefinition.prototype.get$returnType = function() { return this.returnType; };
FunctionDefinition.prototype.set$returnType = function(value) { return this.returnType = value; };
FunctionDefinition.prototype.get$name = function() { return this.name; };
@@ -9799,12 +9802,12 @@
}
FunctionDefinition.prototype.visit$1 = FunctionDefinition.prototype.visit;
// ********** Code for ReturnStatement **************
+$inherits(ReturnStatement, Statement);
function ReturnStatement(value, span) {
this.value = value;
// Initializers done
Statement.call(this, span);
}
-$inherits(ReturnStatement, Statement);
ReturnStatement.prototype.get$value = function() { return this.value; };
ReturnStatement.prototype.set$value = function(value) { return this.value = value; };
ReturnStatement.prototype.visit = function(visitor) {
@@ -9812,12 +9815,12 @@
}
ReturnStatement.prototype.visit$1 = ReturnStatement.prototype.visit;
// ********** Code for ThrowStatement **************
+$inherits(ThrowStatement, Statement);
function ThrowStatement(value, span) {
this.value = value;
// Initializers done
Statement.call(this, span);
}
-$inherits(ThrowStatement, Statement);
ThrowStatement.prototype.get$value = function() { return this.value; };
ThrowStatement.prototype.set$value = function(value) { return this.value = value; };
ThrowStatement.prototype.visit = function(visitor) {
@@ -9825,23 +9828,23 @@
}
ThrowStatement.prototype.visit$1 = ThrowStatement.prototype.visit;
// ********** Code for AssertStatement **************
+$inherits(AssertStatement, Statement);
function AssertStatement(test, span) {
this.test = test;
// Initializers done
Statement.call(this, span);
}
-$inherits(AssertStatement, Statement);
AssertStatement.prototype.visit = function(visitor) {
return visitor.visitAssertStatement(this);
}
AssertStatement.prototype.visit$1 = AssertStatement.prototype.visit;
// ********** Code for BreakStatement **************
+$inherits(BreakStatement, Statement);
function BreakStatement(label, span) {
this.label = label;
// Initializers done
Statement.call(this, span);
}
-$inherits(BreakStatement, Statement);
BreakStatement.prototype.get$label = function() { return this.label; };
BreakStatement.prototype.set$label = function(value) { return this.label = value; };
BreakStatement.prototype.visit = function(visitor) {
@@ -9849,12 +9852,12 @@
}
BreakStatement.prototype.visit$1 = BreakStatement.prototype.visit;
// ********** Code for ContinueStatement **************
+$inherits(ContinueStatement, Statement);
function ContinueStatement(label, span) {
this.label = label;
// Initializers done
Statement.call(this, span);
}
-$inherits(ContinueStatement, Statement);
ContinueStatement.prototype.get$label = function() { return this.label; };
ContinueStatement.prototype.set$label = function(value) { return this.label = value; };
ContinueStatement.prototype.visit = function(visitor) {
@@ -9862,6 +9865,7 @@
}
ContinueStatement.prototype.visit$1 = ContinueStatement.prototype.visit;
// ********** Code for IfStatement **************
+$inherits(IfStatement, Statement);
function IfStatement(test, trueBranch, falseBranch, span) {
this.test = test;
this.trueBranch = trueBranch;
@@ -9869,19 +9873,18 @@
// Initializers done
Statement.call(this, span);
}
-$inherits(IfStatement, Statement);
IfStatement.prototype.visit = function(visitor) {
return visitor.visitIfStatement(this);
}
IfStatement.prototype.visit$1 = IfStatement.prototype.visit;
// ********** Code for WhileStatement **************
+$inherits(WhileStatement, Statement);
function WhileStatement(test, body, span) {
this.test = test;
this.body = body;
// Initializers done
Statement.call(this, span);
}
-$inherits(WhileStatement, Statement);
WhileStatement.prototype.get$body = function() { return this.body; };
WhileStatement.prototype.set$body = function(value) { return this.body = value; };
WhileStatement.prototype.visit = function(visitor) {
@@ -9889,13 +9892,13 @@
}
WhileStatement.prototype.visit$1 = WhileStatement.prototype.visit;
// ********** Code for DoStatement **************
+$inherits(DoStatement, Statement);
function DoStatement(body, test, span) {
this.body = body;
this.test = test;
// Initializers done
Statement.call(this, span);
}
-$inherits(DoStatement, Statement);
DoStatement.prototype.get$body = function() { return this.body; };
DoStatement.prototype.set$body = function(value) { return this.body = value; };
DoStatement.prototype.visit = function(visitor) {
@@ -9903,6 +9906,7 @@
}
DoStatement.prototype.visit$1 = DoStatement.prototype.visit;
// ********** Code for ForStatement **************
+$inherits(ForStatement, Statement);
function ForStatement(init, test, step, body, span) {
this.init = init;
this.test = test;
@@ -9911,7 +9915,6 @@
// Initializers done
Statement.call(this, span);
}
-$inherits(ForStatement, Statement);
ForStatement.prototype.get$body = function() { return this.body; };
ForStatement.prototype.set$body = function(value) { return this.body = value; };
ForStatement.prototype.visit = function(visitor) {
@@ -9919,6 +9922,7 @@
}
ForStatement.prototype.visit$1 = ForStatement.prototype.visit;
// ********** Code for ForInStatement **************
+$inherits(ForInStatement, Statement);
function ForInStatement(item, list, body, span) {
this.item = item;
this.list = list;
@@ -9926,7 +9930,6 @@
// Initializers done
Statement.call(this, span);
}
-$inherits(ForInStatement, Statement);
ForInStatement.prototype.get$body = function() { return this.body; };
ForInStatement.prototype.set$body = function(value) { return this.body = value; };
ForInStatement.prototype.visit = function(visitor) {
@@ -9934,6 +9937,7 @@
}
ForInStatement.prototype.visit$1 = ForInStatement.prototype.visit;
// ********** Code for TryStatement **************
+$inherits(TryStatement, Statement);
function TryStatement(body, catches, finallyBlock, span) {
this.body = body;
this.catches = catches;
@@ -9941,7 +9945,6 @@
// Initializers done
Statement.call(this, span);
}
-$inherits(TryStatement, Statement);
TryStatement.prototype.get$body = function() { return this.body; };
TryStatement.prototype.set$body = function(value) { return this.body = value; };
TryStatement.prototype.visit = function(visitor) {
@@ -9949,13 +9952,13 @@
}
TryStatement.prototype.visit$1 = TryStatement.prototype.visit;
// ********** Code for SwitchStatement **************
+$inherits(SwitchStatement, Statement);
function SwitchStatement(test, cases, span) {
this.test = test;
this.cases = cases;
// Initializers done
Statement.call(this, span);
}
-$inherits(SwitchStatement, Statement);
SwitchStatement.prototype.get$cases = function() { return this.cases; };
SwitchStatement.prototype.set$cases = function(value) { return this.cases = value; };
SwitchStatement.prototype.visit = function(visitor) {
@@ -9963,12 +9966,12 @@
}
SwitchStatement.prototype.visit$1 = SwitchStatement.prototype.visit;
// ********** Code for BlockStatement **************
+$inherits(BlockStatement, Statement);
function BlockStatement(body, span) {
this.body = body;
// Initializers done
Statement.call(this, span);
}
-$inherits(BlockStatement, Statement);
BlockStatement.prototype.get$body = function() { return this.body; };
BlockStatement.prototype.set$body = function(value) { return this.body = value; };
BlockStatement.prototype.visit = function(visitor) {
@@ -9976,13 +9979,13 @@
}
BlockStatement.prototype.visit$1 = BlockStatement.prototype.visit;
// ********** Code for LabeledStatement **************
+$inherits(LabeledStatement, Statement);
function LabeledStatement(name, body, span) {
this.name = name;
this.body = body;
// Initializers done
Statement.call(this, span);
}
-$inherits(LabeledStatement, Statement);
LabeledStatement.prototype.get$name = function() { return this.name; };
LabeledStatement.prototype.set$name = function(value) { return this.name = value; };
LabeledStatement.prototype.get$body = function() { return this.body; };
@@ -9992,12 +9995,12 @@
}
LabeledStatement.prototype.visit$1 = LabeledStatement.prototype.visit;
// ********** Code for ExpressionStatement **************
+$inherits(ExpressionStatement, Statement);
function ExpressionStatement(body, span) {
this.body = body;
// Initializers done
Statement.call(this, span);
}
-$inherits(ExpressionStatement, Statement);
ExpressionStatement.prototype.get$body = function() { return this.body; };
ExpressionStatement.prototype.set$body = function(value) { return this.body = value; };
ExpressionStatement.prototype.visit = function(visitor) {
@@ -10005,32 +10008,32 @@
}
ExpressionStatement.prototype.visit$1 = ExpressionStatement.prototype.visit;
// ********** Code for EmptyStatement **************
+$inherits(EmptyStatement, Statement);
function EmptyStatement(span) {
// Initializers done
Statement.call(this, span);
}
-$inherits(EmptyStatement, Statement);
EmptyStatement.prototype.visit = function(visitor) {
return visitor.visitEmptyStatement(this);
}
EmptyStatement.prototype.visit$1 = EmptyStatement.prototype.visit;
// ********** Code for DietStatement **************
+$inherits(DietStatement, Statement);
function DietStatement(span) {
// Initializers done
Statement.call(this, span);
}
-$inherits(DietStatement, Statement);
DietStatement.prototype.visit = function(visitor) {
return visitor.visitDietStatement(this);
}
DietStatement.prototype.visit$1 = DietStatement.prototype.visit;
// ********** Code for LambdaExpression **************
+$inherits(LambdaExpression, Expression);
function LambdaExpression(func, span) {
this.func = func;
// Initializers done
Expression.call(this, span);
}
-$inherits(LambdaExpression, Expression);
LambdaExpression.prototype.get$func = function() { return this.func; };
LambdaExpression.prototype.set$func = function(value) { return this.func = value; };
LambdaExpression.prototype.visit = function(visitor) {
@@ -10038,13 +10041,13 @@
}
LambdaExpression.prototype.visit$1 = LambdaExpression.prototype.visit;
// ********** Code for CallExpression **************
+$inherits(CallExpression, Expression);
function CallExpression(target, arguments, span) {
this.target = target;
this.arguments = arguments;
// Initializers done
Expression.call(this, span);
}
-$inherits(CallExpression, Expression);
CallExpression.prototype.get$target = function() { return this.target; };
CallExpression.prototype.set$target = function(value) { return this.target = value; };
CallExpression.prototype.get$arguments = function() { return this.arguments; };
@@ -10054,13 +10057,13 @@
}
CallExpression.prototype.visit$1 = CallExpression.prototype.visit;
// ********** Code for IndexExpression **************
+$inherits(IndexExpression, Expression);
function IndexExpression(target, index, span) {
this.target = target;
this.index = index;
// Initializers done
Expression.call(this, span);
}
-$inherits(IndexExpression, Expression);
IndexExpression.prototype.get$target = function() { return this.target; };
IndexExpression.prototype.set$target = function(value) { return this.target = value; };
IndexExpression.prototype.visit = function(visitor) {
@@ -10068,6 +10071,7 @@
}
IndexExpression.prototype.visit$1 = IndexExpression.prototype.visit;
// ********** Code for BinaryExpression **************
+$inherits(BinaryExpression, Expression);
function BinaryExpression(op, x, y, span) {
this.op = op;
this.x = x;
@@ -10075,7 +10079,6 @@
// Initializers done
Expression.call(this, span);
}
-$inherits(BinaryExpression, Expression);
BinaryExpression.prototype.get$op = function() { return this.op; };
BinaryExpression.prototype.set$op = function(value) { return this.op = value; };
BinaryExpression.prototype.get$x = function() { return this.x; };
@@ -10087,13 +10090,13 @@
}
BinaryExpression.prototype.visit$1 = BinaryExpression.prototype.visit;
// ********** Code for UnaryExpression **************
+$inherits(UnaryExpression, Expression);
function UnaryExpression(op, self, span) {
this.op = op;
this.self = self;
// Initializers done
Expression.call(this, span);
}
-$inherits(UnaryExpression, Expression);
UnaryExpression.prototype.get$op = function() { return this.op; };
UnaryExpression.prototype.set$op = function(value) { return this.op = value; };
UnaryExpression.prototype.get$self = function() { return this.self; };
@@ -10103,13 +10106,13 @@
}
UnaryExpression.prototype.visit$1 = UnaryExpression.prototype.visit;
// ********** Code for PostfixExpression **************
+$inherits(PostfixExpression, Expression);
function PostfixExpression(body, op, span) {
this.body = body;
this.op = op;
// Initializers done
Expression.call(this, span);
}
-$inherits(PostfixExpression, Expression);
PostfixExpression.prototype.get$body = function() { return this.body; };
PostfixExpression.prototype.set$body = function(value) { return this.body = value; };
PostfixExpression.prototype.get$op = function() { return this.op; };
@@ -10119,6 +10122,7 @@
}
PostfixExpression.prototype.visit$1 = PostfixExpression.prototype.visit;
// ********** Code for NewExpression **************
+$inherits(NewExpression, Expression);
function NewExpression(isConst, type, name, arguments, span) {
this.isConst = isConst;
this.type = type;
@@ -10127,7 +10131,6 @@
// Initializers done
Expression.call(this, span);
}
-$inherits(NewExpression, Expression);
NewExpression.prototype.get$isConst = function() { return this.isConst; };
NewExpression.prototype.set$isConst = function(value) { return this.isConst = value; };
NewExpression.prototype.get$type = function() { return this.type; };
@@ -10141,6 +10144,7 @@
}
NewExpression.prototype.visit$1 = NewExpression.prototype.visit;
// ********** Code for ListExpression **************
+$inherits(ListExpression, Expression);
function ListExpression(isConst, type, values, span) {
this.isConst = isConst;
this.type = type;
@@ -10148,7 +10152,6 @@
// Initializers done
Expression.call(this, span);
}
-$inherits(ListExpression, Expression);
ListExpression.prototype.get$isConst = function() { return this.isConst; };
ListExpression.prototype.set$isConst = function(value) { return this.isConst = value; };
ListExpression.prototype.get$type = function() { return this.type; };
@@ -10160,6 +10163,7 @@
}
ListExpression.prototype.visit$1 = ListExpression.prototype.visit;
// ********** Code for MapExpression **************
+$inherits(MapExpression, Expression);
function MapExpression(isConst, type, items, span) {
this.isConst = isConst;
this.type = type;
@@ -10167,7 +10171,6 @@
// Initializers done
Expression.call(this, span);
}
-$inherits(MapExpression, Expression);
MapExpression.prototype.get$isConst = function() { return this.isConst; };
MapExpression.prototype.set$isConst = function(value) { return this.isConst = value; };
MapExpression.prototype.get$type = function() { return this.type; };
@@ -10177,6 +10180,7 @@
}
MapExpression.prototype.visit$1 = MapExpression.prototype.visit;
// ********** Code for ConditionalExpression **************
+$inherits(ConditionalExpression, Expression);
function ConditionalExpression(test, trueBranch, falseBranch, span) {
this.test = test;
this.trueBranch = trueBranch;
@@ -10184,12 +10188,12 @@
// Initializers done
Expression.call(this, span);
}
-$inherits(ConditionalExpression, Expression);
ConditionalExpression.prototype.visit = function(visitor) {
return visitor.visitConditionalExpression(this);
}
ConditionalExpression.prototype.visit$1 = ConditionalExpression.prototype.visit;
// ********** Code for IsExpression **************
+$inherits(IsExpression, Expression);
function IsExpression(isTrue, x, type, span) {
this.isTrue = isTrue;
this.x = x;
@@ -10197,7 +10201,6 @@
// Initializers done
Expression.call(this, span);
}
-$inherits(IsExpression, Expression);
IsExpression.prototype.get$x = function() { return this.x; };
IsExpression.prototype.set$x = function(value) { return this.x = value; };
IsExpression.prototype.get$type = function() { return this.type; };
@@ -10207,12 +10210,12 @@
}
IsExpression.prototype.visit$1 = IsExpression.prototype.visit;
// ********** Code for ParenExpression **************
+$inherits(ParenExpression, Expression);
function ParenExpression(body, span) {
this.body = body;
// Initializers done
Expression.call(this, span);
}
-$inherits(ParenExpression, Expression);
ParenExpression.prototype.get$body = function() { return this.body; };
ParenExpression.prototype.set$body = function(value) { return this.body = value; };
ParenExpression.prototype.visit = function(visitor) {
@@ -10220,12 +10223,12 @@
}
ParenExpression.prototype.visit$1 = ParenExpression.prototype.visit;
// ********** Code for AwaitExpression **************
+$inherits(AwaitExpression, Expression);
function AwaitExpression(body, span) {
this.body = body;
// Initializers done
Expression.call(this, span);
}
-$inherits(AwaitExpression, Expression);
AwaitExpression.prototype.get$body = function() { return this.body; };
AwaitExpression.prototype.set$body = function(value) { return this.body = value; };
AwaitExpression.prototype.visit = function(visitor) {
@@ -10233,13 +10236,13 @@
}
AwaitExpression.prototype.visit$1 = AwaitExpression.prototype.visit;
// ********** Code for DotExpression **************
+$inherits(DotExpression, Expression);
function DotExpression(self, name, span) {
this.self = self;
this.name = name;
// Initializers done
Expression.call(this, span);
}
-$inherits(DotExpression, Expression);
DotExpression.prototype.get$self = function() { return this.self; };
DotExpression.prototype.set$self = function(value) { return this.self = value; };
DotExpression.prototype.get$name = function() { return this.name; };
@@ -10249,12 +10252,12 @@
}
DotExpression.prototype.visit$1 = DotExpression.prototype.visit;
// ********** Code for VarExpression **************
+$inherits(VarExpression, Expression);
function VarExpression(name, span) {
this.name = name;
// Initializers done
Expression.call(this, span);
}
-$inherits(VarExpression, Expression);
VarExpression.prototype.get$name = function() { return this.name; };
VarExpression.prototype.set$name = function(value) { return this.name = value; };
VarExpression.prototype.visit = function(visitor) {
@@ -10262,36 +10265,37 @@
}
VarExpression.prototype.visit$1 = VarExpression.prototype.visit;
// ********** Code for ThisExpression **************
+$inherits(ThisExpression, Expression);
function ThisExpression(span) {
// Initializers done
Expression.call(this, span);
}
-$inherits(ThisExpression, Expression);
ThisExpression.prototype.visit = function(visitor) {
return visitor.visitThisExpression(this);
}
ThisExpression.prototype.visit$1 = ThisExpression.prototype.visit;
// ********** Code for SuperExpression **************
+$inherits(SuperExpression, Expression);
function SuperExpression(span) {
// Initializers done
Expression.call(this, span);
}
-$inherits(SuperExpression, Expression);
SuperExpression.prototype.visit = function(visitor) {
return visitor.visitSuperExpression(this);
}
SuperExpression.prototype.visit$1 = SuperExpression.prototype.visit;
// ********** Code for NullExpression **************
+$inherits(NullExpression, Expression);
function NullExpression(span) {
// Initializers done
Expression.call(this, span);
}
-$inherits(NullExpression, Expression);
NullExpression.prototype.visit = function(visitor) {
return visitor.visitNullExpression(this);
}
NullExpression.prototype.visit$1 = NullExpression.prototype.visit;
// ********** Code for LiteralExpression **************
+$inherits(LiteralExpression, Expression);
function LiteralExpression(value, type, text, span) {
this.value = value;
this.type = type;
@@ -10299,7 +10303,6 @@
// Initializers done
Expression.call(this, span);
}
-$inherits(LiteralExpression, Expression);
LiteralExpression.prototype.get$value = function() { return this.value; };
LiteralExpression.prototype.set$value = function(value) { return this.value = value; };
LiteralExpression.prototype.get$type = function() { return this.type; };
@@ -10311,6 +10314,7 @@
}
LiteralExpression.prototype.visit$1 = LiteralExpression.prototype.visit;
// ********** Code for NameTypeReference **************
+$inherits(NameTypeReference, TypeReference);
function NameTypeReference(isFinal, name, names, span) {
this.isFinal = isFinal;
this.name = name;
@@ -10318,7 +10322,6 @@
// Initializers done
TypeReference.call(this, span);
}
-$inherits(NameTypeReference, TypeReference);
NameTypeReference.prototype.get$isFinal = function() { return this.isFinal; };
NameTypeReference.prototype.set$isFinal = function(value) { return this.isFinal = value; };
NameTypeReference.prototype.get$name = function() { return this.name; };
@@ -10330,6 +10333,7 @@
}
NameTypeReference.prototype.visit$1 = NameTypeReference.prototype.visit;
// ********** Code for GenericTypeReference **************
+$inherits(GenericTypeReference, TypeReference);
function GenericTypeReference(baseType, typeArguments, depth, span) {
this.baseType = baseType;
this.typeArguments = typeArguments;
@@ -10337,7 +10341,6 @@
// Initializers done
TypeReference.call(this, span);
}
-$inherits(GenericTypeReference, TypeReference);
GenericTypeReference.prototype.get$baseType = function() { return this.baseType; };
GenericTypeReference.prototype.set$baseType = function(value) { return this.baseType = value; };
GenericTypeReference.prototype.get$depth = function() { return this.depth; };
@@ -10347,13 +10350,13 @@
}
GenericTypeReference.prototype.visit$1 = GenericTypeReference.prototype.visit;
// ********** Code for FunctionTypeReference **************
+$inherits(FunctionTypeReference, TypeReference);
function FunctionTypeReference(isFinal, func, span) {
this.isFinal = isFinal;
this.func = func;
// Initializers done
TypeReference.call(this, span);
}
-$inherits(FunctionTypeReference, TypeReference);
FunctionTypeReference.prototype.get$isFinal = function() { return this.isFinal; };
FunctionTypeReference.prototype.set$isFinal = function(value) { return this.isFinal = value; };
FunctionTypeReference.prototype.get$func = function() { return this.func; };
@@ -10363,13 +10366,13 @@
}
FunctionTypeReference.prototype.visit$1 = FunctionTypeReference.prototype.visit;
// ********** Code for ArgumentNode **************
+$inherits(ArgumentNode, Node);
function ArgumentNode(label, value, span) {
this.label = label;
this.value = value;
// Initializers done
Node.call(this, span);
}
-$inherits(ArgumentNode, Node);
ArgumentNode.prototype.get$label = function() { return this.label; };
ArgumentNode.prototype.set$label = function(value) { return this.label = value; };
ArgumentNode.prototype.get$value = function() { return this.value; };
@@ -10379,6 +10382,7 @@
}
ArgumentNode.prototype.visit$1 = ArgumentNode.prototype.visit;
// ********** Code for FormalNode **************
+$inherits(FormalNode, Node);
function FormalNode(isThis, isRest, type, name, value, span) {
this.isThis = isThis;
this.isRest = isRest;
@@ -10388,7 +10392,6 @@
// Initializers done
Node.call(this, span);
}
-$inherits(FormalNode, Node);
FormalNode.prototype.get$type = function() { return this.type; };
FormalNode.prototype.set$type = function(value) { return this.type = value; };
FormalNode.prototype.get$name = function() { return this.name; };
@@ -10400,6 +10403,7 @@
}
FormalNode.prototype.visit$1 = FormalNode.prototype.visit;
// ********** Code for CatchNode **************
+$inherits(CatchNode, Node);
function CatchNode(exception, trace, body, span) {
this.exception = exception;
this.trace = trace;
@@ -10407,7 +10411,6 @@
// Initializers done
Node.call(this, span);
}
-$inherits(CatchNode, Node);
CatchNode.prototype.get$exception = function() { return this.exception; };
CatchNode.prototype.set$exception = function(value) { return this.exception = value; };
CatchNode.prototype.get$trace = function() { return this.trace; };
@@ -10419,6 +10422,7 @@
}
CatchNode.prototype.visit$1 = CatchNode.prototype.visit;
// ********** Code for CaseNode **************
+$inherits(CaseNode, Node);
function CaseNode(label, cases, statements, span) {
this.label = label;
this.cases = cases;
@@ -10426,7 +10430,6 @@
// Initializers done
Node.call(this, span);
}
-$inherits(CaseNode, Node);
CaseNode.prototype.get$label = function() { return this.label; };
CaseNode.prototype.set$label = function(value) { return this.label = value; };
CaseNode.prototype.get$cases = function() { return this.cases; };
@@ -10438,13 +10441,13 @@
}
CaseNode.prototype.visit$1 = CaseNode.prototype.visit;
// ********** Code for TypeParameter **************
+$inherits(TypeParameter, Node);
function TypeParameter(name, extendsType, span) {
this.name = name;
this.extendsType = extendsType;
// Initializers done
Node.call(this, span);
}
-$inherits(TypeParameter, Node);
TypeParameter.prototype.get$name = function() { return this.name; };
TypeParameter.prototype.set$name = function(value) { return this.name = value; };
TypeParameter.prototype.get$extendsType = function() { return this.extendsType; };
@@ -10454,12 +10457,12 @@
}
TypeParameter.prototype.visit$1 = TypeParameter.prototype.visit;
// ********** Code for Identifier **************
+$inherits(Identifier, Node);
function Identifier(name, span) {
this.name = name;
// Initializers done
Node.call(this, span);
}
-$inherits(Identifier, Node);
Identifier.prototype.get$name = function() { return this.name; };
Identifier.prototype.set$name = function(value) { return this.name = value; };
Identifier.prototype.visit = function(visitor) {
@@ -10467,13 +10470,13 @@
}
Identifier.prototype.visit$1 = Identifier.prototype.visit;
// ********** Code for DeclaredIdentifier **************
+$inherits(DeclaredIdentifier, Expression);
function DeclaredIdentifier(type, name, span) {
this.type = type;
this.name = name;
// Initializers done
Expression.call(this, span);
}
-$inherits(DeclaredIdentifier, Expression);
DeclaredIdentifier.prototype.get$type = function() { return this.type; };
DeclaredIdentifier.prototype.set$type = function(value) { return this.type = value; };
DeclaredIdentifier.prototype.get$name = function() { return this.name; };
@@ -10483,15 +10486,16 @@
}
DeclaredIdentifier.prototype.visit$1 = DeclaredIdentifier.prototype.visit;
// ********** Code for Type **************
+$inherits(Type, Element);
function Type(name) {
this.isTested = false
this.isChecked = false
+ this.isWritten = false
this._resolvedMembers = new HashMapImplementation();
this.varStubs = new HashMapImplementation();
// Initializers done
Element.call(this, name, null);
}
-$inherits(Type, Element);
Type.prototype.get$isTested = function() { return this.isTested; };
Type.prototype.set$isTested = function(value) { return this.isTested = value; };
Type.prototype.get$typeCheckCode = function() { return this.typeCheckCode; };
@@ -10824,12 +10828,12 @@
Type.prototype.markUsed$0 = Type.prototype.markUsed;
Type.prototype.resolveTypeParams$1 = Type.prototype.resolveTypeParams;
// ********** Code for ParameterType **************
+$inherits(ParameterType, Type);
function ParameterType(name, typeParameter) {
this.typeParameter = typeParameter;
// Initializers done
Type.call(this, name);
}
-$inherits(ParameterType, Type);
ParameterType.prototype.get$typeParameter = function() { return this.typeParameter; };
ParameterType.prototype.set$typeParameter = function(value) { return this.typeParameter = value; };
ParameterType.prototype.get$extendsType = function() { return this.extendsType; };
@@ -10885,12 +10889,12 @@
ParameterType.prototype.resolve$0 = ParameterType.prototype.resolve;
ParameterType.prototype.resolveTypeParams$1 = ParameterType.prototype.resolveTypeParams;
// ********** Code for NonNullableType **************
+$inherits(NonNullableType, Type);
function NonNullableType(type) {
this.type = type;
// Initializers done
Type.call(this, type.name);
}
-$inherits(NonNullableType, Type);
NonNullableType.prototype.get$type = function() { return this.type; };
NonNullableType.prototype.get$isNullable = function() {
return false;
@@ -10997,6 +11001,7 @@
NonNullableType.prototype.markUsed$0 = NonNullableType.prototype.markUsed;
NonNullableType.prototype.resolveTypeParams$1 = NonNullableType.prototype.resolveTypeParams;
// ********** Code for ConcreteType **************
+$inherits(ConcreteType, Type);
function ConcreteType(name, genericType, typeArguments, typeArgsInOrder) {
this.isUsed = false
this.genericType = genericType;
@@ -11008,7 +11013,6 @@
// Initializers done
Type.call(this, name);
}
-$inherits(ConcreteType, Type);
ConcreteType.prototype.get$genericType = function() { return this.genericType; };
ConcreteType.prototype.get$_parent = function() { return this._parent; };
ConcreteType.prototype.set$_parent = function(value) { return this._parent = value; };
@@ -11164,6 +11168,7 @@
ConcreteType.prototype.markUsed$0 = ConcreteType.prototype.markUsed;
ConcreteType.prototype.resolveTypeParams$1 = ConcreteType.prototype.resolveTypeParams;
// ********** Code for DefinedType **************
+$inherits(DefinedType, Type);
function DefinedType(name, library, definition, isClass) {
this.isUsed = false
this.isNative = false
@@ -11177,7 +11182,6 @@
Type.call(this, name);
this.setDefinition(definition);
}
-$inherits(DefinedType, Type);
DefinedType.prototype.get$definition = function() { return this.definition; };
DefinedType.prototype.set$definition = function(value) { return this.definition = value; };
DefinedType.prototype.get$library = function() { return this.library; };
@@ -11681,12 +11685,12 @@
return this.some(to$call$1($0));
};
// ********** Code for FixedCollection_Type **************
+$inherits(FixedCollection_Type, FixedCollection);
function FixedCollection_Type(value, length) {
this.value = value;
this.length = length;
// Initializers done
}
-$inherits(FixedCollection_Type, FixedCollection);
// ********** Code for FixedIterator **************
function FixedIterator(value, length) {
this._index = 0
@@ -11705,13 +11709,13 @@
FixedIterator.prototype.hasNext$0 = FixedIterator.prototype.hasNext;
FixedIterator.prototype.next$0 = FixedIterator.prototype.next;
// ********** Code for FixedIterator_E **************
+$inherits(FixedIterator_E, FixedIterator);
function FixedIterator_E(value, length) {
this._index = 0
this.value = value;
this.length = length;
// Initializers done
}
-$inherits(FixedIterator_E, FixedIterator);
// ********** Code for Value **************
function Value(_type, code, span, needsTemp) {
this.isSuper = false
@@ -12082,6 +12086,7 @@
return this.set_($0, $1, $2, $3, false);
};
// ********** Code for EvaluatedValue **************
+$inherits(EvaluatedValue, Value);
function EvaluatedValue() {}
EvaluatedValue._internal$ctor = function(type, actualValue, canonicalCode, span, code) {
this.actualValue = actualValue;
@@ -12090,7 +12095,6 @@
Value.call(this, type, code, span, false);
}
EvaluatedValue._internal$ctor.prototype = EvaluatedValue.prototype;
-$inherits(EvaluatedValue, Value);
EvaluatedValue.EvaluatedValue$factory = function(type, actualValue, canonicalCode, span) {
return new EvaluatedValue._internal$ctor(type, actualValue, canonicalCode, span, EvaluatedValue.codeWithComments(canonicalCode, span));
}
@@ -12105,6 +12109,7 @@
return (span != null && span.get$text() != canonicalCode) ? ('' + canonicalCode + '/*' + _escapeForComment(span.get$text()) + '*/') : canonicalCode;
}
// ********** Code for ConstListValue **************
+$inherits(ConstListValue, EvaluatedValue);
function ConstListValue() {}
ConstListValue._internal$ctor = function(type, values, actualValue, canonicalCode, span, code) {
this.values = values;
@@ -12112,13 +12117,13 @@
EvaluatedValue._internal$ctor.call(this, type, actualValue, canonicalCode, span, code);
}
ConstListValue._internal$ctor.prototype = ConstListValue.prototype;
-$inherits(ConstListValue, EvaluatedValue);
ConstListValue.ConstListValue$factory = function(type, values, actualValue, canonicalCode, span) {
return new ConstListValue._internal$ctor(type, values, actualValue, canonicalCode, span, EvaluatedValue.codeWithComments(canonicalCode, span));
}
ConstListValue.prototype.get$values = function() { return this.values; };
ConstListValue.prototype.set$values = function(value) { return this.values = value; };
// ********** Code for ConstMapValue **************
+$inherits(ConstMapValue, EvaluatedValue);
function ConstMapValue() {}
ConstMapValue._internal$ctor = function(type, values, actualValue, canonicalCode, span, code) {
this.values = values;
@@ -12126,7 +12131,6 @@
EvaluatedValue._internal$ctor.call(this, type, actualValue, canonicalCode, span, code);
}
ConstMapValue._internal$ctor.prototype = ConstMapValue.prototype;
-$inherits(ConstMapValue, EvaluatedValue);
ConstMapValue.ConstMapValue$factory = function(type, keyValuePairs, actualValue, canonicalCode, span) {
var values = new HashMapImplementation();
for (var i = 0;
@@ -12138,6 +12142,7 @@
ConstMapValue.prototype.get$values = function() { return this.values; };
ConstMapValue.prototype.set$values = function(value) { return this.values = value; };
// ********** Code for ConstObjectValue **************
+$inherits(ConstObjectValue, EvaluatedValue);
function ConstObjectValue() {}
ConstObjectValue._internal$ctor = function(type, fields, actualValue, canonicalCode, span, code) {
this.fields = fields;
@@ -12145,7 +12150,6 @@
EvaluatedValue._internal$ctor.call(this, type, actualValue, canonicalCode, span, code);
}
ConstObjectValue._internal$ctor.prototype = ConstObjectValue.prototype;
-$inherits(ConstObjectValue, EvaluatedValue);
ConstObjectValue.ConstObjectValue$factory = function(type, fields, canonicalCode, span) {
var fieldValues = [];
var $$list = fields.getKeys();
@@ -12163,6 +12167,7 @@
ConstObjectValue.prototype.get$fields = function() { return this.fields; };
ConstObjectValue.prototype.set$fields = function(value) { return this.fields = value; };
// ********** Code for GlobalValue **************
+$inherits(GlobalValue, Value);
function GlobalValue(type, code, isConst, field, name, exp, canonicalCode, span, _dependencies) {
this.field = field;
this.name = name;
@@ -12177,7 +12182,6 @@
this.dependencies.addAll(dep.get$dependencies());
}
}
-$inherits(GlobalValue, Value);
GlobalValue.GlobalValue$fromStatic$factory = function(field, exp, dependencies) {
var code = (exp.get$isConst() ? exp.get$canonicalCode() : exp.code);
var codeWithComment = ('' + code + '/*' + field.get$declaringType().get$name() + '.' + field.get$name() + '*/');
@@ -12241,13 +12245,13 @@
}
GlobalValue.prototype.compareTo$1 = GlobalValue.prototype.compareTo;
// ********** Code for BareValue **************
+$inherits(BareValue, Value);
function BareValue(home, outermost, span) {
this.home = home;
// Initializers done
Value.call(this, outermost.method.declaringType, null, span, false);
this.isType = outermost.get$isStatic();
}
-$inherits(BareValue, Value);
BareValue.prototype.get$type = function() {
return this._type;
}
@@ -12278,16 +12282,16 @@
}
// ********** Code for CompilerException **************
function CompilerException(_message, _location) {
- this._message = _message;
+ this._lang_message = _message;
this._location = _location;
// Initializers done
}
CompilerException.prototype.toString = function() {
if (this._location != null) {
- return ('CompilerException: ' + this._location.toMessageString(this._message));
+ return ('CompilerException: ' + this._location.toMessageString(this._lang_message));
}
else {
- return ('CompilerException: ' + this._message);
+ return ('CompilerException: ' + this._lang_message);
}
}
CompilerException.prototype.toString$0 = CompilerException.prototype.toString;
@@ -12810,13 +12814,13 @@
VarMember.prototype.generate$1 = VarMember.prototype.generate;
VarMember.prototype.invoke$4 = VarMember.prototype.invoke;
// ********** Code for VarFunctionStub **************
+$inherits(VarFunctionStub, VarMember);
function VarFunctionStub(name, callArgs) {
this.args = callArgs.toCallStubArgs();
// Initializers done
VarMember.call(this, name);
$globals.world.gen.corejs.useGenStub = true;
}
-$inherits(VarFunctionStub, VarMember);
VarFunctionStub.prototype.generate = function(code) {
if (this.args.get$hasNames()) {
this.generateNamed(code);
@@ -12848,6 +12852,7 @@
}
VarFunctionStub.prototype.generate$1 = VarFunctionStub.prototype.generate;
// ********** Code for VarMethodStub **************
+$inherits(VarMethodStub, VarMember);
function VarMethodStub(name, member, args, body) {
this.member = member;
this.args = args;
@@ -12855,7 +12860,6 @@
// Initializers done
VarMember.call(this, name);
}
-$inherits(VarMethodStub, VarMember);
VarMethodStub.prototype.get$body = function() { return this.body; };
VarMethodStub.prototype.get$isHidden = function() {
return this.member != null ? this.member.declaringType.get$isHiddenNativeType() : false;
@@ -12916,6 +12920,7 @@
}
VarMethodStub.prototype.generate$1 = VarMethodStub.prototype.generate;
// ********** Code for VarMethodSet **************
+$inherits(VarMethodSet, VarMember);
function VarMethodSet(baseName, name, members, callArgs, returnType) {
this.invoked = false
this.baseName = baseName;
@@ -12925,7 +12930,6 @@
// Initializers done
VarMember.call(this, name);
}
-$inherits(VarMethodSet, VarMember);
VarMethodSet.prototype.get$members = function() { return this.members; };
VarMethodSet.prototype.get$returnType = function() { return this.returnType; };
VarMethodSet.prototype.invoke = function(context, node, target, args) {

Powered by Google App Engine
This is Rietveld 408576698