OLD | NEW |
1 #!/usr/bin/env node | 1 #!/usr/bin/env node |
2 // ********** Library dart:core ************** | 2 // ********** Library dart:core ************** |
3 // ********** Natives dart:core ************** | 3 // ********** Natives dart:core ************** |
4 /** | 4 /** |
5 * Generates a dynamic call stub for a function. | 5 * Generates a dynamic call stub for a function. |
6 * Our goal is to create a stub method like this on-the-fly: | 6 * Our goal is to create a stub method like this on-the-fly: |
7 * function($0, $1, capture) { this($0, $1, true, capture); } | 7 * function($0, $1, capture) { this($0, $1, true, capture); } |
8 * | 8 * |
9 * This stub then replaces the dynamic one on Function, with one that is | 9 * This stub then replaces the dynamic one on Function, with one that is |
10 * specialized for that particular function, taking into account its default | 10 * specialized for that particular function, taking into account its default |
(...skipping 2236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2247 } | 2247 } |
2248 return this; | 2248 return this; |
2249 } | 2249 } |
2250 StringBufferImpl.prototype.clear = function() { | 2250 StringBufferImpl.prototype.clear = function() { |
2251 this._buffer = new ListFactory(); | 2251 this._buffer = new ListFactory(); |
2252 this._length = 0; | 2252 this._length = 0; |
2253 return this; | 2253 return this; |
2254 } | 2254 } |
2255 StringBufferImpl.prototype.toString = function() { | 2255 StringBufferImpl.prototype.toString = function() { |
2256 if (this._buffer.length == 0) return ""; | 2256 if (this._buffer.length == 0) return ""; |
2257 if ($notnull_bool($eq(this._buffer.length, 1))) return $assert_String(this._bu
ffer.$index(0)); | 2257 if (this._buffer.length == 1) return $assert_String(this._buffer.$index(0)); |
2258 var result = StringBase.concatAll(this._buffer); | 2258 var result = StringBase.concatAll(this._buffer); |
2259 this._buffer.clear(); | 2259 this._buffer.clear(); |
2260 this._buffer.add(result); | 2260 this._buffer.add(result); |
2261 return result; | 2261 return result; |
2262 } | 2262 } |
2263 StringBufferImpl.prototype.add$1 = StringBufferImpl.prototype.add; | 2263 StringBufferImpl.prototype.add$1 = StringBufferImpl.prototype.add; |
2264 StringBufferImpl.prototype.addAll$1 = function($0) { | 2264 StringBufferImpl.prototype.addAll$1 = function($0) { |
2265 return this.addAll(($0 && $0.is$Collection$Object())); | 2265 return this.addAll(($0 && $0.is$Collection$Object())); |
2266 }; | 2266 }; |
2267 StringBufferImpl.prototype.isEmpty$0 = function() { | 2267 StringBufferImpl.prototype.isEmpty$0 = function() { |
2268 return this.isEmpty(); | 2268 return this.isEmpty(); |
2269 }; | 2269 }; |
2270 StringBufferImpl.prototype.toString$0 = function() { | 2270 StringBufferImpl.prototype.toString$0 = function() { |
2271 return this.toString(); | 2271 return this.toString(); |
2272 }; | 2272 }; |
2273 // ********** Code for StringBase ************** | 2273 // ********** Code for StringBase ************** |
2274 function StringBase() {} | 2274 function StringBase() {} |
2275 StringBase.createFromCharCodes = function(charCodes) { | 2275 StringBase.createFromCharCodes = function(charCodes) { |
2276 if (Object.getPrototypeOf(charCodes) !== Array.prototype) { | 2276 if (Object.getPrototypeOf(charCodes) !== Array.prototype) { |
2277 var length = charCodes.length; | 2277 var length = charCodes.length; |
2278 var tmp = new Array(length); | 2278 var tmp = new Array(length); |
2279 for (var i = 0; i < length; i++) { | 2279 for (var i = 0; i < length; i++) { |
2280 tmp[i] = charCodes.$index(i); | 2280 tmp[i] = charCodes.$index(i); |
2281 } | 2281 } |
2282 charCodes = tmp; | 2282 charCodes = tmp; |
2283 } | 2283 } |
2284 return String.fromCharCode.apply(null, charCodes); | 2284 return String.fromCharCode.apply(null, charCodes); |
2285 } | 2285 } |
2286 StringBase.join = function(strings, separator) { | 2286 StringBase.join = function(strings, separator) { |
2287 if ($notnull_bool($eq(strings.length, 0))) return ''; | 2287 if (strings.length == 0) return ''; |
2288 var s = $assert_String(strings.$index(0)); | 2288 var s = $assert_String(strings.$index(0)); |
2289 for (var i = 1; | 2289 for (var i = 1; |
2290 i < $assert_num(strings.length); i++) { | 2290 i < strings.length; i++) { |
2291 s = s + separator + strings.$index(i); | 2291 s = s + separator + strings.$index(i); |
2292 } | 2292 } |
2293 return s; | 2293 return s; |
2294 } | 2294 } |
2295 StringBase.concatAll = function(strings) { | 2295 StringBase.concatAll = function(strings) { |
2296 return StringBase.join(strings, ""); | 2296 return StringBase.join(strings, ""); |
2297 } | 2297 } |
2298 // ********** Code for StringImplementation ************** | 2298 // ********** Code for StringImplementation ************** |
2299 StringImplementation = String; | 2299 StringImplementation = String; |
2300 StringImplementation.prototype.is$Pattern = function(){return this;}; | 2300 StringImplementation.prototype.is$Pattern = function(){return this;}; |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2661 // ********** Code for AbstractLink$T ************** | 2661 // ********** Code for AbstractLink$T ************** |
2662 function AbstractLink$T() { | 2662 function AbstractLink$T() { |
2663 // Initializers done | 2663 // Initializers done |
2664 } | 2664 } |
2665 $inherits(AbstractLink$T, AbstractLink); | 2665 $inherits(AbstractLink$T, AbstractLink); |
2666 AbstractLink$T.prototype.is$Link$Element = function(){return this;}; | 2666 AbstractLink$T.prototype.is$Link$Element = function(){return this;}; |
2667 AbstractLink$T.prototype.is$Link$Node = function(){return this;}; | 2667 AbstractLink$T.prototype.is$Link$Node = function(){return this;}; |
2668 AbstractLink$T.prototype.is$Link$Token = function(){return this;}; | 2668 AbstractLink$T.prototype.is$Link$Token = function(){return this;}; |
2669 AbstractLink$T.prototype.is$Link$Type = function(){return this;}; | 2669 AbstractLink$T.prototype.is$Link$Type = function(){return this;}; |
2670 AbstractLink$T.prototype.is$Iterable = function(){return this;}; | 2670 AbstractLink$T.prototype.is$Iterable = function(){return this;}; |
| 2671 AbstractLink$T.prototype.prepend = function(element) { |
| 2672 return new LinkEntry$T(element, this); |
| 2673 } |
2671 AbstractLink$T.prototype.iterator = function() { | 2674 AbstractLink$T.prototype.iterator = function() { |
2672 var $0; | 2675 var $0; |
2673 return (($0 = this.toList().iterator$0()) && $0.is$Iterator$T()); | 2676 return (($0 = this.toList().iterator$0()) && $0.is$Iterator$T()); |
2674 } | 2677 } |
| 2678 AbstractLink$T.prototype.printOn = function(buffer, separatedBy) { |
| 2679 if ($notnull_bool(this.isEmpty())) return; |
| 2680 buffer.add(this.get$head() == null ? 'null' : this.get$head()); |
| 2681 if (separatedBy == null) separatedBy = ''; |
| 2682 for (var link = this.get$tail(); |
| 2683 !$notnull_bool(link.isEmpty()); link = link.get$tail()) { |
| 2684 buffer.add(separatedBy); |
| 2685 buffer.add(link.get$head() == null ? 'null' : link.get$head()); |
| 2686 } |
| 2687 } |
| 2688 AbstractLink$T.prototype.toString = function() { |
| 2689 var buffer = new StringBufferImpl(""); |
| 2690 buffer.add('[ '); |
| 2691 this.printOn(buffer, ', '); |
| 2692 buffer.add(' ]'); |
| 2693 return buffer.toString(); |
| 2694 } |
2675 // ********** Code for LinkTail ************** | 2695 // ********** Code for LinkTail ************** |
2676 function LinkTail() { | 2696 function LinkTail() { |
2677 // Initializers done | 2697 // Initializers done |
2678 AbstractLink$T.call(this); | 2698 AbstractLink$T.call(this); |
2679 } | 2699 } |
2680 $inherits(LinkTail, AbstractLink$T); | 2700 $inherits(LinkTail, AbstractLink$T); |
2681 LinkTail.prototype.is$Link$Element = function(){return this;}; | 2701 LinkTail.prototype.is$Link$Element = function(){return this;}; |
2682 LinkTail.prototype.is$Link$Node = function(){return this;}; | 2702 LinkTail.prototype.is$Link$Node = function(){return this;}; |
2683 LinkTail.prototype.is$Link$Token = function(){return this;}; | 2703 LinkTail.prototype.is$Link$Token = function(){return this;}; |
2684 LinkTail.prototype.is$Link$Type = function(){return this;}; | 2704 LinkTail.prototype.is$Link$Type = function(){return this;}; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2793 $inherits(LinkEntry$T, LinkEntry); | 2813 $inherits(LinkEntry$T, LinkEntry); |
2794 // ********** Code for LinkBuilderImplementation ************** | 2814 // ********** Code for LinkBuilderImplementation ************** |
2795 function LinkBuilderImplementation() { | 2815 function LinkBuilderImplementation() { |
2796 this.head = null | 2816 this.head = null |
2797 this.lastLink = null | 2817 this.lastLink = null |
2798 // Initializers done | 2818 // Initializers done |
2799 } | 2819 } |
2800 LinkBuilderImplementation.prototype.get$head = function() { return this.head; }; | 2820 LinkBuilderImplementation.prototype.get$head = function() { return this.head; }; |
2801 LinkBuilderImplementation.prototype.set$head = function(value) { return this.hea
d = value; }; | 2821 LinkBuilderImplementation.prototype.set$head = function(value) { return this.hea
d = value; }; |
2802 LinkBuilderImplementation.prototype.toLink = function() { | 2822 LinkBuilderImplementation.prototype.toLink = function() { |
2803 if (this.head == null) return const$16/*const EmptyLink<Token>()*/; | 2823 if (this.head == null) return const$232/*const LinkTail()*/; |
2804 this.lastLink.realTail = const$16/*const EmptyLink<Token>()*/; | 2824 this.lastLink.realTail = const$232/*const LinkTail()*/; |
2805 var link = this.head; | 2825 var link = this.head; |
2806 this.lastLink = null; | 2826 this.lastLink = null; |
2807 this.head = null; | 2827 this.head = null; |
2808 return link; | 2828 return link; |
2809 } | 2829 } |
2810 LinkBuilderImplementation.prototype.addLast = function(t) { | 2830 LinkBuilderImplementation.prototype.addLast = function(t) { |
2811 var entry = new LinkEntry$T(t, null); | 2831 var entry = new LinkEntry$T(t, null); |
2812 if (this.head == null) { | 2832 if (this.head == null) { |
2813 this.head = entry; | 2833 this.head = entry; |
2814 } | 2834 } |
(...skipping 2810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5625 } | 5645 } |
5626 ParserError.prototype.toString = function() { | 5646 ParserError.prototype.toString = function() { |
5627 return this.reason; | 5647 return this.reason; |
5628 } | 5648 } |
5629 ParserError.prototype.toString$0 = function() { | 5649 ParserError.prototype.toString$0 = function() { |
5630 return this.toString(); | 5650 return this.toString(); |
5631 }; | 5651 }; |
5632 // ********** Code for ElementListener ************** | 5652 // ********** Code for ElementListener ************** |
5633 function ElementListener(canceler) { | 5653 function ElementListener(canceler) { |
5634 this.previousIdentifier = null | 5654 this.previousIdentifier = null |
5635 this.nodes = const$16/*const EmptyLink<Token>()*/ | 5655 this.nodes = const$202/*const EmptyLink<Node>()*/ |
5636 this.topLevelElements = const$16/*const EmptyLink<Token>()*/ | 5656 this.topLevelElements = const$203/*const EmptyLink<Element>()*/ |
5637 this.canceler = canceler; | 5657 this.canceler = canceler; |
5638 // Initializers done | 5658 // Initializers done |
5639 Listener.call(this); | 5659 Listener.call(this); |
5640 } | 5660 } |
5641 $inherits(ElementListener, Listener); | 5661 $inherits(ElementListener, Listener); |
5642 ElementListener.prototype.get$nodes = function() { return this.nodes; }; | 5662 ElementListener.prototype.get$nodes = function() { return this.nodes; }; |
5643 ElementListener.prototype.set$nodes = function(value) { return this.nodes = valu
e; }; | 5663 ElementListener.prototype.set$nodes = function(value) { return this.nodes = valu
e; }; |
5644 ElementListener.prototype.beginLibraryTag = function(token) { | 5664 ElementListener.prototype.beginLibraryTag = function(token) { |
5645 this.canceler.cancel("Cannot handle library tags", null, token); | 5665 this.canceler.cancel("Cannot handle library tags", null, token); |
5646 } | 5666 } |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5927 this.pushNode(new Throw(null, throwToken, endToken)); | 5947 this.pushNode(new Throw(null, throwToken, endToken)); |
5928 } | 5948 } |
5929 NodeListener.prototype.handleUnaryPostfixExpression = function(token) { | 5949 NodeListener.prototype.handleUnaryPostfixExpression = function(token) { |
5930 this.pushNode(new Send.postfix$ctor(this.popNode(), new Operator(token))); | 5950 this.pushNode(new Send.postfix$ctor(this.popNode(), new Operator(token))); |
5931 } | 5951 } |
5932 NodeListener.prototype.handleUnaryPrefixExpression = function(token) { | 5952 NodeListener.prototype.handleUnaryPrefixExpression = function(token) { |
5933 this.pushNode(new Send.prefix$ctor(this.popNode(), new Operator(token))); | 5953 this.pushNode(new Send.prefix$ctor(this.popNode(), new Operator(token))); |
5934 } | 5954 } |
5935 NodeListener.prototype.makeNodeList = function(count, beginToken, endToken, deli
miter) { | 5955 NodeListener.prototype.makeNodeList = function(count, beginToken, endToken, deli
miter) { |
5936 var $0; | 5956 var $0; |
5937 var nodes = (const$16/*const EmptyLink<Token>()*/ && const$16/*const EmptyLink
<Token>()*/.is$Link$Node()); | 5957 var nodes = const$202/*const EmptyLink<Node>()*/; |
5938 for (; count > 0; --count) { | 5958 for (; count > 0; --count) { |
5939 nodes = (($0 = nodes.prepend(this.popNode())) && $0.is$Link$Node()); | 5959 nodes = (($0 = nodes.prepend(this.popNode())) && $0.is$Link$Node()); |
5940 } | 5960 } |
5941 var sourceDelimiter = (($0 = (delimiter == null) ? null : new StringWrapper(de
limiter)) && $0.is$SourceString()); | 5961 var sourceDelimiter = (($0 = (delimiter == null) ? null : new StringWrapper(de
limiter)) && $0.is$SourceString()); |
5942 return new NodeList(beginToken, nodes, endToken, sourceDelimiter); | 5962 return new NodeList(beginToken, nodes, endToken, sourceDelimiter); |
5943 } | 5963 } |
5944 NodeListener.prototype.log = function(message) { | 5964 NodeListener.prototype.log = function(message) { |
5945 this.logger.log(message); | 5965 this.logger.log(message); |
5946 } | 5966 } |
5947 NodeListener.prototype.endArguments$3 = function($0, $1, $2) { | 5967 NodeListener.prototype.endArguments$3 = function($0, $1, $2) { |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6489 function Send(receiver, selector, argumentsNode) { | 6509 function Send(receiver, selector, argumentsNode) { |
6490 this.receiver = receiver; | 6510 this.receiver = receiver; |
6491 this.selector = selector; | 6511 this.selector = selector; |
6492 this.argumentsNode = argumentsNode; | 6512 this.argumentsNode = argumentsNode; |
6493 // Initializers done | 6513 // Initializers done |
6494 Expression.call(this); | 6514 Expression.call(this); |
6495 } | 6515 } |
6496 Send.postfix$ctor = function(receiver, selector) { | 6516 Send.postfix$ctor = function(receiver, selector) { |
6497 this.receiver = receiver; | 6517 this.receiver = receiver; |
6498 this.selector = selector; | 6518 this.selector = selector; |
6499 this.argumentsNode = const$215/*const Postfix()*/; | 6519 this.argumentsNode = const$219/*const Postfix()*/; |
6500 // Initializers done | 6520 // Initializers done |
6501 Expression.call(this); | 6521 Expression.call(this); |
6502 } | 6522 } |
6503 Send.postfix$ctor.prototype = Send.prototype; | 6523 Send.postfix$ctor.prototype = Send.prototype; |
6504 Send.prefix$ctor = function(receiver, selector) { | 6524 Send.prefix$ctor = function(receiver, selector) { |
6505 this.receiver = receiver; | 6525 this.receiver = receiver; |
6506 this.selector = selector; | 6526 this.selector = selector; |
6507 this.argumentsNode = const$214/*const Prefix()*/; | 6527 this.argumentsNode = const$217/*const Prefix()*/; |
6508 // Initializers done | 6528 // Initializers done |
6509 Expression.call(this); | 6529 Expression.call(this); |
6510 } | 6530 } |
6511 Send.prefix$ctor.prototype = Send.prototype; | 6531 Send.prefix$ctor.prototype = Send.prototype; |
6512 $inherits(Send, Expression); | 6532 $inherits(Send, Expression); |
6513 Send.prototype.is$Send = function(){return this;}; | 6533 Send.prototype.is$Send = function(){return this;}; |
6514 Send.prototype.get$arguments = function() { | 6534 Send.prototype.get$arguments = function() { |
6515 return this.argumentsNode.get$nodes(); | 6535 return this.argumentsNode.get$nodes(); |
6516 } | 6536 } |
6517 Send.prototype.accept = function(visitor) { | 6537 Send.prototype.accept = function(visitor) { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6594 } | 6614 } |
6595 NodeList.singleton$ctor = function(node) { | 6615 NodeList.singleton$ctor = function(node) { |
6596 // Initializers done | 6616 // Initializers done |
6597 NodeList.call(this, null, LinkFactory.Link$factory(node)); | 6617 NodeList.call(this, null, LinkFactory.Link$factory(node)); |
6598 } | 6618 } |
6599 NodeList.singleton$ctor.prototype = NodeList.prototype; | 6619 NodeList.singleton$ctor.prototype = NodeList.prototype; |
6600 $inherits(NodeList, Node); | 6620 $inherits(NodeList, Node); |
6601 NodeList.prototype.is$NodeList = function(){return this;}; | 6621 NodeList.prototype.is$NodeList = function(){return this;}; |
6602 NodeList.prototype.get$nodes = function() { | 6622 NodeList.prototype.get$nodes = function() { |
6603 var $0; | 6623 var $0; |
6604 return (($0 = this._nodes != null ? this._nodes : const$16/*const EmptyLink<To
ken>()*/) && $0.is$Link$Node()); | 6624 return (($0 = this._nodes != null ? this._nodes : const$202/*const EmptyLink<N
ode>()*/) && $0.is$Link$Node()); |
6605 } | 6625 } |
6606 NodeList.prototype.accept = function(visitor) { | 6626 NodeList.prototype.accept = function(visitor) { |
6607 return visitor.visitNodeList(this); | 6627 return visitor.visitNodeList(this); |
6608 } | 6628 } |
6609 NodeList.prototype.getBeginToken = function() { | 6629 NodeList.prototype.getBeginToken = function() { |
6610 var $0; | 6630 var $0; |
6611 if (this.beginToken != null) return this.beginToken; | 6631 if (this.beginToken != null) return this.beginToken; |
6612 if (this.get$nodes() != null) { | 6632 if (this.get$nodes() != null) { |
6613 for (var link = this.get$nodes(); | 6633 for (var link = this.get$nodes(); |
6614 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Lin
k$Node())) { | 6634 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Lin
k$Node())) { |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7262 Unparser.prototype.visitVariableDefinitions = function(node) { | 7282 Unparser.prototype.visitVariableDefinitions = function(node) { |
7263 var $0; | 7283 var $0; |
7264 if (node.type != null) { | 7284 if (node.type != null) { |
7265 this.visit(node.type); | 7285 this.visit(node.type); |
7266 } | 7286 } |
7267 else { | 7287 else { |
7268 this.sb.add('var'); | 7288 this.sb.add('var'); |
7269 } | 7289 } |
7270 this.sb.add(' '); | 7290 this.sb.add(' '); |
7271 this.visit(node.definitions); | 7291 this.visit(node.definitions); |
7272 if ($notnull_bool($eq(node.endToken.get$value(), const$212/*const SourceString
(';')*/))) { | 7292 if ($notnull_bool($eq(node.endToken.get$value(), const$215/*const SourceString
(';')*/))) { |
7273 this.add((($0 = node.endToken.get$value()) && $0.is$SourceString())); | 7293 this.add((($0 = node.endToken.get$value()) && $0.is$SourceString())); |
7274 } | 7294 } |
7275 } | 7295 } |
7276 Unparser.prototype.add$1 = function($0) { | 7296 Unparser.prototype.add$1 = function($0) { |
7277 return this.add(($0 && $0.is$SourceString())); | 7297 return this.add(($0 && $0.is$SourceString())); |
7278 }; | 7298 }; |
7279 Unparser.prototype.visit$1 = function($0) { | 7299 Unparser.prototype.visit$1 = function($0) { |
7280 return this.visit(($0 && $0.is$Node())); | 7300 return this.visit(($0 && $0.is$Node())); |
7281 }; | 7301 }; |
7282 // ********** Code for AbstractVisitor ************** | 7302 // ********** Code for AbstractVisitor ************** |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7447 if (this.type != null) return this.type; | 7467 if (this.type != null) return this.type; |
7448 this.type = getType(this.typeAnnotation, types); | 7468 this.type = getType(this.typeAnnotation, types); |
7449 return this.type; | 7469 return this.type; |
7450 } | 7470 } |
7451 VariableElement.prototype.computeType$2 = function($0, $1) { | 7471 VariableElement.prototype.computeType$2 = function($0, $1) { |
7452 return this.computeType(($0 && $0.is$Compiler()), ($1 && $1.is$Types())); | 7472 return this.computeType(($0 && $0.is$Compiler()), ($1 && $1.is$Types())); |
7453 }; | 7473 }; |
7454 // ********** Code for ForeignElement ************** | 7474 // ********** Code for ForeignElement ************** |
7455 function ForeignElement(name) { | 7475 function ForeignElement(name) { |
7456 // Initializers done | 7476 // Initializers done |
7457 Element.call(this, name, const$208, null); | 7477 Element.call(this, name, const$211, null); |
7458 } | 7478 } |
7459 $inherits(ForeignElement, Element); | 7479 $inherits(ForeignElement, Element); |
7460 ForeignElement.prototype.computeType = function(compiler, types) { | 7480 ForeignElement.prototype.computeType = function(compiler, types) { |
7461 return types.dynamicType; | 7481 return types.dynamicType; |
7462 } | 7482 } |
7463 ForeignElement.prototype.computeType$2 = function($0, $1) { | 7483 ForeignElement.prototype.computeType$2 = function($0, $1) { |
7464 return this.computeType(($0 && $0.is$Compiler()), ($1 && $1.is$Types())); | 7484 return this.computeType(($0 && $0.is$Compiler()), ($1 && $1.is$Types())); |
7465 }; | 7485 }; |
7466 // ********** Code for FunctionElement ************** | 7486 // ********** Code for FunctionElement ************** |
7467 function FunctionElement(name) { | 7487 function FunctionElement(name) { |
7468 // Initializers done | 7488 // Initializers done |
7469 Element.call(this, name, const$205, null); | 7489 Element.call(this, name, const$208, null); |
7470 } | 7490 } |
7471 $inherits(FunctionElement, Element); | 7491 $inherits(FunctionElement, Element); |
7472 FunctionElement.prototype.is$FunctionElement = function(){return this;}; | 7492 FunctionElement.prototype.is$FunctionElement = function(){return this;}; |
7473 FunctionElement.prototype.get$parameters = function() { return this.parameters;
}; | 7493 FunctionElement.prototype.get$parameters = function() { return this.parameters;
}; |
7474 FunctionElement.prototype.set$parameters = function(value) { return this.paramet
ers = value; }; | 7494 FunctionElement.prototype.set$parameters = function(value) { return this.paramet
ers = value; }; |
7475 FunctionElement.prototype.get$type = function() { return this.type; }; | 7495 FunctionElement.prototype.get$type = function() { return this.type; }; |
7476 FunctionElement.prototype.set$type = function(value) { return this.type = value;
}; | 7496 FunctionElement.prototype.set$type = function(value) { return this.type = value;
}; |
7477 FunctionElement.prototype.computeType = function(compiler, types) { | 7497 FunctionElement.prototype.computeType = function(compiler, types) { |
7478 var $0; | 7498 var $0; |
7479 if (this.type != null) return (($0 = this.type) && $0.is$FunctionType()); | 7499 if (this.type != null) return (($0 = this.type) && $0.is$FunctionType()); |
7480 if (this.parameters == null) compiler.resolveSignature(this); | 7500 if (this.parameters == null) compiler.resolveSignature(this); |
7481 var node = (($0 = this.parseNode(compiler, compiler)) && $0.is$FunctionExpress
ion()); | 7501 var node = (($0 = this.parseNode(compiler, compiler)) && $0.is$FunctionExpress
ion()); |
7482 var returnType = getType(node.returnType, types); | 7502 var returnType = getType(node.returnType, types); |
7483 if (returnType == null) compiler.cancel(('unknown type ' + returnType)); | 7503 if (returnType == null) compiler.cancel(('unknown type ' + returnType)); |
7484 var parameterTypes = new LinkBuilderImplementation(); | 7504 var parameterTypes = new LinkBuilderImplementation(); |
7485 for (var link = this.parameters; | 7505 for (var link = this.parameters; |
7486 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Element())) { | 7506 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Element())) { |
7487 parameterTypes.addLast(link.get$head().computeType$2(compiler, types)); | 7507 parameterTypes.addLast(link.get$head().computeType$2(compiler, types)); |
7488 } | 7508 } |
7489 this.type = new FunctionType(returnType, (($0 = parameterTypes.toLink()) && $0
.is$Link$Type())); | 7509 this.type = new FunctionType(returnType, (($0 = parameterTypes.toLink()) && $0
.is$Link$Type())); |
7490 return (($0 = this.type) && $0.is$FunctionType()); | 7510 return (($0 = this.type) && $0.is$FunctionType()); |
7491 } | 7511 } |
7492 FunctionElement.prototype.computeType$2 = FunctionElement.prototype.computeType; | 7512 FunctionElement.prototype.computeType$2 = FunctionElement.prototype.computeType; |
7493 // ********** Code for ClassElement ************** | 7513 // ********** Code for ClassElement ************** |
7494 function ClassElement(name) { | 7514 function ClassElement(name) { |
7495 this.interfaces = const$16/*const EmptyLink<Token>()*/ | 7515 this.interfaces = const$205/*const EmptyLink<Type>()*/ |
7496 this.isResolved = false | 7516 this.isResolved = false |
7497 // Initializers done | 7517 // Initializers done |
7498 Element.call(this, name, const$203, null); | 7518 Element.call(this, name, const$206, null); |
7499 } | 7519 } |
7500 $inherits(ClassElement, Element); | 7520 $inherits(ClassElement, Element); |
7501 ClassElement.prototype.is$ClassElement = function(){return this;}; | 7521 ClassElement.prototype.is$ClassElement = function(){return this;}; |
7502 ClassElement.prototype.get$type = function() { return this.type; }; | 7522 ClassElement.prototype.get$type = function() { return this.type; }; |
7503 ClassElement.prototype.set$type = function(value) { return this.type = value; }; | 7523 ClassElement.prototype.set$type = function(value) { return this.type = value; }; |
7504 ClassElement.prototype.get$interfaces = function() { return this.interfaces; }; | 7524 ClassElement.prototype.get$interfaces = function() { return this.interfaces; }; |
7505 ClassElement.prototype.set$interfaces = function(value) { return this.interfaces
= value; }; | 7525 ClassElement.prototype.set$interfaces = function(value) { return this.interfaces
= value; }; |
7506 ClassElement.prototype.computeType = function(compiler, types) { | 7526 ClassElement.prototype.computeType = function(compiler, types) { |
7507 if (this.type == null) { | 7527 if (this.type == null) { |
7508 this.type = new SimpleType(this.name, this); | 7528 this.type = new SimpleType(this.name, this); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7776 } | 7796 } |
7777 SsaBuilder.prototype.unquote = function(literal) { | 7797 SsaBuilder.prototype.unquote = function(literal) { |
7778 var str = ('' + literal.get$value()); | 7798 var str = ('' + literal.get$value()); |
7779 this.compiler.ensure(str[0] == '@'); | 7799 this.compiler.ensure(str[0] == '@'); |
7780 var quotes = 1; | 7800 var quotes = 1; |
7781 var quote = str[1]; | 7801 var quote = str[1]; |
7782 while (str[quotes + 1] === quote) quotes++; | 7802 while (str[quotes + 1] === quote) quotes++; |
7783 return new StringWrapper(str.substring(quotes + 1, str.length - quotes)); | 7803 return new StringWrapper(str.substring(quotes + 1, str.length - quotes)); |
7784 } | 7804 } |
7785 SsaBuilder.prototype.visitLogicalAndOr = function(node, op) { | 7805 SsaBuilder.prototype.visitLogicalAndOr = function(node, op) { |
7786 var isAnd = $assert_bool(($eq(const$275/*const SourceString("&&")*/, op.get$so
urce()))); | 7806 var isAnd = $assert_bool(($eq(const$280/*const SourceString("&&")*/, op.get$so
urce()))); |
7787 this.visit(node.receiver); | 7807 this.visit(node.receiver); |
7788 var boolifiedLeft = this.popBoolified(); | 7808 var boolifiedLeft = this.popBoolified(); |
7789 var condition; | 7809 var condition; |
7790 if ($notnull_bool(isAnd)) { | 7810 if ($notnull_bool(isAnd)) { |
7791 condition = boolifiedLeft; | 7811 condition = boolifiedLeft; |
7792 } | 7812 } |
7793 else { | 7813 else { |
7794 condition = new HNot(boolifiedLeft); | 7814 condition = new HNot(boolifiedLeft); |
7795 this.add(condition); | 7815 this.add(condition); |
7796 } | 7816 } |
7797 var leftBlock = this.close(new HIf(condition, false)); | 7817 var leftBlock = this.close(new HIf(condition, false)); |
7798 var leftDefinitions = HashMapImplementation.HashMapImplementation$from$factory
(this.definitions); | 7818 var leftDefinitions = HashMapImplementation.HashMapImplementation$from$factory
(this.definitions); |
7799 var rightBlock = this.graph.addNewBlock(); | 7819 var rightBlock = this.graph.addNewBlock(); |
7800 leftBlock.addSuccessor(rightBlock); | 7820 leftBlock.addSuccessor(rightBlock); |
7801 this.open(rightBlock); | 7821 this.open(rightBlock); |
7802 this.visit(node.argumentsNode); | 7822 this.visit(node.argumentsNode); |
7803 var boolifiedRight = this.popBoolified(); | 7823 var boolifiedRight = this.popBoolified(); |
7804 rightBlock = this.close(new HGoto()); | 7824 rightBlock = this.close(new HGoto()); |
7805 var joinBlock = this.graph.addNewBlock(); | 7825 var joinBlock = this.graph.addNewBlock(); |
7806 leftBlock.addSuccessor(joinBlock); | 7826 leftBlock.addSuccessor(joinBlock); |
7807 rightBlock.addSuccessor(joinBlock); | 7827 rightBlock.addSuccessor(joinBlock); |
7808 this.open(joinBlock); | 7828 this.open(joinBlock); |
7809 this.definitions = this.joinDefinitions(joinBlock, leftDefinitions, this.defin
itions); | 7829 this.definitions = this.joinDefinitions(joinBlock, leftDefinitions, this.defin
itions); |
7810 var result = new HPhi.manyInputs$ctor(null, [boolifiedLeft, boolifiedRight]); | 7830 var result = new HPhi.manyInputs$ctor(null, [boolifiedLeft, boolifiedRight]); |
7811 joinBlock.addPhi(result); | 7831 joinBlock.addPhi(result); |
7812 this.stack.add(result); | 7832 this.stack.add(result); |
7813 } | 7833 } |
7814 SsaBuilder.prototype.visitLogicalNot = function(node) { | 7834 SsaBuilder.prototype.visitLogicalNot = function(node) { |
7815 $assert(node.argumentsNode === const$214/*const Prefix()*/, "node.argumentsNod
e === const Prefix()", "builder.dart", 369, 12); | 7835 $assert(node.argumentsNode === const$217/*const Prefix()*/, "node.argumentsNod
e === const Prefix()", "builder.dart", 369, 12); |
7816 this.visit(node.receiver); | 7836 this.visit(node.receiver); |
7817 var not = new HNot(this.popBoolified()); | 7837 var not = new HNot(this.popBoolified()); |
7818 this.push(not); | 7838 this.push(not); |
7819 } | 7839 } |
7820 SsaBuilder.prototype.visitUnary = function(node, op, element) { | 7840 SsaBuilder.prototype.visitUnary = function(node, op, element) { |
7821 this.compiler.unimplemented("visitUnary"); | 7841 this.compiler.unimplemented("visitUnary"); |
7822 } | 7842 } |
7823 SsaBuilder.prototype.visitBinary = function(node, op, element) { | 7843 SsaBuilder.prototype.visitBinary = function(node, op, element) { |
7824 this.visit(node.receiver); | 7844 this.visit(node.receiver); |
7825 this.visit(node.argumentsNode); | 7845 this.visit(node.argumentsNode); |
7826 var right = this.pop(); | 7846 var right = this.pop(); |
7827 var left = this.pop(); | 7847 var left = this.pop(); |
7828 if ($notnull_bool($eq(const$278/*const SourceString("+")*/, op.get$source())))
{ | 7848 if ($notnull_bool($eq(const$283/*const SourceString("+")*/, op.get$source())))
{ |
7829 this.push(new HAdd(element, [left, right])); | 7849 this.push(new HAdd(element, [left, right])); |
7830 } | 7850 } |
7831 else if ($notnull_bool($eq(const$279/*const SourceString("-")*/, op.get$source
()))) { | 7851 else if ($notnull_bool($eq(const$284/*const SourceString("-")*/, op.get$source
()))) { |
7832 this.push(new HSubtract(element, [left, right])); | 7852 this.push(new HSubtract(element, [left, right])); |
7833 } | 7853 } |
7834 else if ($notnull_bool($eq(const$280/*const SourceString("*")*/, op.get$source
()))) { | 7854 else if ($notnull_bool($eq(const$285/*const SourceString("*")*/, op.get$source
()))) { |
7835 this.push(new HMultiply(element, [left, right])); | 7855 this.push(new HMultiply(element, [left, right])); |
7836 } | 7856 } |
7837 else if ($notnull_bool($eq(const$281/*const SourceString("/")*/, op.get$source
()))) { | 7857 else if ($notnull_bool($eq(const$286/*const SourceString("/")*/, op.get$source
()))) { |
7838 this.push(new HDivide(element, [left, right])); | 7858 this.push(new HDivide(element, [left, right])); |
7839 } | 7859 } |
7840 else if ($notnull_bool($eq(const$282/*const SourceString("~/")*/, op.get$sourc
e()))) { | 7860 else if ($notnull_bool($eq(const$287/*const SourceString("~/")*/, op.get$sourc
e()))) { |
7841 this.push(new HTruncatingDivide(element, [left, right])); | 7861 this.push(new HTruncatingDivide(element, [left, right])); |
7842 } | 7862 } |
7843 else if ($notnull_bool($eq(const$283/*const SourceString("%")*/, op.get$source
()))) { | 7863 else if ($notnull_bool($eq(const$288/*const SourceString("%")*/, op.get$source
()))) { |
7844 this.push(new HModulo(element, [left, right])); | 7864 this.push(new HModulo(element, [left, right])); |
7845 } | 7865 } |
7846 else if ($notnull_bool($eq(const$284/*const SourceString("==")*/, op.get$sourc
e()))) { | 7866 else if ($notnull_bool($eq(const$289/*const SourceString("==")*/, op.get$sourc
e()))) { |
7847 this.push(new HEquals(element, [left, right])); | 7867 this.push(new HEquals(element, [left, right])); |
7848 } | 7868 } |
7849 else if ($notnull_bool($eq(const$285/*const SourceString("<")*/, op.get$source
()))) { | 7869 else if ($notnull_bool($eq(const$290/*const SourceString("<")*/, op.get$source
()))) { |
7850 this.push(new HLess(element, [left, right])); | 7870 this.push(new HLess(element, [left, right])); |
7851 } | 7871 } |
7852 else if ($notnull_bool($eq(const$286/*const SourceString("<=")*/, op.get$sourc
e()))) { | 7872 else if ($notnull_bool($eq(const$291/*const SourceString("<=")*/, op.get$sourc
e()))) { |
7853 this.push(new HLessEqual(element, [left, right])); | 7873 this.push(new HLessEqual(element, [left, right])); |
7854 } | 7874 } |
7855 else if ($notnull_bool($eq(const$287/*const SourceString(">")*/, op.get$source
()))) { | 7875 else if ($notnull_bool($eq(const$292/*const SourceString(">")*/, op.get$source
()))) { |
7856 this.push(new HGreater(element, [left, right])); | 7876 this.push(new HGreater(element, [left, right])); |
7857 } | 7877 } |
7858 else if ($notnull_bool($eq(const$288/*const SourceString(">=")*/, op.get$sourc
e()))) { | 7878 else if ($notnull_bool($eq(const$293/*const SourceString(">=")*/, op.get$sourc
e()))) { |
7859 this.push(new HGreaterEqual(element, [left, right])); | 7879 this.push(new HGreaterEqual(element, [left, right])); |
7860 } | 7880 } |
7861 } | 7881 } |
7862 SsaBuilder.prototype.visitSend = function(node) { | 7882 SsaBuilder.prototype.visitSend = function(node) { |
7863 var $0; | 7883 var $0; |
7864 var element = (($0 = this.elements.$index(node)) && $0.is$Element()); | 7884 var element = (($0 = this.elements.$index(node)) && $0.is$Element()); |
7865 if ((node.selector instanceof Operator)) { | 7885 if ((node.selector instanceof Operator)) { |
7866 var op = (($0 = node.selector) && $0.is$Operator()); | 7886 var op = (($0 = node.selector) && $0.is$Operator()); |
7867 if ($notnull_bool($eq(const$275/*const SourceString("&&")*/, op.get$source()
)) || $notnull_bool($eq(const$276/*const SourceString("||")*/, op.get$source()))
) { | 7887 if ($notnull_bool($eq(const$280/*const SourceString("&&")*/, op.get$source()
)) || $notnull_bool($eq(const$281/*const SourceString("||")*/, op.get$source()))
) { |
7868 this.visitLogicalAndOr(node, op); | 7888 this.visitLogicalAndOr(node, op); |
7869 } | 7889 } |
7870 else if ($notnull_bool($eq(const$277/*const SourceString("!")*/, op.get$sour
ce()))) { | 7890 else if ($notnull_bool($eq(const$282/*const SourceString("!")*/, op.get$sour
ce()))) { |
7871 this.visitLogicalNot(node); | 7891 this.visitLogicalNot(node); |
7872 } | 7892 } |
7873 else if (node.argumentsNode === const$214/*const Prefix()*/ || node.argument
sNode === const$215/*const Postfix()*/) { | 7893 else if (node.argumentsNode === const$217/*const Prefix()*/ || node.argument
sNode === const$219/*const Postfix()*/) { |
7874 this.visitUnary(node, op, element); | 7894 this.visitUnary(node, op, element); |
7875 } | 7895 } |
7876 else { | 7896 else { |
7877 this.visitBinary(node, op, element); | 7897 this.visitBinary(node, op, element); |
7878 } | 7898 } |
7879 } | 7899 } |
7880 else if ($notnull_bool(node.get$isPropertyAccess())) { | 7900 else if ($notnull_bool(node.get$isPropertyAccess())) { |
7881 if (node.receiver != null) { | 7901 if (node.receiver != null) { |
7882 this.compiler.unimplemented("SsaBuilder.visitSend with receiver"); | 7902 this.compiler.unimplemented("SsaBuilder.visitSend with receiver"); |
7883 } | 7903 } |
7884 this.stack.add(this.definitions.$index(element)); | 7904 this.stack.add(this.definitions.$index(element)); |
7885 } | 7905 } |
7886 else { | 7906 else { |
7887 var link = node.get$arguments(); | 7907 var link = node.get$arguments(); |
7888 if (element.kind === const$208/*ElementKind.FOREIGN*/) { | 7908 if (element.kind === const$211/*ElementKind.FOREIGN*/) { |
7889 link = (($0 = link.get$tail()) && $0.is$Link$Node()); | 7909 link = (($0 = link.get$tail()) && $0.is$Link$Node()); |
7890 } | 7910 } |
7891 var arguments = []; | 7911 var arguments = []; |
7892 for (; !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.
is$Link$Node())) { | 7912 for (; !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.
is$Link$Node())) { |
7893 this.visit((($0 = link.get$head()) && $0.is$Node())); | 7913 this.visit((($0 = link.get$head()) && $0.is$Node())); |
7894 arguments.add$1(this.pop()); | 7914 arguments.add$1(this.pop()); |
7895 } | 7915 } |
7896 if (element.kind === const$208/*ElementKind.FOREIGN*/) { | 7916 if (element.kind === const$211/*ElementKind.FOREIGN*/) { |
7897 var literal = (($0 = node.get$arguments().get$head()) && $0.is$LiteralStri
ng()); | 7917 var literal = (($0 = node.get$arguments().get$head()) && $0.is$LiteralStri
ng()); |
7898 this.compiler.ensure((literal instanceof LiteralString)); | 7918 this.compiler.ensure((literal instanceof LiteralString)); |
7899 this.push(new HInvokeForeign(element, arguments, this.unquote(literal))); | 7919 this.push(new HInvokeForeign(element, arguments, this.unquote(literal))); |
7900 } | 7920 } |
7901 else { | 7921 else { |
7902 var selector = (($0 = node.selector) && $0.is$Identifier()); | 7922 var selector = (($0 = node.selector) && $0.is$Identifier()); |
7903 this.push(new HInvoke(element, arguments)); | 7923 this.push(new HInvoke(element, arguments)); |
7904 } | 7924 } |
7905 } | 7925 } |
7906 } | 7926 } |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8064 var id = instruction.id; | 8084 var id = instruction.id; |
8065 var name = $assert_String(this.names.$index(id)); | 8085 var name = $assert_String(this.names.$index(id)); |
8066 if (name != null) return name; | 8086 if (name != null) return name; |
8067 var prefix = 't'; | 8087 var prefix = 't'; |
8068 if (!this.prefixes.containsKey(prefix)) this.prefixes.$setindex(prefix, 0); | 8088 if (!this.prefixes.containsKey(prefix)) this.prefixes.$setindex(prefix, 0); |
8069 return this.newName(id, ('' + prefix + ((($0 = this.prefixes).$setindex(prefix
, ($1 = $0.$index(prefix)) + 1), $1)))); | 8089 return this.newName(id, ('' + prefix + ((($0 = this.prefixes).$setindex(prefix
, ($1 = $0.$index(prefix)) + 1), $1)))); |
8070 } | 8090 } |
8071 SsaCodeGenerator.prototype.local = function(local) { | 8091 SsaCodeGenerator.prototype.local = function(local) { |
8072 var $0, $1; | 8092 var $0, $1; |
8073 var element = local.element; | 8093 var element = local.element; |
8074 if (element != null && $eq(element.kind, const$224/*ElementKind.PARAMETER*/))
{ | 8094 if (element != null && $eq(element.kind, const$228/*ElementKind.PARAMETER*/))
{ |
8075 return $assert_String(this.parameterNames.$index(element)); | 8095 return $assert_String(this.parameterNames.$index(element)); |
8076 } | 8096 } |
8077 var id = local.id; | 8097 var id = local.id; |
8078 var name = $assert_String(this.names.$index(id)); | 8098 var name = $assert_String(this.names.$index(id)); |
8079 if (name != null) return name; | 8099 if (name != null) return name; |
8080 var prefix; | 8100 var prefix; |
8081 if (element != null) { | 8101 if (element != null) { |
8082 prefix = element.name.get$stringValue(); | 8102 prefix = element.name.get$stringValue(); |
8083 } | 8103 } |
8084 else { | 8104 else { |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8340 SsaCodeGenerator.prototype.visitThrow = function(node) { | 8360 SsaCodeGenerator.prototype.visitThrow = function(node) { |
8341 var $0; | 8361 var $0; |
8342 this.buffer.add('throw '); | 8362 this.buffer.add('throw '); |
8343 this.use((($0 = node.inputs.$index(0)) && $0.is$HInstruction())); | 8363 this.use((($0 = node.inputs.$index(0)) && $0.is$HInstruction())); |
8344 this.buffer.add(';\n'); | 8364 this.buffer.add(';\n'); |
8345 } | 8365 } |
8346 SsaCodeGenerator.prototype.visitTypeGuard = function(node) { | 8366 SsaCodeGenerator.prototype.visitTypeGuard = function(node) { |
8347 var $0; | 8367 var $0; |
8348 var name; | 8368 var name; |
8349 if ($notnull_bool(node.isNumber())) { | 8369 if ($notnull_bool(node.isNumber())) { |
8350 name = const$305/*const SourceString('guard\$num')*/; | 8370 name = const$310/*const SourceString('guard\$num')*/; |
8351 } | 8371 } |
8352 else { | 8372 else { |
8353 unreachable(); | 8373 unreachable(); |
8354 } | 8374 } |
8355 var element = this.compiler.universe.find(name); | 8375 var element = this.compiler.universe.find(name); |
8356 this.compiler.worklist.add(element); | 8376 this.compiler.worklist.add(element); |
8357 this.buffer.add(('' + name + '(')); | 8377 this.buffer.add(('' + name + '(')); |
8358 this.use((($0 = node.inputs.$index(0)) && $0.is$HInstruction())); | 8378 this.use((($0 = node.inputs.$index(0)) && $0.is$HInstruction())); |
8359 this.buffer.add(')'); | 8379 this.buffer.add(')'); |
8360 } | 8380 } |
(...skipping 15 matching lines...) Expand all Loading... |
8376 } | 8396 } |
8377 SsaCodeGenerator.prototype.visitLocal = function(node) { | 8397 SsaCodeGenerator.prototype.visitLocal = function(node) { |
8378 this.buffer.add(('var ' + this.local(node))); | 8398 this.buffer.add(('var ' + this.local(node))); |
8379 } | 8399 } |
8380 SsaCodeGenerator.prototype.visit$1 = SsaCodeGenerator.prototype.visit; | 8400 SsaCodeGenerator.prototype.visit$1 = SsaCodeGenerator.prototype.visit; |
8381 // ********** Code for JsNames ************** | 8401 // ********** Code for JsNames ************** |
8382 function JsNames() {} | 8402 function JsNames() {} |
8383 JsNames.get$reserved = function() { | 8403 JsNames.get$reserved = function() { |
8384 if ($globals.JsNames__reserved == null) { | 8404 if ($globals.JsNames__reserved == null) { |
8385 $globals.JsNames__reserved = new HashSetImplementation(); | 8405 $globals.JsNames__reserved = new HashSetImplementation(); |
8386 $globals.JsNames__reserved.addAll(const$299/*JsNames.reservedPropertySymbols
*/); | 8406 $globals.JsNames__reserved.addAll(const$304/*JsNames.reservedPropertySymbols
*/); |
8387 $globals.JsNames__reserved.addAll(const$301/*JsNames.reservedGlobalSymbols*/
); | 8407 $globals.JsNames__reserved.addAll(const$306/*JsNames.reservedGlobalSymbols*/
); |
8388 $globals.JsNames__reserved.addAll(const$303/*JsNames.javaScriptKeywords*/); | 8408 $globals.JsNames__reserved.addAll(const$308/*JsNames.javaScriptKeywords*/); |
8389 } | 8409 } |
8390 return $globals.JsNames__reserved; | 8410 return $globals.JsNames__reserved; |
8391 } | 8411 } |
8392 JsNames.getValid = function(name) { | 8412 JsNames.getValid = function(name) { |
8393 if (JsNames.get$reserved().contains(name)) { | 8413 if (JsNames.get$reserved().contains(name)) { |
8394 name = ('\$' + name); | 8414 name = ('\$' + name); |
8395 $assert(!JsNames.get$reserved().contains(name), "!reserved.contains(name)",
"js_names.dart", 171, 14); | 8415 $assert(!JsNames.get$reserved().contains(name), "!reserved.contains(name)",
"js_names.dart", 171, 14); |
8396 } | 8416 } |
8397 else if (name.contains("$")) { | 8417 else if (name.contains("$")) { |
8398 name = name.replaceAll("$", "_$"); | 8418 name = name.replaceAll("$", "_$"); |
(...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10415 } | 10435 } |
10416 SsaPhiEliminator.prototype.visitPhi = function(phi, loads) { | 10436 SsaPhiEliminator.prototype.visitPhi = function(phi, loads) { |
10417 var $this = this; // closure support | 10437 var $this = this; // closure support |
10418 var $0; | 10438 var $0; |
10419 $assert(phi != null, "phi !== null", "phi_eliminator.dart", 59, 12); | 10439 $assert(phi != null, "phi !== null", "phi_eliminator.dart", 59, 12); |
10420 var local; | 10440 var local; |
10421 if (phi.element != null) { | 10441 if (phi.element != null) { |
10422 local = (($0 = this.namedLocals.putIfAbsent(phi.element, (function () { | 10442 local = (($0 = this.namedLocals.putIfAbsent(phi.element, (function () { |
10423 var local0 = new HLocal(phi.element); | 10443 var local0 = new HLocal(phi.element); |
10424 $this.entry.addAtEntry(local0); | 10444 $this.entry.addAtEntry(local0); |
10425 if (phi.element.kind === const$224/*ElementKind.PARAMETER*/) { | 10445 if (phi.element.kind === const$228/*ElementKind.PARAMETER*/) { |
10426 $this.entry.detach(local0); | 10446 $this.entry.detach(local0); |
10427 } | 10447 } |
10428 return local0; | 10448 return local0; |
10429 }) | 10449 }) |
10430 )) && $0.is$HLocal()); | 10450 )) && $0.is$HLocal()); |
10431 } | 10451 } |
10432 else { | 10452 else { |
10433 local = new HLocal(null); | 10453 local = new HLocal(null); |
10434 this.entry.addAtEntry(local); | 10454 this.entry.addAtEntry(local); |
10435 } | 10455 } |
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11072 print("------------------"); | 11092 print("------------------"); |
11073 print(HTracer.HTracer$singleton$factory()); | 11093 print(HTracer.HTracer$singleton$factory()); |
11074 print("------------------"); | 11094 print("------------------"); |
11075 } | 11095 } |
11076 this.log('compilation succeeded'); | 11096 this.log('compilation succeeded'); |
11077 return true; | 11097 return true; |
11078 } | 11098 } |
11079 Compiler.prototype.scanCoreLibrary = function() { | 11099 Compiler.prototype.scanCoreLibrary = function() { |
11080 var fileName = join([this.get$legDirectory(), 'lib', 'core.dart']); | 11100 var fileName = join([this.get$legDirectory(), 'lib', 'core.dart']); |
11081 this.scanner.scan(this.readScript(fileName)); | 11101 this.scanner.scan(this.readScript(fileName)); |
11082 var element = new ForeignElement(const$207/*const SourceString('JS')*/); | 11102 var element = new ForeignElement(const$210/*const SourceString('JS')*/); |
11083 this.universe.define(element); | 11103 this.universe.define(element); |
11084 } | 11104 } |
11085 Compiler.prototype.runCompiler = function() { | 11105 Compiler.prototype.runCompiler = function() { |
11086 var $0; | 11106 var $0; |
11087 this.scanCoreLibrary(); | 11107 this.scanCoreLibrary(); |
11088 this.scanner.scan(this.script); | 11108 this.scanner.scan(this.script); |
11089 var element = this.universe.find(const$210/*Compiler.MAIN*/); | 11109 var element = this.universe.find(const$213/*Compiler.MAIN*/); |
11090 if (element == null) this.cancel(('Could not find ' + const$210/*Compiler.MAIN
*/)); | 11110 if (element == null) this.cancel(('Could not find ' + const$213/*Compiler.MAIN
*/)); |
11091 this.compileMethod(element); | 11111 this.compileMethod(element); |
11092 while (!this.worklist.isEmpty()) { | 11112 while (!this.worklist.isEmpty()) { |
11093 this.compileMethod((($0 = this.worklist.removeLast()) && $0.is$Element())); | 11113 this.compileMethod((($0 = this.worklist.removeLast()) && $0.is$Element())); |
11094 } | 11114 } |
11095 } | 11115 } |
11096 Compiler.prototype.compileMethod = function(element) { | 11116 Compiler.prototype.compileMethod = function(element) { |
11097 var code = $assert_String(this.universe.generatedCode.$index(element)); | 11117 var code = $assert_String(this.universe.generatedCode.$index(element)); |
11098 if (code != null) return code; | 11118 if (code != null) return code; |
11099 var tree = this.parser.parse(element); | 11119 var tree = this.parser.parse(element); |
11100 var elements = this.resolver.resolve((tree && tree.is$FunctionExpression())); | 11120 var elements = this.resolver.resolve((tree && tree.is$FunctionExpression())); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11233 ResolverVisitor.prototype.cancel = function(node, message) { | 11253 ResolverVisitor.prototype.cancel = function(node, message) { |
11234 this.compiler.cancel(message); | 11254 this.compiler.cancel(message); |
11235 } | 11255 } |
11236 ResolverVisitor.prototype.visit = function(node) { | 11256 ResolverVisitor.prototype.visit = function(node) { |
11237 if (node == null) return null; | 11257 if (node == null) return null; |
11238 return node.accept(this); | 11258 return node.accept(this); |
11239 } | 11259 } |
11240 ResolverVisitor.prototype.visitIdentifier = function(node) { | 11260 ResolverVisitor.prototype.visitIdentifier = function(node) { |
11241 var element = this.context.lookup(node.get$source()); | 11261 var element = this.context.lookup(node.get$source()); |
11242 if (element == null) { | 11262 if (element == null) { |
11243 this.error(node, const$217/*MessageKind.CANNOT_RESOLVE*/, [node]); | 11263 this.error(node, const$221/*MessageKind.CANNOT_RESOLVE*/, [node]); |
11244 } | 11264 } |
11245 return this.useElement(node, element); | 11265 return this.useElement(node, element); |
11246 } | 11266 } |
11247 ResolverVisitor.prototype.visitTypeAnnotation = function(node) { | 11267 ResolverVisitor.prototype.visitTypeAnnotation = function(node) { |
11248 var name = node.typeName; | 11268 var name = node.typeName; |
11249 if ($notnull_bool($eq(name.get$source(), const$219/*const SourceString('var')*
/))) return null; | 11269 if ($notnull_bool($eq(name.get$source(), const$223/*const SourceString('var')*
/))) return null; |
11250 if ($notnull_bool($eq(name.get$source(), const$6/*const SourceString('void')*/
))) return null; | 11270 if ($notnull_bool($eq(name.get$source(), const$6/*const SourceString('void')*/
))) return null; |
11251 var element = this.context.lookup(name.get$source()); | 11271 var element = this.context.lookup(name.get$source()); |
11252 if (element == null) { | 11272 if (element == null) { |
11253 this.warning(node, const$220/*MessageKind.CANNOT_RESOLVE_TYPE*/, [name]); | 11273 this.warning(node, const$224/*MessageKind.CANNOT_RESOLVE_TYPE*/, [name]); |
11254 } | 11274 } |
11255 else if (element.kind !== const$203/*ElementKind.CLASS*/) { | 11275 else if (element.kind !== const$206/*ElementKind.CLASS*/) { |
11256 this.warning(node, const$222/*MessageKind.NOT_A_TYPE*/, [name]); | 11276 this.warning(node, const$226/*MessageKind.NOT_A_TYPE*/, [name]); |
11257 } | 11277 } |
11258 else { | 11278 else { |
11259 var cls = (element && element.is$ClassElement()); | 11279 var cls = (element && element.is$ClassElement()); |
11260 this.compiler.resolver.toResolve.add(element); | 11280 this.compiler.resolver.toResolve.add(element); |
11261 } | 11281 } |
11262 return this.useElement(node, element); | 11282 return this.useElement(node, element); |
11263 } | 11283 } |
11264 ResolverVisitor.prototype.defineElement = function(node, element) { | 11284 ResolverVisitor.prototype.defineElement = function(node, element) { |
11265 this.compiler.ensure(element != null); | 11285 this.compiler.ensure(element != null); |
11266 this.mapping.$setindex(node, element); | 11286 this.mapping.$setindex(node, element); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11340 this.visit(node.body); | 11360 this.visit(node.body); |
11341 this.context = this.context.parent; | 11361 this.context = this.context.parent; |
11342 return enclosingElement; | 11362 return enclosingElement; |
11343 } | 11363 } |
11344 FullResolverVisitor.prototype.visitIf = function(node) { | 11364 FullResolverVisitor.prototype.visitIf = function(node) { |
11345 this.visit(node.condition); | 11365 this.visit(node.condition); |
11346 this.visit(node.thenPart); | 11366 this.visit(node.thenPart); |
11347 this.visit(node.elsePart); | 11367 this.visit(node.elsePart); |
11348 } | 11368 } |
11349 FullResolverVisitor.prototype.potentiallyMapOperatorToMethodName = function(name
) { | 11369 FullResolverVisitor.prototype.potentiallyMapOperatorToMethodName = function(name
) { |
11350 if ($notnull_bool($eq(name, const$228/*const SourceString('+')*/))) return con
st$229/*const SourceString('add')*/; | 11370 if ($notnull_bool($eq(name, const$233/*const SourceString('+')*/))) return con
st$234/*const SourceString('add')*/; |
11351 if ($notnull_bool($eq(name, const$230/*const SourceString('-')*/))) return con
st$231/*const SourceString('sub')*/; | 11371 if ($notnull_bool($eq(name, const$235/*const SourceString('-')*/))) return con
st$236/*const SourceString('sub')*/; |
11352 if ($notnull_bool($eq(name, const$232/*const SourceString('*')*/))) return con
st$233/*const SourceString('mul')*/; | 11372 if ($notnull_bool($eq(name, const$237/*const SourceString('*')*/))) return con
st$238/*const SourceString('mul')*/; |
11353 if ($notnull_bool($eq(name, const$234/*const SourceString('/')*/))) return con
st$235/*const SourceString('div')*/; | 11373 if ($notnull_bool($eq(name, const$239/*const SourceString('/')*/))) return con
st$240/*const SourceString('div')*/; |
11354 if ($notnull_bool($eq(name, const$236/*const SourceString('~/')*/))) return co
nst$237/*const SourceString('tdiv')*/; | 11374 if ($notnull_bool($eq(name, const$241/*const SourceString('~/')*/))) return co
nst$242/*const SourceString('tdiv')*/; |
11355 if ($notnull_bool($eq(name, const$238/*const SourceString('%')*/))) return con
st$239/*const SourceString('mod')*/; | 11375 if ($notnull_bool($eq(name, const$243/*const SourceString('%')*/))) return con
st$244/*const SourceString('mod')*/; |
11356 if ($notnull_bool($eq(name, const$240/*const SourceString('==')*/))) return co
nst$241/*const SourceString('eq')*/; | 11376 if ($notnull_bool($eq(name, const$245/*const SourceString('==')*/))) return co
nst$246/*const SourceString('eq')*/; |
11357 if ($notnull_bool($eq(name, const$242/*const SourceString('<')*/))) return con
st$243/*const SourceString('lt')*/; | 11377 if ($notnull_bool($eq(name, const$247/*const SourceString('<')*/))) return con
st$248/*const SourceString('lt')*/; |
11358 if ($notnull_bool($eq(name, const$244/*const SourceString('<=')*/))) return co
nst$245/*const SourceString('le')*/; | 11378 if ($notnull_bool($eq(name, const$249/*const SourceString('<=')*/))) return co
nst$250/*const SourceString('le')*/; |
11359 if ($notnull_bool($eq(name, const$246/*const SourceString('>')*/))) return con
st$247/*const SourceString('gt')*/; | 11379 if ($notnull_bool($eq(name, const$251/*const SourceString('>')*/))) return con
st$252/*const SourceString('gt')*/; |
11360 if ($notnull_bool($eq(name, const$248/*const SourceString('>=')*/))) return co
nst$249/*const SourceString('ge')*/; | 11380 if ($notnull_bool($eq(name, const$253/*const SourceString('>=')*/))) return co
nst$254/*const SourceString('ge')*/; |
11361 return name; | 11381 return name; |
11362 } | 11382 } |
11363 FullResolverVisitor.prototype.visitSend = function(node) { | 11383 FullResolverVisitor.prototype.visitSend = function(node) { |
11364 var $0; | 11384 var $0; |
11365 this.visit(node.receiver); | 11385 this.visit(node.receiver); |
11366 var identifier = (($0 = node.selector) && $0.is$Identifier()); | 11386 var identifier = (($0 = node.selector) && $0.is$Identifier()); |
11367 if (node.receiver != null && !(identifier instanceof Operator)) { | 11387 if (node.receiver != null && !(identifier instanceof Operator)) { |
11368 this.cancel(node, 'Cannot handle qualified method calls'); | 11388 this.cancel(node, 'Cannot handle qualified method calls'); |
11369 } | 11389 } |
11370 var name = this.potentiallyMapOperatorToMethodName(identifier.get$source()); | 11390 var name = this.potentiallyMapOperatorToMethodName(identifier.get$source()); |
11371 var target = this.context.lookup(name); | 11391 var target = this.context.lookup(name); |
11372 if (target == null && !(($notnull_bool($eq(name, const$250/*const SourceString
('&&')*/)) || $notnull_bool($eq(name, const$251/*const SourceString('||')*/)) ||
$notnull_bool($eq(name, const$252/*const SourceString('!')*/))))) { | 11392 if (target == null && !(($notnull_bool($eq(name, const$255/*const SourceString
('&&')*/)) || $notnull_bool($eq(name, const$256/*const SourceString('||')*/)) ||
$notnull_bool($eq(name, const$257/*const SourceString('!')*/))))) { |
11373 this.error(node, const$217/*MessageKind.CANNOT_RESOLVE*/, [name]); | 11393 this.error(node, const$221/*MessageKind.CANNOT_RESOLVE*/, [name]); |
11374 } | 11394 } |
11375 this.visit(node.argumentsNode); | 11395 this.visit(node.argumentsNode); |
11376 return this.useElement(node, target); | 11396 return this.useElement(node, target); |
11377 } | 11397 } |
11378 FullResolverVisitor.prototype.visitSendSet = function(node) { | 11398 FullResolverVisitor.prototype.visitSendSet = function(node) { |
11379 var $0; | 11399 var $0; |
11380 var receiver = (($0 = this.visit(node.receiver)) && $0.is$Element()); | 11400 var receiver = (($0 = this.visit(node.receiver)) && $0.is$Element()); |
11381 var selector = (($0 = node.selector) && $0.is$Identifier()); | 11401 var selector = (($0 = node.selector) && $0.is$Identifier()); |
11382 if (receiver != null) { | 11402 if (receiver != null) { |
11383 this.compiler.unimplemented('Resolver: property access'); | 11403 this.compiler.unimplemented('Resolver: property access'); |
11384 } | 11404 } |
11385 var target = this.context.lookup(selector.get$source()); | 11405 var target = this.context.lookup(selector.get$source()); |
11386 if (target == null) { | 11406 if (target == null) { |
11387 this.error(node, const$217/*MessageKind.CANNOT_RESOLVE*/, [node]); | 11407 this.error(node, const$221/*MessageKind.CANNOT_RESOLVE*/, [node]); |
11388 } | 11408 } |
11389 this.visit(node.argumentsNode); | 11409 this.visit(node.argumentsNode); |
11390 return this.useElement(node, target); | 11410 return this.useElement(node, target); |
11391 } | 11411 } |
11392 FullResolverVisitor.prototype.visitLiteralInt = function(node) { | 11412 FullResolverVisitor.prototype.visitLiteralInt = function(node) { |
11393 | 11413 |
11394 } | 11414 } |
11395 FullResolverVisitor.prototype.visitLiteralDouble = function(node) { | 11415 FullResolverVisitor.prototype.visitLiteralDouble = function(node) { |
11396 | 11416 |
11397 } | 11417 } |
(...skipping 17 matching lines...) Expand all Loading... |
11415 this.cancel(node, "Unimplemented"); | 11435 this.cancel(node, "Unimplemented"); |
11416 } | 11436 } |
11417 FullResolverVisitor.prototype.visitReturn = function(node) { | 11437 FullResolverVisitor.prototype.visitReturn = function(node) { |
11418 this.visit(node.expression); | 11438 this.visit(node.expression); |
11419 } | 11439 } |
11420 FullResolverVisitor.prototype.visitThrow = function(node) { | 11440 FullResolverVisitor.prototype.visitThrow = function(node) { |
11421 this.visit(node.expression); | 11441 this.visit(node.expression); |
11422 } | 11442 } |
11423 FullResolverVisitor.prototype.visitVariableDefinitions = function(node) { | 11443 FullResolverVisitor.prototype.visitVariableDefinitions = function(node) { |
11424 this.visit(node.type); | 11444 this.visit(node.type); |
11425 var visitor = new VariableDefinitionsVisitor(node, this, const$253/*ElementKin
d.VARIABLE*/); | 11445 var visitor = new VariableDefinitionsVisitor(node, this, const$258/*ElementKin
d.VARIABLE*/); |
11426 visitor.visit(node.definitions); | 11446 visitor.visit(node.definitions); |
11427 } | 11447 } |
11428 // ********** Code for ClassResolverVisitor ************** | 11448 // ********** Code for ClassResolverVisitor ************** |
11429 function ClassResolverVisitor(compiler) { | 11449 function ClassResolverVisitor(compiler) { |
11430 this.compiler = compiler; | 11450 this.compiler = compiler; |
11431 this.context = new TopScope(compiler.universe); | 11451 this.context = new TopScope(compiler.universe); |
11432 // Initializers done | 11452 // Initializers done |
11433 AbstractVisitor$Type.call(this); | 11453 AbstractVisitor$Type.call(this); |
11434 } | 11454 } |
11435 $inherits(ClassResolverVisitor, AbstractVisitor$Type); | 11455 $inherits(ClassResolverVisitor, AbstractVisitor$Type); |
11436 ClassResolverVisitor.prototype.visitClassNode = function(node) { | 11456 ClassResolverVisitor.prototype.visitClassNode = function(node) { |
11437 var $0; | 11457 var $0; |
11438 var element = (($0 = this.context.lookup(node.name.get$source())) && $0.is$Cla
ssElement()); | 11458 var element = (($0 = this.context.lookup(node.name.get$source())) && $0.is$Cla
ssElement()); |
11439 this.compiler.ensure(element != null); | 11459 this.compiler.ensure(element != null); |
11440 this.compiler.ensure(!$notnull_bool(element.isResolved)); | 11460 this.compiler.ensure(!$notnull_bool(element.isResolved)); |
11441 element.supertype = this.visit(node.superclass); | 11461 element.supertype = this.visit(node.superclass); |
11442 for (var link = node.interfaces.get$nodes(); | 11462 for (var link = node.interfaces.get$nodes(); |
11443 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { | 11463 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { |
11444 element.interfaces = (($0 = element.interfaces.prepend(this.visit((($0 = lin
k.get$head()) && $0.is$Node())))) && $0.is$Link$Type()); | 11464 element.interfaces = (($0 = element.interfaces.prepend(this.visit((($0 = lin
k.get$head()) && $0.is$Node())))) && $0.is$Link$Type()); |
11445 } | 11465 } |
11446 return element.computeType(this.compiler, null); | 11466 return element.computeType(this.compiler, null); |
11447 } | 11467 } |
11448 ClassResolverVisitor.prototype.visitTypeAnnotation = function(node) { | 11468 ClassResolverVisitor.prototype.visitTypeAnnotation = function(node) { |
11449 var $0; | 11469 var $0; |
11450 var name = node.typeName; | 11470 var name = node.typeName; |
11451 var element = this.context.lookup(name.get$source()); | 11471 var element = this.context.lookup(name.get$source()); |
11452 if (element == null) { | 11472 if (element == null) { |
11453 this.compiler.cancel(new ResolutionError(const$220/*MessageKind.CANNOT_RESOL
VE_TYPE*/, [name]).toString()); | 11473 this.compiler.cancel(new ResolutionError(const$224/*MessageKind.CANNOT_RESOL
VE_TYPE*/, [name]).toString()); |
11454 } | 11474 } |
11455 else if (element.kind !== const$203/*ElementKind.CLASS*/) { | 11475 else if (element.kind !== const$206/*ElementKind.CLASS*/) { |
11456 this.compiler.cancel(new ResolutionError(const$222/*MessageKind.NOT_A_TYPE*/
, [name]).toString()); | 11476 this.compiler.cancel(new ResolutionError(const$226/*MessageKind.NOT_A_TYPE*/
, [name]).toString()); |
11457 } | 11477 } |
11458 else { | 11478 else { |
11459 this.compiler.resolver.toResolve.add(element); | 11479 this.compiler.resolver.toResolve.add(element); |
11460 return (($0 = element.computeType(this.compiler, null)) && $0.is$Type()); | 11480 return (($0 = element.computeType(this.compiler, null)) && $0.is$Type()); |
11461 } | 11481 } |
11462 return null; | 11482 return null; |
11463 } | 11483 } |
11464 ClassResolverVisitor.prototype.visit = function(node) { | 11484 ClassResolverVisitor.prototype.visit = function(node) { |
11465 var $0; | 11485 var $0; |
11466 if (node == null) return null; | 11486 if (node == null) return null; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11499 return node.get$source(); | 11519 return node.get$source(); |
11500 } | 11520 } |
11501 VariableDefinitionsVisitor.prototype.visitNodeList = function(node) { | 11521 VariableDefinitionsVisitor.prototype.visitNodeList = function(node) { |
11502 var $0; | 11522 var $0; |
11503 for (var link = node.get$nodes(); | 11523 for (var link = node.get$nodes(); |
11504 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { | 11524 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { |
11505 var name = (($0 = this.visit((($0 = link.get$head()) && $0.is$Node()))) && $
0.is$SourceString()); | 11525 var name = (($0 = this.visit((($0 = link.get$head()) && $0.is$Node()))) && $
0.is$SourceString()); |
11506 var element = new VariableElement((($0 = link.get$head()) && $0.is$Node()),
this.definitions.type, this.kind, name, this.resolver.context.enclosingElement); | 11526 var element = new VariableElement((($0 = link.get$head()) && $0.is$Node()),
this.definitions.type, this.kind, name, this.resolver.context.enclosingElement); |
11507 var existing = this.resolver.defineElement((($0 = link.get$head()) && $0.is$
Node()), element); | 11527 var existing = this.resolver.defineElement((($0 = link.get$head()) && $0.is$
Node()), element); |
11508 if ($ne(existing, element)) { | 11528 if ($ne(existing, element)) { |
11509 this.resolver.error(node, const$226/*MessageKind.DUPLICATE_DEFINITION*/, [
link.get$head()]); | 11529 this.resolver.error(node, const$230/*MessageKind.DUPLICATE_DEFINITION*/, [
link.get$head()]); |
11510 } | 11530 } |
11511 } | 11531 } |
11512 } | 11532 } |
11513 VariableDefinitionsVisitor.prototype.visit = function(node) { | 11533 VariableDefinitionsVisitor.prototype.visit = function(node) { |
11514 return node.accept(this); | 11534 return node.accept(this); |
11515 } | 11535 } |
11516 VariableDefinitionsVisitor.prototype.visit$1 = function($0) { | 11536 VariableDefinitionsVisitor.prototype.visit$1 = function($0) { |
11517 return this.visit(($0 && $0.is$Node())); | 11537 return this.visit(($0 && $0.is$Node())); |
11518 }; | 11538 }; |
11519 // ********** Code for ParametersVisitor ************** | 11539 // ********** Code for ParametersVisitor ************** |
11520 function ParametersVisitor(resolver) { | 11540 function ParametersVisitor(resolver) { |
11521 this.resolver = resolver; | 11541 this.resolver = resolver; |
11522 this.elements = new LinkBuilderImplementation(); | 11542 this.elements = new LinkBuilderImplementation(); |
11523 // Initializers done | 11543 // Initializers done |
11524 AbstractVisitor$Element.call(this); | 11544 AbstractVisitor$Element.call(this); |
11525 } | 11545 } |
11526 $inherits(ParametersVisitor, AbstractVisitor$Element); | 11546 $inherits(ParametersVisitor, AbstractVisitor$Element); |
11527 ParametersVisitor.prototype.visitNodeList = function(node) { | 11547 ParametersVisitor.prototype.visitNodeList = function(node) { |
11528 var $0; | 11548 var $0; |
11529 for (var link = node.get$nodes(); | 11549 for (var link = node.get$nodes(); |
11530 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { | 11550 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { |
11531 this.elements.addLast(this.visit((($0 = link.get$head()) && $0.is$Node()))); | 11551 this.elements.addLast(this.visit((($0 = link.get$head()) && $0.is$Node()))); |
11532 } | 11552 } |
11533 } | 11553 } |
11534 ParametersVisitor.prototype.visitVariableDefinitions = function(node) { | 11554 ParametersVisitor.prototype.visitVariableDefinitions = function(node) { |
11535 this.resolver.visit(node.type); | 11555 this.resolver.visit(node.type); |
11536 var visitor = new VariableDefinitionsVisitor(node, this.resolver, const$224/*E
lementKind.PARAMETER*/); | 11556 var visitor = new VariableDefinitionsVisitor(node, this.resolver, const$228/*E
lementKind.PARAMETER*/); |
11537 visitor.visit(node.definitions); | 11557 visitor.visit(node.definitions); |
11538 return this.resolver.mapping.$index(node.definitions.get$nodes().get$head()); | 11558 return this.resolver.mapping.$index(node.definitions.get$nodes().get$head()); |
11539 } | 11559 } |
11540 ParametersVisitor.prototype.visit = function(node) { | 11560 ParametersVisitor.prototype.visit = function(node) { |
11541 return node.accept(this); | 11561 return node.accept(this); |
11542 } | 11562 } |
11543 ParametersVisitor.prototype.visit$1 = function($0) { | 11563 ParametersVisitor.prototype.visit$1 = function($0) { |
11544 return this.visit(($0 && $0.is$Node())); | 11564 return this.visit(($0 && $0.is$Node())); |
11545 }; | 11565 }; |
11546 // ********** Code for Scope ************** | 11566 // ********** Code for Scope ************** |
11547 function Scope(parent) { | 11567 function Scope(parent) { |
11548 // Initializers done | 11568 // Initializers done |
11549 Scope.enclosing$ctor.call(this, parent, parent.enclosingElement); | 11569 Scope.enclosing$ctor.call(this, parent, parent.enclosingElement); |
11550 } | 11570 } |
11551 Scope.top$ctor = function() { | 11571 Scope.top$ctor = function() { |
11552 this.parent = null; | 11572 this.parent = null; |
11553 this.elements = const$216/*const {}*/; | 11573 this.elements = const$220/*const {}*/; |
11554 this.enclosingElement = null; | 11574 this.enclosingElement = null; |
11555 // Initializers done | 11575 // Initializers done |
11556 } | 11576 } |
11557 Scope.top$ctor.prototype = Scope.prototype; | 11577 Scope.top$ctor.prototype = Scope.prototype; |
11558 Scope.enclosing$ctor = function(parent, enclosingElement) { | 11578 Scope.enclosing$ctor = function(parent, enclosingElement) { |
11559 this.parent = parent; | 11579 this.parent = parent; |
11560 this.enclosingElement = enclosingElement; | 11580 this.enclosingElement = enclosingElement; |
11561 this.elements = $map([]); | 11581 this.elements = $map([]); |
11562 // Initializers done | 11582 // Initializers done |
11563 } | 11583 } |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11732 message = ('' + message + ': ' + reason); | 11752 message = ('' + message + ': ' + reason); |
11733 } | 11753 } |
11734 $throw(new CancelTypeCheckException(node, message)); | 11754 $throw(new CancelTypeCheckException(node, message)); |
11735 } | 11755 } |
11736 TypeCheckerVisitor.prototype.reportTypeWarning = function(node, kind, arguments)
{ | 11756 TypeCheckerVisitor.prototype.reportTypeWarning = function(node, kind, arguments)
{ |
11737 this.compiler.reportWarning(node, new TypeWarning(kind, arguments).toString())
; | 11757 this.compiler.reportWarning(node, new TypeWarning(kind, arguments).toString())
; |
11738 } | 11758 } |
11739 TypeCheckerVisitor.prototype.nonVoidType = function(node) { | 11759 TypeCheckerVisitor.prototype.nonVoidType = function(node) { |
11740 var type = this.type(node); | 11760 var type = this.type(node); |
11741 if ($eq(type, this.types.voidType)) { | 11761 if ($eq(type, this.types.voidType)) { |
11742 this.reportTypeWarning(node, const$268/*MessageKind.VOID_EXPRESSION*/, const
$15/*const []*/); | 11762 this.reportTypeWarning(node, const$273/*MessageKind.VOID_EXPRESSION*/, const
$15/*const []*/); |
11743 } | 11763 } |
11744 return type; | 11764 return type; |
11745 } | 11765 } |
11746 TypeCheckerVisitor.prototype.typeWithDefault = function(node, defaultValue) { | 11766 TypeCheckerVisitor.prototype.typeWithDefault = function(node, defaultValue) { |
11747 return node != null ? this.type(node) : defaultValue; | 11767 return node != null ? this.type(node) : defaultValue; |
11748 } | 11768 } |
11749 TypeCheckerVisitor.prototype.type = function(node) { | 11769 TypeCheckerVisitor.prototype.type = function(node) { |
11750 var $0; | 11770 var $0; |
11751 if (node == null) this.fail(null, 'unexpected node: null'); | 11771 if (node == null) this.fail(null, 'unexpected node: null'); |
11752 var result = (($0 = node.accept(this)) && $0.is$Type()); | 11772 var result = (($0 = node.accept(this)) && $0.is$Type()); |
11753 return result; | 11773 return result; |
11754 } | 11774 } |
11755 TypeCheckerVisitor.prototype.get$type = function() { | 11775 TypeCheckerVisitor.prototype.get$type = function() { |
11756 return TypeCheckerVisitor.prototype.type.bind(this); | 11776 return TypeCheckerVisitor.prototype.type.bind(this); |
11757 } | 11777 } |
11758 TypeCheckerVisitor.prototype.checkAssignable = function(node, s, t) { | 11778 TypeCheckerVisitor.prototype.checkAssignable = function(node, s, t) { |
11759 if (!$notnull_bool(this.types.isAssignable(s, t))) { | 11779 if (!$notnull_bool(this.types.isAssignable(s, t))) { |
11760 this.reportTypeWarning(node, const$261/*MessageKind.NOT_ASSIGNABLE*/, [s, t]
); | 11780 this.reportTypeWarning(node, const$266/*MessageKind.NOT_ASSIGNABLE*/, [s, t]
); |
11761 } | 11781 } |
11762 } | 11782 } |
11763 TypeCheckerVisitor.prototype.visitBlock = function(node) { | 11783 TypeCheckerVisitor.prototype.visitBlock = function(node) { |
11764 this.type(node.statements); | 11784 this.type(node.statements); |
11765 return this.types.voidType; | 11785 return this.types.voidType; |
11766 } | 11786 } |
11767 TypeCheckerVisitor.prototype.visitClassNode = function(node) { | 11787 TypeCheckerVisitor.prototype.visitClassNode = function(node) { |
11768 this.fail(node); | 11788 this.fail(node); |
11769 } | 11789 } |
11770 TypeCheckerVisitor.prototype.visitExpressionStatement = function(node) { | 11790 TypeCheckerVisitor.prototype.visitExpressionStatement = function(node) { |
(...skipping 20 matching lines...) Expand all Loading... |
11791 this.type(node.thenPart); | 11811 this.type(node.thenPart); |
11792 if ($notnull_bool(node.get$hasElsePart())) this.type(node.elsePart); | 11812 if ($notnull_bool(node.get$hasElsePart())) this.type(node.elsePart); |
11793 return this.types.voidType; | 11813 return this.types.voidType; |
11794 } | 11814 } |
11795 TypeCheckerVisitor.prototype.visitSend = function(node) { | 11815 TypeCheckerVisitor.prototype.visitSend = function(node) { |
11796 var $0; | 11816 var $0; |
11797 var target = this.elements.$index(node); | 11817 var target = this.elements.$index(node); |
11798 var selector = (($0 = node.selector) && $0.is$Identifier()); | 11818 var selector = (($0 = node.selector) && $0.is$Identifier()); |
11799 if (target != null) { | 11819 if (target != null) { |
11800 var name = selector.get$source(); | 11820 var name = selector.get$source(); |
11801 if ($notnull_bool($eq(name, const$228/*const SourceString('+')*/)) || $notnu
ll_bool($eq(name, const$265/*const SourceString('=')*/)) || $notnull_bool($eq(na
me, const$230/*const SourceString('-')*/)) || $notnull_bool($eq(name, const$232/
*const SourceString('*')*/)) || $notnull_bool($eq(name, const$234/*const SourceS
tring('/')*/)) || $notnull_bool($eq(name, const$242/*const SourceString('<')*/))
|| $notnull_bool($eq(name, const$236/*const SourceString('~/')*/))) { | 11821 if ($notnull_bool($eq(name, const$233/*const SourceString('+')*/)) || $notnu
ll_bool($eq(name, const$270/*const SourceString('=')*/)) || $notnull_bool($eq(na
me, const$235/*const SourceString('-')*/)) || $notnull_bool($eq(name, const$237/
*const SourceString('*')*/)) || $notnull_bool($eq(name, const$239/*const SourceS
tring('/')*/)) || $notnull_bool($eq(name, const$247/*const SourceString('<')*/))
|| $notnull_bool($eq(name, const$241/*const SourceString('~/')*/))) { |
11802 return this.types.dynamicType; | 11822 return this.types.dynamicType; |
11803 } | 11823 } |
11804 var targetType = target.computeType$2(this.compiler, this.types); | 11824 var targetType = target.computeType$2(this.compiler, this.types); |
11805 if ($notnull_bool(node.get$isPropertyAccess())) { | 11825 if ($notnull_bool(node.get$isPropertyAccess())) { |
11806 return (targetType && targetType.is$Type()); | 11826 return (targetType && targetType.is$Type()); |
11807 } | 11827 } |
11808 else if ($notnull_bool(node.get$isFunctionObjectInvocation())) { | 11828 else if ($notnull_bool(node.get$isFunctionObjectInvocation())) { |
11809 this.fail(node); | 11829 this.fail(node); |
11810 } | 11830 } |
11811 else { | 11831 else { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11871 } | 11891 } |
11872 TypeCheckerVisitor.prototype.visitOperator = function(node) { | 11892 TypeCheckerVisitor.prototype.visitOperator = function(node) { |
11873 return this.types.dynamicType; | 11893 return this.types.dynamicType; |
11874 } | 11894 } |
11875 TypeCheckerVisitor.prototype.visitReturn = function(node) { | 11895 TypeCheckerVisitor.prototype.visitReturn = function(node) { |
11876 var expression = node.expression; | 11896 var expression = node.expression; |
11877 var isVoidFunction = (this.expectedReturnType === this.types.voidType); | 11897 var isVoidFunction = (this.expectedReturnType === this.types.voidType); |
11878 if (expression != null) { | 11898 if (expression != null) { |
11879 var expressionType = this.type(expression); | 11899 var expressionType = this.type(expression); |
11880 if (isVoidFunction && !$notnull_bool(this.types.isAssignable(expressionType,
this.types.voidType))) { | 11900 if (isVoidFunction && !$notnull_bool(this.types.isAssignable(expressionType,
this.types.voidType))) { |
11881 this.reportTypeWarning(expression, const$259/*MessageKind.RETURN_VALUE_IN_
VOID*/, const$15/*const []*/); | 11901 this.reportTypeWarning(expression, const$264/*MessageKind.RETURN_VALUE_IN_
VOID*/, const$15/*const []*/); |
11882 } | 11902 } |
11883 else { | 11903 else { |
11884 this.checkAssignable(expression, expressionType, this.expectedReturnType); | 11904 this.checkAssignable(expression, expressionType, this.expectedReturnType); |
11885 } | 11905 } |
11886 } | 11906 } |
11887 else if (!$notnull_bool(this.types.isAssignable(this.expectedReturnType, this.
types.voidType))) { | 11907 else if (!$notnull_bool(this.types.isAssignable(this.expectedReturnType, this.
types.voidType))) { |
11888 this.reportTypeWarning(node, const$263/*MessageKind.RETURN_NOTHING*/, [this.
expectedReturnType]); | 11908 this.reportTypeWarning(node, const$268/*MessageKind.RETURN_NOTHING*/, [this.
expectedReturnType]); |
11889 } | 11909 } |
11890 return null; | 11910 return null; |
11891 } | 11911 } |
11892 TypeCheckerVisitor.prototype.visitThrow = function(node) { | 11912 TypeCheckerVisitor.prototype.visitThrow = function(node) { |
11893 if (node.expression != null) this.type(node.expression); | 11913 if (node.expression != null) this.type(node.expression); |
11894 return this.types.voidType; | 11914 return this.types.voidType; |
11895 } | 11915 } |
11896 TypeCheckerVisitor.prototype.visitTypeAnnotation = function(node) { | 11916 TypeCheckerVisitor.prototype.visitTypeAnnotation = function(node) { |
11897 if (node.typeName == null) return this.types.dynamicType; | 11917 if (node.typeName == null) return this.types.dynamicType; |
11898 var name = node.typeName.get$source(); | 11918 var name = node.typeName.get$source(); |
11899 var type = this.types.lookup(name); | 11919 var type = this.types.lookup(name); |
11900 if (type == null) this.fail(node, ('unsupported type ' + name)); | 11920 if (type == null) this.fail(node, ('unsupported type ' + name)); |
11901 return type; | 11921 return type; |
11902 } | 11922 } |
11903 TypeCheckerVisitor.prototype.visitVariableDefinitions = function(node) { | 11923 TypeCheckerVisitor.prototype.visitVariableDefinitions = function(node) { |
11904 var $0; | 11924 var $0; |
11905 var type = this.typeWithDefault(node.type, this.types.dynamicType); | 11925 var type = this.typeWithDefault(node.type, this.types.dynamicType); |
11906 if ($eq(type, this.types.voidType)) { | 11926 if ($eq(type, this.types.voidType)) { |
11907 this.reportTypeWarning(node.type, const$266/*MessageKind.VOID_VARIABLE*/, co
nst$15/*const []*/); | 11927 this.reportTypeWarning(node.type, const$271/*MessageKind.VOID_VARIABLE*/, co
nst$15/*const []*/); |
11908 type = this.types.dynamicType; | 11928 type = this.types.dynamicType; |
11909 } | 11929 } |
11910 for (var link = node.definitions.get$nodes(); | 11930 for (var link = node.definitions.get$nodes(); |
11911 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { | 11931 !$notnull_bool(link.isEmpty()); link = (($0 = link.get$tail()) && $0.is$Link$
Node())) { |
11912 var initialization = (($0 = link.get$head()) && $0.is$Node()); | 11932 var initialization = (($0 = link.get$head()) && $0.is$Node()); |
11913 this.compiler.ensure((initialization instanceof Identifier) || (initializati
on instanceof Send)); | 11933 this.compiler.ensure((initialization instanceof Identifier) || (initializati
on instanceof Send)); |
11914 if ((initialization instanceof Send)) { | 11934 if ((initialization instanceof Send)) { |
11915 var initializer = this.nonVoidType((($0 = link.get$head()) && $0.is$Node()
)); | 11935 var initializer = this.nonVoidType((($0 = link.get$head()) && $0.is$Node()
)); |
11916 this.checkAssignable(node, type, initializer); | 11936 this.checkAssignable(node, type, initializer); |
11917 } | 11937 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11993 // Initializers done | 12013 // Initializers done |
11994 } | 12014 } |
11995 ResolutionWarning.prototype.toString = function() { | 12015 ResolutionWarning.prototype.toString = function() { |
11996 return this.message.toString(); | 12016 return this.message.toString(); |
11997 } | 12017 } |
11998 ResolutionWarning.prototype.toString$0 = function() { | 12018 ResolutionWarning.prototype.toString$0 = function() { |
11999 return this.toString(); | 12019 return this.toString(); |
12000 }; | 12020 }; |
12001 // ********** Code for top level ************** | 12021 // ********** Code for top level ************** |
12002 function unreachable() { | 12022 function unreachable() { |
12003 $throw(const$270/*const Exception("Internal Error (Leg): UNREACHABLE")*/); | 12023 $throw(const$275/*const Exception("Internal Error (Leg): UNREACHABLE")*/); |
12004 } | 12024 } |
12005 // ********** Library frog_leg ************** | 12025 // ********** Library frog_leg ************** |
12006 // ********** Code for WorldCompiler ************** | 12026 // ********** Code for WorldCompiler ************** |
12007 function WorldCompiler(world, script) { | 12027 function WorldCompiler(world, script) { |
12008 this.world = world; | 12028 this.world = world; |
12009 // Initializers done | 12029 // Initializers done |
12010 Compiler.call(this, script); | 12030 Compiler.call(this, script); |
12011 } | 12031 } |
12012 $inherits(WorldCompiler, Compiler); | 12032 $inherits(WorldCompiler, Compiler); |
12013 WorldCompiler.prototype.log = function(message) { | 12033 WorldCompiler.prototype.log = function(message) { |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12339 var $0; | 12359 var $0; |
12340 this.hasStatics = true; | 12360 this.hasStatics = true; |
12341 var fullname = ("" + field.declaringType.get$jsname() + "." + field.get$jsname
()); | 12361 var fullname = ("" + field.declaringType.get$jsname() + "." + field.get$jsname
()); |
12342 if (!this.globals.containsKey(fullname)) { | 12362 if (!this.globals.containsKey(fullname)) { |
12343 this.globals.$setindex(fullname, GlobalValue.GlobalValue$fromStatic$factory(
field, fieldValue, dependencies)); | 12363 this.globals.$setindex(fullname, GlobalValue.GlobalValue$fromStatic$factory(
field, fieldValue, dependencies)); |
12344 } | 12364 } |
12345 return (($0 = this.globals.$index(fullname)) && $0.is$GlobalValue()); | 12365 return (($0 = this.globals.$index(fullname)) && $0.is$GlobalValue()); |
12346 } | 12366 } |
12347 WorldGenerator.prototype.globalForConst = function(exp, dependencies) { | 12367 WorldGenerator.prototype.globalForConst = function(exp, dependencies) { |
12348 var $0; | 12368 var $0; |
12349 var code = exp.canonicalCode; | 12369 var key = exp.type.get$jsname() + ':' + exp.canonicalCode; |
12350 if (!this.globals.containsKey(code)) { | 12370 if (!this.globals.containsKey(key)) { |
12351 this.globals.$setindex(code, GlobalValue.GlobalValue$fromConst$factory(this.
globals.get$length(), exp, dependencies)); | 12371 this.globals.$setindex(key, GlobalValue.GlobalValue$fromConst$factory(this.g
lobals.get$length(), exp, dependencies)); |
12352 } | 12372 } |
12353 return (($0 = this.globals.$index(code)) && $0.is$GlobalValue()); | 12373 $assert($eq(this.globals.$index(key).get$type(), exp.type), "globals[key].type
== exp.type", "gen.dart", 121, 12); |
| 12374 return (($0 = this.globals.$index(key)) && $0.is$GlobalValue()); |
12354 } | 12375 } |
12355 WorldGenerator.prototype.writeTypes = function(lib) { | 12376 WorldGenerator.prototype.writeTypes = function(lib) { |
12356 var $0; | 12377 var $0; |
12357 if ($notnull_bool(lib.isWritten)) return; | 12378 if ($notnull_bool(lib.isWritten)) return; |
12358 lib.isWritten = true; | 12379 lib.isWritten = true; |
12359 var $list = lib.imports; | 12380 var $list = lib.imports; |
12360 for (var $i = 0;$i < $list.length; $i++) { | 12381 for (var $i = 0;$i < $list.length; $i++) { |
12361 var import_ = $list.$index($i); | 12382 var import_ = $list.$index($i); |
12362 this.writeTypes((($0 = import_.get$library()) && $0.is$Library())); | 12383 this.writeTypes((($0 = import_.get$library()) && $0.is$Library())); |
12363 } | 12384 } |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12883 else if ($notnull_bool(this.method.get$isStatic())) { | 12904 else if ($notnull_bool(this.method.get$isStatic())) { |
12884 defWriter.enterBlock(('' + this.method.declaringType.get$jsname() + '.' + th
is.method.get$jsname() + ' = function' + _params + ' {')); | 12905 defWriter.enterBlock(('' + this.method.declaringType.get$jsname() + '.' + th
is.method.get$jsname() + ' = function' + _params + ' {')); |
12885 } | 12906 } |
12886 else { | 12907 else { |
12887 defWriter.enterBlock(('' + this.method.declaringType.get$jsname() + '.protot
ype.') + ('' + this.method.get$jsname() + ' = function' + _params + ' {')); | 12908 defWriter.enterBlock(('' + this.method.declaringType.get$jsname() + '.protot
ype.') + ('' + this.method.get$jsname() + ' = function' + _params + ' {')); |
12888 } | 12909 } |
12889 if ($notnull_bool(this.needsThis)) { | 12910 if ($notnull_bool(this.needsThis)) { |
12890 defWriter.writeln('var \$this = this; // closure support'); | 12911 defWriter.writeln('var \$this = this; // closure support'); |
12891 } | 12912 } |
12892 if (this._usedTemps.get$length() > 0 || this._freeTemps.length > 0) { | 12913 if (this._usedTemps.get$length() > 0 || this._freeTemps.length > 0) { |
12893 $assert(this._usedTemps.get$length() == 0, "_usedTemps.length == 0", "gen.da
rt", 800, 14); | 12914 $assert(this._usedTemps.get$length() == 0, "_usedTemps.length == 0", "gen.da
rt", 803, 14); |
12894 this._freeTemps.addAll(this._usedTemps); | 12915 this._freeTemps.addAll(this._usedTemps); |
12895 this._freeTemps.sort((function (x, y) { | 12916 this._freeTemps.sort((function (x, y) { |
12896 return x.compareTo$1(y); | 12917 return x.compareTo$1(y); |
12897 }) | 12918 }) |
12898 ); | 12919 ); |
12899 defWriter.writeln(('var ' + Strings.join(this._freeTemps, ", ") + ';')); | 12920 defWriter.writeln(('var ' + Strings.join(this._freeTemps, ", ") + ';')); |
12900 } | 12921 } |
12901 defWriter.writeln(this.writer.get$text()); | 12922 defWriter.writeln(this.writer.get$text()); |
12902 if ($notnull_bool($ne(names, null))) { | 12923 if ($notnull_bool($ne(names, null))) { |
12903 defWriter.exitBlock(('}).bind(null, ' + Strings.join((names && names.is$List
$String()), ", ") + ')')); | 12924 defWriter.exitBlock(('}).bind(null, ' + Strings.join((names && names.is$List
$String()), ", ") + ')')); |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13390 var next = tmpi.invoke$4(this, 'next', node.list, Arguments.get$EMPTY()); | 13411 var next = tmpi.invoke$4(this, 'next', node.list, Arguments.get$EMPTY()); |
13391 this.writer.enterBlock(('for (var ' + tmpi.get$code() + ' = ' + iterator.get
$code() + '; ' + hasNext.get$code() + '; ) {')); | 13412 this.writer.enterBlock(('for (var ' + tmpi.get$code() + ' = ' + iterator.get
$code() + '; ' + hasNext.get$code() + '; ) {')); |
13392 this.writer.writeln(('var ' + item.get$code() + ' = ' + next.get$code() + ';
')); | 13413 this.writer.writeln(('var ' + item.get$code() + ' = ' + next.get$code() + ';
')); |
13393 } | 13414 } |
13394 this.visitStatementsInBlock(node.body); | 13415 this.visitStatementsInBlock(node.body); |
13395 this.writer.exitBlock('}'); | 13416 this.writer.exitBlock('}'); |
13396 this._popBlock(); | 13417 this._popBlock(); |
13397 return false; | 13418 return false; |
13398 } | 13419 } |
13399 MethodGenerator.prototype._genToDartException = function(ex, node) { | 13420 MethodGenerator.prototype._genToDartException = function(ex, node) { |
13400 var types = const$418/*const [ | 13421 var types = const$423/*const [ |
13401 'NullPointerException', 'ObjectNotClosureException', | 13422 'NullPointerException', 'ObjectNotClosureException', |
13402 'NoSuchMethodException', 'StackOverflowException']*/; | 13423 'NoSuchMethodException', 'StackOverflowException']*/; |
13403 var target = new Value($globals.world.varType, 'this', node.span, true); | 13424 var target = new Value($globals.world.varType, 'this', node.span, true); |
13404 for (var $i = types.iterator$0(); $i.hasNext$0(); ) { | 13425 for (var $i = types.iterator$0(); $i.hasNext$0(); ) { |
13405 var name = $i.next$0(); | 13426 var name = $i.next$0(); |
13406 $globals.world.corelib.types.$index(name).markUsed$0(); | 13427 $globals.world.corelib.types.$index(name).markUsed$0(); |
13407 $globals.world.corelib.types.$index(name).get$members().$index('toString').i
nvoke$4(this, node, target, Arguments.get$EMPTY()); | 13428 $globals.world.corelib.types.$index(name).get$members().$index('toString').i
nvoke$4(this, node, target, Arguments.get$EMPTY()); |
13408 } | 13429 } |
13409 this.writer.writeln(('' + ex + ' = \$toDartException(' + ex + ');')); | 13430 this.writer.writeln(('' + ex + ' = \$toDartException(' + ex + ');')); |
13410 $globals.world.gen.corejs.useToDartException = true; | 13431 $globals.world.gen.corejs.useToDartException = true; |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14065 var u = (item && item.is$UnaryExpression()); | 14086 var u = (item && item.is$UnaryExpression()); |
14066 return u.op.kind == 16/*TokenKind.INCR*/ || u.op.kind == 17/*TokenKind.DECR*
/; | 14087 return u.op.kind == 16/*TokenKind.INCR*/ || u.op.kind == 17/*TokenKind.DECR*
/; |
14067 } | 14088 } |
14068 else { | 14089 else { |
14069 return false; | 14090 return false; |
14070 } | 14091 } |
14071 } | 14092 } |
14072 MethodGenerator.prototype.visitLiteralExpression = function(node) { | 14093 MethodGenerator.prototype.visitLiteralExpression = function(node) { |
14073 var $0; | 14094 var $0; |
14074 var type = node.type.type; | 14095 var type = node.type.type; |
14075 $assert($ne(type, null), "type != null", "gen.dart", 2235, 12); | 14096 $assert($ne(type, null), "type != null", "gen.dart", 2238, 12); |
14076 if (!!(($0 = node.value) && $0.is$List)) { | 14097 if (!!(($0 = node.value) && $0.is$List)) { |
14077 var items = []; | 14098 var items = []; |
14078 var $list = node.value; | 14099 var $list = node.value; |
14079 for (var $i = node.value.iterator$0(); $i.hasNext$0(); ) { | 14100 for (var $i = node.value.iterator$0(); $i.hasNext$0(); ) { |
14080 var item = $i.next$0(); | 14101 var item = $i.next$0(); |
14081 var val = this.visitValue((item && item.is$lang_Expression())); | 14102 var val = this.visitValue((item && item.is$lang_Expression())); |
14082 val.invoke$4(this, 'toString', item, Arguments.get$EMPTY()); | 14103 val.invoke$4(this, 'toString', item, Arguments.get$EMPTY()); |
14083 var code = val.get$code(); | 14104 var code = val.get$code(); |
14084 if ((item instanceof BinaryExpression) || (item instanceof ConditionalExpr
ession) || (item instanceof PostfixExpression) || $notnull_bool(this._isUnaryInc
rement((item && item.is$lang_Expression())))) { | 14105 if ((item instanceof BinaryExpression) || (item instanceof ConditionalExpr
ession) || (item instanceof PostfixExpression) || $notnull_bool(this._isUnaryInc
rement((item && item.is$lang_Expression())))) { |
14085 code = ('(' + code + ')'); | 14106 code = ('(' + code + ')'); |
(...skipping 7276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21362 NonNullableType.prototype.resolveTypeParams$1 = function($0) { | 21383 NonNullableType.prototype.resolveTypeParams$1 = function($0) { |
21363 return this.resolveTypeParams(($0 && $0.is$ConcreteType())); | 21384 return this.resolveTypeParams(($0 && $0.is$ConcreteType())); |
21364 }; | 21385 }; |
21365 // ********** Code for ConcreteType ************** | 21386 // ********** Code for ConcreteType ************** |
21366 function ConcreteType(name, genericType, typeArguments, typeArgsInOrder) { | 21387 function ConcreteType(name, genericType, typeArguments, typeArgsInOrder) { |
21367 this.genericType = genericType; | 21388 this.genericType = genericType; |
21368 this.typeArguments = typeArguments; | 21389 this.typeArguments = typeArguments; |
21369 this.typeArgsInOrder = typeArgsInOrder; | 21390 this.typeArgsInOrder = typeArgsInOrder; |
21370 this.constructors = $map([]); | 21391 this.constructors = $map([]); |
21371 this.members = $map([]); | 21392 this.members = $map([]); |
| 21393 this._resolvedMembers = $map([]); |
21372 this.factories = new FactoryMap(); | 21394 this.factories = new FactoryMap(); |
21373 // Initializers done | 21395 // Initializers done |
21374 lang_Type.call(this, name); | 21396 lang_Type.call(this, name); |
21375 } | 21397 } |
21376 $inherits(ConcreteType, lang_Type); | 21398 $inherits(ConcreteType, lang_Type); |
21377 ConcreteType.prototype.is$ConcreteType = function(){return this;}; | 21399 ConcreteType.prototype.is$ConcreteType = function(){return this;}; |
21378 ConcreteType.prototype.get$genericType = function() { return this.genericType; }
; | 21400 ConcreteType.prototype.get$genericType = function() { return this.genericType; }
; |
21379 ConcreteType.prototype.get$typeArgsInOrder = function() { return this.typeArgsIn
Order; }; | 21401 ConcreteType.prototype.get$typeArgsInOrder = function() { return this.typeArgsIn
Order; }; |
21380 ConcreteType.prototype.set$typeArgsInOrder = function(value) { return this.typeA
rgsInOrder = value; }; | 21402 ConcreteType.prototype.set$typeArgsInOrder = function(value) { return this.typeA
rgsInOrder = value; }; |
21381 ConcreteType.prototype.get$isList = function() { | 21403 ConcreteType.prototype.get$isList = function() { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21492 } | 21514 } |
21493 var genericMember = this.genericType.members.$index(memberName); | 21515 var genericMember = this.genericType.members.$index(memberName); |
21494 if ($notnull_bool($ne(genericMember, null))) { | 21516 if ($notnull_bool($ne(genericMember, null))) { |
21495 member = new ConcreteMember($assert_String(genericMember.get$name()), this,
genericMember); | 21517 member = new ConcreteMember($assert_String(genericMember.get$name()), this,
genericMember); |
21496 this.members.$setindex(memberName, member); | 21518 this.members.$setindex(memberName, member); |
21497 return member; | 21519 return member; |
21498 } | 21520 } |
21499 return this._getMemberInParents(memberName); | 21521 return this._getMemberInParents(memberName); |
21500 } | 21522 } |
21501 ConcreteType.prototype.resolveMember = function(memberName) { | 21523 ConcreteType.prototype.resolveMember = function(memberName) { |
21502 var mem = this.getMember(memberName); | 21524 var $0; |
21503 if ($notnull_bool(mem == null)) return null; | 21525 var ret = (($0 = this._resolvedMembers.$index(memberName)) && $0.is$MemberSet(
)); |
21504 var ret = new MemberSet((mem && mem.is$Member()), false); | 21526 if (ret != null) return ret; |
21505 if ($notnull_bool(mem.get$isStatic())) return (ret && ret.is$MemberSet()); | 21527 var member = this.getMember(memberName); |
21506 var $list = this.genericType.get$subtypes(); | 21528 if (member == null) { |
21507 for (var $i = this.genericType.get$subtypes().iterator(); $i.hasNext$0(); ) { | 21529 return null; |
21508 var t = $i.next$0(); | |
21509 var m = t.get$members().$index(memberName); | |
21510 if ($notnull_bool($ne(m, null))) ret.add$1(m); | |
21511 } | 21530 } |
21512 return (ret && ret.is$MemberSet()); | 21531 ret = new MemberSet(member, false); |
| 21532 this._resolvedMembers.$setindex(memberName, ret); |
| 21533 if ($notnull_bool(member.get$isStatic())) { |
| 21534 return ret; |
| 21535 } |
| 21536 else { |
| 21537 var $list = this.genericType.get$subtypes(); |
| 21538 for (var $i = this.genericType.get$subtypes().iterator(); $i.hasNext$0(); )
{ |
| 21539 var t = $i.next$0(); |
| 21540 if (!$notnull_bool(this.get$isClass()) && $notnull_bool(t.get$isClass()))
{ |
| 21541 var m = t.getMember$1(memberName); |
| 21542 if ($notnull_bool($ne(m, null)) && ret.members.indexOf(m) == -1) { |
| 21543 ret.add((m && m.is$Member())); |
| 21544 } |
| 21545 } |
| 21546 else { |
| 21547 var m = t.get$members().$index(memberName); |
| 21548 if ($notnull_bool($ne(m, null))) ret.add((m && m.is$Member())); |
| 21549 } |
| 21550 } |
| 21551 return ret; |
| 21552 } |
21513 } | 21553 } |
21514 ConcreteType.prototype.resolveType = function(node, isRequired) { | 21554 ConcreteType.prototype.resolveType = function(node, isRequired) { |
21515 var ret = this.genericType.resolveType(node, isRequired); | 21555 var ret = this.genericType.resolveType(node, isRequired); |
21516 return (ret && ret.is$lang_Type()); | 21556 return (ret && ret.is$lang_Type()); |
21517 } | 21557 } |
21518 ConcreteType.prototype.addDirectSubtype = function(type) { | 21558 ConcreteType.prototype.addDirectSubtype = function(type) { |
21519 this.genericType.addDirectSubtype(type); | 21559 this.genericType.addDirectSubtype(type); |
21520 } | 21560 } |
21521 ConcreteType.prototype.addDirectSubtype$1 = function($0) { | 21561 ConcreteType.prototype.addDirectSubtype$1 = function($0) { |
21522 return this.addDirectSubtype(($0 && $0.is$lang_Type())); | 21562 return this.addDirectSubtype(($0 && $0.is$lang_Type())); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21577 DefinedType.prototype.set$constructors = function(value) { return this.construct
ors = value; }; | 21617 DefinedType.prototype.set$constructors = function(value) { return this.construct
ors = value; }; |
21578 DefinedType.prototype.get$members = function() { return this.members; }; | 21618 DefinedType.prototype.get$members = function() { return this.members; }; |
21579 DefinedType.prototype.set$members = function(value) { return this.members = valu
e; }; | 21619 DefinedType.prototype.set$members = function(value) { return this.members = valu
e; }; |
21580 DefinedType.prototype.get$factories = function() { return this.factories; }; | 21620 DefinedType.prototype.get$factories = function() { return this.factories; }; |
21581 DefinedType.prototype.set$factories = function(value) { return this.factories =
value; }; | 21621 DefinedType.prototype.set$factories = function(value) { return this.factories =
value; }; |
21582 DefinedType.prototype.get$isUsed = function() { return this.isUsed; }; | 21622 DefinedType.prototype.get$isUsed = function() { return this.isUsed; }; |
21583 DefinedType.prototype.set$isUsed = function(value) { return this.isUsed = value;
}; | 21623 DefinedType.prototype.set$isUsed = function(value) { return this.isUsed = value;
}; |
21584 DefinedType.prototype.get$isNativeType = function() { return this.isNativeType;
}; | 21624 DefinedType.prototype.get$isNativeType = function() { return this.isNativeType;
}; |
21585 DefinedType.prototype.set$isNativeType = function(value) { return this.isNativeT
ype = value; }; | 21625 DefinedType.prototype.set$isNativeType = function(value) { return this.isNativeT
ype = value; }; |
21586 DefinedType.prototype.setDefinition = function(def) { | 21626 DefinedType.prototype.setDefinition = function(def) { |
21587 $assert(this.definition == null, "definition == null", "type.dart", 705, 12); | 21627 $assert(this.definition == null, "definition == null", "type.dart", 728, 12); |
21588 this.definition = def; | 21628 this.definition = def; |
21589 if ((this.definition instanceof TypeDefinition) && $notnull_bool($ne(this.defi
nition.get$nativeType(), null))) { | 21629 if ((this.definition instanceof TypeDefinition) && $notnull_bool($ne(this.defi
nition.get$nativeType(), null))) { |
21590 this.isNativeType = true; | 21630 this.isNativeType = true; |
21591 } | 21631 } |
21592 if (this.definition != null && this.definition.get$typeParameters() != null) { | 21632 if (this.definition != null && this.definition.get$typeParameters() != null) { |
21593 this._concreteTypes = $map([]); | 21633 this._concreteTypes = $map([]); |
21594 this.typeParameters = []; | 21634 this.typeParameters = []; |
21595 var $list = this.definition.get$typeParameters(); | 21635 var $list = this.definition.get$typeParameters(); |
21596 for (var $i = 0;$i < $list.length; $i++) { | 21636 for (var $i = 0;$i < $list.length; $i++) { |
21597 var tp = $list.$index($i); | 21637 var tp = $list.$index($i); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
21690 var resolvedInterface = this.resolveType((type && type.is$TypeReference()),
true); | 21730 var resolvedInterface = this.resolveType((type && type.is$TypeReference()),
true); |
21691 if ($notnull_bool(resolvedInterface.get$isClosed()) && !($notnull_bool(this.
library.get$isCore()) || $notnull_bool(this.library.get$isCoreImpl()))) { | 21731 if ($notnull_bool(resolvedInterface.get$isClosed()) && !($notnull_bool(this.
library.get$isCore()) || $notnull_bool(this.library.get$isCoreImpl()))) { |
21692 $globals.world.error(('can not implement "' + resolvedInterface.get$name()
+ '": ') + 'only native implementation allowed', (($0 = type.get$span()) && $0.
is$SourceSpan())); | 21732 $globals.world.error(('can not implement "' + resolvedInterface.get$name()
+ '": ') + 'only native implementation allowed', (($0 = type.get$span()) && $0.
is$SourceSpan())); |
21693 } | 21733 } |
21694 resolvedInterface.addDirectSubtype$1(this); | 21734 resolvedInterface.addDirectSubtype$1(this); |
21695 interfaces.add$1(resolvedInterface); | 21735 interfaces.add$1(resolvedInterface); |
21696 } | 21736 } |
21697 return (interfaces && interfaces.is$List$Type()); | 21737 return (interfaces && interfaces.is$List$Type()); |
21698 } | 21738 } |
21699 DefinedType.prototype.addDirectSubtype = function(type) { | 21739 DefinedType.prototype.addDirectSubtype = function(type) { |
21700 $assert(this._subtypes == null, "_subtypes == null", "type.dart", 826, 12); | 21740 $assert(this._subtypes == null, "_subtypes == null", "type.dart", 849, 12); |
21701 this.directSubtypes.add(type); | 21741 this.directSubtypes.add(type); |
21702 } | 21742 } |
21703 DefinedType.prototype.get$subtypes = function() { | 21743 DefinedType.prototype.get$subtypes = function() { |
21704 var $0; | 21744 var $0; |
21705 if (this._subtypes == null) { | 21745 if (this._subtypes == null) { |
21706 this._subtypes = new HashSetImplementation(); | 21746 this._subtypes = new HashSetImplementation(); |
21707 var $list = this.directSubtypes; | 21747 var $list = this.directSubtypes; |
21708 for (var $i = this.directSubtypes.iterator(); $i.hasNext$0(); ) { | 21748 for (var $i = this.directSubtypes.iterator(); $i.hasNext$0(); ) { |
21709 var st = $i.next$0(); | 21749 var st = $i.next$0(); |
21710 this._subtypes.add(st); | 21750 this._subtypes.add(st); |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
22070 } | 22110 } |
22071 else { | 22111 else { |
22072 $globals.world.internalError('unknown type reference', node.span); | 22112 $globals.world.internalError('unknown type reference', node.span); |
22073 } | 22113 } |
22074 return node.type; | 22114 return node.type; |
22075 } | 22115 } |
22076 DefinedType.prototype.resolveTypeParams = function(inType) { | 22116 DefinedType.prototype.resolveTypeParams = function(inType) { |
22077 return this; | 22117 return this; |
22078 } | 22118 } |
22079 DefinedType.prototype.getOrMakeConcreteType = function(typeArgs) { | 22119 DefinedType.prototype.getOrMakeConcreteType = function(typeArgs) { |
22080 $assert(this.get$isGeneric(), "isGeneric", "type.dart", 1258, 12); | 22120 $assert(this.get$isGeneric(), "isGeneric", "type.dart", 1281, 12); |
22081 var names = [this.name]; | 22121 var names = [this.name]; |
22082 var typeMap = $map([]); | 22122 var typeMap = $map([]); |
22083 for (var i = 0; | 22123 for (var i = 0; |
22084 i < typeArgs.length; i++) { | 22124 i < typeArgs.length; i++) { |
22085 var paramName = this.typeParameters.$index(i).get$name(); | 22125 var paramName = this.typeParameters.$index(i).get$name(); |
22086 typeMap.$setindex(paramName, typeArgs.$index(i)); | 22126 typeMap.$setindex(paramName, typeArgs.$index(i)); |
22087 names.add$1(typeArgs.$index(i).get$name()); | 22127 names.add$1(typeArgs.$index(i).get$name()); |
22088 } | 22128 } |
22089 var concreteName = Strings.join((names && names.is$List$String()), '\$'); | 22129 var concreteName = Strings.join((names && names.is$List$String()), '\$'); |
22090 var ret = this._concreteTypes.$index(concreteName); | 22130 var ret = this._concreteTypes.$index(concreteName); |
22091 if ($notnull_bool(ret == null)) { | 22131 if ($notnull_bool(ret == null)) { |
22092 ret = new ConcreteType($assert_String(concreteName), this, typeMap, typeArgs
); | 22132 ret = new ConcreteType($assert_String(concreteName), this, typeMap, typeArgs
); |
22093 this._concreteTypes.$setindex(concreteName, ret); | 22133 this._concreteTypes.$setindex(concreteName, ret); |
22094 } | 22134 } |
22095 return (ret && ret.is$lang_Type()); | 22135 return (ret && ret.is$lang_Type()); |
22096 } | 22136 } |
22097 DefinedType.prototype.getCallStub = function(args) { | 22137 DefinedType.prototype.getCallStub = function(args) { |
22098 $assert(this.get$isFunction(), "isFunction", "type.dart", 1278, 12); | 22138 $assert(this.get$isFunction(), "isFunction", "type.dart", 1301, 12); |
22099 var name = _getCallStubName('call', args); | 22139 var name = _getCallStubName('call', args); |
22100 if (this.varStubs == null) this.varStubs = $map([]); | 22140 if (this.varStubs == null) this.varStubs = $map([]); |
22101 var stub = this.varStubs.$index(name); | 22141 var stub = this.varStubs.$index(name); |
22102 if ($notnull_bool(stub == null)) { | 22142 if ($notnull_bool(stub == null)) { |
22103 stub = new VarFunctionStub($assert_String(name), args); | 22143 stub = new VarFunctionStub($assert_String(name), args); |
22104 this.varStubs.$setindex(name, stub); | 22144 this.varStubs.$setindex(name, stub); |
22105 } | 22145 } |
22106 return (stub && stub.is$VarFunctionStub()); | 22146 return (stub && stub.is$VarFunctionStub()); |
22107 } | 22147 } |
22108 DefinedType.prototype.addDirectSubtype$1 = function($0) { | 22148 DefinedType.prototype.addDirectSubtype$1 = function($0) { |
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23638 var const$103 = new Keyword("operator", true)/*const Keyword("operator", true)*/
; | 23678 var const$103 = new Keyword("operator", true)/*const Keyword("operator", true)*/
; |
23639 var const$105 = new Keyword("set", true)/*const Keyword("set", true)*/; | 23679 var const$105 = new Keyword("set", true)/*const Keyword("set", true)*/; |
23640 var const$107 = new Keyword("source", true)/*const Keyword("source", true)*/; | 23680 var const$107 = new Keyword("source", true)/*const Keyword("source", true)*/; |
23641 var const$109 = new Keyword("static", true)/*const Keyword("static", true)*/; | 23681 var const$109 = new Keyword("static", true)/*const Keyword("static", true)*/; |
23642 var const$111 = new Keyword("typedef", true)/*const Keyword("typedef", true)*/; | 23682 var const$111 = new Keyword("typedef", true)/*const Keyword("typedef", true)*/; |
23643 var const$115 = new StringWrapper('EOF')/*const SourceString('EOF')*/; | 23683 var const$115 = new StringWrapper('EOF')/*const SourceString('EOF')*/; |
23644 var const$12 = new StringWrapper('String')/*const SourceString('String')*/; | 23684 var const$12 = new StringWrapper('String')/*const SourceString('String')*/; |
23645 var const$14 = new IllegalAccessException()/*const IllegalAccessException()*/; | 23685 var const$14 = new IllegalAccessException()/*const IllegalAccessException()*/; |
23646 var const$15 = ImmutableList.ImmutableList$from$factory([])/*const []*/; | 23686 var const$15 = ImmutableList.ImmutableList$from$factory([])/*const []*/; |
23647 var const$16 = new LinkTail()/*const EmptyLink<Token>()*/; | 23687 var const$16 = new LinkTail()/*const EmptyLink<Token>()*/; |
23648 var const$203 = new ElementKind('class')/*const ElementKind('class')*/; | 23688 var const$202 = new LinkTail()/*const EmptyLink<Node>()*/; |
23649 var const$205 = new ElementKind('function')/*const ElementKind('function')*/; | 23689 var const$203 = new LinkTail()/*const EmptyLink<Element>()*/; |
23650 var const$207 = new StringWrapper('JS')/*const SourceString('JS')*/; | 23690 var const$205 = new LinkTail()/*const EmptyLink<Type>()*/; |
23651 var const$208 = new ElementKind('foreign')/*const ElementKind('foreign')*/; | 23691 var const$206 = new ElementKind('class')/*const ElementKind('class')*/; |
23652 var const$210 = new StringWrapper('main')/*const SourceString('main')*/; | 23692 var const$208 = new ElementKind('function')/*const ElementKind('function')*/; |
23653 var const$212 = new StringWrapper(';')/*const SourceString(';')*/; | 23693 var const$210 = new StringWrapper('JS')/*const SourceString('JS')*/; |
23654 var const$213 = new NodeList()/*const Prefix()*/; | 23694 var const$211 = new ElementKind('foreign')/*const ElementKind('foreign')*/; |
23655 var const$214 = new Prefix()/*const Prefix()*/; | 23695 var const$213 = new StringWrapper('main')/*const SourceString('main')*/; |
23656 var const$215 = new Postfix()/*const Postfix()*/; | 23696 var const$215 = new StringWrapper(';')/*const SourceString(';')*/; |
23657 var const$216 = new ImmutableMap([])/*const {}*/; | 23697 var const$216 = new NodeList()/*const Prefix()*/; |
23658 var const$217 = new MessageKind('cannot resolve #{1}')/*const MessageKind( | 23698 var const$217 = new Prefix()/*const Prefix()*/; |
| 23699 var const$218 = new NodeList()/*const Postfix()*/; |
| 23700 var const$219 = new Postfix()/*const Postfix()*/; |
| 23701 var const$220 = new ImmutableMap([])/*const {}*/; |
| 23702 var const$221 = new MessageKind('cannot resolve #{1}')/*const MessageKind( |
23659 'cannot resolve #{1}')*/; | 23703 'cannot resolve #{1}')*/; |
23660 var const$219 = new StringWrapper('var')/*const SourceString('var')*/; | 23704 var const$223 = new StringWrapper('var')/*const SourceString('var')*/; |
23661 var const$220 = new MessageKind('cannot resolve type #{1}')/*const MessageKind( | 23705 var const$224 = new MessageKind('cannot resolve type #{1}')/*const MessageKind( |
23662 'cannot resolve type #{1}')*/; | 23706 'cannot resolve type #{1}')*/; |
23663 var const$222 = new MessageKind('#{1} is not a type')/*const MessageKind( | 23707 var const$226 = new MessageKind('#{1} is not a type')/*const MessageKind( |
23664 '#{1} is not a type')*/; | 23708 '#{1} is not a type')*/; |
23665 var const$224 = new ElementKind('parameter')/*const ElementKind('parameter')*/; | 23709 var const$228 = new ElementKind('parameter')/*const ElementKind('parameter')*/; |
23666 var const$226 = new MessageKind('duplicate definition of #{1}')/*const MessageKi
nd( | 23710 var const$230 = new MessageKind('duplicate definition of #{1}')/*const MessageKi
nd( |
23667 'duplicate definition of #{1}')*/; | 23711 'duplicate definition of #{1}')*/; |
23668 var const$228 = new StringWrapper('+')/*const SourceString('+')*/; | 23712 var const$232 = new LinkTail()/*const LinkTail()*/; |
23669 var const$229 = new StringWrapper('add')/*const SourceString('add')*/; | 23713 var const$233 = new StringWrapper('+')/*const SourceString('+')*/; |
23670 var const$230 = new StringWrapper('-')/*const SourceString('-')*/; | 23714 var const$234 = new StringWrapper('add')/*const SourceString('add')*/; |
23671 var const$231 = new StringWrapper('sub')/*const SourceString('sub')*/; | 23715 var const$235 = new StringWrapper('-')/*const SourceString('-')*/; |
23672 var const$232 = new StringWrapper('*')/*const SourceString('*')*/; | 23716 var const$236 = new StringWrapper('sub')/*const SourceString('sub')*/; |
23673 var const$233 = new StringWrapper('mul')/*const SourceString('mul')*/; | 23717 var const$237 = new StringWrapper('*')/*const SourceString('*')*/; |
23674 var const$234 = new StringWrapper('/')/*const SourceString('/')*/; | 23718 var const$238 = new StringWrapper('mul')/*const SourceString('mul')*/; |
23675 var const$235 = new StringWrapper('div')/*const SourceString('div')*/; | 23719 var const$239 = new StringWrapper('/')/*const SourceString('/')*/; |
23676 var const$236 = new StringWrapper('~/')/*const SourceString('~/')*/; | 23720 var const$240 = new StringWrapper('div')/*const SourceString('div')*/; |
23677 var const$237 = new StringWrapper('tdiv')/*const SourceString('tdiv')*/; | 23721 var const$241 = new StringWrapper('~/')/*const SourceString('~/')*/; |
23678 var const$238 = new StringWrapper('%')/*const SourceString('%')*/; | 23722 var const$242 = new StringWrapper('tdiv')/*const SourceString('tdiv')*/; |
23679 var const$239 = new StringWrapper('mod')/*const SourceString('mod')*/; | 23723 var const$243 = new StringWrapper('%')/*const SourceString('%')*/; |
23680 var const$240 = new StringWrapper('==')/*const SourceString('==')*/; | 23724 var const$244 = new StringWrapper('mod')/*const SourceString('mod')*/; |
23681 var const$241 = new StringWrapper('eq')/*const SourceString('eq')*/; | 23725 var const$245 = new StringWrapper('==')/*const SourceString('==')*/; |
23682 var const$242 = new StringWrapper('<')/*const SourceString('<')*/; | 23726 var const$246 = new StringWrapper('eq')/*const SourceString('eq')*/; |
23683 var const$243 = new StringWrapper('lt')/*const SourceString('lt')*/; | 23727 var const$247 = new StringWrapper('<')/*const SourceString('<')*/; |
23684 var const$244 = new StringWrapper('<=')/*const SourceString('<=')*/; | 23728 var const$248 = new StringWrapper('lt')/*const SourceString('lt')*/; |
23685 var const$245 = new StringWrapper('le')/*const SourceString('le')*/; | 23729 var const$249 = new StringWrapper('<=')/*const SourceString('<=')*/; |
23686 var const$246 = new StringWrapper('>')/*const SourceString('>')*/; | |
23687 var const$247 = new StringWrapper('gt')/*const SourceString('gt')*/; | |
23688 var const$248 = new StringWrapper('>=')/*const SourceString('>=')*/; | |
23689 var const$249 = new StringWrapper('ge')/*const SourceString('ge')*/; | |
23690 var const$25 = new Keyword("break", false)/*const Keyword("break")*/; | 23730 var const$25 = new Keyword("break", false)/*const Keyword("break")*/; |
23691 var const$250 = new StringWrapper('&&')/*const SourceString('&&')*/; | 23731 var const$250 = new StringWrapper('le')/*const SourceString('le')*/; |
23692 var const$251 = new StringWrapper('||')/*const SourceString('||')*/; | 23732 var const$251 = new StringWrapper('>')/*const SourceString('>')*/; |
23693 var const$252 = new StringWrapper('!')/*const SourceString('!')*/; | 23733 var const$252 = new StringWrapper('gt')/*const SourceString('gt')*/; |
23694 var const$253 = new ElementKind('variable')/*const ElementKind('variable')*/; | 23734 var const$253 = new StringWrapper('>=')/*const SourceString('>=')*/; |
23695 var const$259 = new MessageKind('cannot return value from void function')/*const
MessageKind( | 23735 var const$254 = new StringWrapper('ge')/*const SourceString('ge')*/; |
| 23736 var const$255 = new StringWrapper('&&')/*const SourceString('&&')*/; |
| 23737 var const$256 = new StringWrapper('||')/*const SourceString('||')*/; |
| 23738 var const$257 = new StringWrapper('!')/*const SourceString('!')*/; |
| 23739 var const$258 = new ElementKind('variable')/*const ElementKind('variable')*/; |
| 23740 var const$264 = new MessageKind('cannot return value from void function')/*const
MessageKind( |
23696 'cannot return value from void function')*/; | 23741 'cannot return value from void function')*/; |
23697 var const$261 = new MessageKind('#{1} is not assignable to #{2}')/*const Message
Kind( | 23742 var const$266 = new MessageKind('#{1} is not assignable to #{2}')/*const Message
Kind( |
23698 '#{1} is not assignable to #{2}')*/; | 23743 '#{1} is not assignable to #{2}')*/; |
23699 var const$263 = new MessageKind('value of type #{1} expected')/*const MessageKin
d( | 23744 var const$268 = new MessageKind('value of type #{1} expected')/*const MessageKin
d( |
23700 'value of type #{1} expected')*/; | 23745 'value of type #{1} expected')*/; |
23701 var const$265 = new StringWrapper('=')/*const SourceString('=')*/; | 23746 var const$27 = new Keyword("case", false)/*const Keyword("case")*/; |
23702 var const$266 = new MessageKind('variable cannot be of type void')/*const Messag
eKind( | 23747 var const$270 = new StringWrapper('=')/*const SourceString('=')*/; |
| 23748 var const$271 = new MessageKind('variable cannot be of type void')/*const Messag
eKind( |
23703 'variable cannot be of type void')*/; | 23749 'variable cannot be of type void')*/; |
23704 var const$268 = new MessageKind('expression does not yield a value')/*const Mess
ageKind( | 23750 var const$273 = new MessageKind('expression does not yield a value')/*const Mess
ageKind( |
23705 'expression does not yield a value')*/; | 23751 'expression does not yield a value')*/; |
23706 var const$27 = new Keyword("case", false)/*const Keyword("case")*/; | 23752 var const$275 = new ExceptionImplementation("Internal Error (Leg): UNREACHABLE")
/*const Exception("Internal Error (Leg): UNREACHABLE")*/; |
23707 var const$270 = new ExceptionImplementation("Internal Error (Leg): UNREACHABLE")
/*const Exception("Internal Error (Leg): UNREACHABLE")*/; | 23753 var const$280 = new StringWrapper("&&")/*const SourceString("&&")*/; |
23708 var const$275 = new StringWrapper("&&")/*const SourceString("&&")*/; | 23754 var const$281 = new StringWrapper("||")/*const SourceString("||")*/; |
23709 var const$276 = new StringWrapper("||")/*const SourceString("||")*/; | 23755 var const$282 = new StringWrapper("!")/*const SourceString("!")*/; |
23710 var const$277 = new StringWrapper("!")/*const SourceString("!")*/; | 23756 var const$283 = new StringWrapper("+")/*const SourceString("+")*/; |
23711 var const$278 = new StringWrapper("+")/*const SourceString("+")*/; | 23757 var const$284 = new StringWrapper("-")/*const SourceString("-")*/; |
23712 var const$279 = new StringWrapper("-")/*const SourceString("-")*/; | 23758 var const$285 = new StringWrapper("*")/*const SourceString("*")*/; |
23713 var const$280 = new StringWrapper("*")/*const SourceString("*")*/; | 23759 var const$286 = new StringWrapper("/")/*const SourceString("/")*/; |
23714 var const$281 = new StringWrapper("/")/*const SourceString("/")*/; | 23760 var const$287 = new StringWrapper("~/")/*const SourceString("~/")*/; |
23715 var const$282 = new StringWrapper("~/")/*const SourceString("~/")*/; | 23761 var const$288 = new StringWrapper("%")/*const SourceString("%")*/; |
23716 var const$283 = new StringWrapper("%")/*const SourceString("%")*/; | 23762 var const$289 = new StringWrapper("==")/*const SourceString("==")*/; |
23717 var const$284 = new StringWrapper("==")/*const SourceString("==")*/; | |
23718 var const$285 = new StringWrapper("<")/*const SourceString("<")*/; | |
23719 var const$286 = new StringWrapper("<=")/*const SourceString("<=")*/; | |
23720 var const$287 = new StringWrapper(">")/*const SourceString(">")*/; | |
23721 var const$288 = new StringWrapper(">=")/*const SourceString(">=")*/; | |
23722 var const$29 = new Keyword("catch", false)/*const Keyword("catch")*/; | 23763 var const$29 = new Keyword("catch", false)/*const Keyword("catch")*/; |
23723 var const$299 = ImmutableList.ImmutableList$from$factory(["__PROTO__", "prototyp
e"])/*const <String>["__PROTO__", "prototype"]*/; | 23764 var const$290 = new StringWrapper("<")/*const SourceString("<")*/; |
23724 var const$301 = ImmutableList.ImmutableList$from$factory(["NaN", "Infinity", "un
defined", "eval", "parseInt", "parseFloat", "isNan", "isFinite", "decodeURI", "d
ecodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Ar
ray", "String", "Boolean", "Number", "Date", "RegExp", "Error", "EvalError", "Ra
ngeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "ar
guments", "escape", "unescape", "applicationCache", "closed", "Components", "con
tent", "controllers", "crypto", "defaultStatus", "dialogArguments", "directories
", "document", "frameElement", "frames", "fullScreen", "globalStorage", "history
", "innerHeight", "innerWidth", "length", "location", "locationbar", "localStora
ge", "menubar", "mozInnerScreenX", "mozInnerScreenY", "mozScreenPixelsPerCssPixe
l", "name", "navigator", "opener", "outerHeight", "outerWidth", "pageXOffset", "
pageYOffset", "parent", "personalbar", "pkcs11", "returnValue", "screen", "scrol
lbars", "scrollMaxX", "scrollMaxY", "self", "sessionStorage", "sidebar", "status
", "statusbar", "toolbar", "top", "window", "alert", "addEventListener", "atob",
"back", "blur", "btoa", "captureEvents", "clearInterval", "clearTimeout", "clos
e", "confirm", "disableExternalCapture", "dispatchEvent", "dump", "enableExterna
lCapture", "escape", "find", "focus", "forward", "GeckoActiveXObject", "getAtten
tion", "getAttentionWithCycleCount", "getComputedStyle", "getSelection", "home",
"maximize", "minimize", "moveBy", "moveTo", "open", "openDialog", "postMessage"
, "print", "prompt", "QueryInterface", "releaseEvents", "removeEventListener", "
resizeBy", "resizeTo", "restore", "routeEvent", "scroll", "scrollBy", "scrollByL
ines", "scrollByPages", "scrollTo", "setInterval", "setResizeable", "setTimeout"
, "showModalDialog", "sizeToContent", "stop", "uuescape", "updateCommands", "XPC
NativeWrapper", "XPCSafeJSOjbectWrapper", "onabort", "onbeforeunload", "onchange
", "onclick", "onclose", "oncontextmenu", "ondragdrop", "onerror", "onfocus", "o
nhashchange", "onkeydown", "onkeypress", "onkeyup", "onload", "onmousedown", "on
mousemove", "onmouseout", "onmouseover", "onmouseup", "onmozorientation", "onpai
nt", "onreset", "onresize", "onscroll", "onselect", "onsubmit", "onunload", "ont
ouchcancel", "ontouchend", "ontouchmove", "ontouchstart", "ongesturestart", "ong
esturechange", "ongestureend", "uneval", "getPrototypeOf", "let", "yield", "abst
ract", "int", "short", "boolean", "interface", "static", "byte", "long", "char",
"final", "native", "synchronized", "float", "package", "throws", "goto", "priva
te", "transient", "implements", "protected", "volatile", "double", "public", "at
tachEvent", "clientInformation", "clipboardData", "createPopup", "dialogHeight",
"dialogLeft", "dialogTop", "dialogWidth", "onafterprint", "onbeforedeactivate",
"onbeforeprint", "oncontrolselect", "ondeactivate", "onhelp", "onresizeend", "e
vent", "external", "Debug", "Enumerator", "Global", "Image", "ActiveXObject", "V
BArray", "Components", "toString", "getClass", "constructor", "prototype", "valu
eOf", "Anchor", "Applet", "Attr", "Canvas", "CanvasGradient", "CanvasPattern", "
CanvasRenderingContext2D", "CDATASection", "CharacterData", "Comment", "CSS2Prop
erties", "CSSRule", "CSSStyleSheet", "Document", "DocumentFragment", "DocumentTy
pe", "DOMException", "DOMImplementation", "DOMParser", "Element", "Event", "Exte
rnalInterface", "FlashPlayer", "Form", "Frame", "History", "HTMLCollection", "HT
MLDocument", "HTMLElement", "IFrame", "Image", "Input", "JSObject", "KeyEvent",
"Link", "Location", "MimeType", "MouseEvent", "Navigator", "Node", "NodeList", "
Option", "Plugin", "ProcessingInstruction", "Range", "RangeException", "Screen",
"Select", "Table", "TableCell", "TableRow", "TableSelection", "Text", "TextArea
", "UIEvent", "Window", "XMLHttpRequest", "XMLSerializer", "XPathException", "XP
athResult", "XSLTProcessor", "java", "Packages", "netscape", "sun", "JavaObject"
, "JavaClass", "JavaArray", "JavaMember", "\$wnd", "\$doc", "\$entry", "\$module
Name", "\$moduleBase", "\$gwt_version", "\$sessionId", "\$stack", "\$stackDepth"
, "\$location", "call"])/*const <String>[ | 23765 var const$291 = new StringWrapper("<=")/*const SourceString("<=")*/; |
| 23766 var const$292 = new StringWrapper(">")/*const SourceString(">")*/; |
| 23767 var const$293 = new StringWrapper(">=")/*const SourceString(">=")*/; |
| 23768 var const$304 = ImmutableList.ImmutableList$from$factory(["__PROTO__", "prototyp
e"])/*const <String>["__PROTO__", "prototype"]*/; |
| 23769 var const$306 = ImmutableList.ImmutableList$from$factory(["NaN", "Infinity", "un
defined", "eval", "parseInt", "parseFloat", "isNan", "isFinite", "decodeURI", "d
ecodeURIComponent", "encodeURI", "encodeURIComponent", "Object", "Function", "Ar
ray", "String", "Boolean", "Number", "Date", "RegExp", "Error", "EvalError", "Ra
ngeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "Math", "ar
guments", "escape", "unescape", "applicationCache", "closed", "Components", "con
tent", "controllers", "crypto", "defaultStatus", "dialogArguments", "directories
", "document", "frameElement", "frames", "fullScreen", "globalStorage", "history
", "innerHeight", "innerWidth", "length", "location", "locationbar", "localStora
ge", "menubar", "mozInnerScreenX", "mozInnerScreenY", "mozScreenPixelsPerCssPixe
l", "name", "navigator", "opener", "outerHeight", "outerWidth", "pageXOffset", "
pageYOffset", "parent", "personalbar", "pkcs11", "returnValue", "screen", "scrol
lbars", "scrollMaxX", "scrollMaxY", "self", "sessionStorage", "sidebar", "status
", "statusbar", "toolbar", "top", "window", "alert", "addEventListener", "atob",
"back", "blur", "btoa", "captureEvents", "clearInterval", "clearTimeout", "clos
e", "confirm", "disableExternalCapture", "dispatchEvent", "dump", "enableExterna
lCapture", "escape", "find", "focus", "forward", "GeckoActiveXObject", "getAtten
tion", "getAttentionWithCycleCount", "getComputedStyle", "getSelection", "home",
"maximize", "minimize", "moveBy", "moveTo", "open", "openDialog", "postMessage"
, "print", "prompt", "QueryInterface", "releaseEvents", "removeEventListener", "
resizeBy", "resizeTo", "restore", "routeEvent", "scroll", "scrollBy", "scrollByL
ines", "scrollByPages", "scrollTo", "setInterval", "setResizeable", "setTimeout"
, "showModalDialog", "sizeToContent", "stop", "uuescape", "updateCommands", "XPC
NativeWrapper", "XPCSafeJSOjbectWrapper", "onabort", "onbeforeunload", "onchange
", "onclick", "onclose", "oncontextmenu", "ondragdrop", "onerror", "onfocus", "o
nhashchange", "onkeydown", "onkeypress", "onkeyup", "onload", "onmousedown", "on
mousemove", "onmouseout", "onmouseover", "onmouseup", "onmozorientation", "onpai
nt", "onreset", "onresize", "onscroll", "onselect", "onsubmit", "onunload", "ont
ouchcancel", "ontouchend", "ontouchmove", "ontouchstart", "ongesturestart", "ong
esturechange", "ongestureend", "uneval", "getPrototypeOf", "let", "yield", "abst
ract", "int", "short", "boolean", "interface", "static", "byte", "long", "char",
"final", "native", "synchronized", "float", "package", "throws", "goto", "priva
te", "transient", "implements", "protected", "volatile", "double", "public", "at
tachEvent", "clientInformation", "clipboardData", "createPopup", "dialogHeight",
"dialogLeft", "dialogTop", "dialogWidth", "onafterprint", "onbeforedeactivate",
"onbeforeprint", "oncontrolselect", "ondeactivate", "onhelp", "onresizeend", "e
vent", "external", "Debug", "Enumerator", "Global", "Image", "ActiveXObject", "V
BArray", "Components", "toString", "getClass", "constructor", "prototype", "valu
eOf", "Anchor", "Applet", "Attr", "Canvas", "CanvasGradient", "CanvasPattern", "
CanvasRenderingContext2D", "CDATASection", "CharacterData", "Comment", "CSS2Prop
erties", "CSSRule", "CSSStyleSheet", "Document", "DocumentFragment", "DocumentTy
pe", "DOMException", "DOMImplementation", "DOMParser", "Element", "Event", "Exte
rnalInterface", "FlashPlayer", "Form", "Frame", "History", "HTMLCollection", "HT
MLDocument", "HTMLElement", "IFrame", "Image", "Input", "JSObject", "KeyEvent",
"Link", "Location", "MimeType", "MouseEvent", "Navigator", "Node", "NodeList", "
Option", "Plugin", "ProcessingInstruction", "Range", "RangeException", "Screen",
"Select", "Table", "TableCell", "TableRow", "TableSelection", "Text", "TextArea
", "UIEvent", "Window", "XMLHttpRequest", "XMLSerializer", "XPathException", "XP
athResult", "XSLTProcessor", "java", "Packages", "netscape", "sun", "JavaObject"
, "JavaClass", "JavaArray", "JavaMember", "\$wnd", "\$doc", "\$entry", "\$module
Name", "\$moduleBase", "\$gwt_version", "\$sessionId", "\$stack", "\$stackDepth"
, "\$location", "call"])/*const <String>[ |
23725 // Section references are from Ecma-262 | 23770 // Section references are from Ecma-262 |
23726 // (http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pd
f) | 23771 // (http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pd
f) |
23727 | 23772 |
23728 // 15.1.1 Value Properties of the Global Object | 23773 // 15.1.1 Value Properties of the Global Object |
23729 "NaN", "Infinity", "undefined", | 23774 "NaN", "Infinity", "undefined", |
23730 | 23775 |
23731 // 15.1.2 Function Properties of the Global Object | 23776 // 15.1.2 Function Properties of the Global Object |
23732 "eval", "parseInt", "parseFloat", "isNan", "isFinite", | 23777 "eval", "parseInt", "parseFloat", "isNan", "isFinite", |
23733 | 23778 |
23734 // 15.1.3 URI Handling Function Properties | 23779 // 15.1.3 URI Handling Function Properties |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23845 // GWT-defined identifiers | 23890 // GWT-defined identifiers |
23846 "\$wnd", "\$doc", "\$entry", "\$moduleName", "\$moduleBase", | 23891 "\$wnd", "\$doc", "\$entry", "\$moduleName", "\$moduleBase", |
23847 "\$gwt_version", "\$sessionId", | 23892 "\$gwt_version", "\$sessionId", |
23848 | 23893 |
23849 // Identifiers used by JsStackEmulator; later set to obfuscatable | 23894 // Identifiers used by JsStackEmulator; later set to obfuscatable |
23850 "\$stack", "\$stackDepth", "\$location", | 23895 "\$stack", "\$stackDepth", "\$location", |
23851 | 23896 |
23852 // TODO: prove why this is necessary or remove it | 23897 // TODO: prove why this is necessary or remove it |
23853 "call" | 23898 "call" |
23854 ]*/; | 23899 ]*/; |
23855 var const$303 = ImmutableList.ImmutableList$from$factory(["break", "delete", "fu
nction", "return", "typeof", "case", "do", "if", "switch", "var", "catch", "else
", "in", "this", "void", "continue", "false", "instanceof", "throw", "while", "d
ebugger", "finally", "new", "true", "with", "default", "for", "null", "try", "ab
stract", "double", "goto", "native", "static", "boolean", "enum", "implements",
"package", "super", "byte", "export", "import", "private", "synchronized", "char
", "extends", "int", "protected", "throws", "class", "final", "interface", "publ
ic", "transient", "const", "float", "long", "short", "volatile"])/*const <String
>[ | 23900 var const$308 = ImmutableList.ImmutableList$from$factory(["break", "delete", "fu
nction", "return", "typeof", "case", "do", "if", "switch", "var", "catch", "else
", "in", "this", "void", "continue", "false", "instanceof", "throw", "while", "d
ebugger", "finally", "new", "true", "with", "default", "for", "null", "try", "ab
stract", "double", "goto", "native", "static", "boolean", "enum", "implements",
"package", "super", "byte", "export", "import", "private", "synchronized", "char
", "extends", "int", "protected", "throws", "class", "final", "interface", "publ
ic", "transient", "const", "float", "long", "short", "volatile"])/*const <String
>[ |
23856 // These are current keywords | 23901 // These are current keywords |
23857 "break", "delete", "function", "return", "typeof", "case", "do", "if", | 23902 "break", "delete", "function", "return", "typeof", "case", "do", "if", |
23858 "switch", "var", "catch", "else", "in", "this", "void", "continue", | 23903 "switch", "var", "catch", "else", "in", "this", "void", "continue", |
23859 "false", "instanceof", "throw", "while", "debugger", "finally", "new", | 23904 "false", "instanceof", "throw", "while", "debugger", "finally", "new", |
23860 "true", "with", "default", "for", "null", "try", | 23905 "true", "with", "default", "for", "null", "try", |
23861 | 23906 |
23862 // These are future keywords | 23907 // These are future keywords |
23863 "abstract", "double", "goto", "native", "static", "boolean", "enum", | 23908 "abstract", "double", "goto", "native", "static", "boolean", "enum", |
23864 "implements", "package", "super", "byte", "export", "import", "private", | 23909 "implements", "package", "super", "byte", "export", "import", "private", |
23865 "synchronized", "char", "extends", "int", "protected", "throws", | 23910 "synchronized", "char", "extends", "int", "protected", "throws", |
23866 "class", "final", "interface", "public", "transient", "const", "float", | 23911 "class", "final", "interface", "public", "transient", "const", "float", |
23867 "long", "short", "volatile" | 23912 "long", "short", "volatile" |
23868 ]*/; | 23913 ]*/; |
23869 var const$305 = new StringWrapper('guard\$num')/*const SourceString('guard\$num'
)*/; | |
23870 var const$31 = new Keyword("const", false)/*const Keyword("const")*/; | 23914 var const$31 = new Keyword("const", false)/*const Keyword("const")*/; |
| 23915 var const$310 = new StringWrapper('guard\$num')/*const SourceString('guard\$num'
)*/; |
23871 var const$33 = new Keyword("continue", false)/*const Keyword("continue")*/; | 23916 var const$33 = new Keyword("continue", false)/*const Keyword("continue")*/; |
23872 var const$35 = new Keyword("default", false)/*const Keyword("default")*/; | 23917 var const$35 = new Keyword("default", false)/*const Keyword("default")*/; |
23873 var const$37 = new Keyword("do", false)/*const Keyword("do")*/; | 23918 var const$37 = new Keyword("do", false)/*const Keyword("do")*/; |
23874 var const$39 = new Keyword("else", false)/*const Keyword("else")*/; | 23919 var const$39 = new Keyword("else", false)/*const Keyword("else")*/; |
23875 var const$4 = new StringWrapper('global scope')/*const SourceString('global scop
e')*/; | 23920 var const$4 = new StringWrapper('global scope')/*const SourceString('global scop
e')*/; |
23876 var const$41 = new Keyword("false", false)/*const Keyword("false")*/; | 23921 var const$41 = new Keyword("false", false)/*const Keyword("false")*/; |
23877 var const$418 = ImmutableList.ImmutableList$from$factory(['NullPointerException'
, 'ObjectNotClosureException', 'NoSuchMethodException', 'StackOverflowException'
])/*const [ | 23922 var const$423 = ImmutableList.ImmutableList$from$factory(['NullPointerException'
, 'ObjectNotClosureException', 'NoSuchMethodException', 'StackOverflowException'
])/*const [ |
23878 'NullPointerException', 'ObjectNotClosureException', | 23923 'NullPointerException', 'ObjectNotClosureException', |
23879 'NoSuchMethodException', 'StackOverflowException']*/; | 23924 'NoSuchMethodException', 'StackOverflowException']*/; |
23880 var const$43 = new Keyword("final", false)/*const Keyword("final")*/; | 23925 var const$43 = new Keyword("final", false)/*const Keyword("final")*/; |
23881 var const$45 = new Keyword("finally", false)/*const Keyword("finally")*/; | 23926 var const$45 = new Keyword("finally", false)/*const Keyword("finally")*/; |
23882 var const$47 = new Keyword("for", false)/*const Keyword("for")*/; | 23927 var const$47 = new Keyword("for", false)/*const Keyword("for")*/; |
23883 var const$49 = new Keyword("if", false)/*const Keyword("if")*/; | 23928 var const$49 = new Keyword("if", false)/*const Keyword("if")*/; |
23884 var const$5 = new EmptyQueueException()/*const EmptyQueueException()*/; | 23929 var const$5 = new EmptyQueueException()/*const EmptyQueueException()*/; |
23885 var const$51 = new Keyword("in", false)/*const Keyword("in")*/; | 23930 var const$51 = new Keyword("in", false)/*const Keyword("in")*/; |
23886 var const$53 = new Keyword("is", false)/*const Keyword("is")*/; | 23931 var const$53 = new Keyword("is", false)/*const Keyword("is")*/; |
23887 var const$55 = new Keyword("new", false)/*const Keyword("new")*/; | 23932 var const$55 = new Keyword("new", false)/*const Keyword("new")*/; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
23950 NATIVE, | 23995 NATIVE, |
23951 NEGATE, | 23996 NEGATE, |
23952 OPERATOR, | 23997 OPERATOR, |
23953 SET, | 23998 SET, |
23954 SOURCE, | 23999 SOURCE, |
23955 STATIC, | 24000 STATIC, |
23956 TYPEDEF ]*/; | 24001 TYPEDEF ]*/; |
23957 var $globals = {}; | 24002 var $globals = {}; |
23958 $static_init(); | 24003 $static_init(); |
23959 main(); | 24004 main(); |
OLD | NEW |