1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
=== 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;
}
|