|
| 1 | +=== tests/cases/conformance/jsdoc/declarations/supplement.d.ts === |
| 2 | +export { }; |
| 3 | +declare module "./argument.js" { |
| 4 | +>"./argument.js" : Symbol("tests/cases/conformance/jsdoc/declarations/argument", Decl(argument.js, 0, 0), Decl(supplement.d.ts, 0, 11)) |
| 5 | + |
| 6 | + interface Argument { |
| 7 | +>Argument : Symbol(Argument, Decl(argument.js, 0, 33), Decl(supplement.d.ts, 1, 32)) |
| 8 | + |
| 9 | + idlType: any; |
| 10 | +>idlType : Symbol(Argument.idlType, Decl(supplement.d.ts, 2, 24)) |
| 11 | + |
| 12 | + default: null; |
| 13 | +>default : Symbol(Argument.default, Decl(supplement.d.ts, 3, 21)) |
| 14 | + } |
| 15 | +} |
| 16 | +=== tests/cases/conformance/jsdoc/declarations/base.js === |
| 17 | +export class Base { |
| 18 | +>Base : Symbol(Base, Decl(base.js, 0, 0)) |
| 19 | + |
| 20 | + constructor() { } |
| 21 | + |
| 22 | + toJSON() { |
| 23 | +>toJSON : Symbol(Base.toJSON, Decl(base.js, 1, 21)) |
| 24 | + |
| 25 | + const json = { type: undefined, name: undefined, inheritance: undefined }; |
| 26 | +>json : Symbol(json, Decl(base.js, 4, 13)) |
| 27 | +>type : Symbol(type, Decl(base.js, 4, 22)) |
| 28 | +>undefined : Symbol(undefined) |
| 29 | +>name : Symbol(name, Decl(base.js, 4, 39)) |
| 30 | +>undefined : Symbol(undefined) |
| 31 | +>inheritance : Symbol(inheritance, Decl(base.js, 4, 56)) |
| 32 | +>undefined : Symbol(undefined) |
| 33 | + |
| 34 | + return json; |
| 35 | +>json : Symbol(json, Decl(base.js, 4, 13)) |
| 36 | + } |
| 37 | +} |
| 38 | +=== tests/cases/conformance/jsdoc/declarations/argument.js === |
| 39 | +import { Base } from "./base.js"; |
| 40 | +>Base : Symbol(Base, Decl(argument.js, 0, 8)) |
| 41 | + |
| 42 | +export class Argument extends Base { |
| 43 | +>Argument : Symbol(Argument, Decl(argument.js, 0, 33), Decl(supplement.d.ts, 1, 32)) |
| 44 | +>Base : Symbol(Base, Decl(argument.js, 0, 8)) |
| 45 | + |
| 46 | + /** |
| 47 | + * @param {*} tokeniser |
| 48 | + */ |
| 49 | + static parse(tokeniser) { |
| 50 | +>parse : Symbol(Argument.parse, Decl(argument.js, 1, 36)) |
| 51 | +>tokeniser : Symbol(tokeniser, Decl(argument.js, 5, 17)) |
| 52 | + |
| 53 | + return; |
| 54 | + } |
| 55 | + |
| 56 | + get type() { |
| 57 | +>type : Symbol(Argument.type, Decl(argument.js, 7, 5)) |
| 58 | + |
| 59 | + return "argument"; |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * @param {*} defs |
| 64 | + */ |
| 65 | + *validate(defs) { } |
| 66 | +>validate : Symbol(Argument.validate, Decl(argument.js, 11, 5)) |
| 67 | +>defs : Symbol(defs, Decl(argument.js, 16, 14)) |
| 68 | +} |
0 commit comments