21 lines
935 B
Text
21 lines
935 B
Text
=== tests/cases/compiler/sourceMapValidationFunctionExpressions.ts ===
|
|
var greetings = 0;
|
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3))
|
|
|
|
var greet = (greeting: string): number => {
|
|
>greet : Symbol(greet, Decl(sourceMapValidationFunctionExpressions.ts, 1, 3))
|
|
>greeting : Symbol(greeting, Decl(sourceMapValidationFunctionExpressions.ts, 1, 13))
|
|
|
|
greetings++;
|
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3))
|
|
|
|
return greetings;
|
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3))
|
|
}
|
|
greet("Hello");
|
|
>greet : Symbol(greet, Decl(sourceMapValidationFunctionExpressions.ts, 1, 3))
|
|
|
|
var incrGreetings = () => greetings++;
|
|
>incrGreetings : Symbol(incrGreetings, Decl(sourceMapValidationFunctionExpressions.ts, 6, 3))
|
|
>greetings : Symbol(greetings, Decl(sourceMapValidationFunctionExpressions.ts, 0, 3))
|
|
|