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 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 * @extends {ESTree.Node} | 695 * @extends {ESTree.Node} |
696 * @constructor | 696 * @constructor |
697 */ | 697 */ |
698 ESTree.TemplateLiteralNode = function() | 698 ESTree.TemplateLiteralNode = function() |
699 { | 699 { |
700 /** @type {!Array.<!ESTree.Node>} */ | 700 /** @type {!Array.<!ESTree.Node>} */ |
701 this.quasis; | 701 this.quasis; |
702 /** @type {!Array.<!ESTree.Node>} */ | 702 /** @type {!Array.<!ESTree.Node>} */ |
703 this.expressions; | 703 this.expressions; |
704 } | 704 } |
| 705 |
| 706 var Gonzales = {} |
| 707 var gonzales = { |
| 708 /** |
| 709 * @param {string} text |
| 710 * @param {!Object=} options |
| 711 * @return {!Gonzales.Node} |
| 712 */ |
| 713 parse: function(text, options) { }, |
| 714 } |
| 715 |
| 716 /** |
| 717 * @constructor |
| 718 */ |
| 719 Gonzales.Location = function() |
| 720 { |
| 721 /** @type {number} */ |
| 722 this.line; |
| 723 /** @type {number} */ |
| 724 this.column; |
| 725 } |
| 726 |
| 727 /** |
| 728 * @constructor |
| 729 */ |
| 730 Gonzales.Node = function() |
| 731 { |
| 732 /** @type {string} */ |
| 733 this.type; |
| 734 /** @type {string} */ |
| 735 this.syntax; |
| 736 /** @type {!Gonzales.Location} */ |
| 737 this.start; |
| 738 /** @type {!Gonzales.Location} */ |
| 739 this.end; |
| 740 /** @type {(string|!Array<!Gonzales.Node>)} */ |
| 741 this.content; |
| 742 } |
OLD | NEW |