Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript_indexer): add ... to vararg parameters (#5842)
- Loading branch information
1 parent
a1b8f8f
commit 608d1cb
Showing
3 changed files
with
23 additions
and
0 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
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
14 changes: 14 additions & 0 deletions
14
kythe/typescript/testdata/marked_source/rendered/function.ts
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,14 @@ | ||
|
||
//- @myFunction defines/binding MyFunction | ||
//- MyFunction.code/rendered/qualified_name "myFunction" | ||
//- MyFunction.code/rendered/callsite_signature "myFunction(arg)" | ||
//- MyFunction.code/rendered/signature "myFunction(arg: string): number" | ||
function myFunction(arg: string = '0'): number { | ||
return 0; | ||
} | ||
|
||
//- @varArgs defines/binding VarArgs | ||
//- VarArgs.code/rendered/qualified_name "varArgs" | ||
//- VarArgs.code/rendered/callsite_signature "varArgs(arg)" | ||
//- VarArgs.code/rendered/signature "varArgs(...arg: any[]): void" | ||
function varArgs(...arg: any[]) {} |