Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2315694
commit 7ddb79b
Showing
9 changed files
with
248 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 0 additions & 60 deletions
60
tests/baselines/reference/checkGrammarStaticMemberName_es5.errors.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
tests/baselines/reference/checkGrammarStaticMemberName_es5.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
=== tests/cases/compiler/checkGrammarStaticMemberName_es5.ts === | ||
|
||
class static_property { | ||
>static_property : Symbol(static_property, Decl(checkGrammarStaticMemberName_es5.ts, 0, 0)) | ||
|
||
static length = 1; | ||
>length : Symbol(static_property.length, Decl(checkGrammarStaticMemberName_es5.ts, 1, 23)) | ||
|
||
static name = 1; | ||
>name : Symbol(static_property.name, Decl(checkGrammarStaticMemberName_es5.ts, 2, 22)) | ||
|
||
static arguments = 1; | ||
>arguments : Symbol(static_property.arguments, Decl(checkGrammarStaticMemberName_es5.ts, 3, 20)) | ||
|
||
static caller = 1; | ||
>caller : Symbol(static_property.caller, Decl(checkGrammarStaticMemberName_es5.ts, 4, 25)) | ||
|
||
static foo = { | ||
>foo : Symbol(static_property.foo, Decl(checkGrammarStaticMemberName_es5.ts, 5, 22)) | ||
|
||
["length"]: 1, | ||
>"length" : Symbol(["length"], Decl(checkGrammarStaticMemberName_es5.ts, 6, 18)) | ||
|
||
["name"]: 1, | ||
>"name" : Symbol(["name"], Decl(checkGrammarStaticMemberName_es5.ts, 7, 22)) | ||
|
||
["arguments"]: 1, | ||
>"arguments" : Symbol(["arguments"], Decl(checkGrammarStaticMemberName_es5.ts, 8, 20)) | ||
|
||
["caller"]: 1, | ||
>"caller" : Symbol(["caller"], Decl(checkGrammarStaticMemberName_es5.ts, 9, 25)) | ||
|
||
}; | ||
} | ||
|
||
class static_method { | ||
>static_method : Symbol(static_method, Decl(checkGrammarStaticMemberName_es5.ts, 12, 1)) | ||
|
||
static length() { return 1; } | ||
>length : Symbol(static_method.length, Decl(checkGrammarStaticMemberName_es5.ts, 14, 21)) | ||
|
||
static name() { return 1; } | ||
>name : Symbol(static_method.name, Decl(checkGrammarStaticMemberName_es5.ts, 15, 33)) | ||
|
||
static arguments() { return 1; } | ||
>arguments : Symbol(static_method.arguments, Decl(checkGrammarStaticMemberName_es5.ts, 16, 31)) | ||
|
||
static caller() { return 1; } | ||
>caller : Symbol(static_method.caller, Decl(checkGrammarStaticMemberName_es5.ts, 17, 36)) | ||
} | ||
|
64 changes: 64 additions & 0 deletions
64
tests/baselines/reference/checkGrammarStaticMemberName_es5.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
=== tests/cases/compiler/checkGrammarStaticMemberName_es5.ts === | ||
|
||
class static_property { | ||
>static_property : static_property | ||
|
||
static length = 1; | ||
>length : number | ||
>1 : 1 | ||
|
||
static name = 1; | ||
>name : number | ||
>1 : 1 | ||
|
||
static arguments = 1; | ||
>arguments : number | ||
>1 : 1 | ||
|
||
static caller = 1; | ||
>caller : number | ||
>1 : 1 | ||
|
||
static foo = { | ||
>foo : { ["length"]: number; ["name"]: number; ["arguments"]: number; ["caller"]: number; } | ||
>{ ["length"]: 1, ["name"]: 1, ["arguments"]: 1, ["caller"]: 1, } : { ["length"]: number; ["name"]: number; ["arguments"]: number; ["caller"]: number; } | ||
|
||
["length"]: 1, | ||
>"length" : "length" | ||
>1 : 1 | ||
|
||
["name"]: 1, | ||
>"name" : "name" | ||
>1 : 1 | ||
|
||
["arguments"]: 1, | ||
>"arguments" : "arguments" | ||
>1 : 1 | ||
|
||
["caller"]: 1, | ||
>"caller" : "caller" | ||
>1 : 1 | ||
|
||
}; | ||
} | ||
|
||
class static_method { | ||
>static_method : static_method | ||
|
||
static length() { return 1; } | ||
>length : () => number | ||
>1 : 1 | ||
|
||
static name() { return 1; } | ||
>name : () => number | ||
>1 : 1 | ||
|
||
static arguments() { return 1; } | ||
>arguments : () => number | ||
>1 : 1 | ||
|
||
static caller() { return 1; } | ||
>caller : () => number | ||
>1 : 1 | ||
} | ||
|
48 changes: 0 additions & 48 deletions
48
tests/baselines/reference/checkGrammarStaticMemberName_es6.errors.txt
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
tests/baselines/reference/checkGrammarStaticMemberName_es6.symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
=== tests/cases/compiler/checkGrammarStaticMemberName_es6.ts === | ||
|
||
class static_property { | ||
>static_property : Symbol(static_property, Decl(checkGrammarStaticMemberName_es6.ts, 0, 0)) | ||
|
||
static length = 1; | ||
>length : Symbol(static_property.length, Decl(checkGrammarStaticMemberName_es6.ts, 1, 23)) | ||
|
||
static name = 1; | ||
>name : Symbol(static_property.name, Decl(checkGrammarStaticMemberName_es6.ts, 2, 22)) | ||
|
||
static arguments = 1; | ||
>arguments : Symbol(static_property.arguments, Decl(checkGrammarStaticMemberName_es6.ts, 3, 20)) | ||
|
||
static caller = 1; | ||
>caller : Symbol(static_property.caller, Decl(checkGrammarStaticMemberName_es6.ts, 4, 25)) | ||
|
||
static foo = { | ||
>foo : Symbol(static_property.foo, Decl(checkGrammarStaticMemberName_es6.ts, 5, 22)) | ||
|
||
["length"]: 1, | ||
>"length" : Symbol(["length"], Decl(checkGrammarStaticMemberName_es6.ts, 6, 18)) | ||
|
||
["name"]: 1, | ||
>"name" : Symbol(["name"], Decl(checkGrammarStaticMemberName_es6.ts, 7, 22)) | ||
|
||
["arguments"]: 1, | ||
>"arguments" : Symbol(["arguments"], Decl(checkGrammarStaticMemberName_es6.ts, 8, 20)) | ||
|
||
["caller"]: 1, | ||
>"caller" : Symbol(["caller"], Decl(checkGrammarStaticMemberName_es6.ts, 9, 25)) | ||
|
||
}; | ||
} | ||
|
||
class static_method { | ||
>static_method : Symbol(static_method, Decl(checkGrammarStaticMemberName_es6.ts, 12, 1)) | ||
|
||
static length() { return 1; } | ||
>length : Symbol(static_method.length, Decl(checkGrammarStaticMemberName_es6.ts, 14, 21)) | ||
|
||
static name() { return 1; } | ||
>name : Symbol(static_method.name, Decl(checkGrammarStaticMemberName_es6.ts, 15, 33)) | ||
|
||
static arguments() { return 1; } | ||
>arguments : Symbol(static_method.arguments, Decl(checkGrammarStaticMemberName_es6.ts, 16, 31)) | ||
|
||
static caller() { return 1; } | ||
>caller : Symbol(static_method.caller, Decl(checkGrammarStaticMemberName_es6.ts, 17, 36)) | ||
} | ||
|
Oops, something went wrong.