-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
18 changed files
with
124 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
=== array.ts === | ||
|
||
type arrayOfStrings = string[] | ||
> arrayOfStrings --- {"kind":"array","type":{"kind":"primitive","primitive":"string","id":15},"symbolMeta":{"name":"arrayOfStrings","flags":524288},"aliasSymbolMeta":{"name":"arrayOfStrings","flags":524288},"id":86} | ||
> arrayOfStrings --- {"kind":"array","type":{"kind":"primitive","primitive":"string","id":15},"symbolMeta":{"name":"arrayOfStrings","flags":524288},"id":86} |
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
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,45 @@ | ||
=== class.ts === | ||
|
||
interface TestInterface { | ||
getThing(): string | ||
} | ||
> TestInterface --- { getThing: () => string; } | ||
> getThing(): string | ||
> getThing(): string | ||
> getThing --- () => string | ||
|
||
class TestClass implements TestInterface { | ||
constructor(param: string) { } | ||
|
||
getThing() { | ||
return "as" | ||
} | ||
} | ||
> class --- typeof TestClass | ||
> TestClass --- typeof TestClass | ||
> implements TestInterface | ||
> implements TestInterface | ||
> TestInterface | ||
> TestInterface | ||
> TestInterface --- { getThing: () => string; } | ||
> constructor(param: string) { } | ||
> getThing() { | ||
> return "as" | ||
> } | ||
> constructor(param: string) { } | ||
> constructor --- typeof TestClass | ||
> param: string | ||
> param: string | ||
> param --- string | ||
> getThing() { | ||
> return "as" | ||
> } | ||
> getThing --- () => string | ||
|
||
const _a = new TestClass("param") | ||
> const _a = new TestClass("param") | ||
> _a = new TestClass("param") | ||
> _a = new TestClass("param") | ||
> _a --- { getThing: () => string; } | ||
> new TestClass("param") | ||
> TestClass --- typeof TestClass |
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,45 @@ | ||
=== class.ts === | ||
|
||
interface TestInterface { | ||
getThing(): string | ||
} | ||
> TestInterface --- {"kind":"interface","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87}],"implementsTypes":[],"constructSignatures":[],"symbolMeta":{"name":"TestInterface","flags":64},"id":86} | ||
> getThing(): string | ||
> getThing(): string | ||
> getThing --- {"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87} | ||
|
||
class TestClass implements TestInterface { | ||
constructor(param: string) { } | ||
|
||
getThing() { | ||
return "as" | ||
} | ||
} | ||
> class --- {"kind":"class","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":33562624,"insideClassOrInterface":true},"id":92}],"implementsTypes":[{"kind":"interface","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"reference","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87}],"implementsTypes":[],"constructSignatures":[],"symbolMeta":{"name":"TestInterface","flags":64},"id":86}],"constructSignatures":[{"parameters":[{"kind":"reference","symbolMeta":{"name":"param","flags":1},"id":15}]}],"classSymbol":{"name":"TestClass","flags":32},"symbolMeta":{"name":"TestClass","flags":32},"id":89} | ||
> TestClass --- {"kind":"class","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":33562624,"insideClassOrInterface":true},"id":92}],"implementsTypes":[{"kind":"interface","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"reference","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87}],"implementsTypes":[],"constructSignatures":[],"symbolMeta":{"name":"TestInterface","flags":64},"id":86}],"constructSignatures":[{"parameters":[{"kind":"reference","symbolMeta":{"name":"param","flags":1},"id":15}]}],"classSymbol":{"name":"TestClass","flags":32},"symbolMeta":{"name":"TestClass","flags":32},"id":89} | ||
> implements TestInterface | ||
> implements TestInterface | ||
> TestInterface | ||
> TestInterface | ||
> TestInterface --- {"kind":"interface","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87}],"implementsTypes":[],"constructSignatures":[],"symbolMeta":{"name":"TestInterface","flags":64},"id":86} | ||
> constructor(param: string) { } | ||
> getThing() { | ||
> return "as" | ||
> } | ||
> constructor(param: string) { } | ||
> constructor --- {"kind":"class","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":33562624,"insideClassOrInterface":true},"id":92}],"implementsTypes":[{"kind":"interface","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"reference","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87}],"implementsTypes":[],"constructSignatures":[],"symbolMeta":{"name":"TestInterface","flags":64},"id":86}],"constructSignatures":[{"parameters":[{"kind":"reference","symbolMeta":{"name":"param","flags":1},"id":15}]}],"classSymbol":{"name":"TestClass","flags":32},"symbolMeta":{"name":"TestClass","flags":32},"id":89} | ||
> param: string | ||
> param: string | ||
> param --- {"kind":"primitive","primitive":"string","symbolMeta":{"name":"param","flags":1},"id":15} | ||
> getThing() { | ||
> return "as" | ||
> } | ||
> getThing --- {"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":91} | ||
|
||
const _a = new TestClass("param") | ||
> const _a = new TestClass("param") | ||
> _a = new TestClass("param") | ||
> _a = new TestClass("param") | ||
> _a --- {"kind":"class","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":33562624,"insideClassOrInterface":true},"id":92}],"implementsTypes":[{"kind":"interface","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"reference","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87}],"implementsTypes":[],"constructSignatures":[],"symbolMeta":{"name":"TestInterface","flags":64},"id":86}],"constructSignatures":[{"parameters":[{"kind":"reference","symbolMeta":{"name":"param","flags":1},"id":15}]}],"classSymbol":{"name":"TestClass","flags":32},"symbolMeta":{"name":"_a","flags":2},"id":89} | ||
> new TestClass("param") | ||
> TestClass --- {"kind":"class","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"primitive","primitive":"string","id":15}}],"symbolMeta":{"name":"getThing","flags":33562624,"insideClassOrInterface":true},"id":92}],"implementsTypes":[{"kind":"interface","properties":[{"kind":"function","signatures":[{"parameters":[],"returnType":{"kind":"reference","id":15}}],"symbolMeta":{"name":"getThing","flags":8192,"insideClassOrInterface":true},"id":87}],"implementsTypes":[],"constructSignatures":[],"symbolMeta":{"name":"TestInterface","flags":64},"id":86}],"constructSignatures":[{"parameters":[{"kind":"reference","symbolMeta":{"name":"param","flags":1},"id":15}]}],"classSymbol":{"name":"TestClass","flags":32},"symbolMeta":{"name":"TestClass","flags":32},"id":89} |
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
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
=== enum.ts === | ||
|
||
enum Test { A, B, C } | ||
> Test --- {"kind":"enum","properties":[{"kind":"enum_literal","value":0,"symbol":{"name":"A","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"A","flags":8},"id":88},{"kind":"enum_literal","value":1,"symbol":{"name":"B","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"B","flags":8},"id":90},{"kind":"enum_literal","value":2,"symbol":{"name":"C","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"C","flags":8},"id":92}],"symbolMeta":{"name":"Test","flags":256},"id":86} | ||
> Test --- {"kind":"enum","properties":[{"kind":"enum_literal","value":0,"literalSymbol":{"name":"A","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"A","flags":8},"id":88},{"kind":"enum_literal","value":1,"literalSymbol":{"name":"B","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"B","flags":8},"id":90},{"kind":"enum_literal","value":2,"literalSymbol":{"name":"C","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"C","flags":8},"id":92}],"symbolMeta":{"name":"Test","flags":256},"id":86} | ||
> A, B, C | ||
> A | ||
> A --- {"kind":"enum_literal","value":0,"symbol":{"name":"A","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"A","flags":8},"id":88} | ||
> A --- {"kind":"enum_literal","value":0,"literalSymbol":{"name":"A","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"A","flags":8},"id":88} | ||
> B | ||
> B --- {"kind":"enum_literal","value":1,"symbol":{"name":"B","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"B","flags":8},"id":90} | ||
> B --- {"kind":"enum_literal","value":1,"literalSymbol":{"name":"B","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"B","flags":8},"id":90} | ||
> C | ||
> C --- {"kind":"enum_literal","value":2,"symbol":{"name":"C","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"C","flags":8},"id":92} | ||
> C --- {"kind":"enum_literal","value":2,"literalSymbol":{"name":"C","flags":8},"parentSymbol":{"name":"Test","flags":256},"symbolMeta":{"name":"C","flags":8},"id":92} |
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
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
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
Oops, something went wrong.