mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Merge pull request #8125 from Microsoft/fixDisplayForStringyMembers
Fix display for literal members
This commit is contained in:
commit
0a2a8cce69
20 files changed
+352
-112
No files matched your search
+34
-6
@@ -1808,12 +1808,38 @@ namespace ts {
|
||||
|
||||
/**
|
||||
* Writes only the name of the symbol out to the writer. Uses the original source text
|
||||
* for the name of the symbol if it is available to match how the user inputted the name.
|
||||
* for the name of the symbol if it is available to match how the user wrote the name.
|
||||
*/
|
||||
function appendSymbolNameOnly(symbol: Symbol, writer: SymbolWriter): void {
|
||||
writer.writeSymbol(getNameOfSymbol(symbol), symbol);
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes a property access or element access with the name of the symbol out to the writer.
|
||||
* Uses the original source text for the name of the symbol if it is available to match how the user wrote the name,
|
||||
* ensuring that any names written with literals use element accesses.
|
||||
*/
|
||||
function appendPropertyOrElementAccessForSymbol(symbol: Symbol, writer: SymbolWriter): void {
|
||||
const symbolName = getNameOfSymbol(symbol);
|
||||
const firstChar = symbolName.charCodeAt(0);
|
||||
const needsElementAccess = !isIdentifierStart(firstChar, languageVersion);
|
||||
|
||||
if (needsElementAccess) {
|
||||
writePunctuation(writer, SyntaxKind.OpenBracketToken);
|
||||
if (isSingleOrDoubleQuote(firstChar)) {
|
||||
writer.writeStringLiteral(symbolName);
|
||||
}
|
||||
else {
|
||||
writer.writeSymbol(symbolName, symbol);
|
||||
}
|
||||
writePunctuation(writer, SyntaxKind.CloseBracketToken);
|
||||
}
|
||||
else {
|
||||
writePunctuation(writer, SyntaxKind.DotToken);
|
||||
writer.writeSymbol(symbolName, symbol);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enclosing declaration is optional when we don't want to get qualified name in the enclosing declaration scope
|
||||
* Meaning needs to be specified if the enclosing declaration is given
|
||||
@@ -1832,10 +1858,12 @@ namespace ts {
|
||||
buildTypeParameterDisplayFromSymbol(parentSymbol, writer, enclosingDeclaration);
|
||||
}
|
||||
}
|
||||
writePunctuation(writer, SyntaxKind.DotToken);
|
||||
appendPropertyOrElementAccessForSymbol(symbol, writer);
|
||||
}
|
||||
else {
|
||||
appendSymbolNameOnly(symbol, writer);
|
||||
}
|
||||
parentSymbol = symbol;
|
||||
appendSymbolNameOnly(symbol, writer);
|
||||
}
|
||||
|
||||
// const the writer know we just wrote out a symbol. The declaration emitter writer uses
|
||||
@@ -2030,10 +2058,10 @@ namespace ts {
|
||||
if (symbol) {
|
||||
// Always use 'typeof T' for type of class, enum, and module objects
|
||||
if (symbol.flags & (SymbolFlags.Class | SymbolFlags.Enum | SymbolFlags.ValueModule)) {
|
||||
writeTypeofSymbol(type, flags);
|
||||
writeTypeOfSymbol(type, flags);
|
||||
}
|
||||
else if (shouldWriteTypeOfFunctionSymbol()) {
|
||||
writeTypeofSymbol(type, flags);
|
||||
writeTypeOfSymbol(type, flags);
|
||||
}
|
||||
else if (contains(symbolStack, symbol)) {
|
||||
// If type is an anonymous type literal in a type alias declaration, use type alias name
|
||||
@@ -2078,7 +2106,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function writeTypeofSymbol(type: ObjectType, typeFormatFlags?: TypeFormatFlags) {
|
||||
function writeTypeOfSymbol(type: ObjectType, typeFormatFlags?: TypeFormatFlags) {
|
||||
writeKeyword(writer, SyntaxKind.TypeOfKeyword);
|
||||
writeSpace(writer);
|
||||
buildSymbolDisplay(type.symbol, writer, enclosingDeclaration, SymbolFlags.Value, SymbolFormatFlags.None, typeFormatFlags);
|
||||
|
||||
@@ -1196,6 +1196,10 @@ namespace ts {
|
||||
return isRequire && (!checkArgumentIsStringLiteral || (<CallExpression>expression).arguments[0].kind === SyntaxKind.StringLiteral);
|
||||
}
|
||||
|
||||
export function isSingleOrDoubleQuote(charCode: number) {
|
||||
return charCode === CharacterCodes.singleQuote || charCode === CharacterCodes.doubleQuote;
|
||||
}
|
||||
|
||||
/// Given a BinaryExpression, returns SpecialPropertyAssignmentKind for the various kinds of property
|
||||
/// assignments we treat as special in the binder
|
||||
export function getSpecialPropertyAssignmentKind(expression: Node): SpecialPropertyAssignmentKind {
|
||||
|
||||
@@ -24,12 +24,12 @@ let test: indexAccess;
|
||||
let s = test[0];
|
||||
>s : Symbol(s, Decl(constIndexedAccess.ts, 13, 3))
|
||||
>test : Symbol(test, Decl(constIndexedAccess.ts, 11, 3))
|
||||
>0 : Symbol(indexAccess.0, Decl(constIndexedAccess.ts, 6, 23))
|
||||
>0 : Symbol(indexAccess[0], Decl(constIndexedAccess.ts, 6, 23))
|
||||
|
||||
let n = test[1];
|
||||
>n : Symbol(n, Decl(constIndexedAccess.ts, 14, 3))
|
||||
>test : Symbol(test, Decl(constIndexedAccess.ts, 11, 3))
|
||||
>1 : Symbol(indexAccess.1, Decl(constIndexedAccess.ts, 7, 14))
|
||||
>1 : Symbol(indexAccess[1], Decl(constIndexedAccess.ts, 7, 14))
|
||||
|
||||
let s1 = test[numbers.zero];
|
||||
>s1 : Symbol(s1, Decl(constIndexedAccess.ts, 16, 3))
|
||||
|
||||
@@ -36,12 +36,12 @@ var r = c.fn();
|
||||
var r2 = r[1];
|
||||
>r2 : Symbol(r2, Decl(indexersInClassType.ts, 13, 3))
|
||||
>r : Symbol(r, Decl(indexersInClassType.ts, 12, 3))
|
||||
>1 : Symbol(C.1, Decl(indexersInClassType.ts, 2, 24))
|
||||
>1 : Symbol(C[1], Decl(indexersInClassType.ts, 2, 24))
|
||||
|
||||
var r3 = r.a
|
||||
>r3 : Symbol(r3, Decl(indexersInClassType.ts, 14, 3))
|
||||
>r.a : Symbol(C.'a', Decl(indexersInClassType.ts, 3, 12))
|
||||
>r.a : Symbol(C['a'], Decl(indexersInClassType.ts, 3, 12))
|
||||
>r : Symbol(r, Decl(indexersInClassType.ts, 12, 3))
|
||||
>a : Symbol(C.'a', Decl(indexersInClassType.ts, 3, 12))
|
||||
>a : Symbol(C['a'], Decl(indexersInClassType.ts, 3, 12))
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ var ResultIsNumber3 = -(ENUM1.B + ENUM1[""]);
|
||||
>ENUM1 : Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14))
|
||||
>B : Symbol(ENUM1.B, Decl(negateOperatorWithEnumType.ts, 3, 15))
|
||||
>ENUM1 : Symbol(ENUM1, Decl(negateOperatorWithEnumType.ts, 2, 14))
|
||||
>"" : Symbol(ENUM1."", Decl(negateOperatorWithEnumType.ts, 3, 18))
|
||||
>"" : Symbol(ENUM1[""], Decl(negateOperatorWithEnumType.ts, 3, 18))
|
||||
|
||||
// miss assignment operators
|
||||
-ENUM;
|
||||
|
||||
@@ -202,61 +202,61 @@ new B(1, 2, ...a, "string");
|
||||
// Property access expression
|
||||
new c["a-b"](1, 2, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES5.ts, 26, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
|
||||
new c["a-b"](1, 2, ...a);
|
||||
>c : Symbol(c, Decl(newWithSpreadES5.ts, 26, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
new c["a-b"](1, 2, ...a, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES5.ts, 26, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
// Parenthesised expression
|
||||
new (c["a-b"])(1, 2, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES5.ts, 26, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
|
||||
new (c["a-b"])(1, 2, ...a);
|
||||
>c : Symbol(c, Decl(newWithSpreadES5.ts, 26, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
new (c["a-b"])(1, 2, ...a, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES5.ts, 26, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
// Element access expression
|
||||
new g[1]["a-b"](1, 2, "string");
|
||||
>g : Symbol(g, Decl(newWithSpreadES5.ts, 29, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
|
||||
new g[1]["a-b"](1, 2, ...a);
|
||||
>g : Symbol(g, Decl(newWithSpreadES5.ts, 29, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
new g[1]["a-b"](1, 2, ...a, "string");
|
||||
>g : Symbol(g, Decl(newWithSpreadES5.ts, 29, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
// Element access expression with a punctuated key
|
||||
new h["a-b"]["a-b"](1, 2, "string");
|
||||
>h : Symbol(h, Decl(newWithSpreadES5.ts, 30, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
|
||||
new h["a-b"]["a-b"](1, 2, ...a);
|
||||
>h : Symbol(h, Decl(newWithSpreadES5.ts, 30, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
new h["a-b"]["a-b"](1, 2, ...a, "string");
|
||||
>h : Symbol(h, Decl(newWithSpreadES5.ts, 30, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES5.ts, 16, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES5.ts, 24, 3))
|
||||
|
||||
// Element access expression with a number
|
||||
|
||||
@@ -203,61 +203,61 @@ new B(1, 2, ...a, "string");
|
||||
// Property access expression
|
||||
new c["a-b"](1, 2, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES6.ts, 27, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
|
||||
new c["a-b"](1, 2, ...a);
|
||||
>c : Symbol(c, Decl(newWithSpreadES6.ts, 27, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
new c["a-b"](1, 2, ...a, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES6.ts, 27, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
// Parenthesised expression
|
||||
new (c["a-b"])(1, 2, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES6.ts, 27, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
|
||||
new (c["a-b"])(1, 2, ...a);
|
||||
>c : Symbol(c, Decl(newWithSpreadES6.ts, 27, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
new (c["a-b"])(1, 2, ...a, "string");
|
||||
>c : Symbol(c, Decl(newWithSpreadES6.ts, 27, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
// Element access expression
|
||||
new g[1]["a-b"](1, 2, "string");
|
||||
>g : Symbol(g, Decl(newWithSpreadES6.ts, 30, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
|
||||
new g[1]["a-b"](1, 2, ...a);
|
||||
>g : Symbol(g, Decl(newWithSpreadES6.ts, 30, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
new g[1]["a-b"](1, 2, ...a, "string");
|
||||
>g : Symbol(g, Decl(newWithSpreadES6.ts, 30, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
// Element access expression with a punctuated key
|
||||
new h["a-b"]["a-b"](1, 2, "string");
|
||||
>h : Symbol(h, Decl(newWithSpreadES6.ts, 31, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
|
||||
new h["a-b"]["a-b"](1, 2, ...a);
|
||||
>h : Symbol(h, Decl(newWithSpreadES6.ts, 31, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
new h["a-b"]["a-b"](1, 2, ...a, "string");
|
||||
>h : Symbol(h, Decl(newWithSpreadES6.ts, 31, 3))
|
||||
>"a-b" : Symbol(C."a-b", Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>"a-b" : Symbol(C["a-b"], Decl(newWithSpreadES6.ts, 17, 13))
|
||||
>a : Symbol(a, Decl(newWithSpreadES6.ts, 25, 3))
|
||||
|
||||
// Element access expression with a number
|
||||
|
||||
@@ -16,12 +16,12 @@ var c: C;
|
||||
var r1 = c['1'];
|
||||
>r1 : Symbol(r1, Decl(numericIndexingResults.ts, 7, 3), Decl(numericIndexingResults.ts, 21, 3), Decl(numericIndexingResults.ts, 34, 3))
|
||||
>c : Symbol(c, Decl(numericIndexingResults.ts, 6, 3))
|
||||
>'1' : Symbol(C.1, Decl(numericIndexingResults.ts, 1, 24))
|
||||
>'1' : Symbol(C[1], Decl(numericIndexingResults.ts, 1, 24))
|
||||
|
||||
var r2 = c['2'];
|
||||
>r2 : Symbol(r2, Decl(numericIndexingResults.ts, 8, 3), Decl(numericIndexingResults.ts, 22, 3), Decl(numericIndexingResults.ts, 35, 3))
|
||||
>c : Symbol(c, Decl(numericIndexingResults.ts, 6, 3))
|
||||
>'2' : Symbol(C."2", Decl(numericIndexingResults.ts, 2, 11))
|
||||
>'2' : Symbol(C["2"], Decl(numericIndexingResults.ts, 2, 11))
|
||||
|
||||
var r3 = c['3'];
|
||||
>r3 : Symbol(r3, Decl(numericIndexingResults.ts, 9, 3), Decl(numericIndexingResults.ts, 23, 3), Decl(numericIndexingResults.ts, 36, 3), Decl(numericIndexingResults.ts, 44, 3), Decl(numericIndexingResults.ts, 52, 3))
|
||||
@@ -30,12 +30,12 @@ var r3 = c['3'];
|
||||
var r4 = c[1];
|
||||
>r4 : Symbol(r4, Decl(numericIndexingResults.ts, 10, 3), Decl(numericIndexingResults.ts, 24, 3), Decl(numericIndexingResults.ts, 37, 3), Decl(numericIndexingResults.ts, 45, 3), Decl(numericIndexingResults.ts, 53, 3))
|
||||
>c : Symbol(c, Decl(numericIndexingResults.ts, 6, 3))
|
||||
>1 : Symbol(C.1, Decl(numericIndexingResults.ts, 1, 24))
|
||||
>1 : Symbol(C[1], Decl(numericIndexingResults.ts, 1, 24))
|
||||
|
||||
var r5 = c[2];
|
||||
>r5 : Symbol(r5, Decl(numericIndexingResults.ts, 11, 3), Decl(numericIndexingResults.ts, 25, 3), Decl(numericIndexingResults.ts, 38, 3), Decl(numericIndexingResults.ts, 46, 3), Decl(numericIndexingResults.ts, 54, 3))
|
||||
>c : Symbol(c, Decl(numericIndexingResults.ts, 6, 3))
|
||||
>2 : Symbol(C."2", Decl(numericIndexingResults.ts, 2, 11))
|
||||
>2 : Symbol(C["2"], Decl(numericIndexingResults.ts, 2, 11))
|
||||
|
||||
var r6 = c[3];
|
||||
>r6 : Symbol(r6, Decl(numericIndexingResults.ts, 12, 3), Decl(numericIndexingResults.ts, 26, 3), Decl(numericIndexingResults.ts, 39, 3), Decl(numericIndexingResults.ts, 47, 3), Decl(numericIndexingResults.ts, 55, 3))
|
||||
@@ -58,12 +58,12 @@ var i: I
|
||||
var r1 = i['1'];
|
||||
>r1 : Symbol(r1, Decl(numericIndexingResults.ts, 7, 3), Decl(numericIndexingResults.ts, 21, 3), Decl(numericIndexingResults.ts, 34, 3))
|
||||
>i : Symbol(i, Decl(numericIndexingResults.ts, 20, 3))
|
||||
>'1' : Symbol(I.1, Decl(numericIndexingResults.ts, 15, 24))
|
||||
>'1' : Symbol(I[1], Decl(numericIndexingResults.ts, 15, 24))
|
||||
|
||||
var r2 = i['2'];
|
||||
>r2 : Symbol(r2, Decl(numericIndexingResults.ts, 8, 3), Decl(numericIndexingResults.ts, 22, 3), Decl(numericIndexingResults.ts, 35, 3))
|
||||
>i : Symbol(i, Decl(numericIndexingResults.ts, 20, 3))
|
||||
>'2' : Symbol(I."2", Decl(numericIndexingResults.ts, 16, 14))
|
||||
>'2' : Symbol(I["2"], Decl(numericIndexingResults.ts, 16, 14))
|
||||
|
||||
var r3 = i['3'];
|
||||
>r3 : Symbol(r3, Decl(numericIndexingResults.ts, 9, 3), Decl(numericIndexingResults.ts, 23, 3), Decl(numericIndexingResults.ts, 36, 3), Decl(numericIndexingResults.ts, 44, 3), Decl(numericIndexingResults.ts, 52, 3))
|
||||
@@ -72,12 +72,12 @@ var r3 = i['3'];
|
||||
var r4 = i[1];
|
||||
>r4 : Symbol(r4, Decl(numericIndexingResults.ts, 10, 3), Decl(numericIndexingResults.ts, 24, 3), Decl(numericIndexingResults.ts, 37, 3), Decl(numericIndexingResults.ts, 45, 3), Decl(numericIndexingResults.ts, 53, 3))
|
||||
>i : Symbol(i, Decl(numericIndexingResults.ts, 20, 3))
|
||||
>1 : Symbol(I.1, Decl(numericIndexingResults.ts, 15, 24))
|
||||
>1 : Symbol(I[1], Decl(numericIndexingResults.ts, 15, 24))
|
||||
|
||||
var r5 = i[2];
|
||||
>r5 : Symbol(r5, Decl(numericIndexingResults.ts, 11, 3), Decl(numericIndexingResults.ts, 25, 3), Decl(numericIndexingResults.ts, 38, 3), Decl(numericIndexingResults.ts, 46, 3), Decl(numericIndexingResults.ts, 54, 3))
|
||||
>i : Symbol(i, Decl(numericIndexingResults.ts, 20, 3))
|
||||
>2 : Symbol(I."2", Decl(numericIndexingResults.ts, 16, 14))
|
||||
>2 : Symbol(I["2"], Decl(numericIndexingResults.ts, 16, 14))
|
||||
|
||||
var r6 = i[3];
|
||||
>r6 : Symbol(r6, Decl(numericIndexingResults.ts, 12, 3), Decl(numericIndexingResults.ts, 26, 3), Decl(numericIndexingResults.ts, 39, 3), Decl(numericIndexingResults.ts, 47, 3), Decl(numericIndexingResults.ts, 55, 3))
|
||||
|
||||
@@ -15,22 +15,22 @@ var c: C;
|
||||
var r1 = c[1];
|
||||
>r1 : Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
|
||||
>1 : Symbol(C.1, Decl(objectTypeWithNumericProperty.ts, 2, 9))
|
||||
>1 : Symbol(C[1], Decl(objectTypeWithNumericProperty.ts, 2, 9))
|
||||
|
||||
var r2 = c[1.1];
|
||||
>r2 : Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
|
||||
>1.1 : Symbol(C.1.1, Decl(objectTypeWithNumericProperty.ts, 3, 14))
|
||||
>1.1 : Symbol(C[1.1], Decl(objectTypeWithNumericProperty.ts, 3, 14))
|
||||
|
||||
var r3 = c['1'];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
|
||||
>'1' : Symbol(C.1, Decl(objectTypeWithNumericProperty.ts, 2, 9))
|
||||
>'1' : Symbol(C[1], Decl(objectTypeWithNumericProperty.ts, 2, 9))
|
||||
|
||||
var r4 = c['1.1'];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithNumericProperty.ts, 7, 3))
|
||||
>'1.1' : Symbol(C.1.1, Decl(objectTypeWithNumericProperty.ts, 3, 14))
|
||||
>'1.1' : Symbol(C[1.1], Decl(objectTypeWithNumericProperty.ts, 3, 14))
|
||||
|
||||
interface I {
|
||||
>I : Symbol(I, Decl(objectTypeWithNumericProperty.ts, 11, 18))
|
||||
@@ -46,22 +46,22 @@ var i: I;
|
||||
var r1 = i[1];
|
||||
>r1 : Symbol(r1, Decl(objectTypeWithNumericProperty.ts, 8, 3), Decl(objectTypeWithNumericProperty.ts, 19, 3), Decl(objectTypeWithNumericProperty.ts, 29, 3), Decl(objectTypeWithNumericProperty.ts, 39, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
|
||||
>1 : Symbol(I.1, Decl(objectTypeWithNumericProperty.ts, 13, 13))
|
||||
>1 : Symbol(I[1], Decl(objectTypeWithNumericProperty.ts, 13, 13))
|
||||
|
||||
var r2 = i[1.1];
|
||||
>r2 : Symbol(r2, Decl(objectTypeWithNumericProperty.ts, 9, 3), Decl(objectTypeWithNumericProperty.ts, 20, 3), Decl(objectTypeWithNumericProperty.ts, 30, 3), Decl(objectTypeWithNumericProperty.ts, 40, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
|
||||
>1.1 : Symbol(I.1.1, Decl(objectTypeWithNumericProperty.ts, 14, 14))
|
||||
>1.1 : Symbol(I[1.1], Decl(objectTypeWithNumericProperty.ts, 14, 14))
|
||||
|
||||
var r3 = i['1'];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithNumericProperty.ts, 10, 3), Decl(objectTypeWithNumericProperty.ts, 21, 3), Decl(objectTypeWithNumericProperty.ts, 31, 3), Decl(objectTypeWithNumericProperty.ts, 41, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
|
||||
>'1' : Symbol(I.1, Decl(objectTypeWithNumericProperty.ts, 13, 13))
|
||||
>'1' : Symbol(I[1], Decl(objectTypeWithNumericProperty.ts, 13, 13))
|
||||
|
||||
var r4 = i['1.1'];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithNumericProperty.ts, 11, 3), Decl(objectTypeWithNumericProperty.ts, 22, 3), Decl(objectTypeWithNumericProperty.ts, 32, 3), Decl(objectTypeWithNumericProperty.ts, 42, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithNumericProperty.ts, 18, 3))
|
||||
>'1.1' : Symbol(I.1.1, Decl(objectTypeWithNumericProperty.ts, 14, 14))
|
||||
>'1.1' : Symbol(I[1.1], Decl(objectTypeWithNumericProperty.ts, 14, 14))
|
||||
|
||||
var a: {
|
||||
>a : Symbol(a, Decl(objectTypeWithNumericProperty.ts, 24, 3))
|
||||
|
||||
@@ -31,47 +31,47 @@ var c: C;
|
||||
var r1 = c['0.1'];
|
||||
>r1 : Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>'0.1' : Symbol(C."0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 5, 9))
|
||||
>'0.1' : Symbol(C["0.1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 5, 9))
|
||||
|
||||
var r2 = c['.1'];
|
||||
>r2 : Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 79, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 109, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>'.1' : Symbol(C.".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 16))
|
||||
>'.1' : Symbol(C[".1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 6, 16))
|
||||
|
||||
var r3 = c['1'];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>'1' : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>'1' : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r3 = c[1];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r4 = c['1.'];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>'1.' : Symbol(C."1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 8, 16))
|
||||
>'1.' : Symbol(C["1."], Decl(objectTypeWithStringNamedNumericProperty.ts, 8, 16))
|
||||
|
||||
var r3 = c[1.]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1. : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r5 = c['1..'];
|
||||
>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>'1..' : Symbol(C."1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 9, 17))
|
||||
>'1..' : Symbol(C["1.."], Decl(objectTypeWithStringNamedNumericProperty.ts, 9, 17))
|
||||
|
||||
var r6 = c['1.0'];
|
||||
>r6 : Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 55, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 85, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 115, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>'1.0' : Symbol(C."1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 10, 19))
|
||||
>'1.0' : Symbol(C["1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 10, 19))
|
||||
|
||||
var r3 = c[1.0]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1.0 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
// BUG 823822
|
||||
var r7 = i[-1];
|
||||
@@ -85,17 +85,17 @@ var r7 = i[-1.0];
|
||||
var r8 = i["-1.0"];
|
||||
>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1.0" : Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
|
||||
var r9 = i["-1"];
|
||||
>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1" : Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
|
||||
var r10 = i[0x1]
|
||||
>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>0x1 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r11 = i[-0x1]
|
||||
>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3))
|
||||
@@ -104,7 +104,7 @@ var r11 = i[-0x1]
|
||||
var r12 = i[01]
|
||||
>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>01 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r13 = i[-01]
|
||||
>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3))
|
||||
@@ -137,47 +137,47 @@ var i: I;
|
||||
var r1 = i['0.1'];
|
||||
>r1 : Symbol(r1, Decl(objectTypeWithStringNamedNumericProperty.ts, 17, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 48, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 78, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 108, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>'0.1' : Symbol(I."0.1", Decl(objectTypeWithStringNamedNumericProperty.ts, 36, 13))
|
||||
>'0.1' : Symbol(I["0.1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 36, 13))
|
||||
|
||||
var r2 = i['.1'];
|
||||
>r2 : Symbol(r2, Decl(objectTypeWithStringNamedNumericProperty.ts, 18, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 49, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 79, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 109, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>'.1' : Symbol(I.".1", Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 16))
|
||||
>'.1' : Symbol(I[".1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 37, 16))
|
||||
|
||||
var r3 = i['1'];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>'1' : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>'1' : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r3 = c[1];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r4 = i['1.'];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>'1.' : Symbol(I."1.", Decl(objectTypeWithStringNamedNumericProperty.ts, 39, 16))
|
||||
>'1.' : Symbol(I["1."], Decl(objectTypeWithStringNamedNumericProperty.ts, 39, 16))
|
||||
|
||||
var r3 = c[1.]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1. : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r5 = i['1..'];
|
||||
>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>'1..' : Symbol(I."1..", Decl(objectTypeWithStringNamedNumericProperty.ts, 40, 17))
|
||||
>'1..' : Symbol(I["1.."], Decl(objectTypeWithStringNamedNumericProperty.ts, 40, 17))
|
||||
|
||||
var r6 = i['1.0'];
|
||||
>r6 : Symbol(r6, Decl(objectTypeWithStringNamedNumericProperty.ts, 24, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 55, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 85, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 115, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>'1.0' : Symbol(I."1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 19))
|
||||
>'1.0' : Symbol(I["1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 41, 19))
|
||||
|
||||
var r3 = c[1.0]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1.0 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
// BUG 823822
|
||||
var r7 = i[-1];
|
||||
@@ -191,17 +191,17 @@ var r7 = i[-1.0];
|
||||
var r8 = i["-1.0"];
|
||||
>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1.0" : Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
|
||||
var r9 = i["-1"];
|
||||
>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1" : Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
|
||||
var r10 = i[0x1]
|
||||
>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>0x1 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r11 = i[-0x1]
|
||||
>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3))
|
||||
@@ -210,7 +210,7 @@ var r11 = i[-0x1]
|
||||
var r12 = i[01]
|
||||
>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>01 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r13 = i[-01]
|
||||
>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3))
|
||||
@@ -254,7 +254,7 @@ var r3 = a['1'];
|
||||
var r3 = c[1];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r4 = a['1.'];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3))
|
||||
@@ -264,7 +264,7 @@ var r4 = a['1.'];
|
||||
var r3 = c[1.]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1. : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r5 = a['1..'];
|
||||
>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3))
|
||||
@@ -279,7 +279,7 @@ var r6 = a['1.0'];
|
||||
var r3 = c[1.0]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1.0 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
// BUG 823822
|
||||
var r7 = i[-1];
|
||||
@@ -293,17 +293,17 @@ var r7 = i[-1.0];
|
||||
var r8 = i["-1.0"];
|
||||
>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1.0" : Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
|
||||
var r9 = i["-1"];
|
||||
>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1" : Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
|
||||
var r10 = i[0x1]
|
||||
>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>0x1 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r11 = i[-0x1]
|
||||
>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3))
|
||||
@@ -312,7 +312,7 @@ var r11 = i[-0x1]
|
||||
var r12 = i[01]
|
||||
>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>01 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r13 = i[-01]
|
||||
>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3))
|
||||
@@ -355,7 +355,7 @@ var r3 = b['1'];
|
||||
var r3 = c[1];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r4 = b['1.'];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithStringNamedNumericProperty.ts, 21, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 52, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 82, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 112, 3))
|
||||
@@ -365,7 +365,7 @@ var r4 = b['1.'];
|
||||
var r3 = c[1.]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1. : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1. : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
var r5 = b['1..'];
|
||||
>r5 : Symbol(r5, Decl(objectTypeWithStringNamedNumericProperty.ts, 23, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 54, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 84, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 114, 3))
|
||||
@@ -380,7 +380,7 @@ var r6 = b['1.0'];
|
||||
var r3 = c[1.0]; // same as indexing by 1 when done numerically
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedNumericProperty.ts, 19, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 20, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 22, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 25, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 50, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 51, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 53, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 56, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 80, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 81, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 83, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 86, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 110, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 111, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 113, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 116, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedNumericProperty.ts, 16, 3))
|
||||
>1.0 : Symbol(C."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
>1.0 : Symbol(C["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 7, 17))
|
||||
|
||||
// BUG 823822
|
||||
var r7 = i[-1];
|
||||
@@ -394,17 +394,17 @@ var r7 = i[-1.0];
|
||||
var r8 = i["-1.0"];
|
||||
>r8 : Symbol(r8, Decl(objectTypeWithStringNamedNumericProperty.ts, 29, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 60, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 90, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 120, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1.0" : Symbol(I."-1.0", Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
>"-1.0" : Symbol(I["-1.0"], Decl(objectTypeWithStringNamedNumericProperty.ts, 42, 16))
|
||||
|
||||
var r9 = i["-1"];
|
||||
>r9 : Symbol(r9, Decl(objectTypeWithStringNamedNumericProperty.ts, 30, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 61, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 91, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 121, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>"-1" : Symbol(I."-1", Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
>"-1" : Symbol(I["-1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 43, 19))
|
||||
|
||||
var r10 = i[0x1]
|
||||
>r10 : Symbol(r10, Decl(objectTypeWithStringNamedNumericProperty.ts, 31, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 62, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 92, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 122, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>0x1 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>0x1 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r11 = i[-0x1]
|
||||
>r11 : Symbol(r11, Decl(objectTypeWithStringNamedNumericProperty.ts, 32, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 63, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 93, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 123, 3))
|
||||
@@ -413,7 +413,7 @@ var r11 = i[-0x1]
|
||||
var r12 = i[01]
|
||||
>r12 : Symbol(r12, Decl(objectTypeWithStringNamedNumericProperty.ts, 33, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 64, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 94, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 124, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedNumericProperty.ts, 47, 3))
|
||||
>01 : Symbol(I."1", Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
>01 : Symbol(I["1"], Decl(objectTypeWithStringNamedNumericProperty.ts, 38, 17))
|
||||
|
||||
var r13 = i[-01]
|
||||
>r13 : Symbol(r13, Decl(objectTypeWithStringNamedNumericProperty.ts, 34, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 65, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 95, 3), Decl(objectTypeWithStringNamedNumericProperty.ts, 125, 3))
|
||||
|
||||
+6
-6
@@ -16,7 +16,7 @@ var c: C;
|
||||
var r = c[" "];
|
||||
>r : Symbol(r, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 9, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 22, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 35, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 47, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3))
|
||||
>" " : Symbol(C." ", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 0, 9))
|
||||
>" " : Symbol(C[" "], Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 0, 9))
|
||||
|
||||
var r2 = c[" "];
|
||||
>r2 : Symbol(r2, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 10, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 23, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 36, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 48, 3))
|
||||
@@ -25,13 +25,13 @@ var r2 = c[" "];
|
||||
var r3 = c["a b"];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 11, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 24, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 37, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 49, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3))
|
||||
>"a b" : Symbol(C."a b", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 1, 18))
|
||||
>"a b" : Symbol(C["a b"], Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 1, 18))
|
||||
|
||||
// BUG 817263
|
||||
var r4 = c["~!@#$%^&*()_+{}|:'<>?\/.,`"];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 26, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 39, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 51, 3))
|
||||
>c : Symbol(c, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 8, 3))
|
||||
>"~!@#$%^&*()_+{}|:'<>?\/.,`" : Symbol(C."~!@#$%^&*()_+{}|:'<>?\/.,`", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 2, 20))
|
||||
>"~!@#$%^&*()_+{}|:'<>?\/.,`" : Symbol(C["~!@#$%^&*()_+{}|:'<>?\/.,`"], Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 2, 20))
|
||||
|
||||
interface I {
|
||||
>I : Symbol(I, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 41))
|
||||
@@ -48,7 +48,7 @@ var i: I;
|
||||
var r = i[" "];
|
||||
>r : Symbol(r, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 9, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 22, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 35, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 47, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3))
|
||||
>" " : Symbol(I." ", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 15, 13))
|
||||
>" " : Symbol(I[" "], Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 15, 13))
|
||||
|
||||
var r2 = i[" "];
|
||||
>r2 : Symbol(r2, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 10, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 23, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 36, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 48, 3))
|
||||
@@ -57,13 +57,13 @@ var r2 = i[" "];
|
||||
var r3 = i["a b"];
|
||||
>r3 : Symbol(r3, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 11, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 24, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 37, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 49, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3))
|
||||
>"a b" : Symbol(I."a b", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 16, 18))
|
||||
>"a b" : Symbol(I["a b"], Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 16, 18))
|
||||
|
||||
// BUG 817263
|
||||
var r4 = i["~!@#$%^&*()_+{}|:'<>?\/.,`"];
|
||||
>r4 : Symbol(r4, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 13, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 26, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 39, 3), Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 51, 3))
|
||||
>i : Symbol(i, Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 21, 3))
|
||||
>"~!@#$%^&*()_+{}|:'<>?\/.,`" : Symbol(I."~!@#$%^&*()_+{}|:'<>?\/.,`", Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 17, 20))
|
||||
>"~!@#$%^&*()_+{}|:'<>?\/.,`" : Symbol(I["~!@#$%^&*()_+{}|:'<>?\/.,`"], Decl(objectTypeWithStringNamedPropertyOfIllegalCharacters.ts, 17, 20))
|
||||
|
||||
|
||||
var a: {
|
||||
|
||||
@@ -38,16 +38,16 @@ var a = Color.namedColors["azure"];
|
||||
|
||||
var a = Color.namedColors.blue; // Should not error
|
||||
>a : Symbol(a, Decl(propertyNamesWithStringLiteral.ts, 12, 3), Decl(propertyNamesWithStringLiteral.ts, 13, 3), Decl(propertyNamesWithStringLiteral.ts, 14, 3))
|
||||
>Color.namedColors.blue : Symbol(NamedColors."blue", Decl(propertyNamesWithStringLiteral.ts, 5, 18))
|
||||
>Color.namedColors.blue : Symbol(NamedColors["blue"], Decl(propertyNamesWithStringLiteral.ts, 5, 18))
|
||||
>Color.namedColors : Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14))
|
||||
>Color : Symbol(Color, Decl(propertyNamesWithStringLiteral.ts, 8, 1))
|
||||
>namedColors : Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14))
|
||||
>blue : Symbol(NamedColors."blue", Decl(propertyNamesWithStringLiteral.ts, 5, 18))
|
||||
>blue : Symbol(NamedColors["blue"], Decl(propertyNamesWithStringLiteral.ts, 5, 18))
|
||||
|
||||
var a = Color.namedColors["pale blue"]; // should not error
|
||||
>a : Symbol(a, Decl(propertyNamesWithStringLiteral.ts, 12, 3), Decl(propertyNamesWithStringLiteral.ts, 13, 3), Decl(propertyNamesWithStringLiteral.ts, 14, 3))
|
||||
>Color.namedColors : Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14))
|
||||
>Color : Symbol(Color, Decl(propertyNamesWithStringLiteral.ts, 8, 1))
|
||||
>namedColors : Symbol(Color.namedColors, Decl(propertyNamesWithStringLiteral.ts, 10, 14))
|
||||
>"pale blue" : Symbol(NamedColors."pale blue", Decl(propertyNamesWithStringLiteral.ts, 6, 19))
|
||||
>"pale blue" : Symbol(NamedColors["pale blue"], Decl(propertyNamesWithStringLiteral.ts, 6, 19))
|
||||
|
||||
@@ -9,7 +9,7 @@ class Test {
|
||||
var x = () => this["prop1"];
|
||||
>x : Symbol(x, Decl(quotedPropertyName3.ts, 3, 11))
|
||||
>this : Symbol(Test, Decl(quotedPropertyName3.ts, 0, 0))
|
||||
>"prop1" : Symbol(Test."prop1", Decl(quotedPropertyName3.ts, 0, 12))
|
||||
>"prop1" : Symbol(Test["prop1"], Decl(quotedPropertyName3.ts, 0, 12))
|
||||
|
||||
var y: number = x();
|
||||
>y : Symbol(y, Decl(quotedPropertyName3.ts, 4, 11))
|
||||
|
||||
@@ -8,30 +8,30 @@ class C {
|
||||
x = C['foo'];
|
||||
>x : Symbol(C.x, Decl(staticMemberWithStringAndNumberNames.ts, 2, 17))
|
||||
>C : Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0))
|
||||
>'foo' : Symbol(C."foo", Decl(staticMemberWithStringAndNumberNames.ts, 0, 9))
|
||||
>'foo' : Symbol(C["foo"], Decl(staticMemberWithStringAndNumberNames.ts, 0, 9))
|
||||
|
||||
x2 = C['0'];
|
||||
>x2 : Symbol(C.x2, Decl(staticMemberWithStringAndNumberNames.ts, 4, 17))
|
||||
>C : Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0))
|
||||
>'0' : Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
>'0' : Symbol(C[0], Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
|
||||
x3 = C[0];
|
||||
>x3 : Symbol(C.x3, Decl(staticMemberWithStringAndNumberNames.ts, 5, 16))
|
||||
>C : Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0))
|
||||
>0 : Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
>0 : Symbol(C[0], Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
|
||||
static s = C['foo'];
|
||||
>s : Symbol(C.s, Decl(staticMemberWithStringAndNumberNames.ts, 6, 14))
|
||||
>C : Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0))
|
||||
>'foo' : Symbol(C."foo", Decl(staticMemberWithStringAndNumberNames.ts, 0, 9))
|
||||
>'foo' : Symbol(C["foo"], Decl(staticMemberWithStringAndNumberNames.ts, 0, 9))
|
||||
|
||||
static s2 = C['0'];
|
||||
>s2 : Symbol(C.s2, Decl(staticMemberWithStringAndNumberNames.ts, 8, 24))
|
||||
>C : Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0))
|
||||
>'0' : Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
>'0' : Symbol(C[0], Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
|
||||
static s3 = C[0];
|
||||
>s3 : Symbol(C.s3, Decl(staticMemberWithStringAndNumberNames.ts, 9, 23))
|
||||
>C : Symbol(C, Decl(staticMemberWithStringAndNumberNames.ts, 0, 0))
|
||||
>0 : Symbol(C.0, Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
>0 : Symbol(C[0], Decl(staticMemberWithStringAndNumberNames.ts, 1, 21))
|
||||
}
|
||||
@@ -12,12 +12,12 @@ var c: C;
|
||||
var r1 = c["a b"];
|
||||
>r1 : Symbol(r1, Decl(stringNamedPropertyAccess.ts, 5, 3))
|
||||
>c : Symbol(c, Decl(stringNamedPropertyAccess.ts, 4, 3))
|
||||
>"a b" : Symbol(C."a b", Decl(stringNamedPropertyAccess.ts, 0, 9))
|
||||
>"a b" : Symbol(C["a b"], Decl(stringNamedPropertyAccess.ts, 0, 9))
|
||||
|
||||
var r1b = C['c d'];
|
||||
>r1b : Symbol(r1b, Decl(stringNamedPropertyAccess.ts, 6, 3))
|
||||
>C : Symbol(C, Decl(stringNamedPropertyAccess.ts, 0, 0))
|
||||
>'c d' : Symbol(C."c d", Decl(stringNamedPropertyAccess.ts, 1, 18))
|
||||
>'c d' : Symbol(C["c d"], Decl(stringNamedPropertyAccess.ts, 1, 18))
|
||||
|
||||
interface I {
|
||||
>I : Symbol(I, Decl(stringNamedPropertyAccess.ts, 6, 19))
|
||||
@@ -31,7 +31,7 @@ var i: I;
|
||||
var r2 = i["a b"];
|
||||
>r2 : Symbol(r2, Decl(stringNamedPropertyAccess.ts, 12, 3))
|
||||
>i : Symbol(i, Decl(stringNamedPropertyAccess.ts, 11, 3))
|
||||
>"a b" : Symbol(I."a b", Decl(stringNamedPropertyAccess.ts, 8, 13))
|
||||
>"a b" : Symbol(I["a b"], Decl(stringNamedPropertyAccess.ts, 8, 13))
|
||||
|
||||
var a: {
|
||||
>a : Symbol(a, Decl(stringNamedPropertyAccess.ts, 14, 3))
|
||||
|
||||
@@ -36,7 +36,7 @@ var a = <foundFirst x="hello" />;
|
||||
|
||||
var b = <string_named />;
|
||||
>b : Symbol(b, Decl(tsxElementResolution.tsx, 18, 3))
|
||||
>string_named : Symbol(JSX.IntrinsicElements.'string_named', Decl(tsxElementResolution.tsx, 3, 28))
|
||||
>string_named : Symbol(JSX.IntrinsicElements['string_named'], Decl(tsxElementResolution.tsx, 3, 28))
|
||||
|
||||
// TODO: This should not be a parse error (should
|
||||
// parse a property name here, not identifier)
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,79 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////enum /*1*/E {
|
||||
//// /*2*/"e1",
|
||||
//// /*3*/'e2' = 10,
|
||||
//// /*4*/"e3"
|
||||
////}
|
||||
////var /*5*/eInstance: /*6*/E;
|
||||
/////*7*/eInstance = /*8*/E./*9*/e1;
|
||||
/////*10*/eInstance = /*11*/E./*12*/e2;
|
||||
/////*13*/eInstance = /*14*/E./*15*/e3;
|
||||
////const enum /*16*/constE {
|
||||
//// /*17*/"e1",
|
||||
//// /*18*/'e2' = 10,
|
||||
//// /*19*/"e3"
|
||||
////}
|
||||
////var /*20*/eInstance1: /*21*/constE;
|
||||
/////*22*/eInstance1 = /*23*/constE./*24*/e1;
|
||||
/////*25*/eInstance1 = /*26*/constE./*27*/e2;
|
||||
/////*28*/eInstance1 = /*29*/constE./*30*/e3;
|
||||
|
||||
var marker = 0;
|
||||
function verifyEnumDeclaration(enumName: string, instanceName: string, isConst?: boolean) {
|
||||
verifyEnumDisplay();
|
||||
|
||||
verifyEnumMemberDisplay('"e1"', /*spanLength*/ 4, 0);
|
||||
verifyEnumMemberDisplay("'e2'", /*spanLength*/ 4, 10);
|
||||
verifyEnumMemberDisplay('"e3"', /*spanLength*/ 4, 11);
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
verifyEnumMemberDisplay('"e1"', /*spanLength*/ 2, 0);
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
verifyEnumMemberDisplay("'e2'", /*spanLength*/ 2, 10);
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
verifyEnumMemberDisplay('"e3"', /*spanLength*/ 2, 11);
|
||||
|
||||
function verifyEnumDisplay() {
|
||||
marker++;
|
||||
goTo.marker(marker.toString());
|
||||
verify.verifyQuickInfoDisplayParts("enum", "", { start: test.markerByName(marker.toString()).position, length: enumName.length },
|
||||
(isConst ? [{ text: "const", kind: "keyword" }, { text: " ", kind: "space" }] : []).concat(
|
||||
[{ text: "enum", kind: "keyword" }, { text: " ", kind: "space" }, { text: enumName, kind: "enumName" }]),
|
||||
[]);;
|
||||
}
|
||||
|
||||
function verifyEnumMemberDisplay(enumMemberName: string, spanLength: number, initializer: number) {
|
||||
marker++;
|
||||
goTo.marker(marker.toString());
|
||||
// Each of these names is a string literal,
|
||||
// but since they're accessed by property accesses,
|
||||
// we need to account for the quotes at the beginning and end.
|
||||
verify.verifyQuickInfoDisplayParts("var", "", { start: test.markerByName(marker.toString()).position, length: spanLength },
|
||||
[{ text: "(", kind: "punctuation" }, { text: "enum member", kind: "text" }, { text: ")", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: enumName, kind: "enumName" }, { text: "[", kind: "punctuation" }, { text: enumMemberName, kind: "stringLiteral" }, { text: "]", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: "=", kind: "operator" }, { text: " ", kind: "space" }, { text: initializer.toString(), kind: "numericLiteral" }],
|
||||
[]);
|
||||
}
|
||||
|
||||
function verifyInstance() {
|
||||
marker++;
|
||||
goTo.marker(marker.toString());
|
||||
verify.verifyQuickInfoDisplayParts("var", "", { start: test.markerByName(marker.toString()).position, length: instanceName.length },
|
||||
[{ text: "var", kind: "keyword" },
|
||||
{ text: " ", kind: "space" }, { text: instanceName, kind: "localName" }, { text: ":", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: enumName, kind: "enumName" }],
|
||||
[]);
|
||||
}
|
||||
}
|
||||
|
||||
verifyEnumDeclaration("E", "eInstance");
|
||||
verifyEnumDeclaration("constE", "eInstance1", /*isConst*/ true);
|
||||
@@ -0,0 +1,80 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////enum /*1*/E {
|
||||
//// /*2*/"e1",
|
||||
//// /*3*/'e2' = 10,
|
||||
//// /*4*/"e3"
|
||||
////}
|
||||
////var /*5*/eInstance: /*6*/E;
|
||||
/////*7*/eInstance = /*8*/E[/*9*/"e1"];
|
||||
/////*10*/eInstance = /*11*/E[/*12*/"e2"];
|
||||
/////*13*/eInstance = /*14*/E[/*15*/'e3'];
|
||||
////const enum /*16*/constE {
|
||||
//// /*17*/"e1",
|
||||
//// /*18*/'e2' = 10,
|
||||
//// /*19*/"e3"
|
||||
////}
|
||||
////var /*20*/eInstance1: /*21*/constE;
|
||||
/////*22*/eInstance1 = /*23*/constE[/*24*/"e1"];
|
||||
/////*25*/eInstance1 = /*26*/constE[/*27*/"e2"];
|
||||
/////*28*/eInstance1 = /*29*/constE[/*30*/'e3'];
|
||||
|
||||
var marker = 0;
|
||||
function verifyEnumDeclaration(enumName: string, instanceName: string, isConst?: boolean) {
|
||||
verifyEnumDisplay();
|
||||
|
||||
verifyEnumMemberDisplay('"e1"', /*spanLength*/ 4, 0);
|
||||
verifyEnumMemberDisplay("'e2'", /*spanLength*/ 4, 10);
|
||||
verifyEnumMemberDisplay('"e3"', /*spanLength*/ 4, 11);
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
verifyEnumMemberDisplay('"e1"', /*spanLength*/ 4, 0);
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
verifyEnumMemberDisplay("'e2'", /*spanLength*/ 4, 10);
|
||||
|
||||
verifyInstance();
|
||||
verifyEnumDisplay();
|
||||
verifyEnumMemberDisplay('"e3"', /*spanLength*/ 4, 11);
|
||||
|
||||
function verifyEnumDisplay() {
|
||||
marker++;
|
||||
goTo.marker(marker.toString());
|
||||
verify.verifyQuickInfoDisplayParts("enum", "", { start: test.markerByName(marker.toString()).position, length: enumName.length },
|
||||
(isConst ? [{ text: "const", kind: "keyword" }, { text: " ", kind: "space" }] : []).concat(
|
||||
[{ text: "enum", kind: "keyword" }, { text: " ", kind: "space" }, { text: enumName, kind: "enumName" }]),
|
||||
[]);;
|
||||
}
|
||||
|
||||
function verifyEnumMemberDisplay(enumMemberName: string, spanLength: number, initializer: number) {
|
||||
marker++;
|
||||
goTo.marker(marker.toString());
|
||||
// Each of these names is a string literal,
|
||||
// but since they're accessed by property accesses,
|
||||
// we need to account for the quotes at the beginning and end.
|
||||
verify.verifyQuickInfoDisplayParts("var", "", { start: test.markerByName(marker.toString()).position, length: spanLength },
|
||||
[{ text: "(", kind: "punctuation" }, { text: "enum member", kind: "text" }, { text: ")", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: enumName, kind: "enumName" }, { text: "[", kind: "punctuation" }, { text: enumMemberName, kind: "stringLiteral" }, { text: "]", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: "=", kind: "operator" }, { text: " ", kind: "space" }, { text: initializer.toString(), kind: "numericLiteral" }],
|
||||
[]);
|
||||
}
|
||||
|
||||
function verifyInstance() {
|
||||
marker++;
|
||||
goTo.marker(marker.toString());
|
||||
verify.verifyQuickInfoDisplayParts("var", "", { start: test.markerByName(marker.toString()).position, length: instanceName.length },
|
||||
[{ text: "var", kind: "keyword" },
|
||||
{ text: " ", kind: "space" }, { text: instanceName, kind: "localName" }, { text: ":", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: enumName, kind: "enumName" }],
|
||||
[]);
|
||||
}
|
||||
}
|
||||
|
||||
verifyEnumDeclaration("E", "eInstance");
|
||||
marker = 15;
|
||||
//verifyEnumDeclaration("constE", "eInstance1", /*isConst*/ true);
|
||||
@@ -0,0 +1,49 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////class C {
|
||||
//// public /*1*/1() { }
|
||||
//// private /*2*/Infinity() { }
|
||||
//// protected /*3*/NaN() { }
|
||||
//// static /*4*/"stringLiteralName"() { }
|
||||
//// method() {
|
||||
//// this[/*5*/1]();
|
||||
//// this[/*6*/"1"]();
|
||||
//// this./*7*/Infinity();
|
||||
//// this[/*8*/"Infinity"]();
|
||||
//// this./*9*/NaN();
|
||||
//// C./*10*/stringLiteralName();
|
||||
//// }
|
||||
|
||||
verifyClassMethodWithElementAccessDisplay("1", "public", "1", "methodName", /*spanLength*/ "1".length);
|
||||
verifyClassMethodWithPropertyAccessDisplay("2", "private", "Infinity", /*spanLength*/ "Infinity".length);
|
||||
verifyClassMethodWithPropertyAccessDisplay("3", "protected", "NaN", /*spanLength*/ "NaN".length);
|
||||
verifyClassMethodWithElementAccessDisplay("4", "static", '"stringLiteralName"', "stringLiteral", /*spanLength*/ '"stringLiteralName"'.length);
|
||||
verifyClassMethodWithElementAccessDisplay("5", "public", "1", "methodName", /*spanLength*/ "1".length);
|
||||
verifyClassMethodWithElementAccessDisplay("6", "public", "1", "methodName", /*spanLength*/ "1".length + 2);
|
||||
verifyClassMethodWithPropertyAccessDisplay("7", "private", "Infinity", /*spanLength*/ "Infinity".length);
|
||||
verifyClassMethodWithPropertyAccessDisplay("8", "private", "Infinity", /*spanLength*/ "Infinity".length + 2);
|
||||
verifyClassMethodWithPropertyAccessDisplay("9", "protected", "NaN", /*spanLength*/ "NaN".length);
|
||||
verifyClassMethodWithElementAccessDisplay("10", "static", '"stringLiteralName"', "stringLiteral", /*spanLength*/ "stringLiteralName".length);
|
||||
|
||||
|
||||
function verifyClassMethodWithPropertyAccessDisplay(markerName: string, kindModifiers: string, methodName: string, spanLength: number) {
|
||||
goTo.marker(markerName);
|
||||
verify.verifyQuickInfoDisplayParts("method", kindModifiers, { start: test.markerByName(markerName).position, length: spanLength },
|
||||
[{ text: "(", kind: "punctuation" }, { text: "method", kind: "text" }, { text: ")", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" },
|
||||
{ text: "C", kind: "className" }, { text: ".", kind: "punctuation" }, { text: methodName, kind: "methodName" },
|
||||
{ text: "(", kind: "punctuation" }, { text: ")", kind: "punctuation" }, { text: ":", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: "void", kind: "keyword" }],
|
||||
[]);
|
||||
}
|
||||
|
||||
function verifyClassMethodWithElementAccessDisplay(markerName: string, kindModifiers: string, methodName: string, methodDisplay: "methodName" | "stringLiteral", spanLength: number) {
|
||||
goTo.marker(markerName);
|
||||
verify.verifyQuickInfoDisplayParts("method", kindModifiers, { start: test.markerByName(markerName).position, length: spanLength },
|
||||
[{ text: "(", kind: "punctuation" }, { text: "method", kind: "text" }, { text: ")", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" },
|
||||
{ text: "C", kind: "className" }, { text: "[", kind: "punctuation" }, { text: methodName, kind: methodDisplay }, { text: "]", kind: "punctuation" },
|
||||
{ text: "(", kind: "punctuation" }, { text: ")", kind: "punctuation" }, { text: ":", kind: "punctuation" },
|
||||
{ text: " ", kind: "space" }, { text: "void", kind: "keyword" }],
|
||||
[]);
|
||||
}
|
||||
Reference in new issue
Block a user