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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 /** @type {number} */ | 493 /** @type {number} */ |
494 CodeMirror.Pos.prototype.ch; | 494 CodeMirror.Pos.prototype.ch; |
495 | 495 |
496 /** | 496 /** |
497 * @param {!CodeMirror.Pos} pos1 | 497 * @param {!CodeMirror.Pos} pos1 |
498 * @param {!CodeMirror.Pos} pos2 | 498 * @param {!CodeMirror.Pos} pos2 |
499 * @return {number} | 499 * @return {number} |
500 */ | 500 */ |
501 CodeMirror.cmpPos = function(pos1, pos2) { }; | 501 CodeMirror.cmpPos = function(pos1, pos2) { }; |
502 | 502 |
| 503 /** |
| 504 * @param {string} mode |
| 505 * @param {?} definition |
| 506 */ |
| 507 CodeMirror.defineSimpleMode = function(mode, definition) {}; |
| 508 |
503 /** @constructor */ | 509 /** @constructor */ |
504 CodeMirror.StringStream = function(line) | 510 CodeMirror.StringStream = function(line) |
505 { | 511 { |
506 this.pos = 0; | 512 this.pos = 0; |
507 this.start = 0; | 513 this.start = 0; |
508 } | 514 } |
509 CodeMirror.StringStream.prototype = { | 515 CodeMirror.StringStream.prototype = { |
510 backUp: function(n) { }, | 516 backUp: function(n) { }, |
511 column: function() { }, | 517 column: function() { }, |
512 current: function() { }, | 518 current: function() { }, |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 * @extends {ESTree.Node} | 656 * @extends {ESTree.Node} |
651 * @constructor | 657 * @constructor |
652 */ | 658 */ |
653 ESTree.TemplateLiteralNode = function() | 659 ESTree.TemplateLiteralNode = function() |
654 { | 660 { |
655 /** @type {!Array.<!ESTree.Node>} */ | 661 /** @type {!Array.<!ESTree.Node>} */ |
656 this.quasis; | 662 this.quasis; |
657 /** @type {!Array.<!ESTree.Node>} */ | 663 /** @type {!Array.<!ESTree.Node>} */ |
658 this.expressions; | 664 this.expressions; |
659 } | 665 } |
OLD | NEW |