TypeScript/tests/baselines/reference/uncaughtCompilerError1.types

91 lines
3.7 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/uncaughtCompilerError1.ts ===
declare var index, lineTokens, token, tokens;
2015-04-13 23:01:57 +02:00
>index : any, Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
>lineTokens : any, Symbol(lineTokens, Decl(uncaughtCompilerError1.ts, 0, 18))
>token : any, Symbol(token, Decl(uncaughtCompilerError1.ts, 0, 30))
>tokens : any, Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
2014-08-15 23:33:16 +02:00
function f() {
2015-04-13 23:01:57 +02:00
>f : () => { appendText: string; advanceCount: number; }, Symbol(f, Decl(uncaughtCompilerError1.ts, 0, 45))
2014-08-15 23:33:16 +02:00
if (lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].type === 'attribute.name.html') {
>lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].type === 'attribute.name.html' : boolean
>lineTokens[index].trim() === '=' && index > 0 && token.type === '' : boolean
>lineTokens[index].trim() === '=' && index > 0 : boolean
>lineTokens[index].trim() === '=' : boolean
>lineTokens[index].trim() : any
>lineTokens[index].trim : any
>lineTokens[index] : any
2015-04-13 23:01:57 +02:00
>lineTokens : any, Symbol(lineTokens, Decl(uncaughtCompilerError1.ts, 0, 18))
>index : any, Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
2014-08-15 23:33:16 +02:00
>trim : any
2015-04-13 21:36:11 +02:00
>'=' : string
2014-08-15 23:33:16 +02:00
>index > 0 : boolean
2015-04-13 23:01:57 +02:00
>index : any, Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
>token.type === '' : boolean
>token.type : any
2015-04-13 23:01:57 +02:00
>token : any, Symbol(token, Decl(uncaughtCompilerError1.ts, 0, 30))
2014-08-15 23:33:16 +02:00
>type : any
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
>tokens[index - 1].type === 'attribute.name.html' : boolean
>tokens[index - 1].type : any
>tokens[index - 1] : any
2015-04-13 23:01:57 +02:00
>tokens : any, Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
2014-08-15 23:33:16 +02:00
>index - 1 : number
2015-04-13 23:01:57 +02:00
>index : any, Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
>type : any
2015-04-13 21:36:11 +02:00
>'attribute.name.html' : string
2014-08-15 23:33:16 +02:00
if (index === (tokens.length - 1)) {
>index === (tokens.length - 1) : boolean
2015-04-13 23:01:57 +02:00
>index : any, Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
2014-08-15 23:33:16 +02:00
>(tokens.length - 1) : number
>tokens.length - 1 : number
>tokens.length : any
2015-04-13 23:01:57 +02:00
>tokens : any, Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
2014-08-15 23:33:16 +02:00
>length : any
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
return { appendText: '\"\"', advanceCount: 1 };
>{ appendText: '\"\"', advanceCount: 1 } : { appendText: string; advanceCount: number; }
2015-04-13 23:01:57 +02:00
>appendText : string, Symbol(appendText, Decl(uncaughtCompilerError1.ts, 5, 20))
2015-04-13 21:36:11 +02:00
>'\"\"' : string
2015-04-13 23:01:57 +02:00
>advanceCount : number, Symbol(advanceCount, Decl(uncaughtCompilerError1.ts, 5, 40))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
else if (tokens[index + 1].type !== 'attribute.value.html' && tokens[index + 1].type !== '') {
>tokens[index + 1].type !== 'attribute.value.html' && tokens[index + 1].type !== '' : boolean
>tokens[index + 1].type !== 'attribute.value.html' : boolean
>tokens[index + 1].type : any
>tokens[index + 1] : any
2015-04-13 23:01:57 +02:00
>tokens : any, Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
2014-08-15 23:33:16 +02:00
>index + 1 : any
2015-04-13 23:01:57 +02:00
>index : any, Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
>type : any
2015-04-13 21:36:11 +02:00
>'attribute.value.html' : string
2014-08-15 23:33:16 +02:00
>tokens[index + 1].type !== '' : boolean
>tokens[index + 1].type : any
>tokens[index + 1] : any
2015-04-13 23:01:57 +02:00
>tokens : any, Symbol(tokens, Decl(uncaughtCompilerError1.ts, 0, 37))
2014-08-15 23:33:16 +02:00
>index + 1 : any
2015-04-13 23:01:57 +02:00
>index : any, Symbol(index, Decl(uncaughtCompilerError1.ts, 0, 11))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
>type : any
2015-04-13 21:36:11 +02:00
>'' : string
2014-08-15 23:33:16 +02:00
return { appendText: '\"\"', advanceCount: 1 };
>{ appendText: '\"\"', advanceCount: 1 } : { appendText: string; advanceCount: number; }
2015-04-13 23:01:57 +02:00
>appendText : string, Symbol(appendText, Decl(uncaughtCompilerError1.ts, 8, 20))
2015-04-13 21:36:11 +02:00
>'\"\"' : string
2015-04-13 23:01:57 +02:00
>advanceCount : number, Symbol(advanceCount, Decl(uncaughtCompilerError1.ts, 8, 40))
2015-04-13 21:36:11 +02:00
>1 : number
2014-08-15 23:33:16 +02:00
}
return null;
2015-04-13 21:36:11 +02:00
>null : null
2014-08-15 23:33:16 +02:00
}
}