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

Unified Diff: frog/frogsh

Issue 8585044: Fixes issues in string interpolation tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove debugging code 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 | « no previous file | frog/gen.dart » ('j') | frog/tokenizer.g.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/frogsh
diff --git a/frog/frogsh b/frog/frogsh
index 8fd96d8fce869e99f216b9b024b8f00332c3d932..4cbe2ffac2a154b3835098f0f313f64951a62f0a 100755
--- a/frog/frogsh
+++ b/frog/frogsh
@@ -2247,6 +2247,12 @@ Collections.filter = function(source, destination, f) {
}
// ********** Code for DateImplementation **************
function DateImplementation() {}
+DateImplementation.fromEpoch$ctor = function(value, timeZone) {
+ this.value = value;
+ this.timeZone = timeZone;
+ // Initializers done
+}
+DateImplementation.fromEpoch$ctor.prototype = DateImplementation.prototype;
DateImplementation.now$ctor = function() {
this.timeZone = new TimeZoneImplementation.local$ctor();
this.value = DateImplementation._now();
@@ -2254,12 +2260,6 @@ DateImplementation.now$ctor = function() {
this._asJs();
}
DateImplementation.now$ctor.prototype = DateImplementation.prototype;
-DateImplementation.fromEpoch$ctor = function(value, timeZone) {
- this.value = value;
- this.timeZone = timeZone;
- // Initializers done
-}
-DateImplementation.fromEpoch$ctor.prototype = DateImplementation.prototype;
DateImplementation.prototype.is$Date = function(){return this;};
DateImplementation.prototype.is$Comparable = function(){return this;};
DateImplementation.prototype.get$value = function() { return this.value; };
@@ -2643,7 +2643,7 @@ function ArrayBasedScanner() {
this.extraCharOffset = 0;
this.tokenStart = -1;
this.byteOffset = -1;
- this.tokens = new scanner_Token(0/*null.EOF_TOKEN*/, -1);
+ this.tokens = new Token(0/*null.EOF_TOKEN*/, -1);
// Initializers done
AbstractScanner$S.call(this);
this.tail = this.tokens;
@@ -2680,7 +2680,7 @@ ArrayBasedScanner.prototype.appendKeywordToken = function(keyword) {
this.tail = this.tail.next;
}
ArrayBasedScanner.prototype.appendEofToken = function() {
- this.tail.next = new scanner_Token(0/*null.EOF_TOKEN*/, this.get$charOffset());
+ this.tail.next = new Token(0/*null.EOF_TOKEN*/, this.get$charOffset());
this.tail = this.tail.next;
}
ArrayBasedScanner.prototype.beginToken = function() {
@@ -2761,7 +2761,7 @@ function ArrayBasedScanner$SourceString() {
this.extraCharOffset = 0;
this.tokenStart = -1;
this.byteOffset = -1;
- this.tokens = new scanner_Token(0/*null.EOF_TOKEN*/, -1);
+ this.tokens = new Token(0/*null.EOF_TOKEN*/, -1);
// Initializers done
AbstractScanner$S.call(this);
this.tail = this.tokens;
@@ -3984,7 +3984,7 @@ function PartialParser(listener) {
})
;
this.parseTypeFunction = (function (t) {
- return $this.parseType((t && t.is$scanner_Token()));
+ return $this.parseType((t && t.is$Token()));
})
;
this.endTypeArguments = (function (c, bt, et) {
@@ -4000,7 +4000,7 @@ function PartialParser(listener) {
})
;
this.parseTypeVariableFunction = (function (t) {
- return $this.parseTypeVariable((t && t.is$scanner_Token()));
+ return $this.parseTypeVariable((t && t.is$Token()));
})
;
this.endTypeVariables = (function (c, bt, et) {
@@ -4204,7 +4204,7 @@ PartialParser.prototype.parseString = function(token) {
return this.next(token);
}
else {
- return (($0 = this.listener.expected$2('string', token)) && $0.is$scanner_Token());
+ return (($0 = this.listener.expected$2('string', token)) && $0.is$Token());
}
}
PartialParser.prototype.parseIdentifier = function(token) {
@@ -4289,7 +4289,7 @@ PartialParser.prototype.parseStuff = function(token, beginStuff, stuffParser, en
beginStuff.call$1(begin);
var count = 0;
do {
- token = (($0 = stuffParser.call$1(this.next(token))) && $0.is$scanner_Token());
+ token = (($0 = stuffParser.call$1(this.next(token))) && $0.is$Token());
++count;
}
while ($notnull_bool(this.optional(',', token)))
@@ -4386,15 +4386,15 @@ PartialParser.prototype.handleNoTypeVariables$1 = function($0) {
return this.handleNoTypeVariables.call$1($0);
};
PartialParser.prototype.parseClass$1 = function($0) {
- return this.parseClass(($0 && $0.is$scanner_Token()));
+ return this.parseClass(($0 && $0.is$Token()));
};
-// ********** Code for scanner_Parser **************
-function scanner_Parser(listener) {
+// ********** Code for Parser **************
+function Parser(listener) {
// Initializers done
PartialParser.call(this, listener);
}
-$inherits(scanner_Parser, PartialParser);
-scanner_Parser.prototype.parseFunction = function(token) {
+$inherits(Parser, PartialParser);
+Parser.prototype.parseFunction = function(token) {
this.listener.beginFunction$1(token);
token = this.parseReturnTypeOpt(token);
this.listener.beginFunctionName$1(token);
@@ -4403,7 +4403,7 @@ scanner_Parser.prototype.parseFunction = function(token) {
token = this.parseFormalParameters(token);
return this.parseFunctionBody(token);
}
-scanner_Parser.prototype.parseFunctionBody = function(token) {
+Parser.prototype.parseFunctionBody = function(token) {
if ($notnull_bool(this.optional(';', token))) {
this.listener.endFunctionBody$3(0, null, token);
return token.next;
@@ -4419,7 +4419,7 @@ scanner_Parser.prototype.parseFunctionBody = function(token) {
this.listener.endFunctionBody$3(statementCount, begin, token);
return this.expect('}', token);
}
-scanner_Parser.prototype.parseStatement = function(token) {
+Parser.prototype.parseStatement = function(token) {
this.checkEof(token);
var value = token.get$stringValue();
switch (true) {
@@ -4457,10 +4457,10 @@ scanner_Parser.prototype.parseStatement = function(token) {
}
}
-scanner_Parser.prototype.expectSemicolon = function(token) {
+Parser.prototype.expectSemicolon = function(token) {
return this.expect(';', token);
}
-scanner_Parser.prototype.parseReturnStatement = function(token) {
+Parser.prototype.parseReturnStatement = function(token) {
var begin = token;
this.listener.beginReturnStatement$1(begin);
$assert('return' === token.get$stringValue(), "'return' === token.stringValue", "parser.dart", 455, 12);
@@ -4474,7 +4474,7 @@ scanner_Parser.prototype.parseReturnStatement = function(token) {
}
return this.expectSemicolon(token);
}
-scanner_Parser.prototype.peekAfterType = function(token) {
+Parser.prototype.peekAfterType = function(token) {
$assert(token.kind === 97/*null.IDENTIFIER_TOKEN*/, "token.kind === IDENTIFIER_TOKEN", "parser.dart", 468, 12);
var peek = token.next;
if (peek.kind === 46/*null.PERIOD_TOKEN*/) {
@@ -4491,7 +4491,7 @@ scanner_Parser.prototype.peekAfterType = function(token) {
}
return peek;
}
-scanner_Parser.prototype.peekIdentifierAfterType = function(token) {
+Parser.prototype.peekIdentifierAfterType = function(token) {
var peek = this.peekAfterType(token);
if (peek != null && peek.kind === 97/*null.IDENTIFIER_TOKEN*/) {
return peek;
@@ -4500,7 +4500,7 @@ scanner_Parser.prototype.peekIdentifierAfterType = function(token) {
return null;
}
}
-scanner_Parser.prototype.parseExpressionStatementOrDeclaration = function(token) {
+Parser.prototype.parseExpressionStatementOrDeclaration = function(token) {
var identifier = this.peekIdentifierAfterType(token);
if (identifier != null) {
$assert(identifier.kind === 97/*null.IDENTIFIER_TOKEN*/, "identifier.kind === IDENTIFIER_TOKEN", "parser.dart", 504, 14);
@@ -4520,13 +4520,13 @@ scanner_Parser.prototype.parseExpressionStatementOrDeclaration = function(token)
}
return this.parseExpressionStatement(token);
}
-scanner_Parser.prototype.parseExpressionStatement = function(token) {
+Parser.prototype.parseExpressionStatement = function(token) {
this.listener.beginExpressionStatement$1(token);
token = this.parseExpression(token);
this.listener.endExpressionStatement$1(token);
return this.expectSemicolon(token);
}
-scanner_Parser.prototype.parseExpression = function(token) {
+Parser.prototype.parseExpression = function(token) {
token = this.parseConditionalExpression(token);
if ($notnull_bool(this.isAssignmentOperator(token))) {
var operator = token;
@@ -4535,10 +4535,10 @@ scanner_Parser.prototype.parseExpression = function(token) {
}
return token;
}
-scanner_Parser.prototype.isAssignmentOperator = function(token) {
+Parser.prototype.isAssignmentOperator = function(token) {
return 2 === this.getPrecedence(token);
}
-scanner_Parser.prototype.parseConditionalExpression = function(token) {
+Parser.prototype.parseConditionalExpression = function(token) {
token = this.parseBinaryExpression(token, 4);
if ($notnull_bool(this.optional('?', token))) {
var question = token;
@@ -4550,7 +4550,7 @@ scanner_Parser.prototype.parseConditionalExpression = function(token) {
}
return token;
}
-scanner_Parser.prototype.parseBinaryExpression = function(token, precedence) {
+Parser.prototype.parseBinaryExpression = function(token, precedence) {
$assert(precedence >= 4, "precedence >= 4", "parser.dart", 561, 12);
token = this.parseUnaryExpression(token);
var tokenLevel = this.getPrecedence(token);
@@ -4565,7 +4565,7 @@ scanner_Parser.prototype.parseBinaryExpression = function(token, precedence) {
}
return token;
}
-scanner_Parser.prototype.getPrecedence = function(token) {
+Parser.prototype.getPrecedence = function(token) {
if (token == null) return 0;
var value = token.get$stringValue();
if (value == null) return 0;
@@ -4736,7 +4736,7 @@ scanner_Parser.prototype.getPrecedence = function(token) {
}
}
-scanner_Parser.prototype.parseUnaryExpression = function(token) {
+Parser.prototype.parseUnaryExpression = function(token) {
var value = token.get$stringValue();
switch (true) {
case value === '!':
@@ -4772,7 +4772,7 @@ scanner_Parser.prototype.parseUnaryExpression = function(token) {
}
return token;
}
-scanner_Parser.prototype.parsePrimary = function(token) {
+Parser.prototype.parsePrimary = function(token) {
var kind = token.kind;
switch (true) {
case kind === 97/*null.IDENTIFIER_TOKEN*/:
@@ -4817,30 +4817,30 @@ scanner_Parser.prototype.parsePrimary = function(token) {
}
}
-scanner_Parser.prototype.parseLiteralInt = function(token) {
+Parser.prototype.parseLiteralInt = function(token) {
this.listener.handleLiteralInt$1(token);
return token.next;
}
-scanner_Parser.prototype.parseLiteralDouble = function(token) {
+Parser.prototype.parseLiteralDouble = function(token) {
this.listener.handleLiteralDouble$1(token);
return token.next;
}
-scanner_Parser.prototype.parseLiteralString = function(token) {
+Parser.prototype.parseLiteralString = function(token) {
this.listener.handleLiteralString$1(token);
return token.next;
}
-scanner_Parser.prototype.parseLiteralBool = function(token) {
+Parser.prototype.parseLiteralBool = function(token) {
this.listener.handleLiteralBool$1(token);
return token.next;
}
-scanner_Parser.prototype.parseSend = function(token) {
+Parser.prototype.parseSend = function(token) {
this.listener.beginSend$1(token);
token = this.parseIdentifier(token);
token = this.parseArgumentsOpt(token);
this.listener.endSend$1(token);
return token;
}
-scanner_Parser.prototype.parseArgumentsOpt = function(token) {
+Parser.prototype.parseArgumentsOpt = function(token) {
if (!$notnull_bool(this.optional('(', token))) {
this.listener.handleNoArguments$1(token);
return token;
@@ -4849,7 +4849,7 @@ scanner_Parser.prototype.parseArgumentsOpt = function(token) {
return this.parseArguments(token);
}
}
-scanner_Parser.prototype.parseArguments = function(token) {
+Parser.prototype.parseArguments = function(token) {
var begin = token;
this.listener.beginArguments$1(begin);
$assert('(' === token.get$stringValue(), "'(' === token.stringValue", "parser.dart", 726, 12);
@@ -4866,7 +4866,7 @@ scanner_Parser.prototype.parseArguments = function(token) {
this.listener.endArguments$3(argumentCount, begin, token);
return this.expect(')', token);
}
-scanner_Parser.prototype.parseVariablesDeclaration = function(token) {
+Parser.prototype.parseVariablesDeclaration = function(token) {
var count = 1;
this.listener.beginVariablesDeclaration$1(token);
token = this.parseFinalVarOrType(token);
@@ -4878,7 +4878,7 @@ scanner_Parser.prototype.parseVariablesDeclaration = function(token) {
this.listener.endVariablesDeclaration$2(count, token);
return this.expectSemicolon(token);
}
-scanner_Parser.prototype.parseOptionallyInitializedIdentifier = function(token) {
+Parser.prototype.parseOptionallyInitializedIdentifier = function(token) {
this.listener.beginInitializedIdentifier$1(token);
token = this.parseIdentifier(token);
if ($notnull_bool(this.optional('=', token))) {
@@ -4890,7 +4890,7 @@ scanner_Parser.prototype.parseOptionallyInitializedIdentifier = function(token)
this.listener.endInitializedIdentifier$0();
return token;
}
-scanner_Parser.prototype.parseFinalVarOrType = function(token) {
+Parser.prototype.parseFinalVarOrType = function(token) {
var value = token.get$stringValue();
switch (true) {
case 'final' === value:
@@ -4904,7 +4904,7 @@ scanner_Parser.prototype.parseFinalVarOrType = function(token) {
}
}
-scanner_Parser.prototype.parseIfStatement = function(token) {
+Parser.prototype.parseIfStatement = function(token) {
var ifToken = token;
this.listener.beginIfStatement$1(ifToken);
token = this.expect('if', token);
@@ -4919,7 +4919,7 @@ scanner_Parser.prototype.parseIfStatement = function(token) {
this.listener.endIfStatement$2(ifToken, elseToken);
return token;
}
-scanner_Parser.prototype.parseForStatement = function(token) {
+Parser.prototype.parseForStatement = function(token) {
var forToken = token;
this.listener.beginForStatement$1(forToken);
token = this.expect('for', token);
@@ -4932,7 +4932,7 @@ scanner_Parser.prototype.parseForStatement = function(token) {
this.listener.endForStatement$2(forToken, token);
return token;
}
-scanner_Parser.prototype.parseBlock = function(token) {
+Parser.prototype.parseBlock = function(token) {
var begin = token;
this.listener.beginBlock$1(begin);
var statementCount = 0;
@@ -4944,7 +4944,7 @@ scanner_Parser.prototype.parseBlock = function(token) {
this.listener.endBlock$3(statementCount, begin, token);
return this.expect('}', token);
}
-scanner_Parser.prototype.parseThrowStatement = function(token) {
+Parser.prototype.parseThrowStatement = function(token) {
var throwToken = token;
this.listener.beginThrowStatement$1(throwToken);
token = this.expect('throw', token);
@@ -4958,8 +4958,8 @@ scanner_Parser.prototype.parseThrowStatement = function(token) {
return this.expectSemicolon(token);
}
}
-scanner_Parser.prototype.parseFunction$1 = function($0) {
- return this.parseFunction(($0 && $0.is$scanner_Token()));
+Parser.prototype.parseFunction$1 = function($0) {
+ return this.parseFunction(($0 && $0.is$Token()));
};
// ********** Code for ParserTask **************
function ParserTask(compiler) {
@@ -4976,7 +4976,7 @@ ParserTask.prototype.parse = function(element) {
return (($0 = this.measure((function () {
return element.parseNode($this.compiler, $this.compiler);
})
- )) && $0.is$tree_Node());
+ )) && $0.is$Node());
}
// ********** Code for Listener **************
function Listener() {
@@ -5196,214 +5196,214 @@ Listener.prototype.unexpected = function(token) {
$throw(new ParserError(("Unexpected token '" + token + "' @ " + token.charOffset + "")));
}
Listener.prototype.beginArguments$1 = function($0) {
- return this.beginArguments(($0 && $0.is$scanner_Token()));
+ return this.beginArguments(($0 && $0.is$Token()));
};
Listener.prototype.beginBlock$1 = function($0) {
- return this.beginBlock(($0 && $0.is$scanner_Token()));
+ return this.beginBlock(($0 && $0.is$Token()));
};
Listener.prototype.beginClass$1 = function($0) {
- return this.beginClass(($0 && $0.is$scanner_Token()));
+ return this.beginClass(($0 && $0.is$Token()));
};
Listener.prototype.beginExpressionStatement$1 = function($0) {
- return this.beginExpressionStatement(($0 && $0.is$scanner_Token()));
+ return this.beginExpressionStatement(($0 && $0.is$Token()));
};
Listener.prototype.beginForStatement$1 = function($0) {
- return this.beginForStatement(($0 && $0.is$scanner_Token()));
+ return this.beginForStatement(($0 && $0.is$Token()));
};
Listener.prototype.beginFormalParameter$1 = function($0) {
- return this.beginFormalParameter(($0 && $0.is$scanner_Token()));
+ return this.beginFormalParameter(($0 && $0.is$Token()));
};
Listener.prototype.beginFormalParameters$1 = function($0) {
- return this.beginFormalParameters(($0 && $0.is$scanner_Token()));
+ return this.beginFormalParameters(($0 && $0.is$Token()));
};
Listener.prototype.beginFunction$1 = function($0) {
- return this.beginFunction(($0 && $0.is$scanner_Token()));
+ return this.beginFunction(($0 && $0.is$Token()));
};
Listener.prototype.beginFunctionBody$1 = function($0) {
- return this.beginFunctionBody(($0 && $0.is$scanner_Token()));
+ return this.beginFunctionBody(($0 && $0.is$Token()));
};
Listener.prototype.beginFunctionName$1 = function($0) {
- return this.beginFunctionName(($0 && $0.is$scanner_Token()));
+ return this.beginFunctionName(($0 && $0.is$Token()));
};
Listener.prototype.beginFunctionTypeAlias$1 = function($0) {
- return this.beginFunctionTypeAlias(($0 && $0.is$scanner_Token()));
+ return this.beginFunctionTypeAlias(($0 && $0.is$Token()));
};
Listener.prototype.beginIfStatement$1 = function($0) {
- return this.beginIfStatement(($0 && $0.is$scanner_Token()));
+ return this.beginIfStatement(($0 && $0.is$Token()));
};
Listener.prototype.beginInitializedIdentifier$1 = function($0) {
- return this.beginInitializedIdentifier(($0 && $0.is$scanner_Token()));
+ return this.beginInitializedIdentifier(($0 && $0.is$Token()));
};
Listener.prototype.beginInitializer$1 = function($0) {
- return this.beginInitializer(($0 && $0.is$scanner_Token()));
+ return this.beginInitializer(($0 && $0.is$Token()));
};
Listener.prototype.beginInterface$1 = function($0) {
- return this.beginInterface(($0 && $0.is$scanner_Token()));
+ return this.beginInterface(($0 && $0.is$Token()));
};
Listener.prototype.beginLibraryTag$1 = function($0) {
- return this.beginLibraryTag(($0 && $0.is$scanner_Token()));
+ return this.beginLibraryTag(($0 && $0.is$Token()));
};
Listener.prototype.beginReturnStatement$1 = function($0) {
- return this.beginReturnStatement(($0 && $0.is$scanner_Token()));
+ return this.beginReturnStatement(($0 && $0.is$Token()));
};
Listener.prototype.beginSend$1 = function($0) {
- return this.beginSend(($0 && $0.is$scanner_Token()));
+ return this.beginSend(($0 && $0.is$Token()));
};
Listener.prototype.beginThrowStatement$1 = function($0) {
- return this.beginThrowStatement(($0 && $0.is$scanner_Token()));
+ return this.beginThrowStatement(($0 && $0.is$Token()));
};
Listener.prototype.beginTopLevelMember$1 = function($0) {
- return this.beginTopLevelMember(($0 && $0.is$scanner_Token()));
+ return this.beginTopLevelMember(($0 && $0.is$Token()));
};
Listener.prototype.beginTypeArguments$1 = function($0) {
- return this.beginTypeArguments(($0 && $0.is$scanner_Token()));
+ return this.beginTypeArguments(($0 && $0.is$Token()));
};
Listener.prototype.beginTypeVariable$1 = function($0) {
- return this.beginTypeVariable(($0 && $0.is$scanner_Token()));
+ return this.beginTypeVariable(($0 && $0.is$Token()));
};
Listener.prototype.beginTypeVariables$1 = function($0) {
- return this.beginTypeVariables(($0 && $0.is$scanner_Token()));
+ return this.beginTypeVariables(($0 && $0.is$Token()));
};
Listener.prototype.beginVariablesDeclaration$1 = function($0) {
- return this.beginVariablesDeclaration(($0 && $0.is$scanner_Token()));
+ return this.beginVariablesDeclaration(($0 && $0.is$Token()));
};
Listener.prototype.endArguments$3 = function($0, $1, $2) {
- return this.endArguments($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endArguments($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endBlock$3 = function($0, $1, $2) {
- return this.endBlock($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endBlock($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endClass$5 = function($0, $1, $2, $3, $4) {
- return this.endClass($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()), ($3 && $3.is$scanner_Token()), ($4 && $4.is$scanner_Token()));
+ return this.endClass($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()), ($3 && $3.is$Token()), ($4 && $4.is$Token()));
};
Listener.prototype.endExpressionStatement$1 = function($0) {
- return this.endExpressionStatement(($0 && $0.is$scanner_Token()));
+ return this.endExpressionStatement(($0 && $0.is$Token()));
};
Listener.prototype.endForStatement$2 = function($0, $1) {
- return this.endForStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endForStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
Listener.prototype.endFormalParameter$1 = function($0) {
- return this.endFormalParameter(($0 && $0.is$scanner_Token()));
+ return this.endFormalParameter(($0 && $0.is$Token()));
};
Listener.prototype.endFormalParameters$3 = function($0, $1, $2) {
- return this.endFormalParameters($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endFormalParameters($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endFunctionBody$3 = function($0, $1, $2) {
- return this.endFunctionBody($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endFunctionBody($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endFunctionName$1 = function($0) {
- return this.endFunctionName(($0 && $0.is$scanner_Token()));
+ return this.endFunctionName(($0 && $0.is$Token()));
};
Listener.prototype.endFunctionTypeAlias$1 = function($0) {
- return this.endFunctionTypeAlias(($0 && $0.is$scanner_Token()));
+ return this.endFunctionTypeAlias(($0 && $0.is$Token()));
};
Listener.prototype.endIfStatement$2 = function($0, $1) {
- return this.endIfStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endIfStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
Listener.prototype.endInitializedIdentifier$0 = function() {
return this.endInitializedIdentifier();
};
Listener.prototype.endInitializer$1 = function($0) {
- return this.endInitializer(($0 && $0.is$scanner_Token()));
+ return this.endInitializer(($0 && $0.is$Token()));
};
Listener.prototype.endInterface$1 = function($0) {
- return this.endInterface(($0 && $0.is$scanner_Token()));
+ return this.endInterface(($0 && $0.is$Token()));
};
Listener.prototype.endRethrowStatement$2 = function($0, $1) {
- return this.endRethrowStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endRethrowStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
Listener.prototype.endReturnStatement$3 = function($0, $1, $2) {
- return this.endReturnStatement($assert_bool($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endReturnStatement($assert_bool($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endSend$1 = function($0) {
- return this.endSend(($0 && $0.is$scanner_Token()));
+ return this.endSend(($0 && $0.is$Token()));
};
Listener.prototype.endThrowStatement$2 = function($0, $1) {
- return this.endThrowStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endThrowStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
Listener.prototype.endTopLevelField$2 = function($0, $1) {
- return this.endTopLevelField(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endTopLevelField(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
Listener.prototype.endTopLevelMethod$2 = function($0, $1) {
- return this.endTopLevelMethod(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endTopLevelMethod(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
Listener.prototype.endType$3 = function($0, $1, $2) {
- return this.endType($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endType($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endTypeArguments$3 = function($0, $1, $2) {
- return this.endTypeArguments($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endTypeArguments($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endTypeVariable$1 = function($0) {
- return this.endTypeVariable(($0 && $0.is$scanner_Token()));
+ return this.endTypeVariable(($0 && $0.is$Token()));
};
Listener.prototype.endTypeVariables$3 = function($0, $1, $2) {
- return this.endTypeVariables($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endTypeVariables($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
Listener.prototype.endVariablesDeclaration$2 = function($0, $1) {
- return this.endVariablesDeclaration($assert_num($0), ($1 && $1.is$scanner_Token()));
+ return this.endVariablesDeclaration($assert_num($0), ($1 && $1.is$Token()));
};
Listener.prototype.expected$2 = function($0, $1) {
- return this.expected($assert_String($0), ($1 && $1.is$scanner_Token()));
+ return this.expected($assert_String($0), ($1 && $1.is$Token()));
};
Listener.prototype.expectedBlock$1 = function($0) {
- return this.expectedBlock(($0 && $0.is$scanner_Token()));
+ return this.expectedBlock(($0 && $0.is$Token()));
};
Listener.prototype.expectedIdentifier$1 = function($0) {
- return this.expectedIdentifier(($0 && $0.is$scanner_Token()));
+ return this.expectedIdentifier(($0 && $0.is$Token()));
};
Listener.prototype.expectedType$1 = function($0) {
- return this.expectedType(($0 && $0.is$scanner_Token()));
+ return this.expectedType(($0 && $0.is$Token()));
};
Listener.prototype.handleAssignmentExpression$1 = function($0) {
- return this.handleAssignmentExpression(($0 && $0.is$scanner_Token()));
+ return this.handleAssignmentExpression(($0 && $0.is$Token()));
};
Listener.prototype.handleBinaryExpression$1 = function($0) {
- return this.handleBinaryExpression(($0 && $0.is$scanner_Token()));
+ return this.handleBinaryExpression(($0 && $0.is$Token()));
};
Listener.prototype.handleConditionalExpression$2 = function($0, $1) {
- return this.handleConditionalExpression(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.handleConditionalExpression(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
Listener.prototype.handleIdentifier$1 = function($0) {
- return this.handleIdentifier(($0 && $0.is$scanner_Token()));
+ return this.handleIdentifier(($0 && $0.is$Token()));
};
Listener.prototype.handleLiteralBool$1 = function($0) {
- return this.handleLiteralBool(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralBool(($0 && $0.is$Token()));
};
Listener.prototype.handleLiteralDouble$1 = function($0) {
- return this.handleLiteralDouble(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralDouble(($0 && $0.is$Token()));
};
Listener.prototype.handleLiteralInt$1 = function($0) {
- return this.handleLiteralInt(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralInt(($0 && $0.is$Token()));
};
Listener.prototype.handleLiteralString$1 = function($0) {
- return this.handleLiteralString(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralString(($0 && $0.is$Token()));
};
Listener.prototype.handleNoArguments$1 = function($0) {
- return this.handleNoArguments(($0 && $0.is$scanner_Token()));
+ return this.handleNoArguments(($0 && $0.is$Token()));
};
Listener.prototype.handleNoType$1 = function($0) {
- return this.handleNoType(($0 && $0.is$scanner_Token()));
+ return this.handleNoType(($0 && $0.is$Token()));
};
Listener.prototype.handleNoTypeArguments$1 = function($0) {
- return this.handleNoTypeArguments(($0 && $0.is$scanner_Token()));
+ return this.handleNoTypeArguments(($0 && $0.is$Token()));
};
Listener.prototype.handleNoTypeVariables$1 = function($0) {
- return this.handleNoTypeVariables(($0 && $0.is$scanner_Token()));
+ return this.handleNoTypeVariables(($0 && $0.is$Token()));
};
Listener.prototype.handleUnaryPostfixExpression$1 = function($0) {
- return this.handleUnaryPostfixExpression(($0 && $0.is$scanner_Token()));
+ return this.handleUnaryPostfixExpression(($0 && $0.is$Token()));
};
Listener.prototype.handleUnaryPrefixExpression$1 = function($0) {
- return this.handleUnaryPrefixExpression(($0 && $0.is$scanner_Token()));
+ return this.handleUnaryPrefixExpression(($0 && $0.is$Token()));
};
Listener.prototype.handleVarKeyword$1 = function($0) {
- return this.handleVarKeyword(($0 && $0.is$scanner_Token()));
+ return this.handleVarKeyword(($0 && $0.is$Token()));
};
Listener.prototype.handleVoidKeyword$1 = function($0) {
- return this.handleVoidKeyword(($0 && $0.is$scanner_Token()));
+ return this.handleVoidKeyword(($0 && $0.is$Token()));
};
Listener.prototype.unexpected$1 = function($0) {
- return this.unexpected(($0 && $0.is$scanner_Token()));
+ return this.unexpected(($0 && $0.is$Token()));
};
Listener.prototype.unexpectedEof$0 = function() {
return this.unexpectedEof();
@@ -5437,8 +5437,8 @@ ElementListener.prototype.endClass = function(interfacesCount, beginToken, exten
for (; interfacesCount > 0; --interfacesCount) {
this.popNode();
}
- var supertype = (($0 = this.popNode()) && $0.is$tree_Identifier());
- var name = (($0 = this.popNode()) && $0.is$tree_Identifier());
+ var supertype = (($0 = this.popNode()) && $0.is$Identifier());
+ var name = (($0 = this.popNode()) && $0.is$Identifier());
this.pushElement(new PartialClassElement(name.get$source(), beginToken, endToken));
}
ElementListener.prototype.endInterface = function(token) {
@@ -5449,14 +5449,14 @@ ElementListener.prototype.endFunctionTypeAlias = function(token) {
}
ElementListener.prototype.endTopLevelMethod = function(beginToken, endToken) {
var $0;
- var name = (($0 = this.popNode()) && $0.is$tree_Identifier());
+ var name = (($0 = this.popNode()) && $0.is$Identifier());
this.pushElement(new PartialFunctionElement(name.get$source(), beginToken, endToken));
}
ElementListener.prototype.endTopLevelField = function(beginToken, endToken) {
this.canceler.cancel("Cannot handle fields");
}
ElementListener.prototype.handleIdentifier = function(token) {
- this.pushNode(new tree_Identifier(token));
+ this.pushNode(new Identifier(token));
}
ElementListener.prototype.handleNoType = function(token) {
this.pushNode(null);
@@ -5464,7 +5464,7 @@ ElementListener.prototype.handleNoType = function(token) {
ElementListener.prototype.endTypeVariable = function(token) {
var $0;
var bound = (($0 = this.popNode()) && $0.is$TypeAnnotation());
- var name = (($0 = this.popNode()) && $0.is$tree_Identifier());
+ var name = (($0 = this.popNode()) && $0.is$Identifier());
}
ElementListener.prototype.endTypeArguments = function(count, beginToken, endToken) {
for (; count > 0; --count) {
@@ -5501,7 +5501,7 @@ ElementListener.prototype.pushNode = function(node) {
ElementListener.prototype.popNode = function() {
var $0;
$assert(!$notnull_bool(this.nodes.isEmpty()), "!nodes.isEmpty()", "listener.dart", 343, 12);
- var node = (($0 = this.nodes.get$head()) && $0.is$tree_Node());
+ var node = (($0 = this.nodes.get$head()) && $0.is$Node());
this.nodes = (($0 = this.nodes.get$tail()) && $0.is$Link$Node());
this.log(("pop " + this.nodes + ""));
return node;
@@ -5510,49 +5510,49 @@ ElementListener.prototype.log = function(message) {
}
ElementListener.prototype.beginLibraryTag$1 = function($0) {
- return this.beginLibraryTag(($0 && $0.is$scanner_Token()));
+ return this.beginLibraryTag(($0 && $0.is$Token()));
};
ElementListener.prototype.endClass$5 = function($0, $1, $2, $3, $4) {
- return this.endClass($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()), ($3 && $3.is$scanner_Token()), ($4 && $4.is$scanner_Token()));
+ return this.endClass($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()), ($3 && $3.is$Token()), ($4 && $4.is$Token()));
};
ElementListener.prototype.endFunctionTypeAlias$1 = function($0) {
- return this.endFunctionTypeAlias(($0 && $0.is$scanner_Token()));
+ return this.endFunctionTypeAlias(($0 && $0.is$Token()));
};
ElementListener.prototype.endInterface$1 = function($0) {
- return this.endInterface(($0 && $0.is$scanner_Token()));
+ return this.endInterface(($0 && $0.is$Token()));
};
ElementListener.prototype.endTopLevelField$2 = function($0, $1) {
- return this.endTopLevelField(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endTopLevelField(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
ElementListener.prototype.endTopLevelMethod$2 = function($0, $1) {
- return this.endTopLevelMethod(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endTopLevelMethod(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
ElementListener.prototype.endTypeArguments$3 = function($0, $1, $2) {
- return this.endTypeArguments($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endTypeArguments($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
ElementListener.prototype.endTypeVariable$1 = function($0) {
- return this.endTypeVariable(($0 && $0.is$scanner_Token()));
+ return this.endTypeVariable(($0 && $0.is$Token()));
};
ElementListener.prototype.expected$2 = function($0, $1) {
- return this.expected($assert_String($0), ($1 && $1.is$scanner_Token()));
+ return this.expected($assert_String($0), ($1 && $1.is$Token()));
};
ElementListener.prototype.expectedBlock$1 = function($0) {
- return this.expectedBlock(($0 && $0.is$scanner_Token()));
+ return this.expectedBlock(($0 && $0.is$Token()));
};
ElementListener.prototype.expectedIdentifier$1 = function($0) {
- return this.expectedIdentifier(($0 && $0.is$scanner_Token()));
+ return this.expectedIdentifier(($0 && $0.is$Token()));
};
ElementListener.prototype.expectedType$1 = function($0) {
- return this.expectedType(($0 && $0.is$scanner_Token()));
+ return this.expectedType(($0 && $0.is$Token()));
};
ElementListener.prototype.handleIdentifier$1 = function($0) {
- return this.handleIdentifier(($0 && $0.is$scanner_Token()));
+ return this.handleIdentifier(($0 && $0.is$Token()));
};
ElementListener.prototype.handleNoType$1 = function($0) {
- return this.handleNoType(($0 && $0.is$scanner_Token()));
+ return this.handleNoType(($0 && $0.is$Token()));
};
ElementListener.prototype.unexpected$1 = function($0) {
- return this.unexpected(($0 && $0.is$scanner_Token()));
+ return this.unexpected(($0 && $0.is$Token()));
};
ElementListener.prototype.unexpectedEof$0 = function() {
return this.unexpectedEof();
@@ -5569,7 +5569,7 @@ NodeListener.prototype.endClass = function(interfacesCount, beginToken, extendsK
var $0;
var interfaces = this.makeNodeList(interfacesCount, implementsKeyword, null, ",");
var supertype = (($0 = this.popNode()) && $0.is$TypeAnnotation());
- var name = (($0 = this.popNode()) && $0.is$tree_Identifier());
+ var name = (($0 = this.popNode()) && $0.is$Identifier());
this.pushNode(new ClassNode(name, supertype, interfaces, beginToken, extendsKeyword, endToken));
}
NodeListener.prototype.endFormalParameter = function(token) {
@@ -5589,11 +5589,11 @@ NodeListener.prototype.handleNoArguments = function(token) {
}
NodeListener.prototype.endReturnStatement = function(hasExpression, beginToken, endToken) {
var $0;
- var expression = (($0 = $notnull_bool(hasExpression) ? this.popNode() : null) && $0.is$tree_Expression());
+ var expression = (($0 = $notnull_bool(hasExpression) ? this.popNode() : null) && $0.is$Expression());
this.pushNode(new Return(beginToken, endToken, expression));
}
NodeListener.prototype.endExpressionStatement = function(token) {
- this.pushNode(new tree_ExpressionStatement(this.popNode(), token));
+ this.pushNode(new ExpressionStatement(this.popNode(), token));
}
NodeListener.prototype.handleOnError = function(token, error) {
this.canceler.cancel(("internal error @ " + token.charOffset + ": '" + token.get$value() + "'") + (": " + error + ""));
@@ -5639,7 +5639,7 @@ NodeListener.prototype.endSend = function(token) {
this.pushNode(new Send(null, selector, arguments));
}
NodeListener.prototype.handleVoidKeyword = function(token) {
- this.pushNode(new TypeAnnotation(new tree_Identifier(token)));
+ this.pushNode(new TypeAnnotation(new Identifier(token)));
}
NodeListener.prototype.endFunctionBody = function(count, beginToken, endToken) {
var $0;
@@ -5650,10 +5650,10 @@ NodeListener.prototype.endFunctionBody = function(count, beginToken, endToken) {
this.pushNode(new FunctionExpression(name, formals, block, type));
}
NodeListener.prototype.handleVarKeyword = function(token) {
- this.pushNode(new tree_Identifier(token));
+ this.pushNode(new Identifier(token));
}
NodeListener.prototype.handleFinalKeyword = function(token) {
- this.pushNode(new tree_Identifier(token));
+ this.pushNode(new Identifier(token));
}
NodeListener.prototype.endVariablesDeclaration = function(count, endToken) {
var $0;
@@ -5663,23 +5663,23 @@ NodeListener.prototype.endVariablesDeclaration = function(count, endToken) {
}
NodeListener.prototype.endInitializer = function(assignmentOperator) {
var $0;
- var initializer = (($0 = this.popNode()) && $0.is$tree_Expression());
+ var initializer = (($0 = this.popNode()) && $0.is$Expression());
var arguments = new NodeList.singleton$ctor(initializer);
- var name = (($0 = this.popNode()) && $0.is$tree_Expression());
+ var name = (($0 = this.popNode()) && $0.is$Expression());
this.pushNode(new SendSet(null, name, assignmentOperator, arguments));
}
NodeListener.prototype.endIfStatement = function(ifToken, elseToken) {
var $0;
- var elsePart = (($0 = (elseToken == null) ? null : this.popNode()) && $0.is$tree_Statement());
- var thenPart = (($0 = this.popNode()) && $0.is$tree_Statement());
+ var elsePart = (($0 = (elseToken == null) ? null : this.popNode()) && $0.is$Statement());
+ var thenPart = (($0 = this.popNode()) && $0.is$Statement());
var condition = (($0 = this.popNode()) && $0.is$NodeList());
this.pushNode(new If(condition, thenPart, elsePart, ifToken, elseToken));
}
NodeListener.prototype.endForStatement = function(beginToken, endToken) {
var $0;
- var body = (($0 = this.popNode()) && $0.is$tree_Statement());
- var update = (($0 = this.popNode()) && $0.is$tree_Expression());
- var condition = (($0 = this.popNode()) && $0.is$tree_ExpressionStatement());
+ var body = (($0 = this.popNode()) && $0.is$Statement());
+ var update = (($0 = this.popNode()) && $0.is$Expression());
+ var condition = (($0 = this.popNode()) && $0.is$ExpressionStatement());
var initializer = (($0 = this.popNode()) && $0.is$VariableDefinitions());
this.pushNode(new For(initializer, condition, update, body, beginToken));
}
@@ -5688,7 +5688,7 @@ NodeListener.prototype.endBlock = function(count, beginToken, endToken) {
}
NodeListener.prototype.endType = function(count, beginToken, endToken) {
var $0;
- var type = new TypeAnnotation((($0 = this.popNode()) && $0.is$tree_Identifier()));
+ var type = new TypeAnnotation((($0 = this.popNode()) && $0.is$Identifier()));
for (; count > 1; --count) {
this.popNode();
}
@@ -5696,7 +5696,7 @@ NodeListener.prototype.endType = function(count, beginToken, endToken) {
}
NodeListener.prototype.endThrowStatement = function(throwToken, endToken) {
var $0;
- var expression = (($0 = this.popNode()) && $0.is$tree_Expression());
+ var expression = (($0 = this.popNode()) && $0.is$Expression());
this.pushNode(new Throw(expression, throwToken, endToken));
}
NodeListener.prototype.endRethrowStatement = function(throwToken, endToken) {
@@ -5721,91 +5721,91 @@ NodeListener.prototype.log = function(message) {
this.logger.log(message);
}
NodeListener.prototype.endArguments$3 = function($0, $1, $2) {
- return this.endArguments($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endArguments($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
NodeListener.prototype.endBlock$3 = function($0, $1, $2) {
- return this.endBlock($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endBlock($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
NodeListener.prototype.endClass$5 = function($0, $1, $2, $3, $4) {
- return this.endClass($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()), ($3 && $3.is$scanner_Token()), ($4 && $4.is$scanner_Token()));
+ return this.endClass($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()), ($3 && $3.is$Token()), ($4 && $4.is$Token()));
};
NodeListener.prototype.endExpressionStatement$1 = function($0) {
- return this.endExpressionStatement(($0 && $0.is$scanner_Token()));
+ return this.endExpressionStatement(($0 && $0.is$Token()));
};
NodeListener.prototype.endForStatement$2 = function($0, $1) {
- return this.endForStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endForStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
NodeListener.prototype.endFormalParameter$1 = function($0) {
- return this.endFormalParameter(($0 && $0.is$scanner_Token()));
+ return this.endFormalParameter(($0 && $0.is$Token()));
};
NodeListener.prototype.endFormalParameters$3 = function($0, $1, $2) {
- return this.endFormalParameters($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endFormalParameters($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
NodeListener.prototype.endFunctionBody$3 = function($0, $1, $2) {
- return this.endFunctionBody($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endFunctionBody($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
NodeListener.prototype.endIfStatement$2 = function($0, $1) {
- return this.endIfStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endIfStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
NodeListener.prototype.endInitializer$1 = function($0) {
- return this.endInitializer(($0 && $0.is$scanner_Token()));
+ return this.endInitializer(($0 && $0.is$Token()));
};
NodeListener.prototype.endRethrowStatement$2 = function($0, $1) {
- return this.endRethrowStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endRethrowStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
NodeListener.prototype.endReturnStatement$3 = function($0, $1, $2) {
- return this.endReturnStatement($assert_bool($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endReturnStatement($assert_bool($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
NodeListener.prototype.endSend$1 = function($0) {
- return this.endSend(($0 && $0.is$scanner_Token()));
+ return this.endSend(($0 && $0.is$Token()));
};
NodeListener.prototype.endThrowStatement$2 = function($0, $1) {
- return this.endThrowStatement(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.endThrowStatement(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
NodeListener.prototype.endType$3 = function($0, $1, $2) {
- return this.endType($assert_num($0), ($1 && $1.is$scanner_Token()), ($2 && $2.is$scanner_Token()));
+ return this.endType($assert_num($0), ($1 && $1.is$Token()), ($2 && $2.is$Token()));
};
NodeListener.prototype.endVariablesDeclaration$2 = function($0, $1) {
- return this.endVariablesDeclaration($assert_num($0), ($1 && $1.is$scanner_Token()));
+ return this.endVariablesDeclaration($assert_num($0), ($1 && $1.is$Token()));
};
NodeListener.prototype.handleAssignmentExpression$1 = function($0) {
- return this.handleAssignmentExpression(($0 && $0.is$scanner_Token()));
+ return this.handleAssignmentExpression(($0 && $0.is$Token()));
};
NodeListener.prototype.handleBinaryExpression$1 = function($0) {
- return this.handleBinaryExpression(($0 && $0.is$scanner_Token()));
+ return this.handleBinaryExpression(($0 && $0.is$Token()));
};
NodeListener.prototype.handleConditionalExpression$2 = function($0, $1) {
- return this.handleConditionalExpression(($0 && $0.is$scanner_Token()), ($1 && $1.is$scanner_Token()));
+ return this.handleConditionalExpression(($0 && $0.is$Token()), ($1 && $1.is$Token()));
};
NodeListener.prototype.handleFinalKeyword$1 = function($0) {
- return this.handleFinalKeyword(($0 && $0.is$scanner_Token()));
+ return this.handleFinalKeyword(($0 && $0.is$Token()));
};
NodeListener.prototype.handleLiteralBool$1 = function($0) {
- return this.handleLiteralBool(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralBool(($0 && $0.is$Token()));
};
NodeListener.prototype.handleLiteralDouble$1 = function($0) {
- return this.handleLiteralDouble(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralDouble(($0 && $0.is$Token()));
};
NodeListener.prototype.handleLiteralInt$1 = function($0) {
- return this.handleLiteralInt(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralInt(($0 && $0.is$Token()));
};
NodeListener.prototype.handleLiteralString$1 = function($0) {
- return this.handleLiteralString(($0 && $0.is$scanner_Token()));
+ return this.handleLiteralString(($0 && $0.is$Token()));
};
NodeListener.prototype.handleNoArguments$1 = function($0) {
- return this.handleNoArguments(($0 && $0.is$scanner_Token()));
+ return this.handleNoArguments(($0 && $0.is$Token()));
};
NodeListener.prototype.handleUnaryPostfixExpression$1 = function($0) {
- return this.handleUnaryPostfixExpression(($0 && $0.is$scanner_Token()));
+ return this.handleUnaryPostfixExpression(($0 && $0.is$Token()));
};
NodeListener.prototype.handleUnaryPrefixExpression$1 = function($0) {
- return this.handleUnaryPrefixExpression(($0 && $0.is$scanner_Token()));
+ return this.handleUnaryPrefixExpression(($0 && $0.is$Token()));
};
NodeListener.prototype.handleVarKeyword$1 = function($0) {
- return this.handleVarKeyword(($0 && $0.is$scanner_Token()));
+ return this.handleVarKeyword(($0 && $0.is$Token()));
};
NodeListener.prototype.handleVoidKeyword$1 = function($0) {
- return this.handleVoidKeyword(($0 && $0.is$scanner_Token()));
+ return this.handleVoidKeyword(($0 && $0.is$Token()));
};
// ********** Code for PartialFunctionElement **************
function PartialFunctionElement(name, beginToken, endToken) {
@@ -5904,36 +5904,36 @@ SubstringWrapper.prototype.printOn$1 = function($0) {
SubstringWrapper.prototype.toString$0 = function() {
return this.toString();
};
-// ********** Code for scanner_Token **************
-function scanner_Token(kind, charOffset) {
+// ********** Code for Token **************
+function Token(kind, charOffset) {
this.kind = kind;
this.charOffset = charOffset;
// Initializers done
}
-scanner_Token.prototype.is$scanner_Token = function(){return this;};
-scanner_Token.prototype.get$charOffset = function() { return this.charOffset; };
-scanner_Token.prototype.get$value = function() {
+Token.prototype.is$Token = function(){return this;};
+Token.prototype.get$charOffset = function() { return this.charOffset; };
+Token.prototype.get$value = function() {
return const$112/*const SourceString('EOF')*/;
}
-scanner_Token.prototype.get$stringValue = function() {
+Token.prototype.get$stringValue = function() {
return 'EOF';
}
-scanner_Token.prototype.toString = function() {
+Token.prototype.toString = function() {
return Strings.String$fromCharCodes$factory([this.kind]);
}
-scanner_Token.prototype.next$0 = function() {
+Token.prototype.next$0 = function() {
return this.next();
};
-scanner_Token.prototype.toString$0 = function() {
+Token.prototype.toString$0 = function() {
return this.toString();
};
// ********** Code for KeywordToken **************
function KeywordToken(value, charOffset) {
this.value = value;
// Initializers done
- scanner_Token.call(this, 107/*null.KEYWORD_TOKEN*/, charOffset);
+ Token.call(this, 107/*null.KEYWORD_TOKEN*/, charOffset);
}
-$inherits(KeywordToken, scanner_Token);
+$inherits(KeywordToken, Token);
KeywordToken.prototype.get$value = function() { return this.value; };
KeywordToken.prototype.get$stringValue = function() {
return this.value.syntax;
@@ -5952,10 +5952,10 @@ function StringToken(kind, value, charOffset) {
StringToken.fromSource$ctor = function(kind, value, charOffset) {
this.value = value;
// Initializers done
- scanner_Token.call(this, kind, charOffset);
+ Token.call(this, kind, charOffset);
}
StringToken.fromSource$ctor.prototype = StringToken.prototype;
-$inherits(StringToken, scanner_Token);
+$inherits(StringToken, Token);
StringToken.prototype.get$value = function() { return this.value; };
StringToken.prototype.get$stringValue = function() {
return this.value.get$stringValue();
@@ -6152,28 +6152,28 @@ LeafKeywordState.prototype.toString$0 = function() {
// ********** Code for top level **************
function parse(canceler, logger, doParse) {
var listener = new NodeListener(canceler, logger);
- doParse(new scanner_Parser(listener));
+ doParse(new Parser(listener));
var node = listener.popNode();
logger.log(("parsed: " + node + ""));
return node;
}
// ********** Library tree **************
-// ********** Code for tree_Node **************
-function tree_Node() {
+// ********** Code for Node **************
+function Node() {
this._hashCode = (Math.random() * 0xFFFFFFFF).toInt();
// Initializers done
}
-tree_Node.prototype.is$tree_Node = function(){return this;};
-tree_Node.prototype.hashCode = function() {
+Node.prototype.is$Node = function(){return this;};
+Node.prototype.hashCode = function() {
return this._hashCode;
}
-tree_Node.prototype.toString = function() {
+Node.prototype.toString = function() {
return this.unparse();
}
-tree_Node.prototype.getObjectDescription = function() {
+Node.prototype.getObjectDescription = function() {
return Object.prototype.toString.call(this);
}
-tree_Node.prototype.unparse = function() {
+Node.prototype.unparse = function() {
var unparser = new Unparser(false);
try {
return unparser.unparse(this);
@@ -6182,19 +6182,19 @@ tree_Node.prototype.unparse = function() {
return ('<<unparse error: ' + this.getObjectDescription() + ': ' + unparser.sb + '>>');
}
}
-tree_Node.prototype.accept$1 = function($0) {
+Node.prototype.accept$1 = function($0) {
return this.accept(($0 && $0.is$Visitor()));
};
-tree_Node.prototype.getBeginToken$0 = function() {
+Node.prototype.getBeginToken$0 = function() {
return this.getBeginToken();
};
-tree_Node.prototype.getEndToken$0 = function() {
+Node.prototype.getEndToken$0 = function() {
return this.getEndToken();
};
-tree_Node.prototype.hashCode$0 = function() {
+Node.prototype.hashCode$0 = function() {
return this.hashCode();
};
-tree_Node.prototype.toString$0 = function() {
+Node.prototype.toString$0 = function() {
return this.toString();
};
// ********** Code for ClassNode **************
@@ -6206,9 +6206,9 @@ function ClassNode(name, superclass, interfaces, beginToken, extendsKeyword, end
this.extendsKeyword = extendsKeyword;
this.endToken = endToken;
// Initializers done
- tree_Node.call(this);
+ Node.call(this);
}
-$inherits(ClassNode, tree_Node);
+$inherits(ClassNode, Node);
ClassNode.prototype.is$ClassNode = function(){return this;};
ClassNode.prototype.get$name = function() { return this.name; };
ClassNode.prototype.get$interfaces = function() { return this.interfaces; };
@@ -6236,34 +6236,34 @@ ClassNode.prototype.getBeginToken$0 = function() {
ClassNode.prototype.getEndToken$0 = function() {
return this.getEndToken();
};
-// ********** Code for tree_Expression **************
-function tree_Expression() {
+// ********** Code for Expression **************
+function Expression() {
// Initializers done
- tree_Node.call(this);
+ Node.call(this);
}
-$inherits(tree_Expression, tree_Node);
-tree_Expression.prototype.is$tree_Expression = function(){return this;};
-// ********** Code for tree_Statement **************
-function tree_Statement() {
+$inherits(Expression, Node);
+Expression.prototype.is$Expression = function(){return this;};
+// ********** Code for Statement **************
+function Statement() {
// Initializers done
- tree_Node.call(this);
+ Node.call(this);
}
-$inherits(tree_Statement, tree_Node);
-tree_Statement.prototype.is$tree_Statement = function(){return this;};
+$inherits(Statement, Node);
+Statement.prototype.is$Statement = function(){return this;};
// ********** Code for Send **************
function Send(receiver, selector, argumentsNode) {
this.receiver = receiver;
this.selector = selector;
this.argumentsNode = argumentsNode;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
Send.postfix$ctor = function(receiver, selector) {
this.receiver = receiver;
this.selector = selector;
this.argumentsNode = const$211/*const Postfix()*/;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
Send.postfix$ctor.prototype = Send.prototype;
Send.prefix$ctor = function(receiver, selector) {
@@ -6271,10 +6271,10 @@ Send.prefix$ctor = function(receiver, selector) {
this.selector = selector;
this.argumentsNode = const$210/*const Prefix()*/;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
Send.prefix$ctor.prototype = Send.prototype;
-$inherits(Send, tree_Expression);
+$inherits(Send, Expression);
Send.prototype.is$Send = function(){return this;};
Send.prototype.get$arguments = function() {
return this.argumentsNode.nodes;
@@ -6303,9 +6303,9 @@ Send.prototype.getEndToken = function() {
if (this.argumentsNode != null) token = this.argumentsNode.getEndToken();
if (token != null) return token;
if (this.selector != null) {
- return (($0 = this.selector.getEndToken()) && $0.is$scanner_Token());
+ return (($0 = this.selector.getEndToken()) && $0.is$Token());
}
- return (($0 = this.receiver.getBeginToken()) && $0.is$scanner_Token());
+ return (($0 = this.receiver.getBeginToken()) && $0.is$Token());
}
Send.prototype.accept$1 = function($0) {
return this.accept(($0 && $0.is$Visitor()));
@@ -6349,14 +6349,14 @@ function NodeList(beginToken, nodes, endToken, delimiter) {
this.endToken = endToken;
this.delimiter = delimiter;
// Initializers done
- tree_Node.call(this);
+ Node.call(this);
}
NodeList.singleton$ctor = function(node) {
// Initializers done
NodeList.call(this, null, LinkFactory.Link$factory(node));
}
NodeList.singleton$ctor.prototype = NodeList.prototype;
-$inherits(NodeList, tree_Node);
+$inherits(NodeList, Node);
NodeList.prototype.is$NodeList = function(){return this;};
NodeList.prototype.accept = function(visitor) {
return visitor.visitNodeList(this);
@@ -6368,10 +6368,10 @@ NodeList.prototype.getBeginToken = function() {
for (var link = this.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
if (link.get$head().getBeginToken$0() != null) {
- return (($0 = link.get$head().getBeginToken$0()) && $0.is$scanner_Token());
+ return (($0 = link.get$head().getBeginToken$0()) && $0.is$Token());
}
if (link.get$head().getEndToken$0() != null) {
- return (($0 = link.get$head().getEndToken$0()) && $0.is$scanner_Token());
+ return (($0 = link.get$head().getEndToken$0()) && $0.is$Token());
}
}
}
@@ -6383,8 +6383,8 @@ NodeList.prototype.getEndToken = function() {
if (this.nodes != null) {
var link = this.nodes;
while (!$notnull_bool(link.get$tail().isEmpty$0())) link = (($0 = link.get$tail()) && $0.is$Link$Node());
- if (link.get$head().getEndToken$0() != null) return (($0 = link.get$head().getEndToken$0()) && $0.is$scanner_Token());
- if (link.get$head().getBeginToken$0() != null) return (($0 = link.get$head().getBeginToken$0()) && $0.is$scanner_Token());
+ if (link.get$head().getEndToken$0() != null) return (($0 = link.get$head().getEndToken$0()) && $0.is$Token());
+ if (link.get$head().getBeginToken$0() != null) return (($0 = link.get$head().getBeginToken$0()) && $0.is$Token());
}
return this.beginToken;
}
@@ -6401,9 +6401,9 @@ NodeList.prototype.getEndToken$0 = function() {
function Block(statements) {
this.statements = statements;
// Initializers done
- tree_Statement.call(this);
+ Statement.call(this);
}
-$inherits(Block, tree_Statement);
+$inherits(Block, Statement);
Block.prototype.accept = function(visitor) {
return visitor.visitBlock(this);
}
@@ -6430,9 +6430,9 @@ function If(condition, thenPart, elsePart, ifToken, elseToken) {
this.ifToken = ifToken;
this.elseToken = elseToken;
// Initializers done
- tree_Statement.call(this);
+ Statement.call(this);
}
-$inherits(If, tree_Statement);
+$inherits(If, Statement);
If.prototype.get$hasElsePart = function() {
return this.elsePart != null;
}
@@ -6463,9 +6463,9 @@ function For(initializer, condition, update, body, forToken) {
this.body = body;
this.forToken = forToken;
// Initializers done
- tree_Statement.call(this);
+ Statement.call(this);
}
-$inherits(For, tree_Statement);
+$inherits(For, Statement);
For.prototype.accept = function(visitor) {
return visitor.visitFor(this);
}
@@ -6491,9 +6491,9 @@ function FunctionExpression(name, parameters, body, returnType) {
this.body = body;
this.returnType = returnType;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
-$inherits(FunctionExpression, tree_Expression);
+$inherits(FunctionExpression, Expression);
FunctionExpression.prototype.is$FunctionExpression = function(){return this;};
FunctionExpression.prototype.get$name = function() { return this.name; };
FunctionExpression.prototype.get$parameters = function() { return this.parameters; };
@@ -6521,9 +6521,9 @@ function Literal(token, handler) {
this.token = token;
this.handler = handler;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
-$inherits(Literal, tree_Expression);
+$inherits(Literal, Expression);
Literal.prototype.getBeginToken = function() {
return this.token;
}
@@ -6541,7 +6541,7 @@ function Literal$SourceString(token, handler) {
this.token = token;
this.handler = handler;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
$inherits(Literal$SourceString, Literal);
// ********** Code for Literal$bool **************
@@ -6549,7 +6549,7 @@ function Literal$bool(token, handler) {
this.token = token;
this.handler = handler;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
$inherits(Literal$bool, Literal);
// ********** Code for Literal$double **************
@@ -6557,7 +6557,7 @@ function Literal$double(token, handler) {
this.token = token;
this.handler = handler;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
$inherits(Literal$double, Literal);
// ********** Code for Literal$int **************
@@ -6565,7 +6565,7 @@ function Literal$int(token, handler) {
this.token = token;
this.handler = handler;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
$inherits(Literal$int, Literal);
// ********** Code for LiteralInt **************
@@ -6655,42 +6655,42 @@ LiteralString.prototype.accept = function(visitor) {
LiteralString.prototype.accept$1 = function($0) {
return this.accept(($0 && $0.is$Visitor()));
};
-// ********** Code for tree_Identifier **************
-function tree_Identifier(token) {
+// ********** Code for Identifier **************
+function Identifier(token) {
this.token = token;
// Initializers done
- tree_Expression.call(this);
+ Expression.call(this);
}
-$inherits(tree_Identifier, tree_Expression);
-tree_Identifier.prototype.is$tree_Identifier = function(){return this;};
-tree_Identifier.prototype.get$source = function() {
+$inherits(Identifier, Expression);
+Identifier.prototype.is$Identifier = function(){return this;};
+Identifier.prototype.get$source = function() {
var $0;
return (($0 = this.token.get$value()) && $0.is$SourceString());
}
-tree_Identifier.prototype.accept = function(visitor) {
+Identifier.prototype.accept = function(visitor) {
return visitor.visitIdentifier(this);
}
-tree_Identifier.prototype.getBeginToken = function() {
+Identifier.prototype.getBeginToken = function() {
return this.token;
}
-tree_Identifier.prototype.getEndToken = function() {
+Identifier.prototype.getEndToken = function() {
return this.token;
}
-tree_Identifier.prototype.accept$1 = function($0) {
+Identifier.prototype.accept$1 = function($0) {
return this.accept(($0 && $0.is$Visitor()));
};
-tree_Identifier.prototype.getBeginToken$0 = function() {
+Identifier.prototype.getBeginToken$0 = function() {
return this.getBeginToken();
};
-tree_Identifier.prototype.getEndToken$0 = function() {
+Identifier.prototype.getEndToken$0 = function() {
return this.getEndToken();
};
// ********** Code for Operator **************
function Operator(token) {
// Initializers done
- tree_Identifier.call(this, token);
+ Identifier.call(this, token);
}
-$inherits(Operator, tree_Identifier);
+$inherits(Operator, Identifier);
Operator.prototype.is$Operator = function(){return this;};
Operator.prototype.accept = function(visitor) {
return visitor.visitOperator(this);
@@ -6704,9 +6704,9 @@ function Return(beginToken, endToken, expression) {
this.endToken = endToken;
this.expression = expression;
// Initializers done
- tree_Statement.call(this);
+ Statement.call(this);
}
-$inherits(Return, tree_Statement);
+$inherits(Return, Statement);
Return.prototype.get$hasExpression = function() {
return this.expression != null;
}
@@ -6728,32 +6728,32 @@ Return.prototype.getBeginToken$0 = function() {
Return.prototype.getEndToken$0 = function() {
return this.getEndToken();
};
-// ********** Code for tree_ExpressionStatement **************
-function tree_ExpressionStatement(expression, endToken) {
+// ********** Code for ExpressionStatement **************
+function ExpressionStatement(expression, endToken) {
this.expression = expression;
this.endToken = endToken;
// Initializers done
- tree_Statement.call(this);
+ Statement.call(this);
}
-$inherits(tree_ExpressionStatement, tree_Statement);
-tree_ExpressionStatement.prototype.is$tree_ExpressionStatement = function(){return this;};
-tree_ExpressionStatement.prototype.accept = function(visitor) {
+$inherits(ExpressionStatement, Statement);
+ExpressionStatement.prototype.is$ExpressionStatement = function(){return this;};
+ExpressionStatement.prototype.accept = function(visitor) {
return visitor.visitExpressionStatement(this);
}
-tree_ExpressionStatement.prototype.getBeginToken = function() {
+ExpressionStatement.prototype.getBeginToken = function() {
var $0;
- return (($0 = this.expression.getBeginToken()) && $0.is$scanner_Token());
+ return (($0 = this.expression.getBeginToken()) && $0.is$Token());
}
-tree_ExpressionStatement.prototype.getEndToken = function() {
+ExpressionStatement.prototype.getEndToken = function() {
return this.endToken;
}
-tree_ExpressionStatement.prototype.accept$1 = function($0) {
+ExpressionStatement.prototype.accept$1 = function($0) {
return this.accept(($0 && $0.is$Visitor()));
};
-tree_ExpressionStatement.prototype.getBeginToken$0 = function() {
+ExpressionStatement.prototype.getBeginToken$0 = function() {
return this.getBeginToken();
};
-tree_ExpressionStatement.prototype.getEndToken$0 = function() {
+ExpressionStatement.prototype.getEndToken$0 = function() {
return this.getEndToken();
};
// ********** Code for Throw **************
@@ -6762,9 +6762,9 @@ function Throw(expression, throwToken, endToken) {
this.throwToken = throwToken;
this.endToken = endToken;
// Initializers done
- tree_Statement.call(this);
+ Statement.call(this);
}
-$inherits(Throw, tree_Statement);
+$inherits(Throw, Statement);
Throw.prototype.accept = function(visitor) {
return visitor.visitThrow(this);
}
@@ -6787,9 +6787,9 @@ Throw.prototype.getEndToken$0 = function() {
function TypeAnnotation(typeName) {
this.typeName = typeName;
// Initializers done
- tree_Node.call(this);
+ Node.call(this);
}
-$inherits(TypeAnnotation, tree_Node);
+$inherits(TypeAnnotation, Node);
TypeAnnotation.prototype.is$TypeAnnotation = function(){return this;};
TypeAnnotation.prototype.get$typeName = function() { return this.typeName; };
TypeAnnotation.prototype.accept = function(visitor) {
@@ -6797,11 +6797,11 @@ TypeAnnotation.prototype.accept = function(visitor) {
}
TypeAnnotation.prototype.getBeginToken = function() {
var $0;
- return (($0 = this.typeName.getBeginToken()) && $0.is$scanner_Token());
+ return (($0 = this.typeName.getBeginToken()) && $0.is$Token());
}
TypeAnnotation.prototype.getEndToken = function() {
var $0;
- return (($0 = this.typeName.getEndToken()) && $0.is$scanner_Token());
+ return (($0 = this.typeName.getEndToken()) && $0.is$Token());
}
TypeAnnotation.prototype.accept$1 = function($0) {
return this.accept(($0 && $0.is$Visitor()));
@@ -6819,9 +6819,9 @@ function VariableDefinitions(type, modifiers, definitions, endToken) {
this.definitions = definitions;
this.endToken = endToken;
// Initializers done
- tree_Statement.call(this);
+ Statement.call(this);
}
-$inherits(VariableDefinitions, tree_Statement);
+$inherits(VariableDefinitions, Statement);
VariableDefinitions.prototype.is$VariableDefinitions = function(){return this;};
VariableDefinitions.prototype.get$type = function() { return this.type; };
VariableDefinitions.prototype.accept = function(visitor) {
@@ -6993,12 +6993,12 @@ Unparser.prototype.add$1 = function($0) {
return this.add(($0 && $0.is$SourceString()));
};
Unparser.prototype.visit$1 = function($0) {
- return this.visit(($0 && $0.is$tree_Node()));
+ return this.visit(($0 && $0.is$Node()));
};
// ********** Code for top level **************
function firstBeginToken(first, second) {
var $0;
- return (($0 = (first != null) ? first.getBeginToken() : second.getBeginToken()) && $0.is$scanner_Token());
+ return (($0 = (first != null) ? first.getBeginToken() : second.getBeginToken()) && $0.is$Token());
}
// ********** Library elements **************
// ********** Code for ElementKind **************
@@ -7111,9 +7111,9 @@ ClassElement.prototype.resolve$1 = function($0) {
function getType(annotation, types) {
var $0;
if (annotation == null || annotation.typeName == null) {
- return (($0 = types.dynamicType) && $0.is$leg_Type());
+ return (($0 = types.dynamicType) && $0.is$Type());
}
- return (($0 = types.lookup$1(annotation.typeName.get$source())) && $0.is$leg_Type());
+ return (($0 = types.lookup$1(annotation.typeName.get$source())) && $0.is$Type());
}
// ********** Library ssa **************
// ********** Code for SsaBuilderTask **************
@@ -7134,7 +7134,7 @@ SsaBuilderTask.prototype.build = function(tree, elements) {
var graph = $this.compileMethod(function_.parameters, function_.body, elements);
$assert(graph.isValid(), "graph.isValid()", "builder.dart", 14, 14);
if (false/*null.GENERATE_SSA_TRACE*/) {
- var name = (($0 = function_.name) && $0.is$tree_Identifier());
+ var name = (($0 = function_.name) && $0.is$Identifier());
HTracer.HTracer$singleton$factory().traceCompilation(name.get$source().toString());
HTracer.HTracer$singleton$factory().traceGraph('builder', graph);
}
@@ -7207,10 +7207,10 @@ SsaBuilder.prototype.visitParameters = function(parameters) {
var container = (($0 = link.get$head()) && $0.is$VariableDefinitions());
var identifierLink = container.definitions.nodes;
$assert(!$notnull_bool(identifierLink.isEmpty()) && $notnull_bool(identifierLink.get$tail().isEmpty$0()), "!identifierLink.isEmpty() && identifierLink.tail.isEmpty()", "builder.dart", 115, 14);
- if (!(identifierLink.get$head() instanceof tree_Identifier)) {
+ if (!(identifierLink.get$head() instanceof Identifier)) {
this.compiler.unimplemented("SsaBuilder.visitParameters non-identifier");
}
- var parameterId = (($0 = identifierLink.get$head()) && $0.is$tree_Identifier());
+ var parameterId = (($0 = identifierLink.get$head()) && $0.is$Identifier());
var element = (($0 = this.elements.$index(parameterId)) && $0.is$Element());
var parameterInstruction = new HParameter(parameterIndex++);
this.definitions.$setindex(element, parameterInstruction);
@@ -7221,7 +7221,7 @@ SsaBuilder.prototype.visitBlock = function(node) {
var $0;
for (var link = node.statements.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- this.visit((($0 = link.get$head()) && $0.is$tree_Node()));
+ this.visit((($0 = link.get$head()) && $0.is$Node()));
if ($notnull_bool(this.isAborted())) {
if (!this.stack.isEmpty()) this.compiler.cancel('non-empty instruction stack');
return;
@@ -7408,7 +7408,7 @@ SsaBuilder.prototype.visitSend = function(node) {
}
var arguments = [];
for (; !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- this.visit((($0 = link.get$head()) && $0.is$tree_Node()));
+ this.visit((($0 = link.get$head()) && $0.is$Node()));
arguments.add$1(this.pop());
}
if (element.kind === const$204/*ElementKind.FOREIGN*/) {
@@ -7417,7 +7417,7 @@ SsaBuilder.prototype.visitSend = function(node) {
this.push(new HInvokeForeign(element, arguments, this.unquote(literal)));
}
else {
- var selector = (($0 = node.selector) && $0.is$tree_Identifier());
+ var selector = (($0 = node.selector) && $0.is$Identifier());
this.push(new HInvoke(element, arguments));
}
}
@@ -7441,7 +7441,7 @@ SsaBuilder.prototype.visitNodeList = function(node) {
var $0;
for (var link = node.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- this.visit((($0 = link.get$head()) && $0.is$tree_Node()));
+ this.visit((($0 = link.get$head()) && $0.is$Node()));
}
}
SsaBuilder.prototype.visitOperator = function(node) {
@@ -7472,7 +7472,7 @@ SsaBuilder.prototype.updateDefinition = function(node) {
}
var link = node.get$arguments();
$assert(!$notnull_bool(link.isEmpty()) && $notnull_bool(link.get$tail().isEmpty$0()), "!link.isEmpty() && link.tail.isEmpty()", "builder.dart", 438, 12);
- this.visit((($0 = link.get$head()) && $0.is$tree_Node()));
+ this.visit((($0 = link.get$head()) && $0.is$Node()));
var value = this.pop();
this.definitions.$setindex(this.elements.$index(node), value);
return value;
@@ -7481,8 +7481,8 @@ SsaBuilder.prototype.visitVariableDefinitions = function(node) {
var $0;
for (var link = node.definitions.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- var definition = (($0 = link.get$head()) && $0.is$tree_Node());
- if ((definition instanceof tree_Identifier)) {
+ var definition = (($0 = link.get$head()) && $0.is$Node());
+ if ((definition instanceof Identifier)) {
this.compiler.unimplemented("SsaBuilder.visitVariableDefinitions without initial value");
}
else {
@@ -7495,7 +7495,7 @@ SsaBuilder.prototype.add$1 = function($0) {
return this.add(($0 && $0.is$HInstruction()));
};
SsaBuilder.prototype.visit$1 = function($0) {
- return this.visit(($0 && $0.is$tree_Node()));
+ return this.visit(($0 && $0.is$Node()));
};
// ********** Code for SsaCodeGeneratorTask **************
function SsaCodeGeneratorTask(compiler) {
@@ -7519,7 +7519,7 @@ SsaCodeGeneratorTask.prototype.generate = function(tree, graph) {
var name = (($0 = parameter.definitions.nodes.get$head().get$source()) && $0.is$SourceString());
parameterNames.add(JsNames.getValid(('' + name + '')));
}
- var name = (($0 = function_.name) && $0.is$tree_Identifier());
+ var name = (($0 = function_.name) && $0.is$Identifier());
if (false/*null.GENERATE_SSA_TRACE*/) {
HTracer.HTracer$singleton$factory().traceGraph("codegen", graph);
}
@@ -7573,7 +7573,7 @@ SsaCodeGenerator.prototype.temporary = function(instruction) {
if (name != null) return name;
var prefix = 't';
if (!this.prefixes.containsKey(prefix)) this.prefixes.$setindex(prefix, 0);
- return this.newName(id, ('' + prefix + '' + (($0 = this.prefixes).$setindex(prefix, ($1 = $0.$index(prefix)) + 1), $1) + ''));
+ return this.newName(id, ('' + prefix + '' + ((($0 = this.prefixes).$setindex(prefix, ($1 = $0.$index(prefix)) + 1), $1)) + ''));
}
SsaCodeGenerator.prototype.local = function(local) {
var $0, $1;
@@ -7586,7 +7586,7 @@ SsaCodeGenerator.prototype.local = function(local) {
return this.newName(id, prefix);
}
else {
- return this.newName(id, ('' + prefix + '_' + (($0 = this.prefixes).$setindex(prefix, ($1 = $0.$index(prefix)) + 1), $1) + ''));
+ return this.newName(id, ('' + prefix + '_' + ((($0 = this.prefixes).$setindex(prefix, ($1 = $0.$index(prefix)) + 1), $1)) + ''));
}
}
SsaCodeGenerator.prototype.newName = function(id, name) {
@@ -8285,7 +8285,7 @@ HInstruction.computeDependsOnFlags = function(flags) {
return flags << 1/*HInstruction.FLAG_CHANGES_COUNT*/;
}
HInstruction.prototype.getChangesFlags = function() {
- return this.flags & (1.0)/*((1 << FLAG_CHANGES_COUNT) - 1)*/;
+ return this.flags & (1)/*((1 << FLAG_CHANGES_COUNT) - 1)*/;
}
HInstruction.prototype.hasSideEffects = function() {
return this.getChangesFlags() != 0;
@@ -8294,10 +8294,10 @@ HInstruction.prototype.prepareGvn = function() {
this.setAllSideEffects();
}
HInstruction.prototype.setAllSideEffects = function() {
- this.flags |= (1.0)/*((1 << FLAG_CHANGES_COUNT) - 1)*/;
+ this.flags |= (1)/*((1 << FLAG_CHANGES_COUNT) - 1)*/;
}
HInstruction.prototype.clearAllSideEffects = function() {
- this.flags &= -2.0/*~((1 << FLAG_CHANGES_COUNT) - 1)*/;
+ this.flags &= -2/*~((1 << FLAG_CHANGES_COUNT) - 1)*/;
}
HInstruction.prototype.generateAtUseSite = function() {
return this.getFlag(2/*HInstruction.FLAG_GENERATE_AT_USE_SITE*/);
@@ -9755,7 +9755,7 @@ ResolverTask.prototype.resolveType = function(tree) {
);
}
ResolverTask.prototype.resolve$1 = function($0) {
- return this.resolve(($0 && $0.is$tree_Node()));
+ return this.resolve(($0 && $0.is$Node()));
};
// ********** Code for ErrorMessages **************
function ErrorMessages() {}
@@ -9841,7 +9841,7 @@ ResolverVisitor.prototype.potentiallyMapOperatorToMethodName = function(name) {
ResolverVisitor.prototype.visitSend = function(node) {
var $0;
this.visit(node.receiver);
- var identifier = (($0 = node.selector) && $0.is$tree_Identifier());
+ var identifier = (($0 = node.selector) && $0.is$Identifier());
var name = this.potentiallyMapOperatorToMethodName(identifier.get$source());
var target = this.context.lookup(name);
if (target == null) this.fail(node, ErrorMessages.cannotResolve(name));
@@ -9851,7 +9851,7 @@ ResolverVisitor.prototype.visitSend = function(node) {
ResolverVisitor.prototype.visitSendSet = function(node) {
var $0;
var receiver = (($0 = this.visit(node.receiver)) && $0.is$Element());
- var selector = (($0 = node.selector) && $0.is$tree_Identifier());
+ var selector = (($0 = node.selector) && $0.is$Identifier());
if (receiver != null) {
this.compiler.unimplemented('Resolver: property access');
}
@@ -9876,7 +9876,7 @@ ResolverVisitor.prototype.visitNodeList = function(node) {
var $0;
for (var link = node.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- this.visit((($0 = link.get$head()) && $0.is$tree_Node()));
+ this.visit((($0 = link.get$head()) && $0.is$Node()));
}
}
ResolverVisitor.prototype.visitOperator = function(node) {
@@ -9922,7 +9922,7 @@ ResolverVisitor.prototype.useElement = function(node, element) {
return element;
}
ResolverVisitor.prototype.visit$1 = function($0) {
- return this.visit(($0 && $0.is$tree_Node()));
+ return this.visit(($0 && $0.is$Node()));
};
// ********** Code for ClassResolverVisitor **************
function ClassResolverVisitor(compiler) {
@@ -9939,7 +9939,7 @@ ClassResolverVisitor.prototype.visitClassNode = function(node) {
element.supertype = this.visit(node.superclass);
for (var link = node.interfaces.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- element.interfaces = (($0 = element.interfaces.prepend(this.visit((($0 = link.get$head()) && $0.is$tree_Node())))) && $0.is$Link$Type());
+ element.interfaces = (($0 = element.interfaces.prepend(this.visit((($0 = link.get$head()) && $0.is$Node())))) && $0.is$Link$Type());
}
return element.computeType(this.compiler, null);
}
@@ -9955,17 +9955,17 @@ ClassResolverVisitor.prototype.visitTypeAnnotation = function(node) {
}
else {
this.compiler.resolver.toResolve.add(element);
- return (($0 = element.computeType(this.compiler, null)) && $0.is$leg_Type());
+ return (($0 = element.computeType(this.compiler, null)) && $0.is$Type());
}
return null;
}
ClassResolverVisitor.prototype.visit = function(node) {
var $0;
if (node == null) return null;
- return (($0 = node.accept(this)) && $0.is$leg_Type());
+ return (($0 = node.accept(this)) && $0.is$Type());
}
ClassResolverVisitor.prototype.visit$1 = function($0) {
- return this.visit(($0 && $0.is$tree_Node()));
+ return this.visit(($0 && $0.is$Node()));
};
// ********** Code for VariableDefinitionsVisitor **************
function VariableDefinitionsVisitor(definitions, resolver) {
@@ -9980,8 +9980,8 @@ VariableDefinitionsVisitor.prototype.visitSendSet = function(node) {
if (node.receiver != null) {
this.resolver.compiler.unimplemented("receiver on a variable definition");
}
- var selector = (($0 = node.selector) && $0.is$tree_Identifier());
- this.resolver.visit((($0 = node.get$arguments().get$head()) && $0.is$tree_Node()));
+ var selector = (($0 = node.selector) && $0.is$Identifier());
+ this.resolver.visit((($0 = node.get$arguments().get$head()) && $0.is$Node()));
return (($0 = this.visit(node.selector)) && $0.is$SourceString());
}
VariableDefinitionsVisitor.prototype.visitIdentifier = function(node) {
@@ -9991,9 +9991,9 @@ VariableDefinitionsVisitor.prototype.visitNodeList = function(node) {
var $0;
for (var link = node.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- var name = (($0 = this.visit((($0 = link.get$head()) && $0.is$tree_Node()))) && $0.is$SourceString());
- var element = new VariableElement((($0 = link.get$head()) && $0.is$tree_Node()), this.definitions.type, name, this.resolver.context.enclosingElement);
- var existing = this.resolver.defineElement((($0 = link.get$head()) && $0.is$tree_Node()), element);
+ var name = (($0 = this.visit((($0 = link.get$head()) && $0.is$Node()))) && $0.is$SourceString());
+ var element = new VariableElement((($0 = link.get$head()) && $0.is$Node()), this.definitions.type, name, this.resolver.context.enclosingElement);
+ var existing = this.resolver.defineElement((($0 = link.get$head()) && $0.is$Node()), element);
if ($ne(existing, element)) {
this.resolver.fail(node, ErrorMessages.duplicateDefinition(link.get$head()));
}
@@ -10003,20 +10003,13 @@ VariableDefinitionsVisitor.prototype.visit = function(node) {
return node.accept(this);
}
VariableDefinitionsVisitor.prototype.visit$1 = function($0) {
- return this.visit(($0 && $0.is$tree_Node()));
+ return this.visit(($0 && $0.is$Node()));
};
// ********** Code for Scope **************
function Scope(parent) {
// Initializers done
Scope.enclosing$ctor.call(this, parent, parent.enclosingElement);
}
-Scope.enclosing$ctor = function(parent, enclosingElement) {
- this.parent = parent;
- this.enclosingElement = enclosingElement;
- this.elements = $map([]);
- // Initializers done
-}
-Scope.enclosing$ctor.prototype = Scope.prototype;
Scope.top$ctor = function() {
this.parent = null;
this.elements = const$212/*const {}*/;
@@ -10024,6 +10017,13 @@ Scope.top$ctor = function() {
// Initializers done
}
Scope.top$ctor.prototype = Scope.prototype;
+Scope.enclosing$ctor = function(parent, enclosingElement) {
+ this.parent = parent;
+ this.enclosingElement = enclosingElement;
+ this.elements = $map([]);
+ // Initializers done
+}
+Scope.enclosing$ctor.prototype = Scope.prototype;
Scope.prototype.get$parent = function() { return this.parent; };
Scope.prototype.lookup = function(name) {
var $0;
@@ -10113,7 +10113,7 @@ TypeWarning.prototype.getMessage = function() {
var $list = this.arguments;
for (var $i0 = 0;$i0 < $list.length; $i0++) {
var argument = $list.$index($i0);
- this.message = this.message.replaceAll(('#{' + position++ + '}'), argument.toString$0());
+ this.message = this.message.replaceAll(('#{' + (position++) + '}'), argument.toString$0());
}
}
return this.message;
@@ -10130,7 +10130,7 @@ SimpleType.named$ctor = function(name) {
// Initializers done
}
SimpleType.named$ctor.prototype = SimpleType.prototype;
-SimpleType.prototype.is$leg_Type = function(){return this;};
+SimpleType.prototype.is$Type = function(){return this;};
SimpleType.prototype.get$name = function() { return this.name; };
SimpleType.prototype.get$element = function() { return this.element; };
SimpleType.prototype.toString = function() {
@@ -10146,7 +10146,7 @@ function FunctionType(returnType, parameterTypes) {
// Initializers done
}
FunctionType.prototype.is$FunctionType = function(){return this;};
-FunctionType.prototype.is$leg_Type = function(){return this;};
+FunctionType.prototype.is$Type = function(){return this;};
FunctionType.prototype.get$returnType = function() { return this.returnType; };
FunctionType.prototype.toString = function() {
var sb = new StringBufferImpl("");
@@ -10229,7 +10229,7 @@ TypeCheckerVisitor.prototype.typeWithDefault = function(node, defaultValue) {
TypeCheckerVisitor.prototype.type = function(node) {
var $0;
if (node == null) this.fail(null, 'unexpected node: null');
- var result = (($0 = node.accept(this)) && $0.is$leg_Type());
+ var result = (($0 = node.accept(this)) && $0.is$Type());
return result;
}
TypeCheckerVisitor.prototype.get$type = function() {
@@ -10275,7 +10275,7 @@ TypeCheckerVisitor.prototype.visitIf = function(node) {
TypeCheckerVisitor.prototype.visitSend = function(node) {
var $0;
var target = this.elements.$index(node);
- var selector = (($0 = node.selector) && $0.is$tree_Identifier());
+ var selector = (($0 = node.selector) && $0.is$Identifier());
if (target != null) {
var name = selector.get$source();
if ($notnull_bool($eq(name, const$213/*const SourceString('+')*/)) || $notnull_bool($eq(name, const$240/*const SourceString('=')*/)) || $notnull_bool($eq(name, const$215/*const SourceString('-')*/)) || $notnull_bool($eq(name, const$217/*const SourceString('*')*/)) || $notnull_bool($eq(name, const$219/*const SourceString('/')*/)) || $notnull_bool($eq(name, const$225/*const SourceString('<')*/)) || $notnull_bool($eq(name, const$221/*const SourceString('~/')*/))) {
@@ -10283,7 +10283,7 @@ TypeCheckerVisitor.prototype.visitSend = function(node) {
}
var targetType = target.computeType$2(this.compiler, this.types);
if ($notnull_bool(node.get$isPropertyAccess())) {
- return (targetType && targetType.is$leg_Type());
+ return (targetType && targetType.is$Type());
}
else if ($notnull_bool(node.get$isFunctionObjectInvocation())) {
this.fail(node);
@@ -10299,9 +10299,9 @@ TypeCheckerVisitor.prototype.visitSend = function(node) {
var formals = funType.parameterTypes;
var arguments = node.get$arguments();
while ((!$notnull_bool(formals.isEmpty())) && (!$notnull_bool(arguments.isEmpty()))) {
- var argument = (($0 = arguments.get$head()) && $0.is$tree_Node());
+ var argument = (($0 = arguments.get$head()) && $0.is$Node());
var argumentType = this.type(argument);
- this.checkAssignable(argument, argumentType, (($0 = formals.get$head()) && $0.is$leg_Type()));
+ this.checkAssignable(argument, argumentType, (($0 = formals.get$head()) && $0.is$Type()));
formals = (($0 = formals.get$tail()) && $0.is$Link$Type());
arguments = (($0 = arguments.get$tail()) && $0.is$Link$Node());
}
@@ -10309,7 +10309,7 @@ TypeCheckerVisitor.prototype.visitSend = function(node) {
this.compiler.reportWarning(node, 'missing argument');
}
if (!$notnull_bool(arguments.isEmpty())) {
- this.compiler.reportWarning((($0 = arguments.get$head()) && $0.is$tree_Node()), 'additional arguments');
+ this.compiler.reportWarning((($0 = arguments.get$head()) && $0.is$Node()), 'additional arguments');
}
return funType.returnType;
}
@@ -10321,8 +10321,8 @@ TypeCheckerVisitor.prototype.visitSend = function(node) {
TypeCheckerVisitor.prototype.visitSendSet = function(node) {
var $0;
this.compiler.ensure(node.get$arguments() != null && !$notnull_bool(node.get$arguments().isEmpty()));
- var targetType = (($0 = this.elements.$index(node).computeType$2(this.compiler, this.types)) && $0.is$leg_Type());
- var value = (($0 = node.get$arguments().get$head()) && $0.is$tree_Node());
+ var targetType = (($0 = this.elements.$index(node).computeType$2(this.compiler, this.types)) && $0.is$Type());
+ var value = (($0 = node.get$arguments().get$head()) && $0.is$Node());
this.checkAssignable(value, this.type(value), targetType);
return targetType;
}
@@ -10342,7 +10342,7 @@ TypeCheckerVisitor.prototype.visitNodeList = function(node) {
var $0;
for (var link = node.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- this.type((($0 = link.get$head()) && $0.is$tree_Node()));
+ this.type((($0 = link.get$head()) && $0.is$Node()));
}
return null;
}
@@ -10386,10 +10386,10 @@ TypeCheckerVisitor.prototype.visitVariableDefinitions = function(node) {
}
for (var link = node.definitions.nodes;
!$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$Node())) {
- var initialization = (($0 = link.get$head()) && $0.is$tree_Node());
- this.compiler.ensure((initialization instanceof tree_Identifier) || (initialization instanceof Send));
+ var initialization = (($0 = link.get$head()) && $0.is$Node());
+ this.compiler.ensure((initialization instanceof Identifier) || (initialization instanceof Send));
if ((initialization instanceof Send)) {
- var initializer = this.nonVoidType((($0 = link.get$head()) && $0.is$tree_Node()));
+ var initializer = this.nonVoidType((($0 = link.get$head()) && $0.is$Node()));
this.checkAssignable(node, type, initializer);
}
}
@@ -10417,7 +10417,7 @@ Universe.prototype.addGeneratedCode = function(element, code) {
function unreachable() {
$throw(const$267/*const Exception("Internal Error (Leg): UNREACHABLE")*/);
}
-function leg_compile(world) {
+function compile(world) {
var file = world.readFile(options.dartScript);
var script = new leg_Script(file);
var compiler = new WorldCompiler(world, script);
@@ -10693,18 +10693,18 @@ WorldGenerator.prototype.writeTypes = function(lib) {
for (var $i = 0;$i < $list.length; $i++) {
var type = $list.$index($i);
if ($notnull_bool(type.get$isUsed()) && $notnull_bool(type.get$isClass())) {
- this.writeType((type && type.is$Type()));
+ this.writeType((type && type.is$lang_Type()));
if ($notnull_bool(type.get$isGeneric())) {
var $list0 = this._orderValues(type._concreteTypes);
for (var $i0 = 0;$i0 < $list0.length; $i0++) {
var ct = $list0.$index($i0);
- this.writeType((ct && ct.is$Type()));
+ this.writeType((ct && ct.is$lang_Type()));
}
}
}
if ($notnull_bool(type.get$isFunction()) && type.varStubs != null) {
this.writer.comment(('// ********** Code for ' + type.get$jsname() + ' **************'));
- this._writeDynamicStubs((type && type.is$Type()));
+ this._writeDynamicStubs((type && type.is$lang_Type()));
}
if (type.typeCheckCode != null) {
this.writer.writeln(type.typeCheckCode);
@@ -10785,7 +10785,7 @@ WorldGenerator.prototype.writeType = function(type) {
var $list = this._orderValues(type.get$genericType()._concreteTypes);
for (var $i = 0;$i < $list.length; $i++) {
var ct = $list.$index($i);
- this._maybeIsTest(type, (ct && ct.is$Type()));
+ this._maybeIsTest(type, (ct && ct.is$lang_Type()));
}
}
if (type.get$interfaces() != null) {
@@ -10800,7 +10800,7 @@ WorldGenerator.prototype.writeType = function(type) {
var $list = this._orderValues(interface_.get$genericType()._concreteTypes);
for (var $i = 0;$i < $list.length; $i++) {
var ct = $list.$index($i);
- this._maybeIsTest(type, (ct && ct.is$Type()));
+ this._maybeIsTest(type, (ct && ct.is$lang_Type()));
}
}
var $list = interface_.get$interfaces();
@@ -10935,7 +10935,7 @@ WorldGenerator.prototype.useMapFactory = function() {
this.genMethod((($0 = m.get$members().$index(0)) && $0.is$Member()));
var c = factType.getConstructor$1('');
this.genMethod((c && c.is$Member()));
- return (factType && factType.is$Type());
+ return (factType && factType.is$lang_Type());
}
// ********** Code for BlockScope **************
function BlockScope(enclosingMethod, parent, reentrant) {
@@ -10998,7 +10998,7 @@ BlockScope.prototype.create = function(name, type, span, isFinal, isParameter) {
if (!$notnull_bool(isParameter)) {
var index = 0;
while ($notnull_bool(this._isDefinedInParent($assert_String(jsName)))) {
- jsName = ('' + name + '' + index++ + '');
+ jsName = ('' + name + '' + (index++) + '');
}
}
var ret = new Value(type, jsName, span, false);
@@ -11011,7 +11011,7 @@ BlockScope.prototype.declareParameter = function(p) {
}
BlockScope.prototype.declare = function(id) {
var type = this.enclosingMethod.method.resolveType(id.type, false);
- return this.create(id.name.name, (type && type.is$Type()), id.span, false, false);
+ return this.create(id.name.name, (type && type.is$lang_Type()), id.span, false, false);
}
BlockScope.prototype.getRethrow = function() {
var scope = this;
@@ -11352,7 +11352,7 @@ MethodGenerator.prototype.writeBody = function() {
}
}
}
- this.visitStatementsInBlock((body && body.is$Statement()));
+ this.visitStatementsInBlock((body && body.is$lang_Statement()));
}
MethodGenerator.prototype._writeInitializerCall = function(node) {
var contructorName = '';
@@ -11364,10 +11364,10 @@ MethodGenerator.prototype._writeInitializerCall = function(node) {
}
var target = null;
if ((targetExp instanceof SuperExpression)) {
- target = this._makeSuperValue((targetExp && targetExp.is$Node()));
+ target = this._makeSuperValue((targetExp && targetExp.is$lang_Node()));
}
else if ((targetExp instanceof ThisExpression)) {
- target = this._makeThisValue((targetExp && targetExp.is$Node()));
+ target = this._makeThisValue((targetExp && targetExp.is$lang_Node()));
}
else {
world.error('bad call in initializers', node.span);
@@ -11401,7 +11401,7 @@ MethodGenerator.prototype._makeArgs = function(arguments) {
else if ($notnull_bool(seenLabel)) {
world.error('bare argument can not follow named arguments', arg.get$span());
}
- args.add$1(this.visitValue((($0 = arg.get$value()) && $0.is$Expression())));
+ args.add$1(this.visitValue((($0 = arg.get$value()) && $0.is$lang_Expression())));
}
return new Arguments(arguments, args);
}
@@ -11456,7 +11456,7 @@ MethodGenerator.prototype.visitVoid = function(node) {
return this.visitValue(node);
}
MethodGenerator.prototype.visitDietStatement = function(node) {
- var parser = new Parser(node.span.file, false, false, false, node.span.start);
+ var parser = new lang_Parser(node.span.file, false, false, false, node.span.start);
this.visitStatementsInBlock(parser.block$0());
return false;
}
@@ -11475,7 +11475,7 @@ MethodGenerator.prototype.visitVariableDefinition = function(node) {
this.writer.write(', ');
}
var name = node.names.$index(i).get$name();
- var value = this.visitValue((($0 = node.values.$index(i)) && $0.is$Expression()));
+ var value = this.visitValue((($0 = node.values.$index(i)) && $0.is$lang_Expression()));
if ($notnull_bool(isFinal)) {
if ($notnull_bool(value == null)) {
world.error('no value specified for final variable', node.span);
@@ -11484,7 +11484,7 @@ MethodGenerator.prototype.visitVariableDefinition = function(node) {
if ($notnull_bool(thisType.get$isVar())) thisType = value.type;
}
}
- var val = this._scope.create($assert_String(name), (thisType && thisType.is$Type()), node.names.$index(i).get$span(), $assert_bool(isFinal), false);
+ var val = this._scope.create($assert_String(name), (thisType && thisType.is$lang_Type()), node.names.$index(i).get$span(), $assert_bool(isFinal), false);
if ($notnull_bool(value == null)) {
if ($notnull_bool(this._scope.reentrant)) {
this.writer.write(('' + val.code + ' = null'));
@@ -11505,7 +11505,7 @@ MethodGenerator.prototype.visitFunctionDefinition = function(node) {
var $0;
var name = world.toJsIdentifier(node.name.name);
var meth = this._makeLambdaMethod($assert_String(name), node);
- var funcValue = this._scope.create($assert_String(name), (($0 = meth.get$functionType()) && $0.is$Type()), this.method.get$definition().get$span(), true, false);
+ var funcValue = this._scope.create($assert_String(name), (($0 = meth.get$functionType()) && $0.is$lang_Type()), this.method.get$definition().get$span(), true, false);
meth.generator.writeDefinition$2(this.writer);
return false;
}
@@ -11619,7 +11619,7 @@ MethodGenerator.prototype.visitForStatement = function(node) {
for (var $i = 0;$i < $list.length; $i++) {
var s = $list.$index($i);
if ($notnull_bool(needsComma)) this.writer.write(', ');
- var sv = this.visitVoid((s && s.is$Expression()));
+ var sv = this.visitVoid((s && s.is$lang_Expression()));
this.writer.write($assert_String(sv.code));
needsComma = true;
}
@@ -11643,10 +11643,10 @@ MethodGenerator.prototype.visitForInStatement = function(node) {
var list = node.list.visit(this);
this._pushBlock(true);
var isFinal = this._isFinal(node.item.type);
- var item = this._scope.create($assert_String(itemName), (itemType && itemType.is$Type()), node.item.name.span, isFinal, false);
+ var item = this._scope.create($assert_String(itemName), (itemType && itemType.is$lang_Type()), node.item.name.span, isFinal, false);
var listVar = (list && list.is$Value());
if ($notnull_bool(list.needsTemp)) {
- listVar = this._scope.create('\$list', (($0 = list.type) && $0.is$Type()), null, false, false);
+ listVar = this._scope.create('\$list', (($0 = list.type) && $0.is$lang_Type()), null, false, false);
this.writer.writeln(('var ' + listVar.code + ' = ' + list.code + ';'));
}
if ($notnull_bool(list.type.get$isList())) {
@@ -11658,7 +11658,7 @@ MethodGenerator.prototype.visitForInStatement = function(node) {
else {
this._pushBlock(false);
var iterator = list.invoke$4(this, 'iterator', node.list, Arguments.get$EMPTY());
- var tmpi = this._scope.create('\$i', (($0 = iterator.type) && $0.is$Type()), null, false, false);
+ var tmpi = this._scope.create('\$i', (($0 = iterator.type) && $0.is$lang_Type()), null, false, false);
var hasNext = tmpi.invoke$4(this, 'hasNext', node.list, Arguments.get$EMPTY());
var next = tmpi.invoke$4(this, 'next', node.list, Arguments.get$EMPTY());
this.writer.enterBlock(('for (var ' + tmpi.code + ' = ' + iterator.code + '; ' + hasNext.code + '; ) {'));
@@ -11704,7 +11704,7 @@ MethodGenerator.prototype.visitTryStatement = function(node) {
var test = ex.instanceOf$3$isTrue$forceCheck(this, ex.type, catch_.get$exception().get$span(), false, true);
this.writer.writeln(('if (' + test.code + ') throw ' + ex.code + ';'));
}
- this.visitStatementsInBlock((($0 = node.catches.$index(0).body) && $0.is$Statement()));
+ this.visitStatementsInBlock((($0 = node.catches.$index(0).body) && $0.is$lang_Statement()));
this._popBlock();
}
else if (node.catches.length > 0) {
@@ -11745,7 +11745,7 @@ MethodGenerator.prototype.visitTryStatement = function(node) {
var tmptrace = this._scope.declare(catch_.trace);
this.writer.writeln(('var ' + tmptrace.code + ' = ' + trace.code + ';'));
}
- this.visitStatementsInBlock((($0 = catch_.body) && $0.is$Statement()));
+ this.visitStatementsInBlock((($0 = catch_.body) && $0.is$lang_Statement()));
this._popBlock();
if ($notnull_bool(tmp.type.get$isVarOrObject())) {
if (i + 1 < node.catches.length) {
@@ -11794,7 +11794,7 @@ MethodGenerator.prototype.visitSwitchStatement = function(node) {
this.writer.writeln('default:');
}
else {
- var value = this.visitValue((expr && expr.is$Expression()));
+ var value = this.visitValue((expr && expr.is$lang_Expression()));
this.writer.writeln(('case ' + value.code + ':'));
}
}
@@ -12103,14 +12103,14 @@ MethodGenerator.prototype.visitUnaryExpression = function(node) {
else {
var kind = (16/*TokenKind.INCR*/ == node.op.kind ? 42/*TokenKind.ADD*/ : 43/*TokenKind.SUB*/);
var operand = new LiteralExpression(1, new TypeReference(node.span, world.numType), '1', node.span);
- return this._visitAssign($assert_num(kind), node.self, (operand && operand.is$Expression()), node, to$call$1(null));
+ return this._visitAssign($assert_num(kind), node.self, (operand && operand.is$lang_Expression()), node, to$call$1(null));
}
case 19/*TokenKind.NOT*/:
if ($notnull_bool(value.type.get$isBool()) && $notnull_bool(value.get$isConst())) {
var newVal = !$notnull_bool(value.get$actualValue());
- return EvaluatedValue.EvaluatedValue$factory((($0 = value.type) && $0.is$Type()), newVal, ('' + newVal + ''), node.span);
+ return EvaluatedValue.EvaluatedValue$factory((($0 = value.type) && $0.is$lang_Type()), newVal, ('' + newVal + ''), node.span);
}
else {
var newVal = value.convertTo$3(this, world.nonNullBool, node);
@@ -12150,7 +12150,7 @@ MethodGenerator.prototype.visitPostfixExpression = function(node, isVoid) {
var kind = (16/*TokenKind.INCR*/ == node.op.kind) ? 42/*TokenKind.ADD*/ : 43/*TokenKind.SUB*/;
var operand = new LiteralExpression(1, new TypeReference(node.span, world.numType), '1', node.span);
var tmpleft = null, left = null;
- var ret = this._visitAssign($assert_num(kind), node.body, (operand && operand.is$Expression()), node, (function (l) {
+ var ret = this._visitAssign($assert_num(kind), node.body, (operand && operand.is$lang_Expression()), node, (function (l) {
if ($notnull_bool(isVoid)) {
return l;
}
@@ -12203,7 +12203,7 @@ MethodGenerator.prototype.visitNewExpression = function(node) {
var $list = node.arguments;
for (var $i = 0;$i < $list.length; $i++) {
var arg = $list.$index($i);
- if (!$notnull_bool(this.visitValue((($0 = arg.get$value()) && $0.is$Expression())).get$isConst())) {
+ if (!$notnull_bool(this.visitValue((($0 = arg.get$value()) && $0.is$lang_Expression())).get$isConst())) {
world.error('const constructor expects const arguments', arg.get$span());
}
}
@@ -12216,7 +12216,7 @@ MethodGenerator.prototype.visitListExpression = function(node) {
var $list = node.values;
for (var $i = 0;$i < $list.length; $i++) {
var item = $list.$index($i);
- var arg = this.visitValue((item && item.is$Expression()));
+ var arg = this.visitValue((item && item.is$lang_Expression()));
argValues.add$1(arg);
if ($notnull_bool(node.isConst)) {
if (!$notnull_bool(arg.get$isConst())) {
@@ -12238,7 +12238,7 @@ MethodGenerator.prototype.visitListExpression = function(node) {
var immutableList = world.get$coreimpl().types.$index('ImmutableList');
var immutableListCtor = immutableList.getConstructor$1('from');
var result = immutableListCtor.invoke$4(this, node, null, new Arguments(null, [value]));
- value = world.gen.globalForConst(ConstListValue.ConstListValue$factory((immutableList && immutableList.is$Type()), (argValues && argValues.is$List$EvaluatedValue()), ('const ' + code + ''), $assert_String(result.code), node.span), (argValues && argValues.is$List$Value()));
+ value = world.gen.globalForConst(ConstListValue.ConstListValue$factory((immutableList && immutableList.is$lang_Type()), (argValues && argValues.is$List$EvaluatedValue()), ('const ' + code + ''), $assert_String(result.code), node.span), (argValues && argValues.is$List$Value()));
}
return value;
}
@@ -12249,9 +12249,9 @@ MethodGenerator.prototype.visitMapExpression = function(node) {
var argsCode = [];
for (var i = 0;
i < node.items.length; i += 2) {
- var key = this.visitTypedValue((($0 = node.items.$index(i)) && $0.is$Expression()), world.stringType);
+ var key = this.visitTypedValue((($0 = node.items.$index(i)) && $0.is$lang_Expression()), world.stringType);
var valueItem = node.items.$index(i + 1);
- var value = this.visitValue((valueItem && valueItem.is$Expression()));
+ var value = this.visitValue((valueItem && valueItem.is$lang_Expression()));
argValues.add$1(key);
argValues.add$1(value);
if ($notnull_bool(node.isConst)) {
@@ -12277,7 +12277,7 @@ MethodGenerator.prototype.visitMapExpression = function(node) {
var immutableMapCtor = immutableMap.getConstructor$1('');
var argsValue = new Value(world.listType, argList, node.span, true);
var result = immutableMapCtor.invoke$4(this, node, null, new Arguments(null, [argsValue]));
- var value = ConstMapValue.ConstMapValue$factory((immutableMap && immutableMap.is$Type()), (argValues && argValues.is$List$EvaluatedValue()), code, $assert_String(result.code), node.span);
+ var value = ConstMapValue.ConstMapValue$factory((immutableMap && immutableMap.is$lang_Type()), (argValues && argValues.is$List$EvaluatedValue()), code, $assert_String(result.code), node.span);
return world.gen.globalForConst(value, (argValues && argValues.is$List$Value()));
}
return new Value(mapImplType, code, node.span, true);
@@ -12288,7 +12288,7 @@ MethodGenerator.prototype.visitConditionalExpression = function(node) {
var trueBranch = this.visitValue(node.trueBranch);
var falseBranch = this.visitValue(node.falseBranch);
var code = ('' + test.code + ' ? ' + trueBranch.code + ' : ' + falseBranch.code + '');
- return new Value(Type.union((($0 = trueBranch.type) && $0.is$Type()), (($0 = falseBranch.type) && $0.is$Type())), code, node.span, true);
+ return new Value(lang_Type.union((($0 = trueBranch.type) && $0.is$lang_Type()), (($0 = falseBranch.type) && $0.is$lang_Type())), code, node.span, true);
}
MethodGenerator.prototype.visitIsExpression = function(node) {
var value = this.visitValue(node.x);
@@ -12299,7 +12299,7 @@ MethodGenerator.prototype.visitParenExpression = function(node) {
var $0;
var body = this.visitValue(node.body);
if ($notnull_bool(body.get$isConst())) {
- return EvaluatedValue.EvaluatedValue$factory((($0 = body.type) && $0.is$Type()), body.get$actualValue(), ('(' + body.get$canonicalCode() + ')'), node.span);
+ return EvaluatedValue.EvaluatedValue$factory((($0 = body.type) && $0.is$lang_Type()), body.get$actualValue(), ('(' + body.get$canonicalCode() + ')'), node.span);
}
return new Value(body.type, ('(' + body.code + ')'), node.span, true);
}
@@ -12329,19 +12329,28 @@ MethodGenerator.prototype.visitSuperExpression = function(node) {
MethodGenerator.prototype.visitNullExpression = function(node) {
return EvaluatedValue.EvaluatedValue$factory(world.varType, null, 'null', null);
}
+MethodGenerator.prototype._isUnaryIncrement = function(item) {
+ if ((item instanceof UnaryExpression)) {
+ var u = (item && item.is$UnaryExpression());
+ return u.op.kind == 16/*TokenKind.INCR*/ || u.op.kind == 17/*TokenKind.DECR*/;
+ }
+ else {
+ return false;
+ }
+}
MethodGenerator.prototype.visitLiteralExpression = function(node) {
var $0;
var type = node.type.type;
- $assert($ne(type, null), "type != null", "gen.dart", 2119, 12);
+ $assert($ne(type, null), "type != null", "gen.dart", 2128, 12);
if (!!(($0 = node.value) && $0.is$List)) {
var items = [];
var $list = node.value;
for (var $i = node.value.iterator$0(); $i.hasNext$0(); ) {
var item = $i.next$0();
- var val = this.visitValue((item && item.is$Expression()));
+ var val = this.visitValue((item && item.is$lang_Expression()));
val.invoke$4(this, 'toString', item, Arguments.get$EMPTY());
var code = val.code;
- if ((item instanceof BinaryExpression) || (item instanceof ConditionalExpression)) {
+ if ((item instanceof BinaryExpression) || (item instanceof ConditionalExpression) || (item instanceof PostfixExpression) || $notnull_bool(this._isUnaryIncrement((item && item.is$lang_Expression())))) {
code = ('(' + code + ')');
}
items.add$1(code);
@@ -12365,7 +12374,7 @@ MethodGenerator.prototype.visitLiteralExpression = function(node) {
node.text = $assert_String(text);
}
}
- return EvaluatedValue.EvaluatedValue$factory((type && type.is$Type()), node.value, node.text, null);
+ return EvaluatedValue.EvaluatedValue$factory((type && type.is$lang_Type()), node.value, node.text, null);
}
MethodGenerator.prototype.visitPostfixExpression$1 = function($0) {
return this.visitPostfixExpression(($0 && $0.is$PostfixExpression()), false);
@@ -12625,7 +12634,7 @@ Library.prototype.findTypeByName = function(name) {
}
}
}
- return (ret && ret.is$Type());
+ return (ret && ret.is$lang_Type());
}
Library.prototype.lookup = function(name, span) {
var retType = this.findTypeByName(name);
@@ -12734,7 +12743,7 @@ _LibraryVisitor.prototype.addSource = function(source) {
return;
}
this.library.sources.add(source);
- var parser = new Parser(source, options.dietParse, false, false, 0);
+ var parser = new lang_Parser(source, options.dietParse, false, false, 0);
var unit = parser.compilationUnit();
unit.forEach((function (def) {
return def.visit$1($this);
@@ -12950,13 +12959,13 @@ Parameter.prototype.get$isOptional = function() {
return this.definition != null && this.definition.value != null;
}
Parameter.prototype.copyWithNewType$1 = function($0) {
- return this.copyWithNewType(($0 && $0.is$Type()));
+ return this.copyWithNewType(($0 && $0.is$lang_Type()));
};
Parameter.prototype.genValue$2 = function($0, $1) {
return this.genValue(($0 && $0.is$MethodMember()), ($1 && $1.is$MethodGenerator()));
};
Parameter.prototype.resolve$2 = function($0, $1) {
- return this.resolve(($0 && $0.is$Member()), ($1 && $1.is$Type()));
+ return this.resolve(($0 && $0.is$Member()), ($1 && $1.is$lang_Type()));
};
// ********** Code for Member **************
function Member(name, declaringType) {
@@ -13036,7 +13045,7 @@ Member.prototype.get$inferredResult = function() {
if ($notnull_bool(t.get$isBool()) && ($notnull_bool(this.get$library().get$isCore()) || $notnull_bool(this.get$library().get$isCoreImpl()))) {
return world.nonNullBool;
}
- return (t && t.is$Type());
+ return (t && t.is$lang_Type());
}
Member.prototype.get$definition = function() {
return null;
@@ -13078,25 +13087,25 @@ Member.prototype.resolveType = function(node, isRequired) {
if ($notnull_bool(this.get$isStatic()) && $notnull_bool(type.get$hasTypeParams())) {
world.error('using type parameter in static context', node.span);
}
- return (type && type.is$Type());
+ return (type && type.is$lang_Type());
}
Member.prototype._get$3 = function($0, $1, $2) {
- return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()));
+ return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()));
};
Member.prototype._set$4 = function($0, $1, $2, $3) {
- return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()));
+ return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()));
};
Member.prototype.canInvoke$2 = function($0, $1) {
return this.canInvoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Arguments()));
};
Member.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
};
Member.prototype.invoke$4$isDynamic = function($0, $1, $2, $3, isDynamic) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
};
Member.prototype.invoke$5 = function($0, $1, $2, $3, $4) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
};
Member.prototype.provideFieldSyntax$0 = function() {
return this.provideFieldSyntax();
@@ -13105,7 +13114,7 @@ Member.prototype.providePropertySyntax$0 = function() {
return this.providePropertySyntax();
};
Member.prototype.resolve$1 = function($0) {
- return this.resolve(($0 && $0.is$Type()));
+ return this.resolve(($0 && $0.is$lang_Type()));
};
// ********** Code for TypeMember **************
function TypeMember(type) {
@@ -13149,25 +13158,25 @@ TypeMember.prototype.invoke = function(context, node, target, args, isDynamic) {
world.error('can not invoke type', node.span);
}
TypeMember.prototype._get$3 = function($0, $1, $2) {
- return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), false);
+ return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), false);
};
TypeMember.prototype._set$4 = function($0, $1, $2, $3) {
- return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
+ return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
};
TypeMember.prototype.canInvoke$2 = function($0, $1) {
return this.canInvoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Arguments()));
};
TypeMember.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
};
TypeMember.prototype.invoke$4$isDynamic = function($0, $1, $2, $3, isDynamic) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
};
TypeMember.prototype.invoke$5 = function($0, $1, $2, $3, $4) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
};
TypeMember.prototype.resolve$1 = function($0) {
- return this.resolve(($0 && $0.is$Type()));
+ return this.resolve(($0 && $0.is$lang_Type()));
};
// ********** Code for FieldMember **************
function FieldMember(name, declaringType, definition, value) {
@@ -13324,10 +13333,10 @@ FieldMember.prototype._set = function(context, node, target, value, isDynamic) {
return new Value(this.type, ('' + lhs.code + ' = ' + value.code + ''), node.span, true);
}
FieldMember.prototype._get$3 = function($0, $1, $2) {
- return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), false);
+ return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), false);
};
FieldMember.prototype._set$4 = function($0, $1, $2, $3) {
- return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
+ return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
};
FieldMember.prototype.computeValue$0 = function() {
return this.computeValue();
@@ -13339,7 +13348,7 @@ FieldMember.prototype.providePropertySyntax$0 = function() {
return this.providePropertySyntax();
};
FieldMember.prototype.resolve$1 = function($0) {
- return this.resolve(($0 && $0.is$Type()));
+ return this.resolve(($0 && $0.is$lang_Type()));
};
// ********** Code for PropertyMember **************
function PropertyMember(name, declaringType) {
@@ -13429,10 +13438,10 @@ PropertyMember.prototype.resolve = function(inType) {
this.get$library()._addMember(this);
}
PropertyMember.prototype._get$3 = function($0, $1, $2) {
- return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), false);
+ return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), false);
};
PropertyMember.prototype._set$4 = function($0, $1, $2, $3) {
- return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
+ return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
};
PropertyMember.prototype.provideFieldSyntax$0 = function() {
return this.provideFieldSyntax();
@@ -13441,7 +13450,7 @@ PropertyMember.prototype.providePropertySyntax$0 = function() {
return this.providePropertySyntax();
};
PropertyMember.prototype.resolve$1 = function($0) {
- return this.resolve(($0 && $0.is$Type()));
+ return this.resolve(($0 && $0.is$lang_Type()));
};
// ********** Code for ConcreteMember **************
function ConcreteMember(name, declaringType, baseMember) {
@@ -13538,7 +13547,7 @@ ConcreteMember.prototype.set$initDelegate = function(ctor) {
ConcreteMember.prototype.resolveType = function(node, isRequired) {
var $0;
var type = this.baseMember.resolveType(node, isRequired);
- return (($0 = type.resolveTypeParams$1(this.declaringType)) && $0.is$Type());
+ return (($0 = type.resolveTypeParams$1(this.declaringType)) && $0.is$lang_Type());
}
ConcreteMember.prototype.override = function(other) {
return this.baseMember.override(other);
@@ -13563,22 +13572,22 @@ ConcreteMember.prototype.invoke = function(context, node, target, args, isDynami
return new Value(this.get$inferredResult(), code, node.span, true);
}
ConcreteMember.prototype._get$3 = function($0, $1, $2) {
- return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), false);
+ return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), false);
};
ConcreteMember.prototype._set$4 = function($0, $1, $2, $3) {
- return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
+ return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
};
ConcreteMember.prototype.canInvoke$2 = function($0, $1) {
return this.canInvoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Arguments()));
};
ConcreteMember.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
};
ConcreteMember.prototype.invoke$4$isDynamic = function($0, $1, $2, $3, isDynamic) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
};
ConcreteMember.prototype.invoke$5 = function($0, $1, $2, $3, $4) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
};
ConcreteMember.prototype.provideFieldSyntax$0 = function() {
return this.provideFieldSyntax();
@@ -13898,7 +13907,7 @@ MethodMember.prototype._invokeConstructor = function(context, node, target, args
}
else {
var code = (this.get$constructorName() != '') ? ('new ' + this.declaringType.get$jsname() + '.' + this.get$constructorName() + '\$ctor(' + argsString + ')') : ('new ' + this.declaringType.get$jsname() + '(' + argsString + ')');
- if ($notnull_bool(this.isConst) && (node instanceof NewExpression) && $notnull_bool(node.get$dynamic().get$isConst())) {
+ if ($notnull_bool(this.isConst) && (node instanceof lang_NewExpression) && $notnull_bool(node.get$dynamic().get$isConst())) {
return this._invokeConstConstructor(node, $assert_String(code), target, args);
}
else {
@@ -14265,7 +14274,7 @@ MethodMember.prototype.resolve = function(inType) {
}
}
MethodMember.prototype._get$3 = function($0, $1, $2) {
- return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), false);
+ return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), false);
};
MethodMember.prototype._set$4 = function($0, $1, $2, $3) {
return this._set(($0 && $0.is$MethodGenerator()), $1, ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
@@ -14274,13 +14283,13 @@ MethodMember.prototype.canInvoke$2 = function($0, $1) {
return this.canInvoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Arguments()));
};
MethodMember.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
};
MethodMember.prototype.invoke$4$isDynamic = function($0, $1, $2, $3, isDynamic) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
};
MethodMember.prototype.invoke$5 = function($0, $1, $2, $3, $4) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
};
MethodMember.prototype.namesInOrder$1 = function($0) {
return this.namesInOrder(($0 && $0.is$Arguments()));
@@ -14292,7 +14301,7 @@ MethodMember.prototype.providePropertySyntax$0 = function() {
return this.providePropertySyntax();
};
MethodMember.prototype.resolve$1 = function($0) {
- return this.resolve(($0 && $0.is$Type()));
+ return this.resolve(($0 && $0.is$lang_Type()));
};
// ********** Code for MemberSet **************
function MemberSet(member, isVar) {
@@ -14425,24 +14434,25 @@ MemberSet.prototype._set = function(context, node, target, value, isDynamic) {
return returnValue;
}
MemberSet.prototype.invoke = function(context, node, target, args, isDynamic) {
+ var $0;
if ($notnull_bool(this.isVar) && !$notnull_bool(this.get$isOperator())) {
return this.invokeOnVar(context, node, target, args);
}
if (this.members.length == 1) {
- return this.members.$index(0).invoke$5(context, node, target, args, isDynamic);
+ return (($0 = this.members.$index(0).invoke$5(context, node, target, args, isDynamic)) && $0.is$Value());
}
var targets = this.members.filter((function (m) {
return m.canInvoke$2(context, args);
})
);
if (targets.length == 1) {
- return targets.$index(0).invoke$5(context, node, target, args, isDynamic);
+ return (($0 = targets.$index(0).invoke$5(context, node, target, args, isDynamic)) && $0.is$Value());
}
var returnValue = null;
for (var $i = targets.iterator$0(); $i.hasNext$0(); ) {
var member = $i.next$0();
var res = member.invoke$4$isDynamic(context, node, target, args, true);
- returnValue = this._tryUnion(returnValue, res, node);
+ returnValue = this._tryUnion(returnValue, (res && res.is$Value()), node);
}
if (returnValue == null) {
return this._makeError(node, target, 'method');
@@ -14466,7 +14476,7 @@ MemberSet.prototype.invokeOnVar = function(context, node, target, args) {
}
MemberSet.prototype._tryUnion = function(x, y, node) {
if (x == null) return y;
- var type = Type.union(x.type, y.type);
+ var type = lang_Type.union(x.type, y.type);
if (x.code == y.code) {
if ($notnull_bool($eq(type, x.type))) {
return x;
@@ -14501,17 +14511,17 @@ MemberSet.prototype.getVarMember = function(context, node, args) {
var returnType = reduce(map((targets && targets.is$Iterable()), (function (t) {
return t.get$returnType();
})
- ), Type.union);
+ ), lang_Type.union);
stub = new VarMethodSet($assert_String(stubName), targets, args, returnType);
world.objectType.varStubs.$setindex(stubName, stub);
}
return (stub && stub.is$VarMember());
}
MemberSet.prototype._get$3 = function($0, $1, $2) {
- return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), false);
+ return this._get(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), false);
};
MemberSet.prototype._set$4 = function($0, $1, $2, $3) {
- return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
+ return this._set(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Value()), false);
};
MemberSet.prototype.add$1 = function($0) {
return this.add(($0 && $0.is$Member()));
@@ -14520,13 +14530,13 @@ MemberSet.prototype.canInvoke$2 = function($0, $1) {
return this.canInvoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Arguments()));
};
MemberSet.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), false);
};
MemberSet.prototype.invoke$4$isDynamic = function($0, $1, $2, $3, isDynamic) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
};
MemberSet.prototype.invoke$5 = function($0, $1, $2, $3, $4) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()), $assert_bool($4));
};
MemberSet.prototype.toString$0 = function() {
return this.toString();
@@ -14563,19 +14573,19 @@ FactoryMap.prototype.forEach = function(f) {
FactoryMap.prototype.getFactory$2 = function($0, $1) {
return this.getFactory($assert_String($0), $assert_String($1));
};
-// ********** Code for Token **************
-function Token(kind, source, start, end) {
+// ********** Code for lang_Token **************
+function lang_Token(kind, source, start, end) {
jimhug 2011/11/18 17:05:29 TODO: There seems to be some sort of non-determini
this.kind = kind;
this.source = source;
this.start = start;
this.end = end;
// Initializers done
}
-Token.prototype.get$source = function() { return this.source; };
-Token.prototype.get$text = function() {
+lang_Token.prototype.get$source = function() { return this.source; };
+lang_Token.prototype.get$text = function() {
return this.source.get$text().substring(this.start, this.end);
}
-Token.prototype.toString = function() {
+lang_Token.prototype.toString = function() {
var kindText = TokenKind.kindToString(this.kind);
var actualText = this.get$text();
if ($notnull_bool($ne(kindText, actualText))) {
@@ -14588,10 +14598,10 @@ Token.prototype.toString = function() {
return $assert_String(kindText);
}
}
-Token.prototype.get$span = function() {
+lang_Token.prototype.get$span = function() {
return new SourceSpan(this.source, this.start, this.end);
}
-Token.prototype.toString$0 = function() {
+lang_Token.prototype.toString$0 = function() {
return this.toString();
};
// ********** Code for SourceFile **************
@@ -14757,7 +14767,7 @@ TokenizerBase.prototype._maybeEatChar = function(ch) {
}
}
TokenizerBase.prototype._finishToken = function(kind) {
- return new Token(kind, this._source, this._startIndex, this._lang_index);
+ return new lang_Token(kind, this._source, this._startIndex, this._lang_index);
}
TokenizerBase.prototype._errorToken = function() {
return this._finishToken(65/*TokenKind.ERROR*/);
@@ -15018,7 +15028,7 @@ TokenizerBase.prototype.eatEscapeSequence = function() {
return true;
}
- var n = Parser.parseHex(hex);
+ var n = lang_Parser.parseHex(hex);
return n < 0xD800 || n > 0xDFFF && n <= 0x10FFFF;
}
TokenizerBase.prototype.finishDot = function() {
@@ -15030,17 +15040,28 @@ TokenizerBase.prototype.finishDot = function() {
return this._finishToken(14/*TokenKind.DOT*/);
}
}
-TokenizerBase.prototype.finishIdentifier = function() {
- while (this._lang_index < this._text.length) {
- if (!$notnull_bool(TokenizerHelpers.isIdentifierPart(this._text.charCodeAt(this._lang_index++)))) {
- this._lang_index--;
- break;
- }
- }
- var kind = this.getIdentifierKind();
+TokenizerBase.prototype.finishIdentifier = function(ch) {
if (this._interpStack != null && this._interpStack.depth == -1) {
this._interpStack.depth = 0;
+ if (ch == 36) {
+ return this._errorToken();
+ }
+ while (this._lang_index < this._text.length) {
+ if (!$notnull_bool(TokenizerHelpers.isInterpIdentifierPart(this._text.charCodeAt(this._lang_index++)))) {
+ this._lang_index--;
+ break;
+ }
+ }
}
+ else {
+ while (this._lang_index < this._text.length) {
+ if (!$notnull_bool(TokenizerHelpers.isIdentifierPart(this._text.charCodeAt(this._lang_index++)))) {
+ this._lang_index--;
+ break;
+ }
+ }
+ }
+ var kind = this.getIdentifierKind();
if (kind == 70/*TokenKind.IDENTIFIER*/) {
return this._finishToken(70/*TokenKind.IDENTIFIER*/);
}
@@ -15119,7 +15140,7 @@ Tokenizer.prototype.next = function() {
return this.finishString(39);
}
else {
- return this.finishIdentifier();
+ return this.finishIdentifier(36);
}
case 37:
@@ -15380,7 +15401,7 @@ Tokenizer.prototype.next = function() {
default:
if ($notnull_bool(TokenizerHelpers.isIdentifierStart(ch))) {
- return this.finishIdentifier();
+ return this.finishIdentifier(ch);
}
else if ($notnull_bool(TokenizerHelpers.isDigit(ch))) {
return this.finishNumber();
@@ -15598,6 +15619,9 @@ TokenizerHelpers.isWhitespace = function(c) {
return (c == 32 || c == 9 || c == 10 || c == 13);
}
TokenizerHelpers.isIdentifierPart = function(c) {
+ return ($notnull_bool(TokenizerHelpers.isIdentifierStart(c)) || $notnull_bool(TokenizerHelpers.isDigit(c)) || c == 36);
+}
+TokenizerHelpers.isInterpIdentifierPart = function(c) {
return ($notnull_bool(TokenizerHelpers.isIdentifierStart(c)) || $notnull_bool(TokenizerHelpers.isDigit(c)));
}
// ********** Code for TokenKind **************
@@ -16404,8 +16428,8 @@ TokenKind.kindFromAssign = function(kind) {
}
return -1;
}
-// ********** Code for Parser **************
-function Parser(source, diet, throwOnIncomplete, optionalSemicolons, startOffset) {
+// ********** Code for lang_Parser **************
+function lang_Parser(source, diet, throwOnIncomplete, optionalSemicolons, startOffset) {
this.source = source;
this.diet = diet;
this.throwOnIncomplete = throwOnIncomplete;
@@ -16416,8 +16440,8 @@ function Parser(source, diet, throwOnIncomplete, optionalSemicolons, startOffset
this._previousToken = null;
this._inInitializers = false;
}
-Parser.prototype.get$source = function() { return this.source; };
-Parser.prototype.isPrematureEndOfFile = function() {
+lang_Parser.prototype.get$source = function() { return this.source; };
+lang_Parser.prototype.isPrematureEndOfFile = function() {
if ($notnull_bool(this.throwOnIncomplete) && $notnull_bool(this._maybeEat(1/*TokenKind.END_OF_FILE*/)) || $notnull_bool(this._maybeEat(68/*TokenKind.INCOMPLETE_MULTILINE_STRING_DQ*/)) || $notnull_bool(this._maybeEat(69/*TokenKind.INCOMPLETE_MULTILINE_STRING_SQ*/))) {
$throw(new IncompleteSourceException(this._previousToken));
}
@@ -16429,21 +16453,21 @@ Parser.prototype.isPrematureEndOfFile = function() {
return false;
}
}
-Parser.prototype._peek = function() {
+lang_Parser.prototype._peek = function() {
return this._peekToken.kind;
}
-Parser.prototype._lang_next = function() {
+lang_Parser.prototype._lang_next = function() {
this._previousToken = this._peekToken;
this._peekToken = this.tokenizer.next();
return this._previousToken;
}
-Parser.prototype._peekKind = function(kind) {
+lang_Parser.prototype._peekKind = function(kind) {
return this._peekToken.kind == kind;
}
-Parser.prototype._peekIdentifier = function() {
+lang_Parser.prototype._peekIdentifier = function() {
return TokenKind.isIdentifier(this._peekToken.kind);
}
-Parser.prototype._maybeEat = function(kind) {
+lang_Parser.prototype._maybeEat = function(kind) {
if (this._peekToken.kind == kind) {
this._previousToken = this._peekToken;
this._peekToken = this.tokenizer.next();
@@ -16453,28 +16477,28 @@ Parser.prototype._maybeEat = function(kind) {
return false;
}
}
-Parser.prototype._eat = function(kind) {
+lang_Parser.prototype._eat = function(kind) {
if (!$notnull_bool(this._maybeEat(kind))) {
this._errorExpected(TokenKind.kindToString(kind));
}
}
-Parser.prototype._eatSemicolon = function() {
+lang_Parser.prototype._eatSemicolon = function() {
if ($notnull_bool(this.optionalSemicolons) && $notnull_bool(this._peekKind(1/*TokenKind.END_OF_FILE*/))) return;
this._eat(10/*TokenKind.SEMICOLON*/);
}
-Parser.prototype._errorExpected = function(expected) {
+lang_Parser.prototype._errorExpected = function(expected) {
if ($notnull_bool(this.throwOnIncomplete)) this.isPrematureEndOfFile();
var tok = this._lang_next();
var message = ('expected ' + expected + ', but found ' + tok + '');
this._lang_error($assert_String(message), tok.get$span());
}
-Parser.prototype._lang_error = function(message, location) {
+lang_Parser.prototype._lang_error = function(message, location) {
if (location == null) {
location = this._peekToken.get$span();
}
world.fatal(message, location);
}
-Parser.prototype._skipBlock = function() {
+lang_Parser.prototype._skipBlock = function() {
var depth = 1;
this._eat(6/*TokenKind.LBRACE*/);
while (true) {
@@ -16492,10 +16516,10 @@ Parser.prototype._skipBlock = function() {
}
}
}
-Parser.prototype._makeSpan = function(start) {
+lang_Parser.prototype._makeSpan = function(start) {
return new SourceSpan(this.source, start, this._previousToken.end);
}
-Parser.prototype.compilationUnit = function() {
+lang_Parser.prototype.compilationUnit = function() {
var ret = [];
this._maybeEat(13/*TokenKind.HASHBANG*/);
while ($notnull_bool(this._peekKind(12/*TokenKind.HASH*/))) {
@@ -16506,7 +16530,7 @@ Parser.prototype.compilationUnit = function() {
}
return (ret && ret.is$List$Definition());
}
-Parser.prototype.directive = function() {
+lang_Parser.prototype.directive = function() {
var start = this._peekToken.start;
this._eat(12/*TokenKind.HASH*/);
var name = this.identifier();
@@ -16514,7 +16538,7 @@ Parser.prototype.directive = function() {
this._eatSemicolon();
return new DirectiveDefinition(name, args, this._makeSpan(start));
}
-Parser.prototype.topLevelDefinition = function() {
+lang_Parser.prototype.topLevelDefinition = function() {
switch (this._peek()) {
case 73/*TokenKind.CLASS*/:
@@ -16534,7 +16558,7 @@ Parser.prototype.topLevelDefinition = function() {
}
}
-Parser.prototype.classDefinition = function(kind) {
+lang_Parser.prototype.classDefinition = function(kind) {
var start = this._peekToken.start;
this._eat(kind);
var name = this.identifier();
@@ -16570,7 +16594,7 @@ Parser.prototype.classDefinition = function(kind) {
}
return new TypeDefinition(kind == 73/*TokenKind.CLASS*/, name, typeParams, _extends, _implements, _native, _factory, body, this._makeSpan(start));
}
-Parser.prototype.functionTypeAlias = function() {
+lang_Parser.prototype.functionTypeAlias = function() {
var start = this._peekToken.start;
this._eat(87/*TokenKind.TYPEDEF*/);
var di = this.declaredIdentifier(false);
@@ -16583,7 +16607,7 @@ Parser.prototype.functionTypeAlias = function() {
var func = new FunctionDefinition(null, di.type, di.get$name(), formals, null, null, this._makeSpan(start));
return new FunctionTypeDefinition(func, typeParams, this._makeSpan(start));
}
-Parser.prototype.initializers = function() {
+lang_Parser.prototype.initializers = function() {
this._inInitializers = true;
var ret = [];
do {
@@ -16593,7 +16617,7 @@ Parser.prototype.initializers = function() {
this._inInitializers = false;
return ret;
}
-Parser.prototype.functionBody = function(inExpression) {
+lang_Parser.prototype.functionBody = function(inExpression) {
var start = this._peekToken.start;
if ($notnull_bool(this._maybeEat(9/*TokenKind.ARROW*/))) {
var expr = this.expression();
@@ -16628,7 +16652,7 @@ Parser.prototype.functionBody = function(inExpression) {
}
this._lang_error('Expected function body (neither { nor => found)');
}
-Parser.prototype.finishField = function(start, modifiers, type, name, value) {
+lang_Parser.prototype.finishField = function(start, modifiers, type, name, value) {
var names = [name];
var values = [value];
while ($notnull_bool(this._maybeEat(11/*TokenKind.COMMA*/))) {
@@ -16643,7 +16667,7 @@ Parser.prototype.finishField = function(start, modifiers, type, name, value) {
this._eatSemicolon();
return new VariableDefinition(modifiers, type, names, values, this._makeSpan($assert_num(start)));
}
-Parser.prototype.finishDefinition = function(start, modifiers, di) {
+lang_Parser.prototype.finishDefinition = function(start, modifiers, di) {
var $0;
switch (this._peek()) {
case 2/*TokenKind.LPAREN*/:
@@ -16677,7 +16701,7 @@ Parser.prototype.finishDefinition = function(start, modifiers, di) {
}
}
-Parser.prototype.declaration = function(includeOperators) {
+lang_Parser.prototype.declaration = function(includeOperators) {
var start = this._peekToken.start;
if ($notnull_bool(this._peekKind(75/*TokenKind.FACTORY*/))) {
return this.factoryConstructorDeclaration();
@@ -16685,7 +16709,7 @@ Parser.prototype.declaration = function(includeOperators) {
var modifiers = this._readModifiers();
return this.finishDefinition(start, modifiers, this.declaredIdentifier(includeOperators));
}
-Parser.prototype.factoryConstructorDeclaration = function() {
+lang_Parser.prototype.factoryConstructorDeclaration = function() {
var start = this._peekToken.start;
var factoryToken = this._lang_next();
var names = [this.identifier()];
@@ -16706,11 +16730,11 @@ Parser.prototype.factoryConstructorDeclaration = function() {
name = names.removeLast$0();
}
else {
- name = new Identifier('', names.$index(0).get$span());
+ name = new lang_Identifier('', names.$index(0).get$span());
}
}
else {
- name = new Identifier('', names.$index(0).get$span());
+ name = new lang_Identifier('', names.$index(0).get$span());
}
if (names.length > 1) {
this._lang_error('unsupported qualified name for factory', names.$index(0).get$span());
@@ -16719,28 +16743,28 @@ Parser.prototype.factoryConstructorDeclaration = function() {
var di = new DeclaredIdentifier(type, name, this._makeSpan(start));
return this.finishDefinition(start, [factoryToken], di);
}
-Parser.prototype.statement = function() {
+lang_Parser.prototype.statement = function() {
var $0;
switch (this._peek()) {
case 88/*TokenKind.BREAK*/:
- return (($0 = this.breakStatement()) && $0.is$Statement());
+ return (($0 = this.breakStatement()) && $0.is$lang_Statement());
case 92/*TokenKind.CONTINUE*/:
- return (($0 = this.continueStatement()) && $0.is$Statement());
+ return (($0 = this.continueStatement()) && $0.is$lang_Statement());
case 105/*TokenKind.RETURN*/:
- return (($0 = this.returnStatement()) && $0.is$Statement());
+ return (($0 = this.returnStatement()) && $0.is$lang_Statement());
case 109/*TokenKind.THROW*/:
- return (($0 = this.throwStatement()) && $0.is$Statement());
+ return (($0 = this.throwStatement()) && $0.is$lang_Statement());
case 72/*TokenKind.ASSERT*/:
- return (($0 = this.assertStatement()) && $0.is$Statement());
+ return (($0 = this.assertStatement()) && $0.is$lang_Statement());
case 114/*TokenKind.WHILE*/:
@@ -16752,7 +16776,7 @@ Parser.prototype.statement = function() {
case 99/*TokenKind.FOR*/:
- return (($0 = this.forStatement()) && $0.is$Statement());
+ return (($0 = this.forStatement()) && $0.is$lang_Statement());
case 100/*TokenKind.IF*/:
@@ -16760,11 +16784,11 @@ Parser.prototype.statement = function() {
case 107/*TokenKind.SWITCH*/:
- return (($0 = this.switchStatement()) && $0.is$Statement());
+ return (($0 = this.switchStatement()) && $0.is$lang_Statement());
case 111/*TokenKind.TRY*/:
- return (($0 = this.tryStatement()) && $0.is$Statement());
+ return (($0 = this.tryStatement()) && $0.is$lang_Statement());
case 6/*TokenKind.LBRACE*/:
@@ -16776,19 +16800,19 @@ Parser.prototype.statement = function() {
case 97/*TokenKind.FINAL*/:
- return (($0 = this.declaration(false)) && $0.is$Statement());
+ return (($0 = this.declaration(false)) && $0.is$lang_Statement());
case 112/*TokenKind.VAR*/:
- return (($0 = this.declaration(false)) && $0.is$Statement());
+ return (($0 = this.declaration(false)) && $0.is$lang_Statement());
default:
- return (($0 = this.finishExpressionAsStatement(this.expression())) && $0.is$Statement());
+ return (($0 = this.finishExpressionAsStatement(this.expression())) && $0.is$lang_Statement());
}
}
-Parser.prototype.finishExpressionAsStatement = function(expr) {
+lang_Parser.prototype.finishExpressionAsStatement = function(expr) {
var $0;
var start = expr.get$span().start;
if ($notnull_bool(this._maybeEat(8/*TokenKind.COLON*/))) {
@@ -16826,16 +16850,16 @@ Parser.prototype.finishExpressionAsStatement = function(expr) {
}
else {
this._eatSemicolon();
- return new ExpressionStatement(expr, this._makeSpan(expr.get$span().start));
+ return new lang_ExpressionStatement(expr, this._makeSpan(expr.get$span().start));
}
}
-Parser.prototype.testCondition = function() {
+lang_Parser.prototype.testCondition = function() {
this._eat(2/*TokenKind.LPAREN*/);
var ret = this.expression();
this._eat(3/*TokenKind.RPAREN*/);
- return (ret && ret.is$Expression());
+ return (ret && ret.is$lang_Expression());
}
-Parser.prototype.block = function() {
+lang_Parser.prototype.block = function() {
var start = this._peekToken.start;
this._eat(6/*TokenKind.LBRACE*/);
var stmts = [];
@@ -16845,12 +16869,12 @@ Parser.prototype.block = function() {
}
return new BlockStatement(stmts, this._makeSpan(start));
}
-Parser.prototype.emptyStatement = function() {
+lang_Parser.prototype.emptyStatement = function() {
var start = this._peekToken.start;
this._eat(10/*TokenKind.SEMICOLON*/);
return new EmptyStatement(this._makeSpan(start));
}
-Parser.prototype.ifStatement = function() {
+lang_Parser.prototype.ifStatement = function() {
var start = this._peekToken.start;
this._eat(100/*TokenKind.IF*/);
var test = this.testCondition();
@@ -16861,14 +16885,14 @@ Parser.prototype.ifStatement = function() {
}
return new IfStatement(test, trueBranch, falseBranch, this._makeSpan(start));
}
-Parser.prototype.whileStatement = function() {
+lang_Parser.prototype.whileStatement = function() {
var start = this._peekToken.start;
this._eat(114/*TokenKind.WHILE*/);
var test = this.testCondition();
var body = this.statement();
return new WhileStatement(test, body, this._makeSpan(start));
}
-Parser.prototype.doStatement = function() {
+lang_Parser.prototype.doStatement = function() {
var start = this._peekToken.start;
this._eat(94/*TokenKind.DO*/);
var body = this.statement();
@@ -16877,7 +16901,7 @@ Parser.prototype.doStatement = function() {
this._eatSemicolon();
return new DoStatement(body, test, this._makeSpan(start));
}
-Parser.prototype.forStatement = function() {
+lang_Parser.prototype.forStatement = function() {
var start = this._peekToken.start;
this._eat(99/*TokenKind.FOR*/);
this._eat(2/*TokenKind.LPAREN*/);
@@ -16901,7 +16925,7 @@ Parser.prototype.forStatement = function() {
var body = this.statement();
return new ForStatement(init, test, step, body, this._makeSpan(start));
}
-Parser.prototype.forInitializerStatement = function(start) {
+lang_Parser.prototype.forInitializerStatement = function(start) {
var $0;
if ($notnull_bool(this._maybeEat(10/*TokenKind.SEMICOLON*/))) {
return null;
@@ -16924,13 +16948,13 @@ Parser.prototype.forInitializerStatement = function(start) {
}
}
}
-Parser.prototype._finishForIn = function(start, di) {
+lang_Parser.prototype._finishForIn = function(start, di) {
var expr = this.expression();
this._eat(3/*TokenKind.RPAREN*/);
var body = this.statement();
return new ForInStatement(di, expr, body, this._makeSpan(start));
}
-Parser.prototype.tryStatement = function() {
+lang_Parser.prototype.tryStatement = function() {
var start = this._peekToken.start;
this._eat(111/*TokenKind.TRY*/);
var body = this.block();
@@ -16944,7 +16968,7 @@ Parser.prototype.tryStatement = function() {
}
return new TryStatement(body, catches, finallyBlock, this._makeSpan(start));
}
-Parser.prototype.catchNode = function() {
+lang_Parser.prototype.catchNode = function() {
var start = this._peekToken.start;
this._eat(90/*TokenKind.CATCH*/);
this._eat(2/*TokenKind.LPAREN*/);
@@ -16957,7 +16981,7 @@ Parser.prototype.catchNode = function() {
var body = this.block();
return new CatchNode(exc, trace, body, this._makeSpan(start));
}
-Parser.prototype.switchStatement = function() {
+lang_Parser.prototype.switchStatement = function() {
var start = this._peekToken.start;
this._eat(107/*TokenKind.SWITCH*/);
var test = this.testCondition();
@@ -16968,11 +16992,11 @@ Parser.prototype.switchStatement = function() {
}
return new SwitchStatement(test, cases, this._makeSpan(start));
}
-Parser.prototype._peekCaseEnd = function() {
+lang_Parser.prototype._peekCaseEnd = function() {
var kind = this._peek();
return $notnull_bool($eq(kind, 7/*TokenKind.RBRACE*/)) || $notnull_bool($eq(kind, 89/*TokenKind.CASE*/)) || $notnull_bool($eq(kind, 93/*TokenKind.DEFAULT*/));
}
-Parser.prototype.caseNode = function() {
+lang_Parser.prototype.caseNode = function() {
var start = this._peekToken.start;
var label = null;
if ($notnull_bool(this._peekIdentifier())) {
@@ -17003,7 +17027,7 @@ Parser.prototype.caseNode = function() {
}
return new CaseNode(label, cases, stmts, this._makeSpan(start));
}
-Parser.prototype.returnStatement = function() {
+lang_Parser.prototype.returnStatement = function() {
var start = this._peekToken.start;
this._eat(105/*TokenKind.RETURN*/);
var expr;
@@ -17016,7 +17040,7 @@ Parser.prototype.returnStatement = function() {
}
return new ReturnStatement(expr, this._makeSpan(start));
}
-Parser.prototype.throwStatement = function() {
+lang_Parser.prototype.throwStatement = function() {
var start = this._peekToken.start;
this._eat(109/*TokenKind.THROW*/);
var expr;
@@ -17029,7 +17053,7 @@ Parser.prototype.throwStatement = function() {
}
return new ThrowStatement(expr, this._makeSpan(start));
}
-Parser.prototype.assertStatement = function() {
+lang_Parser.prototype.assertStatement = function() {
var start = this._peekToken.start;
this._eat(72/*TokenKind.ASSERT*/);
this._eat(2/*TokenKind.LPAREN*/);
@@ -17038,7 +17062,7 @@ Parser.prototype.assertStatement = function() {
this._eatSemicolon();
return new AssertStatement(expr, this._makeSpan(start));
}
-Parser.prototype.breakStatement = function() {
+lang_Parser.prototype.breakStatement = function() {
var start = this._peekToken.start;
this._eat(88/*TokenKind.BREAK*/);
var name = null;
@@ -17048,7 +17072,7 @@ Parser.prototype.breakStatement = function() {
this._eatSemicolon();
return new BreakStatement(name, this._makeSpan(start));
}
-Parser.prototype.continueStatement = function() {
+lang_Parser.prototype.continueStatement = function() {
var start = this._peekToken.start;
this._eat(92/*TokenKind.CONTINUE*/);
var name = null;
@@ -17058,10 +17082,10 @@ Parser.prototype.continueStatement = function() {
this._eatSemicolon();
return new ContinueStatement(name, this._makeSpan(start));
}
-Parser.prototype.expression = function() {
+lang_Parser.prototype.expression = function() {
return this.infixExpression(0);
}
-Parser.prototype._makeType = function(expr) {
+lang_Parser.prototype._makeType = function(expr) {
if ((expr instanceof VarExpression)) {
return new NameTypeReference(false, expr.get$name(), null, expr.get$span());
}
@@ -17081,15 +17105,15 @@ Parser.prototype._makeType = function(expr) {
return null;
}
}
-Parser.prototype.infixExpression = function(precedence) {
+lang_Parser.prototype.infixExpression = function(precedence) {
var $0;
- return this.finishInfixExpression((($0 = this.unaryExpression()) && $0.is$Expression()), precedence);
+ return this.finishInfixExpression((($0 = this.unaryExpression()) && $0.is$lang_Expression()), precedence);
}
-Parser.prototype._finishDeclaredId = function(type) {
+lang_Parser.prototype._finishDeclaredId = function(type) {
var name = this.identifier();
return this.finishPostfixExpression(new DeclaredIdentifier(type, name, this._makeSpan(type.get$span().start)));
}
-Parser.prototype._fixAsType = function(x) {
+lang_Parser.prototype._fixAsType = function(x) {
$assert(this._isBin(x, 52/*TokenKind.LT*/), "_isBin(x, TokenKind.LT)", "parser.dart", 790, 12);
if ($notnull_bool(this._maybeEat(53/*TokenKind.GT*/))) {
var base = this._makeType(x.x);
@@ -17116,7 +17140,7 @@ Parser.prototype._fixAsType = function(x) {
return this._finishDeclaredId(type);
}
}
-Parser.prototype.finishInfixExpression = function(x, precedence) {
+lang_Parser.prototype.finishInfixExpression = function(x, precedence) {
while (true) {
var kind = this._peek();
var prec = TokenKind.infixPrecedence(this._peek());
@@ -17149,7 +17173,7 @@ Parser.prototype.finishInfixExpression = function(x, precedence) {
}
return x;
}
-Parser.prototype._isPrefixUnaryOperator = function(kind) {
+lang_Parser.prototype._isPrefixUnaryOperator = function(kind) {
switch (kind) {
case 42/*TokenKind.ADD*/:
case 43/*TokenKind.SUB*/:
@@ -17166,7 +17190,7 @@ Parser.prototype._isPrefixUnaryOperator = function(kind) {
}
}
-Parser.prototype.unaryExpression = function() {
+lang_Parser.prototype.unaryExpression = function() {
var start = this._peekToken.start;
if ($notnull_bool(this._isPrefixUnaryOperator(this._peek()))) {
var tok = this._lang_next();
@@ -17175,12 +17199,12 @@ Parser.prototype.unaryExpression = function() {
}
return this.finishPostfixExpression(this.primary());
}
-Parser.prototype.argument = function() {
+lang_Parser.prototype.argument = function() {
var start = this._peekToken.start;
var expr;
var label = null;
if ($notnull_bool(this._maybeEat(15/*TokenKind.ELLIPSIS*/))) {
- label = new Identifier('...', this._makeSpan(start));
+ label = new lang_Identifier('...', this._makeSpan(start));
}
expr = this.expression();
if (label == null && $notnull_bool(this._maybeEat(8/*TokenKind.COLON*/))) {
@@ -17189,7 +17213,7 @@ Parser.prototype.argument = function() {
}
return new ArgumentNode(label, expr, this._makeSpan(start));
}
-Parser.prototype.arguments = function() {
+lang_Parser.prototype.arguments = function() {
var args = [];
this._eat(2/*TokenKind.LPAREN*/);
if (!$notnull_bool(this._maybeEat(3/*TokenKind.RPAREN*/))) {
@@ -17201,10 +17225,10 @@ Parser.prototype.arguments = function() {
}
return args;
}
-Parser.prototype.get$arguments = function() {
- return Parser.prototype.arguments.bind(this);
+lang_Parser.prototype.get$arguments = function() {
+ return lang_Parser.prototype.arguments.bind(this);
}
-Parser.prototype.finishPostfixExpression = function(expr) {
+lang_Parser.prototype.finishPostfixExpression = function(expr) {
switch (this._peek()) {
case 2/*TokenKind.LPAREN*/:
@@ -17248,22 +17272,22 @@ Parser.prototype.finishPostfixExpression = function(expr) {
}
}
-Parser.prototype._isBin = function(expr, kind) {
+lang_Parser.prototype._isBin = function(expr, kind) {
return (expr instanceof BinaryExpression) && expr.op.kind == kind;
}
-Parser.prototype._boolTypeRef = function(span) {
+lang_Parser.prototype._boolTypeRef = function(span) {
return new TypeReference(span, world.nonNullBool);
}
-Parser.prototype._intTypeRef = function(span) {
+lang_Parser.prototype._intTypeRef = function(span) {
return new TypeReference(span, world.intType);
}
-Parser.prototype._doubleTypeRef = function(span) {
+lang_Parser.prototype._doubleTypeRef = function(span) {
return new TypeReference(span, world.doubleType);
}
-Parser.prototype._stringTypeRef = function(span) {
+lang_Parser.prototype._stringTypeRef = function(span) {
return new TypeReference(span, world.stringType);
}
-Parser.prototype.primary = function() {
+lang_Parser.prototype.primary = function() {
var start = this._peekToken.start;
switch (this._peek()) {
case 108/*TokenKind.THIS*/:
@@ -17328,7 +17352,7 @@ Parser.prototype.primary = function() {
case 61/*TokenKind.HEX_INTEGER*/:
var t = this._lang_next();
- return new LiteralExpression(Parser.parseHex(t.get$text().substring(2)), this._intTypeRef(this._makeSpan(start)), t.get$text(), this._makeSpan(start));
+ return new LiteralExpression(lang_Parser.parseHex(t.get$text().substring(2)), this._intTypeRef(this._makeSpan(start)), t.get$text(), this._makeSpan(start));
case 60/*TokenKind.INTEGER*/:
@@ -17367,7 +17391,7 @@ Parser.prototype.primary = function() {
}
}
-Parser.prototype.stringInterpolation = function() {
+lang_Parser.prototype.stringInterpolation = function() {
var start = this._peekToken.start;
var lits = [];
var startQuote = null, endQuote = null;
@@ -17409,14 +17433,14 @@ Parser.prototype.stringInterpolation = function() {
var span = this._makeSpan(start);
return new LiteralExpression(lits, this._stringTypeRef((span && span.is$SourceSpan())), '\$\$\$', (span && span.is$SourceSpan()));
}
-Parser.prototype.makeStringLiteral = function(text, span) {
+lang_Parser.prototype.makeStringLiteral = function(text, span) {
return new LiteralExpression(text, this._stringTypeRef(span), text, span);
}
-Parser.prototype.stringLiteralExpr = function() {
+lang_Parser.prototype.stringLiteralExpr = function() {
var token = this._lang_next();
return this.makeStringLiteral(token.get$text(), token.get$span());
}
-Parser.prototype.maybeStringLiteral = function() {
+lang_Parser.prototype.maybeStringLiteral = function() {
var kind = this._peek();
if ($notnull_bool($eq(kind, 58/*TokenKind.STRING*/))) {
return parseStringLiteral(this._lang_next().get$text());
@@ -17431,7 +17455,7 @@ Parser.prototype.maybeStringLiteral = function() {
}
return null;
}
-Parser.prototype._parenOrLambda = function() {
+lang_Parser.prototype._parenOrLambda = function() {
var start = this._peekToken.start;
var args = this.arguments();
if (!$notnull_bool(this._inInitializers) && ($notnull_bool(this._peekKind(9/*TokenKind.ARROW*/)) || $notnull_bool(this._peekKind(6/*TokenKind.LBRACE*/)))) {
@@ -17450,10 +17474,10 @@ Parser.prototype._parenOrLambda = function() {
}
}
}
-Parser.prototype._typeAsIdentifier = function(type) {
+lang_Parser.prototype._typeAsIdentifier = function(type) {
return type.get$name();
}
-Parser.prototype._specialIdentifier = function(includeOperators) {
+lang_Parser.prototype._specialIdentifier = function(includeOperators) {
var start = this._peekToken.start;
var name;
switch (this._peek()) {
@@ -17520,9 +17544,9 @@ Parser.prototype._specialIdentifier = function(includeOperators) {
return null;
}
- return new Identifier(name, this._makeSpan(start));
+ return new lang_Identifier(name, this._makeSpan(start));
}
-Parser.prototype.declaredIdentifier = function(includeOperators) {
+lang_Parser.prototype.declaredIdentifier = function(includeOperators) {
var start = this._peekToken.start;
var myType = null;
var name = this._specialIdentifier(includeOperators);
@@ -17543,7 +17567,7 @@ Parser.prototype.declaredIdentifier = function(includeOperators) {
}
return new DeclaredIdentifier(myType, name, this._makeSpan(start));
}
-Parser._hexDigit = function(c) {
+lang_Parser._hexDigit = function(c) {
if (c >= 48 && c <= 57) {
return c - 48;
}
@@ -17557,26 +17581,26 @@ Parser._hexDigit = function(c) {
return -1;
}
}
-Parser.parseHex = function(hex) {
+lang_Parser.parseHex = function(hex) {
var result = 0;
for (var i = 0;
i < hex.length; i++) {
- var digit = Parser._hexDigit(hex.charCodeAt(i));
+ var digit = lang_Parser._hexDigit(hex.charCodeAt(i));
$assert($ne(digit, -1), "digit != -1", "parser.dart", 1261, 14);
result = (result << 4) + $assert_num(digit);
}
return $assert_num(result);
}
-Parser.prototype.finishNewExpression = function(start, isConst) {
+lang_Parser.prototype.finishNewExpression = function(start, isConst) {
var type = this.type(0);
var name = null;
if ($notnull_bool(this._maybeEat(14/*TokenKind.DOT*/))) {
name = this.identifier();
}
var args = this.arguments();
- return new NewExpression(isConst, type, name, args, this._makeSpan(start));
+ return new lang_NewExpression(isConst, type, name, args, this._makeSpan(start));
}
-Parser.prototype.finishListLiteral = function(start, isConst, type) {
+lang_Parser.prototype.finishListLiteral = function(start, isConst, type) {
if ($notnull_bool(this._maybeEat(56/*TokenKind.INDEX*/))) {
return new ListExpression(isConst, type, [], this._makeSpan(start));
}
@@ -17592,7 +17616,7 @@ Parser.prototype.finishListLiteral = function(start, isConst, type) {
}
return new ListExpression(isConst, type, values, this._makeSpan(start));
}
-Parser.prototype.finishMapLiteral = function(start, isConst, type) {
+lang_Parser.prototype.finishMapLiteral = function(start, isConst, type) {
var items = [];
this._eat(6/*TokenKind.LBRACE*/);
while (!$notnull_bool(this._maybeEat(7/*TokenKind.RBRACE*/))) {
@@ -17607,7 +17631,7 @@ Parser.prototype.finishMapLiteral = function(start, isConst, type) {
}
return new MapExpression(isConst, type, items, this._makeSpan(start));
}
-Parser.prototype.finishTypedLiteral = function(start, isConst) {
+lang_Parser.prototype.finishTypedLiteral = function(start, isConst) {
var span = this._makeSpan(start);
var typeToBeNamedLater = new NameTypeReference(false, null, null, (span && span.is$SourceSpan()));
var genericType = this.addTypeArguments((typeToBeNamedLater && typeToBeNamedLater.is$TypeReference()), 0);
@@ -17621,7 +17645,7 @@ Parser.prototype.finishTypedLiteral = function(start, isConst) {
this._errorExpected('array or map literal');
}
}
-Parser.prototype._readModifiers = function() {
+lang_Parser.prototype._readModifiers = function() {
var modifiers = null;
while (true) {
switch (this._peek()) {
@@ -17643,7 +17667,7 @@ Parser.prototype._readModifiers = function() {
}
return null;
}
-Parser.prototype.typeParameter = function() {
+lang_Parser.prototype.typeParameter = function() {
var start = this._peekToken.start;
var name = this.identifier();
var myType = null;
@@ -17652,7 +17676,7 @@ Parser.prototype.typeParameter = function() {
}
return new TypeParameter(name, myType, this._makeSpan(start));
}
-Parser.prototype.typeParameters = function() {
+lang_Parser.prototype.typeParameters = function() {
this._eat(52/*TokenKind.LT*/);
var closed = false;
var ret = [];
@@ -17670,10 +17694,10 @@ Parser.prototype.typeParameters = function() {
}
return ret;
}
-Parser.prototype.get$typeParameters = function() {
- return Parser.prototype.typeParameters.bind(this);
+lang_Parser.prototype.get$typeParameters = function() {
+ return lang_Parser.prototype.typeParameters.bind(this);
}
-Parser.prototype._eatClosingAngle = function(depth) {
+lang_Parser.prototype._eatClosingAngle = function(depth) {
if ($notnull_bool(this._maybeEat(53/*TokenKind.GT*/))) {
return depth;
}
@@ -17688,11 +17712,11 @@ Parser.prototype._eatClosingAngle = function(depth) {
return depth;
}
}
-Parser.prototype.addTypeArguments = function(baseType, depth) {
+lang_Parser.prototype.addTypeArguments = function(baseType, depth) {
this._eat(52/*TokenKind.LT*/);
return this._finishTypeArguments(baseType, depth, []);
}
-Parser.prototype._finishTypeArguments = function(baseType, depth, types) {
+lang_Parser.prototype._finishTypeArguments = function(baseType, depth, types) {
var delta = -1;
do {
var myType = this.type(depth + 1);
@@ -17712,7 +17736,7 @@ Parser.prototype._finishTypeArguments = function(baseType, depth, types) {
var span = this._makeSpan(baseType.span.start);
return new GenericTypeReference(baseType, types, depth, (span && span.is$SourceSpan()));
}
-Parser.prototype.typeList = function() {
+lang_Parser.prototype.typeList = function() {
var types = [];
do {
types.add$1(this.type(0));
@@ -17720,7 +17744,7 @@ Parser.prototype.typeList = function() {
while ($notnull_bool(this._maybeEat(11/*TokenKind.COMMA*/)))
return types;
}
-Parser.prototype.type = function(depth) {
+lang_Parser.prototype.type = function(depth) {
var start = this._peekToken.start;
var name;
var names = null;
@@ -17760,10 +17784,10 @@ Parser.prototype.type = function(depth) {
return typeRef;
}
}
-Parser.prototype.get$type = function() {
- return Parser.prototype.type.bind(this);
+lang_Parser.prototype.get$type = function() {
+ return lang_Parser.prototype.type.bind(this);
}
-Parser.prototype.formalParameter = function(inOptionalBlock) {
+lang_Parser.prototype.formalParameter = function(inOptionalBlock) {
var start = this._peekToken.start;
var isThis = false;
var isRest = false;
@@ -17787,7 +17811,7 @@ Parser.prototype.formalParameter = function(inOptionalBlock) {
}
return new FormalNode(isThis, isRest, type, name, value, this._makeSpan(start));
}
-Parser.prototype.formalParameterList = function() {
+lang_Parser.prototype.formalParameterList = function() {
this._eat(2/*TokenKind.LPAREN*/);
var formals = [];
var inOptionalBlock = false;
@@ -17812,14 +17836,14 @@ Parser.prototype.formalParameterList = function() {
}
return formals;
}
-Parser.prototype.identifier = function() {
+lang_Parser.prototype.identifier = function() {
var tok = this._lang_next();
if (!$notnull_bool(TokenKind.isIdentifier($assert_num(tok.kind)))) {
this._lang_error(('expected identifier, but found ' + tok + ''), tok.get$span());
}
- return new Identifier(tok.get$text(), this._makeSpan(tok.start));
+ return new lang_Identifier(tok.get$text(), this._makeSpan(tok.start));
}
-Parser.prototype._makeFunction = function(expr, body) {
+lang_Parser.prototype._makeFunction = function(expr, body) {
var name, type;
if ((expr instanceof CallExpression)) {
if ((expr.target instanceof VarExpression)) {
@@ -17842,7 +17866,7 @@ Parser.prototype._makeFunction = function(expr, body) {
this._lang_error('expected function');
}
}
-Parser.prototype._makeFormal = function(expr) {
+lang_Parser.prototype._makeFormal = function(expr) {
var $0;
if ((expr instanceof VarExpression)) {
return new FormalNode(false, false, null, expr.get$name(), null, expr.get$span());
@@ -17864,7 +17888,7 @@ Parser.prototype._makeFormal = function(expr) {
this._lang_error('expected formal', expr.get$span());
}
}
-Parser.prototype._makeFormalsFromList = function(expr) {
+lang_Parser.prototype._makeFormalsFromList = function(expr) {
if ($notnull_bool(expr.get$isConst())) {
this._lang_error('expected formal, but found "const"', expr.get$span());
}
@@ -17873,7 +17897,7 @@ Parser.prototype._makeFormalsFromList = function(expr) {
}
return this._makeFormalsFromExpressions(expr.values, false);
}
-Parser.prototype._makeFormals = function(arguments) {
+lang_Parser.prototype._makeFormals = function(arguments) {
var expressions = [];
for (var i = 0;
i < arguments.length; i++) {
@@ -17885,7 +17909,7 @@ Parser.prototype._makeFormals = function(arguments) {
}
return this._makeFormalsFromExpressions(expressions, true);
}
-Parser.prototype._makeFormalsFromExpressions = function(expressions, allowOptional) {
+lang_Parser.prototype._makeFormalsFromExpressions = function(expressions, allowOptional) {
var $0;
var formals = [];
for (var i = 0;
@@ -17929,7 +17953,7 @@ Parser.prototype._makeFormalsFromExpressions = function(expressions, allowOption
}
return formals;
}
-Parser.prototype._makeDeclaredIdentifier = function(e) {
+lang_Parser.prototype._makeDeclaredIdentifier = function(e) {
if ((e instanceof VarExpression)) {
return new DeclaredIdentifier(null, e.get$name(), e.get$span());
}
@@ -17941,7 +17965,7 @@ Parser.prototype._makeDeclaredIdentifier = function(e) {
return new DeclaredIdentifier(null, null, e.get$span());
}
}
-Parser.prototype._makeLabel = function(expr) {
+lang_Parser.prototype._makeLabel = function(expr) {
if ((expr instanceof VarExpression)) {
return expr.get$name();
}
@@ -17950,7 +17974,7 @@ Parser.prototype._makeLabel = function(expr) {
return null;
}
}
-Parser.prototype.block$0 = function() {
+lang_Parser.prototype.block$0 = function() {
return this.block();
};
// ********** Code for IncompleteSourceException **************
@@ -17965,23 +17989,23 @@ IncompleteSourceException.prototype.toString = function() {
IncompleteSourceException.prototype.toString$0 = function() {
return this.toString();
};
-// ********** Code for Node **************
-function Node(span) {
+// ********** Code for lang_Node **************
+function lang_Node(span) {
this.span = span;
// Initializers done
}
-Node.prototype.is$Node = function(){return this;};
-Node.prototype.get$span = function() { return this.span; };
-Node.prototype.set$span = function(value) { return this.span = value; };
-Node.prototype.visit$1 = function($0) {
+lang_Node.prototype.is$lang_Node = function(){return this;};
+lang_Node.prototype.get$span = function() { return this.span; };
+lang_Node.prototype.set$span = function(value) { return this.span = value; };
+lang_Node.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
// ********** Code for Definition **************
function Definition(span) {
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(Definition, Statement);
+$inherits(Definition, lang_Statement);
Definition.prototype.is$Definition = function(){return this;};
Definition.prototype.get$typeParameters = function() {
return null;
@@ -17989,27 +18013,27 @@ Definition.prototype.get$typeParameters = function() {
Definition.prototype.get$nativeType = function() {
return null;
}
-// ********** Code for Statement **************
-function Statement(span) {
+// ********** Code for lang_Statement **************
+function lang_Statement(span) {
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(Statement, Node);
-Statement.prototype.is$Statement = function(){return this;};
-// ********** Code for Expression **************
-function Expression(span) {
+$inherits(lang_Statement, lang_Node);
+lang_Statement.prototype.is$lang_Statement = function(){return this;};
+// ********** Code for lang_Expression **************
+function lang_Expression(span) {
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(Expression, Node);
-Expression.prototype.is$Expression = function(){return this;};
+$inherits(lang_Expression, lang_Node);
+lang_Expression.prototype.is$lang_Expression = function(){return this;};
// ********** Code for TypeReference **************
function TypeReference(span, type) {
this.type = type;
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(TypeReference, Node);
+$inherits(TypeReference, lang_Node);
TypeReference.prototype.is$TypeReference = function(){return this;};
TypeReference.prototype.get$type = function() { return this.type; };
TypeReference.prototype.set$type = function(value) { return this.type = value; };
@@ -18130,9 +18154,9 @@ FunctionDefinition.prototype.visit$1 = function($0) {
function ReturnStatement(value, span) {
this.value = value;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(ReturnStatement, Statement);
+$inherits(ReturnStatement, lang_Statement);
ReturnStatement.prototype.get$value = function() { return this.value; };
ReturnStatement.prototype.set$value = function(value) { return this.value = value; };
ReturnStatement.prototype.visit = function(visitor) {
@@ -18145,9 +18169,9 @@ ReturnStatement.prototype.visit$1 = function($0) {
function ThrowStatement(value, span) {
this.value = value;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(ThrowStatement, Statement);
+$inherits(ThrowStatement, lang_Statement);
ThrowStatement.prototype.get$value = function() { return this.value; };
ThrowStatement.prototype.set$value = function(value) { return this.value = value; };
ThrowStatement.prototype.visit = function(visitor) {
@@ -18160,9 +18184,9 @@ ThrowStatement.prototype.visit$1 = function($0) {
function AssertStatement(test, span) {
this.test = test;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(AssertStatement, Statement);
+$inherits(AssertStatement, lang_Statement);
AssertStatement.prototype.visit = function(visitor) {
return visitor.visitAssertStatement(this);
}
@@ -18173,9 +18197,9 @@ AssertStatement.prototype.visit$1 = function($0) {
function BreakStatement(label, span) {
this.label = label;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(BreakStatement, Statement);
+$inherits(BreakStatement, lang_Statement);
BreakStatement.prototype.visit = function(visitor) {
return visitor.visitBreakStatement(this);
}
@@ -18186,9 +18210,9 @@ BreakStatement.prototype.visit$1 = function($0) {
function ContinueStatement(label, span) {
this.label = label;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(ContinueStatement, Statement);
+$inherits(ContinueStatement, lang_Statement);
ContinueStatement.prototype.visit = function(visitor) {
return visitor.visitContinueStatement(this);
}
@@ -18201,9 +18225,9 @@ function IfStatement(test, trueBranch, falseBranch, span) {
this.trueBranch = trueBranch;
this.falseBranch = falseBranch;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(IfStatement, Statement);
+$inherits(IfStatement, lang_Statement);
IfStatement.prototype.visit = function(visitor) {
return visitor.visitIfStatement(this);
}
@@ -18215,9 +18239,9 @@ function WhileStatement(test, body, span) {
this.test = test;
this.body = body;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(WhileStatement, Statement);
+$inherits(WhileStatement, lang_Statement);
WhileStatement.prototype.visit = function(visitor) {
return visitor.visitWhileStatement(this);
}
@@ -18229,9 +18253,9 @@ function DoStatement(body, test, span) {
this.body = body;
this.test = test;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(DoStatement, Statement);
+$inherits(DoStatement, lang_Statement);
DoStatement.prototype.visit = function(visitor) {
return visitor.visitDoStatement(this);
}
@@ -18245,9 +18269,9 @@ function ForStatement(init, test, step, body, span) {
this.step = step;
this.body = body;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(ForStatement, Statement);
+$inherits(ForStatement, lang_Statement);
ForStatement.prototype.visit = function(visitor) {
return visitor.visitForStatement(this);
}
@@ -18260,9 +18284,9 @@ function ForInStatement(item, list, body, span) {
this.list = list;
this.body = body;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(ForInStatement, Statement);
+$inherits(ForInStatement, lang_Statement);
ForInStatement.prototype.visit = function(visitor) {
return visitor.visitForInStatement(this);
}
@@ -18275,9 +18299,9 @@ function TryStatement(body, catches, finallyBlock, span) {
this.catches = catches;
this.finallyBlock = finallyBlock;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(TryStatement, Statement);
+$inherits(TryStatement, lang_Statement);
TryStatement.prototype.visit = function(visitor) {
return visitor.visitTryStatement(this);
}
@@ -18289,9 +18313,9 @@ function SwitchStatement(test, cases, span) {
this.test = test;
this.cases = cases;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(SwitchStatement, Statement);
+$inherits(SwitchStatement, lang_Statement);
SwitchStatement.prototype.visit = function(visitor) {
return visitor.visitSwitchStatement(this);
}
@@ -18302,9 +18326,9 @@ SwitchStatement.prototype.visit$1 = function($0) {
function BlockStatement(body, span) {
this.body = body;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(BlockStatement, Statement);
+$inherits(BlockStatement, lang_Statement);
BlockStatement.prototype.is$BlockStatement = function(){return this;};
BlockStatement.prototype.visit = function(visitor) {
return visitor.visitBlockStatement(this);
@@ -18317,9 +18341,9 @@ function LabeledStatement(name, body, span) {
this.name = name;
this.body = body;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(LabeledStatement, Statement);
+$inherits(LabeledStatement, lang_Statement);
LabeledStatement.prototype.get$name = function() { return this.name; };
LabeledStatement.prototype.set$name = function(value) { return this.name = value; };
LabeledStatement.prototype.visit = function(visitor) {
@@ -18328,25 +18352,25 @@ LabeledStatement.prototype.visit = function(visitor) {
LabeledStatement.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
-// ********** Code for ExpressionStatement **************
-function ExpressionStatement(body, span) {
+// ********** Code for lang_ExpressionStatement **************
+function lang_ExpressionStatement(body, span) {
this.body = body;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(ExpressionStatement, Statement);
-ExpressionStatement.prototype.visit = function(visitor) {
+$inherits(lang_ExpressionStatement, lang_Statement);
+lang_ExpressionStatement.prototype.visit = function(visitor) {
return visitor.visitExpressionStatement(this);
}
-ExpressionStatement.prototype.visit$1 = function($0) {
+lang_ExpressionStatement.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
// ********** Code for EmptyStatement **************
function EmptyStatement(span) {
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(EmptyStatement, Statement);
+$inherits(EmptyStatement, lang_Statement);
EmptyStatement.prototype.visit = function(visitor) {
return visitor.visitEmptyStatement(this);
}
@@ -18356,9 +18380,9 @@ EmptyStatement.prototype.visit$1 = function($0) {
// ********** Code for DietStatement **************
function DietStatement(span) {
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(DietStatement, Statement);
+$inherits(DietStatement, lang_Statement);
DietStatement.prototype.visit = function(visitor) {
return visitor.visitDietStatement(this);
}
@@ -18369,9 +18393,9 @@ DietStatement.prototype.visit$1 = function($0) {
function NativeStatement(body, span) {
this.body = body;
// Initializers done
- Statement.call(this, span);
+ lang_Statement.call(this, span);
}
-$inherits(NativeStatement, Statement);
+$inherits(NativeStatement, lang_Statement);
NativeStatement.prototype.visit = function(visitor) {
return visitor.visitNativeStatement(this);
}
@@ -18382,9 +18406,9 @@ NativeStatement.prototype.visit$1 = function($0) {
function LambdaExpression(func, span) {
this.func = func;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(LambdaExpression, Expression);
+$inherits(LambdaExpression, lang_Expression);
LambdaExpression.prototype.is$LambdaExpression = function(){return this;};
LambdaExpression.prototype.visit = function(visitor) {
return visitor.visitLambdaExpression(this);
@@ -18397,9 +18421,9 @@ function CallExpression(target, arguments, span) {
this.target = target;
this.arguments = arguments;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(CallExpression, Expression);
+$inherits(CallExpression, lang_Expression);
CallExpression.prototype.is$CallExpression = function(){return this;};
CallExpression.prototype.get$arguments = function() { return this.arguments; };
CallExpression.prototype.set$arguments = function(value) { return this.arguments = value; };
@@ -18414,9 +18438,9 @@ function IndexExpression(target, index, span) {
this.target = target;
this.index = index;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(IndexExpression, Expression);
+$inherits(IndexExpression, lang_Expression);
IndexExpression.prototype.is$IndexExpression = function(){return this;};
IndexExpression.prototype.visit = function(visitor) {
return visitor.visitIndexExpression(this);
@@ -18430,9 +18454,9 @@ function BinaryExpression(op, x, y, span) {
this.x = x;
this.y = y;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(BinaryExpression, Expression);
+$inherits(BinaryExpression, lang_Expression);
BinaryExpression.prototype.is$BinaryExpression = function(){return this;};
BinaryExpression.prototype.visit = function(visitor) {
return visitor.visitBinaryExpression(this);
@@ -18445,9 +18469,10 @@ function UnaryExpression(op, self, span) {
this.op = op;
this.self = self;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(UnaryExpression, Expression);
+$inherits(UnaryExpression, lang_Expression);
+UnaryExpression.prototype.is$UnaryExpression = function(){return this;};
UnaryExpression.prototype.visit = function(visitor) {
return visitor.visitUnaryExpression(this);
}
@@ -18459,9 +18484,9 @@ function PostfixExpression(body, op, span) {
this.body = body;
this.op = op;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(PostfixExpression, Expression);
+$inherits(PostfixExpression, lang_Expression);
PostfixExpression.prototype.is$PostfixExpression = function(){return this;};
PostfixExpression.prototype.visit = function(visitor) {
return visitor.visitPostfixExpression$1(this);
@@ -18469,28 +18494,28 @@ PostfixExpression.prototype.visit = function(visitor) {
PostfixExpression.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
-// ********** Code for NewExpression **************
-function NewExpression(isConst, type, name, arguments, span) {
+// ********** Code for lang_NewExpression **************
+function lang_NewExpression(isConst, type, name, arguments, span) {
this.isConst = isConst;
this.type = type;
this.name = name;
this.arguments = arguments;
// 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; };
-NewExpression.prototype.set$type = function(value) { return this.type = value; };
-NewExpression.prototype.get$name = function() { return this.name; };
-NewExpression.prototype.set$name = function(value) { return this.name = value; };
-NewExpression.prototype.get$arguments = function() { return this.arguments; };
-NewExpression.prototype.set$arguments = function(value) { return this.arguments = value; };
-NewExpression.prototype.visit = function(visitor) {
+ lang_Expression.call(this, span);
+}
+$inherits(lang_NewExpression, lang_Expression);
+lang_NewExpression.prototype.get$isConst = function() { return this.isConst; };
+lang_NewExpression.prototype.set$isConst = function(value) { return this.isConst = value; };
+lang_NewExpression.prototype.get$type = function() { return this.type; };
+lang_NewExpression.prototype.set$type = function(value) { return this.type = value; };
+lang_NewExpression.prototype.get$name = function() { return this.name; };
+lang_NewExpression.prototype.set$name = function(value) { return this.name = value; };
+lang_NewExpression.prototype.get$arguments = function() { return this.arguments; };
+lang_NewExpression.prototype.set$arguments = function(value) { return this.arguments = value; };
+lang_NewExpression.prototype.visit = function(visitor) {
return visitor.visitNewExpression(this);
}
-NewExpression.prototype.visit$1 = function($0) {
+lang_NewExpression.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
// ********** Code for ListExpression **************
@@ -18499,9 +18524,9 @@ function ListExpression(isConst, type, values, span) {
this.type = type;
this.values = values;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(ListExpression, Expression);
+$inherits(ListExpression, lang_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; };
@@ -18518,9 +18543,9 @@ function MapExpression(isConst, type, items, span) {
this.type = type;
this.items = items;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(MapExpression, Expression);
+$inherits(MapExpression, lang_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; };
@@ -18537,9 +18562,9 @@ function ConditionalExpression(test, trueBranch, falseBranch, span) {
this.trueBranch = trueBranch;
this.falseBranch = falseBranch;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(ConditionalExpression, Expression);
+$inherits(ConditionalExpression, lang_Expression);
ConditionalExpression.prototype.visit = function(visitor) {
return visitor.visitConditionalExpression(this);
}
@@ -18552,9 +18577,9 @@ function IsExpression(isTrue, x, type, span) {
this.x = x;
this.type = type;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(IsExpression, Expression);
+$inherits(IsExpression, lang_Expression);
IsExpression.prototype.get$type = function() { return this.type; };
IsExpression.prototype.set$type = function(value) { return this.type = value; };
IsExpression.prototype.visit = function(visitor) {
@@ -18567,9 +18592,9 @@ IsExpression.prototype.visit$1 = function($0) {
function ParenExpression(body, span) {
this.body = body;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(ParenExpression, Expression);
+$inherits(ParenExpression, lang_Expression);
ParenExpression.prototype.visit = function(visitor) {
return visitor.visitParenExpression(this);
}
@@ -18581,9 +18606,9 @@ function DotExpression(self, name, span) {
this.self = self;
this.name = name;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(DotExpression, Expression);
+$inherits(DotExpression, lang_Expression);
DotExpression.prototype.is$DotExpression = function(){return this;};
DotExpression.prototype.get$name = function() { return this.name; };
DotExpression.prototype.set$name = function(value) { return this.name = value; };
@@ -18597,9 +18622,9 @@ DotExpression.prototype.visit$1 = function($0) {
function VarExpression(name, span) {
this.name = name;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(VarExpression, Expression);
+$inherits(VarExpression, lang_Expression);
VarExpression.prototype.is$VarExpression = function(){return this;};
VarExpression.prototype.get$name = function() { return this.name; };
VarExpression.prototype.set$name = function(value) { return this.name = value; };
@@ -18612,9 +18637,9 @@ VarExpression.prototype.visit$1 = function($0) {
// ********** Code for ThisExpression **************
function ThisExpression(span) {
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(ThisExpression, Expression);
+$inherits(ThisExpression, lang_Expression);
ThisExpression.prototype.visit = function(visitor) {
return visitor.visitThisExpression(this);
}
@@ -18624,9 +18649,9 @@ ThisExpression.prototype.visit$1 = function($0) {
// ********** Code for SuperExpression **************
function SuperExpression(span) {
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(SuperExpression, Expression);
+$inherits(SuperExpression, lang_Expression);
SuperExpression.prototype.visit = function(visitor) {
return visitor.visitSuperExpression(this);
}
@@ -18636,9 +18661,9 @@ SuperExpression.prototype.visit$1 = function($0) {
// ********** Code for NullExpression **************
function NullExpression(span) {
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(NullExpression, Expression);
+$inherits(NullExpression, lang_Expression);
NullExpression.prototype.visit = function(visitor) {
return visitor.visitNullExpression(this);
}
@@ -18651,9 +18676,9 @@ function LiteralExpression(value, type, text, span) {
this.type = type;
this.text = text;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(LiteralExpression, Expression);
+$inherits(LiteralExpression, lang_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; };
@@ -18724,9 +18749,9 @@ function ArgumentNode(label, value, span) {
this.label = label;
this.value = value;
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(ArgumentNode, Node);
+$inherits(ArgumentNode, lang_Node);
ArgumentNode.prototype.is$ArgumentNode = function(){return this;};
ArgumentNode.prototype.get$value = function() { return this.value; };
ArgumentNode.prototype.set$value = function(value) { return this.value = value; };
@@ -18744,9 +18769,9 @@ function FormalNode(isThis, isRest, type, name, value, span) {
this.name = name;
this.value = value;
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(FormalNode, Node);
+$inherits(FormalNode, lang_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; };
@@ -18765,9 +18790,9 @@ function CatchNode(exception, trace, body, span) {
this.trace = trace;
this.body = body;
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(CatchNode, Node);
+$inherits(CatchNode, lang_Node);
CatchNode.prototype.get$exception = function() { return this.exception; };
CatchNode.prototype.set$exception = function(value) { return this.exception = value; };
CatchNode.prototype.visit = function(visitor) {
@@ -18782,9 +18807,9 @@ function CaseNode(label, cases, statements, span) {
this.cases = cases;
this.statements = statements;
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(CaseNode, Node);
+$inherits(CaseNode, lang_Node);
CaseNode.prototype.visit = function(visitor) {
return visitor.visitCaseNode(this);
}
@@ -18796,9 +18821,9 @@ function TypeParameter(name, extendsType, span) {
this.name = name;
this.extendsType = extendsType;
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(TypeParameter, Node);
+$inherits(TypeParameter, lang_Node);
TypeParameter.prototype.get$name = function() { return this.name; };
TypeParameter.prototype.set$name = function(value) { return this.name = value; };
TypeParameter.prototype.visit = function(visitor) {
@@ -18807,20 +18832,20 @@ TypeParameter.prototype.visit = function(visitor) {
TypeParameter.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
-// ********** Code for Identifier **************
-function Identifier(name, span) {
+// ********** Code for lang_Identifier **************
+function lang_Identifier(name, span) {
this.name = name;
// Initializers done
- Node.call(this, span);
+ lang_Node.call(this, span);
}
-$inherits(Identifier, Node);
-Identifier.prototype.is$Identifier = function(){return this;};
-Identifier.prototype.get$name = function() { return this.name; };
-Identifier.prototype.set$name = function(value) { return this.name = value; };
-Identifier.prototype.visit = function(visitor) {
+$inherits(lang_Identifier, lang_Node);
+lang_Identifier.prototype.is$lang_Identifier = function(){return this;};
+lang_Identifier.prototype.get$name = function() { return this.name; };
+lang_Identifier.prototype.set$name = function(value) { return this.name = value; };
+lang_Identifier.prototype.visit = function(visitor) {
return visitor.visitIdentifier(this);
}
-Identifier.prototype.visit$1 = function($0) {
+lang_Identifier.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
// ********** Code for DeclaredIdentifier **************
@@ -18828,9 +18853,9 @@ function DeclaredIdentifier(type, name, span) {
this.type = type;
this.name = name;
// Initializers done
- Expression.call(this, span);
+ lang_Expression.call(this, span);
}
-$inherits(DeclaredIdentifier, Expression);
+$inherits(DeclaredIdentifier, lang_Expression);
DeclaredIdentifier.prototype.is$DeclaredIdentifier = function(){return this;};
DeclaredIdentifier.prototype.get$type = function() { return this.type; };
DeclaredIdentifier.prototype.set$type = function(value) { return this.type = value; };
@@ -18842,122 +18867,122 @@ DeclaredIdentifier.prototype.visit = function(visitor) {
DeclaredIdentifier.prototype.visit$1 = function($0) {
return this.visit(($0 && $0.is$TreeVisitor()));
};
-// ********** Code for Type **************
-function Type(name) {
+// ********** Code for lang_Type **************
+function lang_Type(name) {
this.name = name;
this.isTested = false;
// Initializers done
}
-Type.prototype.is$Type = function(){return this;};
-Type.prototype.is$Named = function(){return this;};
-Type.prototype.get$name = function() { return this.name; };
-Type.prototype.markUsed = function() {
+lang_Type.prototype.is$lang_Type = function(){return this;};
+lang_Type.prototype.is$Named = function(){return this;};
+lang_Type.prototype.get$name = function() { return this.name; };
+lang_Type.prototype.markUsed = function() {
}
-Type.prototype.get$typeMember = function() {
+lang_Type.prototype.get$typeMember = function() {
var $0;
if (this._typeMember == null) {
this._typeMember = new TypeMember((this && this.is$DefinedType()));
}
return (($0 = this._typeMember) && $0.is$TypeMember());
}
-Type.prototype.getMember = function(name) {
+lang_Type.prototype.getMember = function(name) {
return null;
}
-Type.prototype.get$isVar = function() {
+lang_Type.prototype.get$isVar = function() {
return false;
}
-Type.prototype.get$isTop = function() {
+lang_Type.prototype.get$isTop = function() {
return false;
}
-Type.prototype.get$isObject = function() {
+lang_Type.prototype.get$isObject = function() {
return false;
}
-Type.prototype.get$isString = function() {
+lang_Type.prototype.get$isString = function() {
return false;
}
-Type.prototype.get$isBool = function() {
+lang_Type.prototype.get$isBool = function() {
return false;
}
-Type.prototype.get$isFunction = function() {
+lang_Type.prototype.get$isFunction = function() {
return false;
}
-Type.prototype.get$isList = function() {
+lang_Type.prototype.get$isList = function() {
return false;
}
-Type.prototype.get$isNum = function() {
+lang_Type.prototype.get$isNum = function() {
return false;
}
-Type.prototype.get$isVoid = function() {
+lang_Type.prototype.get$isVoid = function() {
return false;
}
-Type.prototype.get$isNullable = function() {
+lang_Type.prototype.get$isNullable = function() {
return true;
}
-Type.prototype.get$isVarOrFunction = function() {
+lang_Type.prototype.get$isVarOrFunction = function() {
return $notnull_bool(this.get$isVar()) || $notnull_bool(this.get$isFunction());
}
-Type.prototype.get$isVarOrObject = function() {
+lang_Type.prototype.get$isVarOrObject = function() {
return $notnull_bool(this.get$isVar()) || $notnull_bool(this.get$isObject());
}
-Type.prototype.getCallMethod = function() {
+lang_Type.prototype.getCallMethod = function() {
return null;
}
-Type.prototype.get$isClosed = function() {
+lang_Type.prototype.get$isClosed = function() {
return $notnull_bool(this.get$isString()) || $notnull_bool(this.get$isBool()) || $notnull_bool(this.get$isNum()) || $notnull_bool(this.get$isFunction()) || $notnull_bool(this.get$isVar());
}
-Type.prototype.get$isUsed = function() {
+lang_Type.prototype.get$isUsed = function() {
return false;
}
-Type.prototype.get$isGeneric = function() {
+lang_Type.prototype.get$isGeneric = function() {
return false;
}
-Type.prototype.get$isNativeType = function() {
+lang_Type.prototype.get$isNativeType = function() {
return false;
}
-Type.prototype.get$isNative = function() {
+lang_Type.prototype.get$isNative = function() {
return this.get$isNativeType();
}
-Type.prototype.get$hasTypeParams = function() {
+lang_Type.prototype.get$hasTypeParams = function() {
return false;
}
-Type.prototype.get$typeofName = function() {
+lang_Type.prototype.get$typeofName = function() {
return null;
}
-Type.prototype.get$jsname = function() {
+lang_Type.prototype.get$jsname = function() {
return this._jsname == null ? this.name : this._jsname;
}
-Type.prototype.set$jsname = function(name) {
+lang_Type.prototype.set$jsname = function(name) {
return this._jsname = name;
}
-Type.prototype.get$members = function() {
+lang_Type.prototype.get$members = function() {
return null;
}
-Type.prototype.get$definition = function() {
+lang_Type.prototype.get$definition = function() {
return null;
}
-Type.prototype.get$factories = function() {
+lang_Type.prototype.get$factories = function() {
return null;
}
-Type.prototype.get$typeArgsInOrder = function() {
+lang_Type.prototype.get$typeArgsInOrder = function() {
return null;
}
-Type.prototype.get$genericType = function() {
+lang_Type.prototype.get$genericType = function() {
return (this && this.is$DefinedType());
}
-Type.prototype.get$interfaces = function() {
+lang_Type.prototype.get$interfaces = function() {
return null;
}
-Type.prototype.get$parent = function() {
+lang_Type.prototype.get$parent = function() {
return null;
}
-Type.prototype.getAllMembers = function() {
+lang_Type.prototype.getAllMembers = function() {
return $map([]);
}
-Type.prototype.hashCode = function() {
+lang_Type.prototype.hashCode = function() {
return this.name.hashCode();
}
-Type.prototype.ensureSubtypeOf = function(other, span, typeErrors) {
+lang_Type.prototype.ensureSubtypeOf = function(other, span, typeErrors) {
if (!$notnull_bool(this.isSubtypeOf(other))) {
var msg = ('type ' + this.name + ' is not a subtype of ' + other.name + '');
if ($notnull_bool(typeErrors)) {
@@ -18968,7 +18993,7 @@ Type.prototype.ensureSubtypeOf = function(other, span, typeErrors) {
}
}
}
-Type.prototype.needsVarCall = function(args) {
+lang_Type.prototype.needsVarCall = function(args) {
if ($notnull_bool(this.get$isVarOrFunction())) {
return true;
}
@@ -18980,16 +19005,16 @@ Type.prototype.needsVarCall = function(args) {
}
return false;
}
-Type.union = function(x, y) {
+lang_Type.union = function(x, y) {
if ($eq(x, y)) return x;
if ($notnull_bool(x.get$isNum()) && $notnull_bool(y.get$isNum())) return world.numType;
if ($notnull_bool(x.get$isString()) && $notnull_bool(y.get$isString())) return world.stringType;
return world.varType;
}
-Type.prototype.isAssignable = function(other) {
+lang_Type.prototype.isAssignable = function(other) {
return $notnull_bool(this.isSubtypeOf(other)) || $notnull_bool(other.isSubtypeOf(this));
}
-Type.prototype._isDirectSupertypeOf = function(other) {
+lang_Type.prototype._isDirectSupertypeOf = function(other) {
var $this = this; // closure support
if ($notnull_bool(other.get$isClass())) {
return $eq(other.get$parent(), this) || $notnull_bool(this.get$isObject()) && other.get$parent() == null;
@@ -19006,7 +19031,7 @@ Type.prototype._isDirectSupertypeOf = function(other) {
}
}
}
-Type.prototype.isSubtypeOf = function(other) {
+lang_Type.prototype.isSubtypeOf = function(other) {
if ((other instanceof ParameterType)) {
return true;
}
@@ -19017,7 +19042,7 @@ Type.prototype.isSubtypeOf = function(other) {
var call = this.getCallMethod();
var otherCall = other.getCallMethod();
if ($notnull_bool($ne(call, null)) && $notnull_bool($ne(otherCall, null))) {
- return Type._isFunctionSubtypeOf((call && call.is$MethodMember()), (otherCall && otherCall.is$MethodMember()));
+ return lang_Type._isFunctionSubtypeOf((call && call.is$MethodMember()), (otherCall && otherCall.is$MethodMember()));
}
if ($eq(this.get$genericType(), other.get$genericType()) && $notnull_bool($ne(this.get$typeArgsInOrder(), null)) && $notnull_bool($ne(other.get$typeArgsInOrder(), null)) && this.get$typeArgsInOrder().length == other.get$typeArgsInOrder().length) {
var t = this.get$typeArgsInOrder().iterator$0();
@@ -19038,7 +19063,7 @@ Type.prototype.isSubtypeOf = function(other) {
}
return false;
}
-Type._isFunctionSubtypeOf = function(t, s) {
+lang_Type._isFunctionSubtypeOf = function(t, s) {
if (!$notnull_bool(s.returnType.get$isVoid()) && !$notnull_bool(s.returnType.isAssignable(t.returnType))) {
return false;
}
@@ -19054,49 +19079,49 @@ Type._isFunctionSubtypeOf = function(t, s) {
if (tp.length > sp.length && !$notnull_bool(tp.$index(sp.length).get$isOptional())) return false;
return true;
}
-Type.prototype.addDirectSubtype$1 = function($0) {
- return this.addDirectSubtype(($0 && $0.is$Type()));
+lang_Type.prototype.addDirectSubtype$1 = function($0) {
+ return this.addDirectSubtype(($0 && $0.is$lang_Type()));
};
-Type.prototype.ensureSubtypeOf$3 = function($0, $1, $2) {
- return this.ensureSubtypeOf(($0 && $0.is$Type()), ($1 && $1.is$SourceSpan()), $assert_bool($2));
+lang_Type.prototype.ensureSubtypeOf$3 = function($0, $1, $2) {
+ return this.ensureSubtypeOf(($0 && $0.is$lang_Type()), ($1 && $1.is$SourceSpan()), $assert_bool($2));
};
-Type.prototype.getConstructor$1 = function($0) {
+lang_Type.prototype.getConstructor$1 = function($0) {
return this.getConstructor($assert_String($0));
};
-Type.prototype.getFactory$2 = function($0, $1) {
- return this.getFactory(($0 && $0.is$Type()), $assert_String($1));
+lang_Type.prototype.getFactory$2 = function($0, $1) {
+ return this.getFactory(($0 && $0.is$lang_Type()), $assert_String($1));
};
-Type.prototype.getMember$1 = function($0) {
+lang_Type.prototype.getMember$1 = function($0) {
return this.getMember($assert_String($0));
};
-Type.prototype.getOrMakeConcreteType$1 = function($0) {
+lang_Type.prototype.getOrMakeConcreteType$1 = function($0) {
return this.getOrMakeConcreteType(($0 && $0.is$List$Type()));
};
-Type.prototype.hashCode$0 = function() {
+lang_Type.prototype.hashCode$0 = function() {
return this.hashCode();
};
-Type.prototype.isAssignable$1 = function($0) {
- return this.isAssignable(($0 && $0.is$Type()));
+lang_Type.prototype.isAssignable$1 = function($0) {
+ return this.isAssignable(($0 && $0.is$lang_Type()));
};
-Type.prototype.isSubtypeOf$1 = function($0) {
- return this.isSubtypeOf(($0 && $0.is$Type()));
+lang_Type.prototype.isSubtypeOf$1 = function($0) {
+ return this.isSubtypeOf(($0 && $0.is$lang_Type()));
};
-Type.prototype.markUsed$0 = function() {
+lang_Type.prototype.markUsed$0 = function() {
return this.markUsed();
};
-Type.prototype.resolveMember$1 = function($0) {
+lang_Type.prototype.resolveMember$1 = function($0) {
return this.resolveMember($assert_String($0));
};
-Type.prototype.resolveTypeParams$1 = function($0) {
+lang_Type.prototype.resolveTypeParams$1 = function($0) {
return this.resolveTypeParams(($0 && $0.is$ConcreteType()));
};
// ********** Code for ParameterType **************
function ParameterType(name, typeParameter) {
this.typeParameter = typeParameter;
// Initializers done
- Type.call(this, name);
+ lang_Type.call(this, name);
}
-$inherits(ParameterType, Type);
+$inherits(ParameterType, lang_Type);
ParameterType.prototype.is$ParameterType = function(){return this;};
ParameterType.prototype.get$isClass = function() {
return false;
@@ -19130,7 +19155,7 @@ ParameterType.prototype.getOrMakeConcreteType = function(typeArgs) {
}
ParameterType.prototype.resolveTypeParams = function(inType) {
var $0;
- return (($0 = inType.typeArguments.$index(this.name)) && $0.is$Type());
+ return (($0 = inType.typeArguments.$index(this.name)) && $0.is$lang_Type());
}
ParameterType.prototype.addDirectSubtype = function(type) {
world.internalError('no subtypes of type parameters yet', this.get$span());
@@ -19144,7 +19169,7 @@ ParameterType.prototype.resolve = function(inType) {
}
}
ParameterType.prototype.addDirectSubtype$1 = function($0) {
- return this.addDirectSubtype(($0 && $0.is$Type()));
+ return this.addDirectSubtype(($0 && $0.is$lang_Type()));
};
ParameterType.prototype.getConstructor$1 = function($0) {
return this.getConstructor($assert_String($0));
@@ -19153,10 +19178,10 @@ ParameterType.prototype.getOrMakeConcreteType$1 = function($0) {
return this.getOrMakeConcreteType(($0 && $0.is$List$Type()));
};
ParameterType.prototype.isSubtypeOf$1 = function($0) {
- return this.isSubtypeOf(($0 && $0.is$Type()));
+ return this.isSubtypeOf(($0 && $0.is$lang_Type()));
};
ParameterType.prototype.resolve$1 = function($0) {
- return this.resolve(($0 && $0.is$Type()));
+ return this.resolve(($0 && $0.is$lang_Type()));
};
ParameterType.prototype.resolveMember$1 = function($0) {
return this.resolveMember($assert_String($0));
@@ -19168,9 +19193,9 @@ ParameterType.prototype.resolveTypeParams$1 = function($0) {
function NonNullableType(type) {
this.type = type;
// Initializers done
- Type.call(this, type.name);
+ lang_Type.call(this, type.name);
}
-$inherits(NonNullableType, Type);
+$inherits(NonNullableType, lang_Type);
NonNullableType.prototype.get$type = function() { return this.type; };
NonNullableType.prototype.get$isNullable = function() {
return false;
@@ -19275,13 +19300,13 @@ NonNullableType.prototype.get$isNativeType = function() {
return this.type.get$isNativeType();
}
NonNullableType.prototype.addDirectSubtype$1 = function($0) {
- return this.addDirectSubtype(($0 && $0.is$Type()));
+ return this.addDirectSubtype(($0 && $0.is$lang_Type()));
};
NonNullableType.prototype.getConstructor$1 = function($0) {
return this.getConstructor($assert_String($0));
};
NonNullableType.prototype.getFactory$2 = function($0, $1) {
- return this.getFactory(($0 && $0.is$Type()), $assert_String($1));
+ return this.getFactory(($0 && $0.is$lang_Type()), $assert_String($1));
};
NonNullableType.prototype.getMember$1 = function($0) {
return this.getMember($assert_String($0));
@@ -19290,7 +19315,7 @@ NonNullableType.prototype.getOrMakeConcreteType$1 = function($0) {
return this.getOrMakeConcreteType(($0 && $0.is$List$Type()));
};
NonNullableType.prototype.isSubtypeOf$1 = function($0) {
- return this.isSubtypeOf(($0 && $0.is$Type()));
+ return this.isSubtypeOf(($0 && $0.is$lang_Type()));
};
NonNullableType.prototype.markUsed$0 = function() {
return this.markUsed();
@@ -19310,9 +19335,9 @@ function ConcreteType(name, genericType, typeArguments, typeArgsInOrder) {
this.members = $map([]);
this.factories = new FactoryMap();
// Initializers done
- Type.call(this, name);
+ lang_Type.call(this, name);
}
-$inherits(ConcreteType, Type);
+$inherits(ConcreteType, lang_Type);
ConcreteType.prototype.is$ConcreteType = function(){return this;};
ConcreteType.prototype.get$genericType = function() { return this.genericType; };
ConcreteType.prototype.get$typeArgsInOrder = function() { return this.typeArgsInOrder; };
@@ -19443,19 +19468,19 @@ ConcreteType.prototype.resolveMember = function(memberName) {
}
ConcreteType.prototype.resolveType = function(node, isRequired) {
var ret = this.genericType.resolveType(node, isRequired);
- return (ret && ret.is$Type());
+ return (ret && ret.is$lang_Type());
}
ConcreteType.prototype.addDirectSubtype = function(type) {
this.genericType.addDirectSubtype(type);
}
ConcreteType.prototype.addDirectSubtype$1 = function($0) {
- return this.addDirectSubtype(($0 && $0.is$Type()));
+ return this.addDirectSubtype(($0 && $0.is$lang_Type()));
};
ConcreteType.prototype.getConstructor$1 = function($0) {
return this.getConstructor($assert_String($0));
};
ConcreteType.prototype.getFactory$2 = function($0, $1) {
- return this.getFactory(($0 && $0.is$Type()), $assert_String($1));
+ return this.getFactory(($0 && $0.is$lang_Type()), $assert_String($1));
};
ConcreteType.prototype.getMember$1 = function($0) {
return this.getMember($assert_String($0));
@@ -19484,10 +19509,10 @@ function DefinedType(name, library, definition, isClass) {
this.factories = new FactoryMap();
this._resolvedMembers = $map([]);
// Initializers done
- Type.call(this, name);
+ lang_Type.call(this, name);
this.setDefinition(definition);
}
-$inherits(DefinedType, Type);
+$inherits(DefinedType, lang_Type);
DefinedType.prototype.is$DefinedType = function(){return this;};
DefinedType.prototype.get$definition = function() { return this.definition; };
DefinedType.prototype.set$definition = function(value) { return this.definition = value; };
@@ -19993,7 +20018,7 @@ DefinedType.prototype.resolveType = function(node, typeErrors) {
for (var $i = 0;$i < $list.length; $i++) {
var tp = $list.$index($i);
if ($notnull_bool($eq(tp.get$name(), name))) {
- typeRef.type = (tp && tp.is$Type());
+ typeRef.type = (tp && tp.is$lang_Type());
}
}
}
@@ -20065,7 +20090,7 @@ DefinedType.prototype.getOrMakeConcreteType = function(typeArgs) {
ret = new ConcreteType($assert_String(concreteName), this, typeMap, typeArgs);
this._concreteTypes.$setindex(concreteName, ret);
}
- return (ret && ret.is$Type());
+ return (ret && ret.is$lang_Type());
}
DefinedType.prototype.getCallStub = function(args) {
$assert(this.get$isFunction(), "isFunction", "type.dart", 1251, 12);
@@ -20079,7 +20104,7 @@ DefinedType.prototype.getCallStub = function(args) {
return (stub && stub.is$VarFunctionStub());
}
DefinedType.prototype.addDirectSubtype$1 = function($0) {
- return this.addDirectSubtype(($0 && $0.is$Type()));
+ return this.addDirectSubtype(($0 && $0.is$lang_Type()));
};
DefinedType.prototype.addMethod$2 = function($0, $1) {
return this.addMethod($assert_String($0), ($1 && $1.is$FunctionDefinition()));
@@ -20088,7 +20113,7 @@ DefinedType.prototype.getConstructor$1 = function($0) {
return this.getConstructor($assert_String($0));
};
DefinedType.prototype.getFactory$2 = function($0, $1) {
- return this.getFactory(($0 && $0.is$Type()), $assert_String($1));
+ return this.getFactory(($0 && $0.is$lang_Type()), $assert_String($1));
};
DefinedType.prototype.getMember$1 = function($0) {
return this.getMember($assert_String($0));
@@ -20274,7 +20299,8 @@ Value.prototype._hasOverriddenNoSuchMethod = function() {
return $notnull_bool($ne(m, null)) && !$notnull_bool(m.declaringType.get$isObject());
}
else {
- return this.type.resolveMember('noSuchMethod').members.length > 1;
+ var m = this.type.resolveMember('noSuchMethod');
+ return $notnull_bool($ne(m, null)) && m.get$members().length > 1;
}
}
Value.prototype._tryResolveMember = function(context, name) {
@@ -20487,8 +20513,8 @@ Value.prototype.invokeNoSuchMethod = function(context, name, node, args) {
return this._resolveMember(context, 'noSuchMethod', node, false).invoke$4(context, node, this, new Arguments(null, noSuchArgs));
}
Value.prototype.invokeSpecial = function(name, args, returnType) {
- $assert(name.startsWith('\$'), "name.startsWith('\\$')", "value.dart", 483, 12);
- $assert(!$notnull_bool(args.get$hasNames()), "!args.hasNames", "value.dart", 484, 12);
+ $assert(name.startsWith('\$'), "name.startsWith('\\$')", "value.dart", 484, 12);
+ $assert(!$notnull_bool(args.get$hasNames()), "!args.hasNames", "value.dart", 485, 12);
var argsString = args.getCode();
if (name == '\$index' || name == '\$setindex') {
return new Value(returnType, ('' + this.code + '.' + name + '(' + argsString + ')'), this.span, true);
@@ -20503,34 +20529,34 @@ Value.prototype.checkFirstClass$1 = function($0) {
return this.checkFirstClass(($0 && $0.is$SourceSpan()));
};
Value.prototype.convertTo$3 = function($0, $1, $2) {
- return this.convertTo(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Type()), ($2 && $2.is$Node()), false);
+ return this.convertTo(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Type()), ($2 && $2.is$lang_Node()), false);
};
Value.prototype.convertTo$4 = function($0, $1, $2, $3) {
- return this.convertTo(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Type()), ($2 && $2.is$Node()), $assert_bool($3));
+ return this.convertTo(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Type()), ($2 && $2.is$lang_Node()), $assert_bool($3));
};
Value.prototype.get_$3 = function($0, $1, $2) {
- return this.get_(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$Node()));
+ return this.get_(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$lang_Node()));
};
Value.prototype.instanceOf$3$isTrue$forceCheck = function($0, $1, $2, isTrue, forceCheck) {
- return this.instanceOf(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Type()), ($2 && $2.is$SourceSpan()), $assert_bool(isTrue), $assert_bool(forceCheck));
+ return this.instanceOf(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Type()), ($2 && $2.is$SourceSpan()), $assert_bool(isTrue), $assert_bool(forceCheck));
};
Value.prototype.instanceOf$4 = function($0, $1, $2, $3) {
- return this.instanceOf(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Type()), ($2 && $2.is$SourceSpan()), $assert_bool($3), false);
+ return this.instanceOf(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Type()), ($2 && $2.is$SourceSpan()), $assert_bool($3), false);
};
Value.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$Node()), ($3 && $3.is$Arguments()), false);
+ return this.invoke(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$lang_Node()), ($3 && $3.is$Arguments()), false);
};
Value.prototype.invoke$4$isDynamic = function($0, $1, $2, $3, isDynamic) {
- return this.invoke(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$Node()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
+ return this.invoke(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$lang_Node()), ($3 && $3.is$Arguments()), $assert_bool(isDynamic));
};
Value.prototype.invoke$5 = function($0, $1, $2, $3, $4) {
- return this.invoke(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$Node()), ($3 && $3.is$Arguments()), $assert_bool($4));
+ return this.invoke(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$lang_Node()), ($3 && $3.is$Arguments()), $assert_bool($4));
};
Value.prototype.needsConversion$1 = function($0) {
- return this.needsConversion(($0 && $0.is$Type()));
+ return this.needsConversion(($0 && $0.is$lang_Type()));
};
Value.prototype.set_$4 = function($0, $1, $2, $3) {
- return this.set_(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$Node()), ($3 && $3.is$Value()), false);
+ return this.set_(($0 && $0.is$MethodGenerator()), $assert_String($1), ($2 && $2.is$lang_Node()), ($3 && $3.is$Value()), false);
};
// ********** Code for EvaluatedValue **************
function EvaluatedValue() {}
@@ -20560,7 +20586,7 @@ function ConstListValue() {}
ConstListValue._internal$ctor = function(type, values, actualValue, canonicalCode, span, code) {
this.values = values;
// Initializers done
- EvaluatedValue._internal$ctor.call(this, (type && type.is$Type()), actualValue, canonicalCode, (span && span.is$SourceSpan()), $assert_String(code));
+ EvaluatedValue._internal$ctor.call(this, (type && type.is$lang_Type()), actualValue, canonicalCode, (span && span.is$SourceSpan()), $assert_String(code));
}
ConstListValue._internal$ctor.prototype = ConstListValue.prototype;
$inherits(ConstListValue, EvaluatedValue);
@@ -20572,7 +20598,7 @@ function ConstMapValue() {}
ConstMapValue._internal$ctor = function(type, values, actualValue, canonicalCode, span, code) {
this.values = values;
// Initializers done
- EvaluatedValue._internal$ctor.call(this, (type && type.is$Type()), actualValue, canonicalCode, (span && span.is$SourceSpan()), $assert_String(code));
+ EvaluatedValue._internal$ctor.call(this, (type && type.is$lang_Type()), actualValue, canonicalCode, (span && span.is$SourceSpan()), $assert_String(code));
}
ConstMapValue._internal$ctor.prototype = ConstMapValue.prototype;
$inherits(ConstMapValue, EvaluatedValue);
@@ -20589,7 +20615,7 @@ function ConstObjectValue() {}
ConstObjectValue._internal$ctor = function(type, fields, actualValue, canonicalCode, span, code) {
this.fields = fields;
// Initializers done
- EvaluatedValue._internal$ctor.call(this, (type && type.is$Type()), actualValue, canonicalCode, (span && span.is$SourceSpan()), $assert_String(code));
+ EvaluatedValue._internal$ctor.call(this, (type && type.is$lang_Type()), actualValue, canonicalCode, (span && span.is$SourceSpan()), $assert_String(code));
}
ConstObjectValue._internal$ctor.prototype = ConstObjectValue.prototype;
$inherits(ConstObjectValue, EvaluatedValue);
@@ -20686,23 +20712,27 @@ function BareValue(home, outermost, span) {
this.isType = outermost.get$isStatic();
}
$inherits(BareValue, Value);
+BareValue.prototype._ensureCode = function() {
+ if (this.code != null) return;
+ if ($notnull_bool(this.isType)) {
+ this.code = this.type.get$jsname();
+ }
+ else {
+ this.code = this.home._makeThisCode();
+ }
+}
BareValue.prototype._tryResolveMember = function(context, name) {
- $assert($eq(context, this.home), "context == home", "value.dart", 688, 12);
+ $assert($eq(context, this.home), "context == home", "value.dart", 699, 12);
var member = this.type.resolveMember(name);
if ($notnull_bool($ne(member, null))) {
- $assert(this.code == null, "code == null", "value.dart", 693, 14);
- if ($notnull_bool(this.isType)) {
- this.code = this.type.get$jsname();
- }
- else {
- this.code = this.home._makeThisCode();
- }
+ this._ensureCode();
return member;
}
member = this.home.get$library().lookup(name, this.span);
if ($notnull_bool($ne(member, null))) {
return member;
}
+ this._ensureCode();
return null;
}
// ********** Code for CompilerException **************
@@ -20863,7 +20893,7 @@ World.prototype.runLeg = function() {
var $this = this; // closure support
if (!$notnull_bool(options.enableLeg)) return false;
var res = $assert_bool(this.withTiming('try leg compile', (function () {
- return leg_compile($this);
+ return compile($this);
})
));
if (!$notnull_bool(res) && $notnull_bool(options.legOnly)) {
@@ -21189,7 +21219,7 @@ VarMember.prototype.generate$1 = function($0) {
return this.generate(($0 && $0.is$CodeWriter()));
};
VarMember.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()));
};
// ********** Code for VarFunctionStub **************
function VarFunctionStub(name, callArgs) {
@@ -21243,7 +21273,7 @@ function VarMethodStub(name, member, args, body) {
$inherits(VarMethodStub, VarMember);
VarMethodStub.prototype.get$returnType = function() {
var $0;
- return (($0 = this.member != null ? this.member.get$returnType() : world.varType) && $0.is$Type());
+ return (($0 = this.member != null ? this.member.get$returnType() : world.varType) && $0.is$lang_Type());
}
VarMethodStub.prototype.get$typeName = function() {
return this.member != null ? this.member.declaringType.get$jsname() : 'Object';
@@ -21319,7 +21349,7 @@ VarMethodSet.prototype._invokeMembers = function(context, node) {
objectStub = stub;
}
else if ($ne(type.get$library(), world.get$dom())) {
- VarMethodSet._addVarStub((type && type.is$Type()), (stub && stub.is$VarMember()));
+ VarMethodSet._addVarStub((type && type.is$lang_Type()), (stub && stub.is$VarMember()));
}
else {
this._fallbackStubs.add(stub);
@@ -21358,7 +21388,7 @@ VarMethodSet.prototype.generate$1 = function($0) {
return this.generate(($0 && $0.is$CodeWriter()));
};
VarMethodSet.prototype.invoke$4 = function($0, $1, $2, $3) {
- return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()));
+ return this.invoke(($0 && $0.is$MethodGenerator()), ($1 && $1.is$lang_Node()), ($2 && $2.is$Value()), ($3 && $3.is$Arguments()));
};
// ********** Code for top level **************
function map(source, mapper) {
@@ -21449,7 +21479,7 @@ function initializeWorld(files) {
world = new World(files);
world.init();
}
-function compile(homedir, args, files) {
+function lang_compile(homedir, args, files) {
parseOptions(homedir, args, files);
initializeWorld(files);
var success = world.compile();
@@ -21485,7 +21515,7 @@ function _getCallStubName(name, args) {
function main() {
var homedir = path.dirname(fs.realpathSync($assert_String(process.argv.$index(1))));
var argv = ListFactory.ListFactory$from$factory(process.argv);
- if ($notnull_bool(compile($assert_String(homedir), (argv && argv.is$List$String()), new NodeFileSystem()))) {
+ if ($notnull_bool(lang_compile($assert_String(homedir), (argv && argv.is$List$String()), new NodeFileSystem()))) {
var code = world.getGeneratedCode();
if (!$notnull_bool(options.compileOnly)) {
process.argv = [argv.$index(0), argv.$index(1)];
« no previous file with comments | « no previous file | frog/gen.dart » ('j') | frog/tokenizer.g.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698