File: uncaughtCompilerError1.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (40 lines) | stat: -rw-r--r-- 2,002 bytes parent folder | download | duplicates (7)
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
37
38
39
40
=== tests/cases/compiler/uncaughtCompilerError1.ts ===
declare var index, lineTokens, token, tokens;
>index : Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
>lineTokens : Symbol(lineTokens, Decl(uncaughtCompilerError1.ts, 0, 18))
>token : Symbol(token, Decl(uncaughtCompilerError1.ts, 0, 30))
>tokens : Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))

function f() {
>f : Symbol(f, Decl(uncaughtCompilerError1.ts, 0, 45))

    if (lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].type === 'attribute.name.html') {
>lineTokens : Symbol(lineTokens, Decl(uncaughtCompilerError1.ts, 0, 18))
>index : Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
>index : Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
>token : Symbol(token, Decl(uncaughtCompilerError1.ts, 0, 30))
>tokens : Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
>index : Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))

        if (index === (tokens.length - 1)) {
>index : Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
>tokens : Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))

            return { appendText: '\"\"', advanceCount: 1 };
>appendText : Symbol(appendText, Decl(uncaughtCompilerError1.ts, 5, 20))
>advanceCount : Symbol(advanceCount, Decl(uncaughtCompilerError1.ts, 5, 40))
        }
        else if (tokens[index + 1].type !== 'attribute.value.html' && tokens[index + 1].type !== '') {
>tokens : Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
>index : Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
>tokens : Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
>index : Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))

            return { appendText: '\"\"', advanceCount: 1 };
>appendText : Symbol(appendText, Decl(uncaughtCompilerError1.ts, 8, 20))
>advanceCount : Symbol(advanceCount, Decl(uncaughtCompilerError1.ts, 8, 40))
        }
        return null;
    }
}