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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
=== tests/cases/conformance/scanner/ecmascript5/scannertest1.ts ===
///<reference path='References.ts' />
class CharacterInfo {
>CharacterInfo : Symbol(CharacterInfo, Decl(scannertest1.ts, 0, 0))
public static isDecimalDigit(c: number): boolean {
>isDecimalDigit : Symbol(CharacterInfo.isDecimalDigit, Decl(scannertest1.ts, 2, 21))
>c : Symbol(c, Decl(scannertest1.ts, 3, 33))
return c >= CharacterCodes._0 && c <= CharacterCodes._9;
>c : Symbol(c, Decl(scannertest1.ts, 3, 33))
>c : Symbol(c, Decl(scannertest1.ts, 3, 33))
}
public static isHexDigit(c: number): boolean {
>isHexDigit : Symbol(CharacterInfo.isHexDigit, Decl(scannertest1.ts, 5, 5))
>c : Symbol(c, Decl(scannertest1.ts, 7, 29))
return isDecimalDigit(c) ||
>c : Symbol(c, Decl(scannertest1.ts, 7, 29))
(c >= CharacterCodes.A && c <= CharacterCodes.F) ||
>c : Symbol(c, Decl(scannertest1.ts, 7, 29))
>c : Symbol(c, Decl(scannertest1.ts, 7, 29))
(c >= CharacterCodes.a && c <= CharacterCodes.f);
>c : Symbol(c, Decl(scannertest1.ts, 7, 29))
>c : Symbol(c, Decl(scannertest1.ts, 7, 29))
}
public static hexValue(c: number): number {
>hexValue : Symbol(CharacterInfo.hexValue, Decl(scannertest1.ts, 11, 5))
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
Debug.assert(isHexDigit(c));
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
return isDecimalDigit(c)
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
? (c - CharacterCodes._0)
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
: (c >= CharacterCodes.A && c <= CharacterCodes.F)
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
? c - CharacterCodes.A + 10
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
: c - CharacterCodes.a + 10;
>c : Symbol(c, Decl(scannertest1.ts, 13, 27))
}
}
|