160 lines
5.7 KiB
Text
160 lines
5.7 KiB
Text
=== tests/cases/compiler/declFileAccessors_0.ts ===
|
|
|
|
/** This is comment for c1*/
|
|
export class c1 {
|
|
>c1 : Symbol(c1, Decl(declFileAccessors_0.ts, 0, 0))
|
|
|
|
/** getter property*/
|
|
public get p3() {
|
|
>p3 : Symbol(c1.p3, Decl(declFileAccessors_0.ts, 2, 17), Decl(declFileAccessors_0.ts, 6, 5))
|
|
|
|
return 10;
|
|
}
|
|
/** setter property*/
|
|
public set p3(/** this is value*/value: number) {
|
|
>p3 : Symbol(c1.p3, Decl(declFileAccessors_0.ts, 2, 17), Decl(declFileAccessors_0.ts, 6, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_0.ts, 8, 18))
|
|
}
|
|
/** private getter property*/
|
|
private get pp3() {
|
|
>pp3 : Symbol(c1.pp3, Decl(declFileAccessors_0.ts, 9, 5), Decl(declFileAccessors_0.ts, 13, 5))
|
|
|
|
return 10;
|
|
}
|
|
/** private setter property*/
|
|
private set pp3(/** this is value*/value: number) {
|
|
>pp3 : Symbol(c1.pp3, Decl(declFileAccessors_0.ts, 9, 5), Decl(declFileAccessors_0.ts, 13, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_0.ts, 15, 20))
|
|
}
|
|
/** static getter property*/
|
|
static get s3() {
|
|
>s3 : Symbol(c1.s3, Decl(declFileAccessors_0.ts, 16, 5), Decl(declFileAccessors_0.ts, 20, 5))
|
|
|
|
return 10;
|
|
}
|
|
/** setter property*/
|
|
static set s3( /** this is value*/value: number) {
|
|
>s3 : Symbol(c1.s3, Decl(declFileAccessors_0.ts, 16, 5), Decl(declFileAccessors_0.ts, 20, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_0.ts, 22, 18))
|
|
}
|
|
public get nc_p3() {
|
|
>nc_p3 : Symbol(c1.nc_p3, Decl(declFileAccessors_0.ts, 23, 5), Decl(declFileAccessors_0.ts, 26, 5))
|
|
|
|
return 10;
|
|
}
|
|
public set nc_p3(value: number) {
|
|
>nc_p3 : Symbol(c1.nc_p3, Decl(declFileAccessors_0.ts, 23, 5), Decl(declFileAccessors_0.ts, 26, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_0.ts, 27, 21))
|
|
}
|
|
private get nc_pp3() {
|
|
>nc_pp3 : Symbol(c1.nc_pp3, Decl(declFileAccessors_0.ts, 28, 5), Decl(declFileAccessors_0.ts, 31, 5))
|
|
|
|
return 10;
|
|
}
|
|
private set nc_pp3(value: number) {
|
|
>nc_pp3 : Symbol(c1.nc_pp3, Decl(declFileAccessors_0.ts, 28, 5), Decl(declFileAccessors_0.ts, 31, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_0.ts, 32, 23))
|
|
}
|
|
static get nc_s3() {
|
|
>nc_s3 : Symbol(c1.nc_s3, Decl(declFileAccessors_0.ts, 33, 5), Decl(declFileAccessors_0.ts, 36, 5))
|
|
|
|
return "";
|
|
}
|
|
static set nc_s3(value: string) {
|
|
>nc_s3 : Symbol(c1.nc_s3, Decl(declFileAccessors_0.ts, 33, 5), Decl(declFileAccessors_0.ts, 36, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_0.ts, 37, 21))
|
|
}
|
|
|
|
// Only getter property
|
|
public get onlyGetter() {
|
|
>onlyGetter : Symbol(c1.onlyGetter, Decl(declFileAccessors_0.ts, 38, 5))
|
|
|
|
return 10;
|
|
}
|
|
|
|
// Only setter property
|
|
public set onlySetter(value: number) {
|
|
>onlySetter : Symbol(c1.onlySetter, Decl(declFileAccessors_0.ts, 43, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_0.ts, 46, 26))
|
|
}
|
|
}
|
|
|
|
=== tests/cases/compiler/declFileAccessors_1.ts ===
|
|
/** This is comment for c2 - the global class*/
|
|
class c2 {
|
|
>c2 : Symbol(c2, Decl(declFileAccessors_1.ts, 0, 0))
|
|
|
|
/** getter property*/
|
|
public get p3() {
|
|
>p3 : Symbol(c2.p3, Decl(declFileAccessors_1.ts, 1, 10), Decl(declFileAccessors_1.ts, 5, 5))
|
|
|
|
return 10;
|
|
}
|
|
/** setter property*/
|
|
public set p3(/** this is value*/value: number) {
|
|
>p3 : Symbol(c2.p3, Decl(declFileAccessors_1.ts, 1, 10), Decl(declFileAccessors_1.ts, 5, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_1.ts, 7, 18))
|
|
}
|
|
/** private getter property*/
|
|
private get pp3() {
|
|
>pp3 : Symbol(c2.pp3, Decl(declFileAccessors_1.ts, 8, 5), Decl(declFileAccessors_1.ts, 12, 5))
|
|
|
|
return 10;
|
|
}
|
|
/** private setter property*/
|
|
private set pp3(/** this is value*/value: number) {
|
|
>pp3 : Symbol(c2.pp3, Decl(declFileAccessors_1.ts, 8, 5), Decl(declFileAccessors_1.ts, 12, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_1.ts, 14, 20))
|
|
}
|
|
/** static getter property*/
|
|
static get s3() {
|
|
>s3 : Symbol(c2.s3, Decl(declFileAccessors_1.ts, 15, 5), Decl(declFileAccessors_1.ts, 19, 5))
|
|
|
|
return 10;
|
|
}
|
|
/** setter property*/
|
|
static set s3( /** this is value*/value: number) {
|
|
>s3 : Symbol(c2.s3, Decl(declFileAccessors_1.ts, 15, 5), Decl(declFileAccessors_1.ts, 19, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_1.ts, 21, 18))
|
|
}
|
|
public get nc_p3() {
|
|
>nc_p3 : Symbol(c2.nc_p3, Decl(declFileAccessors_1.ts, 22, 5), Decl(declFileAccessors_1.ts, 25, 5))
|
|
|
|
return 10;
|
|
}
|
|
public set nc_p3(value: number) {
|
|
>nc_p3 : Symbol(c2.nc_p3, Decl(declFileAccessors_1.ts, 22, 5), Decl(declFileAccessors_1.ts, 25, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_1.ts, 26, 21))
|
|
}
|
|
private get nc_pp3() {
|
|
>nc_pp3 : Symbol(c2.nc_pp3, Decl(declFileAccessors_1.ts, 27, 5), Decl(declFileAccessors_1.ts, 30, 5))
|
|
|
|
return 10;
|
|
}
|
|
private set nc_pp3(value: number) {
|
|
>nc_pp3 : Symbol(c2.nc_pp3, Decl(declFileAccessors_1.ts, 27, 5), Decl(declFileAccessors_1.ts, 30, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_1.ts, 31, 23))
|
|
}
|
|
static get nc_s3() {
|
|
>nc_s3 : Symbol(c2.nc_s3, Decl(declFileAccessors_1.ts, 32, 5), Decl(declFileAccessors_1.ts, 35, 5))
|
|
|
|
return "";
|
|
}
|
|
static set nc_s3(value: string) {
|
|
>nc_s3 : Symbol(c2.nc_s3, Decl(declFileAccessors_1.ts, 32, 5), Decl(declFileAccessors_1.ts, 35, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_1.ts, 36, 21))
|
|
}
|
|
|
|
// Only getter property
|
|
public get onlyGetter() {
|
|
>onlyGetter : Symbol(c2.onlyGetter, Decl(declFileAccessors_1.ts, 37, 5))
|
|
|
|
return 10;
|
|
}
|
|
|
|
// Only setter property
|
|
public set onlySetter(value: number) {
|
|
>onlySetter : Symbol(c2.onlySetter, Decl(declFileAccessors_1.ts, 42, 5))
|
|
>value : Symbol(value, Decl(declFileAccessors_1.ts, 45, 26))
|
|
}
|
|
}
|