90 lines
2.5 KiB
Text
90 lines
2.5 KiB
Text
=== tests/cases/compiler/uncaughtCompilerError1.ts ===
|
|
declare var index, lineTokens, token, tokens;
|
|
>index : any
|
|
>lineTokens : any
|
|
>token : any
|
|
>tokens : any
|
|
|
|
function f() {
|
|
>f : () => { appendText: string; advanceCount: number; }
|
|
|
|
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
|
|
>lineTokens : any
|
|
>index : any
|
|
>trim : any
|
|
>'=' : string
|
|
>index > 0 : boolean
|
|
>index : any
|
|
>0 : number
|
|
>token.type === '' : boolean
|
|
>token.type : any
|
|
>token : any
|
|
>type : any
|
|
>'' : string
|
|
>tokens[index - 1].type === 'attribute.name.html' : boolean
|
|
>tokens[index - 1].type : any
|
|
>tokens[index - 1] : any
|
|
>tokens : any
|
|
>index - 1 : number
|
|
>index : any
|
|
>1 : number
|
|
>type : any
|
|
>'attribute.name.html' : string
|
|
|
|
if (index === (tokens.length - 1)) {
|
|
>index === (tokens.length - 1) : boolean
|
|
>index : any
|
|
>(tokens.length - 1) : number
|
|
>tokens.length - 1 : number
|
|
>tokens.length : any
|
|
>tokens : any
|
|
>length : any
|
|
>1 : number
|
|
|
|
return { appendText: '\"\"', advanceCount: 1 };
|
|
>{ appendText: '\"\"', advanceCount: 1 } : { appendText: string; advanceCount: number; }
|
|
>appendText : string
|
|
>'\"\"' : string
|
|
>advanceCount : number
|
|
>1 : number
|
|
}
|
|
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
|
|
>tokens : any
|
|
>index + 1 : any
|
|
>index : any
|
|
>1 : number
|
|
>type : any
|
|
>'attribute.value.html' : string
|
|
>tokens[index + 1].type !== '' : boolean
|
|
>tokens[index + 1].type : any
|
|
>tokens[index + 1] : any
|
|
>tokens : any
|
|
>index + 1 : any
|
|
>index : any
|
|
>1 : number
|
|
>type : any
|
|
>'' : string
|
|
|
|
return { appendText: '\"\"', advanceCount: 1 };
|
|
>{ appendText: '\"\"', advanceCount: 1 } : { appendText: string; advanceCount: number; }
|
|
>appendText : string
|
|
>'\"\"' : string
|
|
>advanceCount : number
|
|
>1 : number
|
|
}
|
|
return null;
|
|
>null : null
|
|
}
|
|
}
|
|
|