jsdoc/test/fixtures/augmentstag.js
Jeff Williams 44d9ec6831 new parser infrastructure
consumes ASTs that follow the Mozilla Parser API spec:
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API

passes all tests on OS X; performance is comparable to previous
version. also includes some miscellaneous cleanup.

remaining issues:
- only Rhino AST builder is supported
- node visitors (old and new) may not be hooked up yet
- circular-reference issues in doclets
- docs are (mostly) missing
- various other TODO comments
2013-06-23 10:18:13 -07:00

53 lines
688 B
JavaScript

/**
* @constructor
*/
function Foo() {
/** First property */
this.prop1 = true;
}
/**
* Second property
* @type {String}
*/
Foo.prototype.prop2 = "parent prop2";
/**
* First parent method.
*/
Foo.prototype.method1 = function() {};
/**
* Second parent method.
*/
Foo.prototype.method2 = function() {};
/**
* @constructor
* @extends Foo
*/
function Bar() {
/** Third prop **/
this.prop3 = true;
}
/**
* Second child method.
*/
Bar.prototype.method2 = function() {};
/**
* @constructor
* @extends {Bar}
*/
function Baz() {
/** Override prop1 */
this.prop1 = "new";
}
/**
* Third grandchild method.
*/
Baz.prototype.method3 = function() {};