OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 /** | 633 /** |
634 * @param {string} text | 634 * @param {string} text |
635 * @param {Object.<string, boolean>} options | 635 * @param {Object.<string, boolean>} options |
636 * @return {!ESTree.Node} | 636 * @return {!ESTree.Node} |
637 */ | 637 */ |
638 parse: function(text, options) {}, | 638 parse: function(text, options) {}, |
639 | 639 |
640 /** | 640 /** |
641 * @param {string} text | 641 * @param {string} text |
642 * @param {Object.<string, boolean>} options | 642 * @param {Object.<string, boolean>} options |
| 643 * @return {!ESTree.Node} |
| 644 */ |
| 645 parse_dammit: function(text, options) {}, |
| 646 |
| 647 /** |
| 648 * @param {string} text |
| 649 * @param {Object.<string, boolean>} options |
643 * @return {!Acorn.Tokenizer} | 650 * @return {!Acorn.Tokenizer} |
644 */ | 651 */ |
645 tokenizer: function(text, options) {}, | 652 tokenizer: function(text, options) {}, |
646 | 653 |
647 tokTypes: { | 654 tokTypes: { |
648 _true: new Acorn.TokenType(), | 655 _true: new Acorn.TokenType(), |
649 _false: new Acorn.TokenType(), | 656 _false: new Acorn.TokenType(), |
650 _null: new Acorn.TokenType(), | 657 _null: new Acorn.TokenType(), |
651 num: new Acorn.TokenType(), | 658 num: new Acorn.TokenType(), |
652 regexp: new Acorn.TokenType(), | 659 regexp: new Acorn.TokenType(), |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 /** @type {(string|undefined)} */ | 722 /** @type {(string|undefined)} */ |
716 this.name; | 723 this.name; |
717 /** @type {(?ESTree.Node|undefined)} */ | 724 /** @type {(?ESTree.Node|undefined)} */ |
718 this.id; | 725 this.id; |
719 /** @type {(number|undefined)} */ | 726 /** @type {(number|undefined)} */ |
720 this.length; | 727 this.length; |
721 /** @type {(?ESTree.Node|undefined)} */ | 728 /** @type {(?ESTree.Node|undefined)} */ |
722 this.argument; | 729 this.argument; |
723 /** @type {(string|undefined)} */ | 730 /** @type {(string|undefined)} */ |
724 this.operator; | 731 this.operator; |
| 732 /** @type {(!ESTree.Node|undefined)} */ |
| 733 this.right; |
| 734 /** @type {(!ESTree.Node|undefined)} */ |
| 735 this.left; |
| 736 /** @type {(string|undefined)} */ |
| 737 this.kind; |
| 738 /** @type {(!ESTree.Node|undefined)} */ |
| 739 this.property; |
| 740 /** @type {(!ESTree.Node|undefined)} */ |
| 741 this.object; |
| 742 /** @type {(string|undefined)} */ |
| 743 this.raw; |
| 744 /** @type {(boolean|undefined)} */ |
| 745 this.computed; |
725 }; | 746 }; |
726 | 747 |
727 /** | 748 /** |
728 * @extends {ESTree.Node} | 749 * @extends {ESTree.Node} |
729 * @constructor | 750 * @constructor |
730 */ | 751 */ |
731 ESTree.TemplateLiteralNode = function() { | 752 ESTree.TemplateLiteralNode = function() { |
732 /** @type {!Array.<!ESTree.Node>} */ | 753 /** @type {!Array.<!ESTree.Node>} */ |
733 this.quasis; | 754 this.quasis; |
734 /** @type {!Array.<!ESTree.Node>} */ | 755 /** @type {!Array.<!ESTree.Node>} */ |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 var Terminal = function(params) {}; | 808 var Terminal = function(params) {}; |
788 | 809 |
789 Terminal.prototype = { | 810 Terminal.prototype = { |
790 fit: function() {}, | 811 fit: function() {}, |
791 linkify: function() {}, | 812 linkify: function() {}, |
792 /** @param {!Element} element */ | 813 /** @param {!Element} element */ |
793 open: function(element) {}, | 814 open: function(element) {}, |
794 /** @param {string} eventName * @param {!Function} handler */ | 815 /** @param {string} eventName * @param {!Function} handler */ |
795 on: function(eventName, handler) {} | 816 on: function(eventName, handler) {} |
796 }; | 817 }; |
OLD | NEW |