swc/crates/swc_ecma_parser/tests/tsc/declarationEmitWorkWithInlineComments.ts

37 lines
863 B
TypeScript
Raw Normal View History

// @declaration: true
// @stripInternal:true
export class Foo {
constructor(
/** @internal */
public isInternal1: string,
/** @internal */ public isInternal2: string, /** @internal */
public isInternal3: string,
// @internal
public isInternal4: string,
// nothing
/** @internal */
public isInternal5: string,
/* @internal */ public isInternal6: string /* trailing */,
/* @internal */ public isInternal7: string, /** @internal */
// not work
public notInternal1: string,
// @internal
/* not work */
public notInternal2: string,
/* not work */
// @internal
/* not work */
public notInternal3: string,
) { }
}
export class Bar {
constructor(/* @internal */ public isInternal1: string) {}
}
export class Baz {
constructor(/* @internal */
public isInternal: string
) {}
}