37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
|
=== tests/cases/compiler/sourceMapValidationFunctions.ts ===
|
||
|
var greetings = 0;
|
||
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3))
|
||
|
|
||
|
function greet(greeting: string): number {
|
||
|
>greet : Symbol(greet, Decl(sourceMapValidationFunctions.ts, 0, 18))
|
||
|
>greeting : Symbol(greeting, Decl(sourceMapValidationFunctions.ts, 1, 15))
|
||
|
|
||
|
greetings++;
|
||
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3))
|
||
|
|
||
|
return greetings;
|
||
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3))
|
||
|
}
|
||
|
function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
|
||
|
>greet2 : Symbol(greet2, Decl(sourceMapValidationFunctions.ts, 4, 1))
|
||
|
>greeting : Symbol(greeting, Decl(sourceMapValidationFunctions.ts, 5, 16))
|
||
|
>n : Symbol(n, Decl(sourceMapValidationFunctions.ts, 5, 33))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationFunctions.ts, 5, 41))
|
||
|
>restParams : Symbol(restParams, Decl(sourceMapValidationFunctions.ts, 5, 53))
|
||
|
|
||
|
greetings++;
|
||
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3))
|
||
|
|
||
|
return greetings;
|
||
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctions.ts, 0, 3))
|
||
|
}
|
||
|
function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
|
||
|
>foo : Symbol(foo, Decl(sourceMapValidationFunctions.ts, 8, 1))
|
||
|
>greeting : Symbol(greeting, Decl(sourceMapValidationFunctions.ts, 9, 13))
|
||
|
>n : Symbol(n, Decl(sourceMapValidationFunctions.ts, 9, 30))
|
||
|
>x : Symbol(x, Decl(sourceMapValidationFunctions.ts, 9, 38))
|
||
|
>restParams : Symbol(restParams, Decl(sourceMapValidationFunctions.ts, 9, 50))
|
||
|
{
|
||
|
return;
|
||
|
}
|