mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Emit the symbol information for declaration names (could be string literals and more)
This commit is contained in:
1 parent
421c927150
commit
271b47ce93
789 files changed
+3820
-119
No files matched your search
@@ -52,7 +52,7 @@ class TypeWriterWalker {
|
||||
}
|
||||
|
||||
private *visitNode(node: ts.Node, isSymbolWalk: boolean): IterableIterator<TypeWriterResult> {
|
||||
if (ts.isExpressionNode(node) || node.kind === ts.SyntaxKind.Identifier) {
|
||||
if (ts.isExpressionNode(node) || node.kind === ts.SyntaxKind.Identifier || ts.isDeclarationName(node)) {
|
||||
const result = this.writeTypeOrSymbol(node, isSymbolWalk);
|
||||
if (result) {
|
||||
yield result;
|
||||
@@ -122,4 +122,4 @@ class TypeWriterWalker {
|
||||
symbol: symbolString
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,5 +3,8 @@ class C {
|
||||
>C : Symbol(C, Decl(ClassDeclaration21.ts, 0, 0))
|
||||
|
||||
0();
|
||||
>0 : Symbol(C[0], Decl(ClassDeclaration21.ts, 0, 9))
|
||||
|
||||
1() { }
|
||||
>1 : Symbol(C[1], Decl(ClassDeclaration21.ts, 1, 8))
|
||||
}
|
||||
@@ -3,5 +3,8 @@ class C {
|
||||
>C : C
|
||||
|
||||
0();
|
||||
>0 : () => any
|
||||
|
||||
1() { }
|
||||
>1 : () => void
|
||||
}
|
||||
@@ -3,5 +3,8 @@ class C {
|
||||
>C : Symbol(C, Decl(ClassDeclaration22.ts, 0, 0))
|
||||
|
||||
"foo"();
|
||||
>"foo" : Symbol(C["foo"], Decl(ClassDeclaration22.ts, 0, 9))
|
||||
|
||||
"bar"() { }
|
||||
>"bar" : Symbol(C["bar"], Decl(ClassDeclaration22.ts, 1, 12))
|
||||
}
|
||||
@@ -3,5 +3,8 @@ class C {
|
||||
>C : C
|
||||
|
||||
"foo"();
|
||||
>"foo" : () => any
|
||||
|
||||
"bar"() { }
|
||||
>"bar" : () => void
|
||||
}
|
||||
@@ -19,6 +19,7 @@ var x: foo.A = foo.bar("hello"); // foo.A should be ok but foo.bar should be err
|
||||
|
||||
=== tests/cases/compiler/aliasOnMergedModuleInterface_0.ts ===
|
||||
declare module "foo"
|
||||
>"foo" : Symbol("foo", Decl(aliasOnMergedModuleInterface_0.ts, 0, 0))
|
||||
{
|
||||
module B {
|
||||
>B : Symbol(B, Decl(aliasOnMergedModuleInterface_0.ts, 1, 1), Decl(aliasOnMergedModuleInterface_0.ts, 5, 5))
|
||||
|
||||
@@ -26,6 +26,7 @@ var x: foo.A = foo.bar("hello"); // foo.A should be ok but foo.bar should be err
|
||||
|
||||
=== tests/cases/compiler/aliasOnMergedModuleInterface_0.ts ===
|
||||
declare module "foo"
|
||||
>"foo" : typeof "foo"
|
||||
{
|
||||
module B {
|
||||
>B : any
|
||||
|
||||
@@ -160,6 +160,8 @@ var q = M1.fn();
|
||||
// Ambient external module in the global module
|
||||
// Ambient external module with a string literal name that is a top level external module name
|
||||
declare module 'external1' {
|
||||
>'external1' : Symbol('external1', Decl(ambientDeclarations.ts, 67, 16))
|
||||
|
||||
var q;
|
||||
>q : Symbol(q, Decl(ambientDeclarations.ts, 72, 7))
|
||||
}
|
||||
|
||||
@@ -163,6 +163,8 @@ var q = M1.fn();
|
||||
// Ambient external module in the global module
|
||||
// Ambient external module with a string literal name that is a top level external module name
|
||||
declare module 'external1' {
|
||||
>'external1' : typeof 'external1'
|
||||
|
||||
var q;
|
||||
>q : any
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ var n: number;
|
||||
=== tests/cases/conformance/ambient/decls.ts ===
|
||||
// Ambient external module with export assignment
|
||||
declare module 'equ' {
|
||||
>'equ' : Symbol('equ', Decl(decls.ts, 0, 0))
|
||||
|
||||
var x;
|
||||
>x : Symbol(x, Decl(decls.ts, 2, 7))
|
||||
|
||||
@@ -28,6 +30,8 @@ declare module 'equ' {
|
||||
}
|
||||
|
||||
declare module 'equ2' {
|
||||
>'equ2' : Symbol('equ2', Decl(decls.ts, 4, 1))
|
||||
|
||||
var x: number;
|
||||
>x : Symbol(x, Decl(decls.ts, 7, 7))
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ var n: number;
|
||||
=== tests/cases/conformance/ambient/decls.ts ===
|
||||
// Ambient external module with export assignment
|
||||
declare module 'equ' {
|
||||
>'equ' : typeof 'equ'
|
||||
|
||||
var x;
|
||||
>x : any
|
||||
|
||||
@@ -28,6 +30,8 @@ declare module 'equ' {
|
||||
}
|
||||
|
||||
declare module 'equ2' {
|
||||
>'equ2' : typeof 'equ2'
|
||||
|
||||
var x: number;
|
||||
>x : number
|
||||
}
|
||||
|
||||
@@ -25,23 +25,31 @@ foo(fileText);
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations.d.ts ===
|
||||
declare module "foo*baz" {
|
||||
>"foo*baz" : Symbol("foo*baz", Decl(declarations.d.ts, 0, 0), Decl(declarations.d.ts, 2, 1))
|
||||
|
||||
export function foo(s: string): void;
|
||||
>foo : Symbol(foo, Decl(declarations.d.ts, 0, 26))
|
||||
>s : Symbol(s, Decl(declarations.d.ts, 1, 24))
|
||||
}
|
||||
// Augmentations still work
|
||||
declare module "foo*baz" {
|
||||
>"foo*baz" : Symbol("foo*baz", Decl(declarations.d.ts, 0, 0), Decl(declarations.d.ts, 2, 1))
|
||||
|
||||
export const baz: string;
|
||||
>baz : Symbol(baz, Decl(declarations.d.ts, 5, 16))
|
||||
}
|
||||
|
||||
// Longest prefix wins
|
||||
declare module "foos*" {
|
||||
>"foos*" : Symbol("foos*", Decl(declarations.d.ts, 6, 1))
|
||||
|
||||
export const foos: string;
|
||||
>foos : Symbol(foos, Decl(declarations.d.ts, 10, 16))
|
||||
}
|
||||
|
||||
declare module "*!text" {
|
||||
>"*!text" : Symbol("*!text", Decl(declarations.d.ts, 11, 1))
|
||||
|
||||
const x: string;
|
||||
>x : Symbol(x, Decl(declarations.d.ts, 14, 9))
|
||||
|
||||
|
||||
@@ -28,23 +28,31 @@ foo(fileText);
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations.d.ts ===
|
||||
declare module "foo*baz" {
|
||||
>"foo*baz" : typeof "foo*baz"
|
||||
|
||||
export function foo(s: string): void;
|
||||
>foo : (s: string) => void
|
||||
>s : string
|
||||
}
|
||||
// Augmentations still work
|
||||
declare module "foo*baz" {
|
||||
>"foo*baz" : typeof "foo*baz"
|
||||
|
||||
export const baz: string;
|
||||
>baz : string
|
||||
}
|
||||
|
||||
// Longest prefix wins
|
||||
declare module "foos*" {
|
||||
>"foos*" : typeof "foos*"
|
||||
|
||||
export const foos: string;
|
||||
>foos : string
|
||||
}
|
||||
|
||||
declare module "*!text" {
|
||||
>"*!text" : typeof "*!text"
|
||||
|
||||
const x: string;
|
||||
>x : string
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts ===
|
||||
declare module "too*many*asterisks" { }
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"too*many*asterisks" : Symbol("too*many*asterisks", Decl(ambientDeclarationsPatterns_tooManyAsterisks.ts, 0, 0))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/ambient/ambientDeclarationsPatterns_tooManyAsterisks.ts ===
|
||||
declare module "too*many*asterisks" { }
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"too*many*asterisks" : typeof "too*many*asterisks"
|
||||
|
||||
@@ -90,13 +90,17 @@ module M2 {
|
||||
>M2 : Symbol(M2, Decl(ambientErrors.ts, 42, 1))
|
||||
|
||||
declare module 'nope' { }
|
||||
>'nope' : Symbol('nope', Decl(ambientErrors.ts, 45, 11))
|
||||
}
|
||||
|
||||
// Ambient external module with a string literal name that isn't a top level external module name
|
||||
declare module '../foo' { }
|
||||
>'../foo' : Symbol('../foo', Decl(ambientErrors.ts, 47, 1))
|
||||
|
||||
// Ambient external module with export assignment and other exported members
|
||||
declare module 'bar' {
|
||||
>'bar' : Symbol('bar', Decl(ambientErrors.ts, 50, 27))
|
||||
|
||||
var n;
|
||||
>n : Symbol(n, Decl(ambientErrors.ts, 54, 7))
|
||||
|
||||
|
||||
@@ -97,13 +97,17 @@ module M2 {
|
||||
>M2 : any
|
||||
|
||||
declare module 'nope' { }
|
||||
>'nope' : typeof 'nope'
|
||||
}
|
||||
|
||||
// Ambient external module with a string literal name that isn't a top level external module name
|
||||
declare module '../foo' { }
|
||||
>'../foo' : typeof '../foo'
|
||||
|
||||
// Ambient external module with export assignment and other exported members
|
||||
declare module 'bar' {
|
||||
>'bar' : typeof 'bar'
|
||||
|
||||
var n;
|
||||
>n : any
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ export as namespace Foo2;
|
||||
=== tests/cases/compiler/indirection.d.ts ===
|
||||
/// <reference path="./foo.d.ts" />
|
||||
declare module "indirect" {
|
||||
>"indirect" : Symbol("indirect", Decl(indirection.d.ts, 0, 0))
|
||||
|
||||
export default typeof Foo.default;
|
||||
>Foo.default : Symbol(Foo.default, Decl(foo.d.ts, 0, 0))
|
||||
>Foo : Symbol(Foo, Decl(foo.d.ts, 0, 21))
|
||||
@@ -27,6 +29,8 @@ declare module "indirect" {
|
||||
=== tests/cases/compiler/indirection2.d.ts ===
|
||||
/// <reference path="./foo2.d.ts" />
|
||||
declare module "indirect2" {
|
||||
>"indirect2" : Symbol("indirect2", Decl(indirection2.d.ts, 0, 0))
|
||||
|
||||
export = typeof Foo2;
|
||||
>Foo2 : Symbol(Foo2, Decl(foo2.d.ts, 0, 15))
|
||||
}
|
||||
|
||||
@@ -26,6 +26,8 @@ export as namespace Foo2;
|
||||
=== tests/cases/compiler/indirection.d.ts ===
|
||||
/// <reference path="./foo.d.ts" />
|
||||
declare module "indirect" {
|
||||
>"indirect" : typeof "indirect"
|
||||
|
||||
export default typeof Foo.default;
|
||||
>typeof Foo.default : "string" | "number" | "boolean" | "symbol" | "undefined" | "object" | "function"
|
||||
>Foo.default : number
|
||||
@@ -36,6 +38,8 @@ declare module "indirect" {
|
||||
=== tests/cases/compiler/indirection2.d.ts ===
|
||||
/// <reference path="./foo2.d.ts" />
|
||||
declare module "indirect2" {
|
||||
>"indirect2" : typeof "indirect2"
|
||||
|
||||
export = typeof Foo2;
|
||||
>typeof Foo2 : "string" | "number" | "boolean" | "symbol" | "undefined" | "object" | "function"
|
||||
>Foo2 : number
|
||||
|
||||
@@ -6,6 +6,8 @@ export = D;
|
||||
>D : Symbol(D, Decl(ambientExternalModuleInAnotherExternalModule.ts, 0, 0))
|
||||
|
||||
declare module "ext" {
|
||||
>"ext" : Symbol("ext", Decl(ambientExternalModuleInAnotherExternalModule.ts, 1, 11))
|
||||
|
||||
export class C { }
|
||||
>C : Symbol(C, Decl(ambientExternalModuleInAnotherExternalModule.ts, 3, 22))
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ export = D;
|
||||
>D : D
|
||||
|
||||
declare module "ext" {
|
||||
>"ext" : typeof "ext"
|
||||
|
||||
export class C { }
|
||||
>C : C
|
||||
}
|
||||
|
||||
@@ -3,4 +3,5 @@ module M {
|
||||
>M : Symbol(M, Decl(ambientExternalModuleInsideNonAmbient.ts, 0, 0))
|
||||
|
||||
export declare module "M" { }
|
||||
>"M" : Symbol("M", Decl(ambientExternalModuleInsideNonAmbient.ts, 0, 10))
|
||||
}
|
||||
@@ -3,4 +3,5 @@ module M {
|
||||
>M : any
|
||||
|
||||
export declare module "M" { }
|
||||
>"M" : typeof "M"
|
||||
}
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
=== tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts ===
|
||||
export declare module "M" { }
|
||||
No type information for this code.
|
||||
>"M" : Symbol("M", Decl(ambientExternalModuleInsideNonAmbientExternalModule.ts, 0, 0))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
=== tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts ===
|
||||
export declare module "M" { }
|
||||
No type information for this code.
|
||||
>"M" : any
|
||||
|
||||
@@ -17,12 +17,16 @@ var y = M.y;
|
||||
|
||||
=== tests/cases/conformance/ambient/ambientExternalModuleMerging_declare.ts ===
|
||||
declare module "M" {
|
||||
>"M" : Symbol("M", Decl(ambientExternalModuleMerging_declare.ts, 0, 0), Decl(ambientExternalModuleMerging_declare.ts, 2, 1))
|
||||
|
||||
export var x: string;
|
||||
>x : Symbol(x, Decl(ambientExternalModuleMerging_declare.ts, 1, 14))
|
||||
}
|
||||
|
||||
// Merge
|
||||
declare module "M" {
|
||||
>"M" : Symbol("M", Decl(ambientExternalModuleMerging_declare.ts, 0, 0), Decl(ambientExternalModuleMerging_declare.ts, 2, 1))
|
||||
|
||||
export var y: string;
|
||||
>y : Symbol(y, Decl(ambientExternalModuleMerging_declare.ts, 6, 14))
|
||||
}
|
||||
@@ -17,12 +17,16 @@ var y = M.y;
|
||||
|
||||
=== tests/cases/conformance/ambient/ambientExternalModuleMerging_declare.ts ===
|
||||
declare module "M" {
|
||||
>"M" : typeof "M"
|
||||
|
||||
export var x: string;
|
||||
>x : string
|
||||
}
|
||||
|
||||
// Merge
|
||||
declare module "M" {
|
||||
>"M" : typeof "M"
|
||||
|
||||
export var y: string;
|
||||
>y : string
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
=== tests/cases/compiler/ambientExternalModuleReopen.ts ===
|
||||
declare module "fs" {
|
||||
>"fs" : Symbol("fs", Decl(ambientExternalModuleReopen.ts, 0, 0), Decl(ambientExternalModuleReopen.ts, 2, 1))
|
||||
|
||||
var x: string;
|
||||
>x : Symbol(x, Decl(ambientExternalModuleReopen.ts, 1, 7))
|
||||
}
|
||||
declare module 'fs' {
|
||||
>'fs' : Symbol("fs", Decl(ambientExternalModuleReopen.ts, 0, 0), Decl(ambientExternalModuleReopen.ts, 2, 1))
|
||||
|
||||
var y: number;
|
||||
>y : Symbol(y, Decl(ambientExternalModuleReopen.ts, 4, 7))
|
||||
}
|
||||
@@ -1,9 +1,13 @@
|
||||
=== tests/cases/compiler/ambientExternalModuleReopen.ts ===
|
||||
declare module "fs" {
|
||||
>"fs" : typeof "fs"
|
||||
|
||||
var x: string;
|
||||
>x : string
|
||||
}
|
||||
declare module 'fs' {
|
||||
>'fs' : typeof "fs"
|
||||
|
||||
var y: number;
|
||||
>y : number
|
||||
}
|
||||
@@ -9,6 +9,8 @@ var c = new A();
|
||||
|
||||
=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts ===
|
||||
declare module 'M' {
|
||||
>'M' : Symbol('M', Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 0))
|
||||
|
||||
module C {
|
||||
>C : Symbol(C, Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithInternalImportDeclaration_0.ts, 3, 5))
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ var c = new A();
|
||||
|
||||
=== tests/cases/compiler/ambientExternalModuleWithInternalImportDeclaration_0.ts ===
|
||||
declare module 'M' {
|
||||
>'M' : typeof 'M'
|
||||
|
||||
module C {
|
||||
>C : typeof C
|
||||
|
||||
|
||||
+2
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts ===
|
||||
declare module "OuterModule" {
|
||||
>"OuterModule" : Symbol("OuterModule", Decl(ambientExternalModuleWithRelativeExternalImportDeclaration.ts, 0, 0))
|
||||
|
||||
import m2 = require("./SubModule");
|
||||
>m2 : Symbol(m2, Decl(ambientExternalModuleWithRelativeExternalImportDeclaration.ts, 0, 30))
|
||||
|
||||
|
||||
+2
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/ambientExternalModuleWithRelativeExternalImportDeclaration.ts ===
|
||||
declare module "OuterModule" {
|
||||
>"OuterModule" : typeof "OuterModule"
|
||||
|
||||
import m2 = require("./SubModule");
|
||||
>m2 : any
|
||||
|
||||
|
||||
@@ -1,10 +1,14 @@
|
||||
=== tests/cases/compiler/ambientExternalModuleWithRelativeModuleName.ts ===
|
||||
declare module "./relativeModule" {
|
||||
>"./relativeModule" : Symbol("./relativeModule", Decl(ambientExternalModuleWithRelativeModuleName.ts, 0, 0))
|
||||
|
||||
var x: string;
|
||||
>x : Symbol(x, Decl(ambientExternalModuleWithRelativeModuleName.ts, 1, 7))
|
||||
}
|
||||
|
||||
declare module ".\\relativeModule" {
|
||||
>".\\relativeModule" : Symbol(".\\relativeModule", Decl(ambientExternalModuleWithRelativeModuleName.ts, 2, 1))
|
||||
|
||||
var x: string;
|
||||
>x : Symbol(x, Decl(ambientExternalModuleWithRelativeModuleName.ts, 5, 7))
|
||||
}
|
||||
@@ -1,10 +1,14 @@
|
||||
=== tests/cases/compiler/ambientExternalModuleWithRelativeModuleName.ts ===
|
||||
declare module "./relativeModule" {
|
||||
>"./relativeModule" : typeof "./relativeModule"
|
||||
|
||||
var x: string;
|
||||
>x : string
|
||||
}
|
||||
|
||||
declare module ".\\relativeModule" {
|
||||
>".\\relativeModule" : typeof ".\\relativeModule"
|
||||
|
||||
var x: string;
|
||||
>x : string
|
||||
}
|
||||
+2
@@ -9,6 +9,8 @@ var c = new A();
|
||||
|
||||
=== tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_0.ts ===
|
||||
declare module 'M' {
|
||||
>'M' : Symbol('M', Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 0))
|
||||
|
||||
module C {
|
||||
>C : Symbol(C, Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 0, 20), Decl(ambientExternalModuleWithoutInternalImportDeclaration_0.ts, 3, 5))
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ var c = new A();
|
||||
|
||||
=== tests/cases/compiler/ambientExternalModuleWithoutInternalImportDeclaration_0.ts ===
|
||||
declare module 'M' {
|
||||
>'M' : typeof 'M'
|
||||
|
||||
module C {
|
||||
>C : typeof C
|
||||
|
||||
|
||||
@@ -18,6 +18,8 @@ declare function require(moduleName: string): any;
|
||||
>moduleName : Symbol(moduleName, Decl(node.d.ts, 0, 25))
|
||||
|
||||
declare module "fs" {
|
||||
>"fs" : Symbol("fs", Decl(node.d.ts, 0, 50))
|
||||
|
||||
export function readFileSync(s: string): string;
|
||||
>readFileSync : Symbol(readFileSync, Decl(node.d.ts, 2, 21))
|
||||
>s : Symbol(s, Decl(node.d.ts, 3, 33))
|
||||
|
||||
@@ -21,6 +21,8 @@ declare function require(moduleName: string): any;
|
||||
>moduleName : string
|
||||
|
||||
declare module "fs" {
|
||||
>"fs" : typeof "fs"
|
||||
|
||||
export function readFileSync(s: string): string;
|
||||
>readFileSync : (s: string) => string
|
||||
>s : string
|
||||
|
||||
@@ -18,7 +18,9 @@ foo(bar, baz, boom);
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations.d.ts ===
|
||||
declare module "jquery"
|
||||
No type information for this code.// Semicolon is optional
|
||||
No type information for this code.declare module "fs";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"jquery" : Symbol("jquery", Decl(declarations.d.ts, 0, 0))
|
||||
|
||||
// Semicolon is optional
|
||||
declare module "fs";
|
||||
>"fs" : Symbol("fs", Decl(declarations.d.ts, 0, 23))
|
||||
|
||||
@@ -19,7 +19,9 @@ foo(bar, baz, boom);
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations.d.ts ===
|
||||
declare module "jquery"
|
||||
No type information for this code.// Semicolon is optional
|
||||
No type information for this code.declare module "fs";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"jquery" : any
|
||||
|
||||
// Semicolon is optional
|
||||
declare module "fs";
|
||||
>"fs" : any
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/ambient/ambientShorthand_declarationEmit.ts ===
|
||||
declare module "foo";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"foo" : Symbol("foo", Decl(ambientShorthand_declarationEmit.ts, 0, 0))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
=== tests/cases/conformance/ambient/ambientShorthand_declarationEmit.ts ===
|
||||
declare module "foo";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"foo" : any
|
||||
|
||||
@@ -6,5 +6,5 @@ import foo from "foo";
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations1.d.ts ===
|
||||
declare module "foo";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"foo" : Symbol("foo", Decl(declarations1.d.ts, 0, 0))
|
||||
|
||||
@@ -6,5 +6,5 @@ import foo from "foo";
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations1.d.ts ===
|
||||
declare module "foo";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"foo" : any
|
||||
|
||||
@@ -7,5 +7,5 @@ import foo, {bar} from "foo";
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations1.d.ts ===
|
||||
declare module "foo";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"foo" : Symbol("foo", Decl(declarations1.d.ts, 0, 0))
|
||||
|
||||
@@ -7,5 +7,5 @@ import foo, {bar} from "foo";
|
||||
|
||||
=== tests/cases/conformance/ambient/declarations1.d.ts ===
|
||||
declare module "foo";
|
||||
No type information for this code.
|
||||
No type information for this code.
|
||||
>"foo" : any
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
=== tests/cases/conformance/ambient/declarations.d.ts ===
|
||||
declare module "jquery";
|
||||
No type information for this code.
|
||||
No type information for this code.=== tests/cases/conformance/ambient/reExportX.ts ===
|
||||
>"jquery" : Symbol("jquery", Decl(declarations.d.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/ambient/reExportX.ts ===
|
||||
export {x} from "jquery";
|
||||
>x : Symbol(x, Decl(reExportX.ts, 0, 8))
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
=== tests/cases/conformance/ambient/declarations.d.ts ===
|
||||
declare module "jquery";
|
||||
No type information for this code.
|
||||
No type information for this code.=== tests/cases/conformance/ambient/reExportX.ts ===
|
||||
>"jquery" : any
|
||||
|
||||
=== tests/cases/conformance/ambient/reExportX.ts ===
|
||||
export {x} from "jquery";
|
||||
>x : any
|
||||
|
||||
|
||||
@@ -4,7 +4,11 @@ interface StrNum extends Array<string|number> {
|
||||
>Array : Symbol(Array, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
0: string;
|
||||
>0 : Symbol(StrNum[0], Decl(arityAndOrderCompatibility01.ts, 0, 47))
|
||||
|
||||
1: number;
|
||||
>1 : Symbol(StrNum[1], Decl(arityAndOrderCompatibility01.ts, 1, 14))
|
||||
|
||||
length: 2;
|
||||
>length : Symbol(StrNum.length, Decl(arityAndOrderCompatibility01.ts, 2, 14))
|
||||
}
|
||||
@@ -20,7 +24,11 @@ var z: {
|
||||
>z : Symbol(z, Decl(arityAndOrderCompatibility01.ts, 8, 3))
|
||||
|
||||
0: string;
|
||||
>0 : Symbol(0, Decl(arityAndOrderCompatibility01.ts, 8, 8))
|
||||
|
||||
1: number;
|
||||
>1 : Symbol(1, Decl(arityAndOrderCompatibility01.ts, 9, 14))
|
||||
|
||||
length: 2;
|
||||
>length : Symbol(length, Decl(arityAndOrderCompatibility01.ts, 10, 14))
|
||||
}
|
||||
|
||||
@@ -4,7 +4,11 @@ interface StrNum extends Array<string|number> {
|
||||
>Array : T[]
|
||||
|
||||
0: string;
|
||||
>0 : string
|
||||
|
||||
1: number;
|
||||
>1 : number
|
||||
|
||||
length: 2;
|
||||
>length : 2
|
||||
}
|
||||
@@ -20,7 +24,11 @@ var z: {
|
||||
>z : { 0: string; 1: number; length: 2; }
|
||||
|
||||
0: string;
|
||||
>0 : string
|
||||
|
||||
1: number;
|
||||
>1 : number
|
||||
|
||||
length: 2;
|
||||
>length : 2
|
||||
}
|
||||
|
||||
@@ -38,7 +38,10 @@ interface tup {
|
||||
>tup : Symbol(tup, Decl(arrayLiterals3.ts, 23, 67))
|
||||
|
||||
0: number[]|string[];
|
||||
>0 : Symbol(tup[0], Decl(arrayLiterals3.ts, 25, 15))
|
||||
|
||||
1: number[]|string[];
|
||||
>1 : Symbol(tup[1], Decl(arrayLiterals3.ts, 26, 25))
|
||||
}
|
||||
interface myArray extends Array<Number> { }
|
||||
>myArray : Symbol(myArray, Decl(arrayLiterals3.ts, 28, 1))
|
||||
|
||||
@@ -64,7 +64,10 @@ interface tup {
|
||||
>tup : tup
|
||||
|
||||
0: number[]|string[];
|
||||
>0 : number[] | string[]
|
||||
|
||||
1: number[]|string[];
|
||||
>1 : number[] | string[]
|
||||
}
|
||||
interface myArray extends Array<Number> { }
|
||||
>myArray : myArray
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
class S { 1: string; }
|
||||
>S : Symbol(S, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 0, 0))
|
||||
>1 : Symbol(S[1], Decl(assignmentCompatWithObjectMembersNumericNames.ts, 3, 9))
|
||||
|
||||
class T { 1.: string; }
|
||||
>T : Symbol(T, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 3, 22))
|
||||
>1. : Symbol(T[1.], Decl(assignmentCompatWithObjectMembersNumericNames.ts, 4, 9))
|
||||
|
||||
var s: S;
|
||||
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3))
|
||||
@@ -18,10 +20,12 @@ var t: T;
|
||||
|
||||
interface S2 { 1: string; bar?: string }
|
||||
>S2 : Symbol(S2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 6, 9))
|
||||
>1 : Symbol(S2[1], Decl(assignmentCompatWithObjectMembersNumericNames.ts, 8, 14))
|
||||
>bar : Symbol(S2.bar, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 8, 25))
|
||||
|
||||
interface T2 { 1.0: string; baz?: string }
|
||||
>T2 : Symbol(T2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 8, 40))
|
||||
>1.0 : Symbol(T2[1.0], Decl(assignmentCompatWithObjectMembersNumericNames.ts, 9, 14))
|
||||
>baz : Symbol(T2.baz, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 9, 27))
|
||||
|
||||
var s2: S2;
|
||||
@@ -34,17 +38,21 @@ var t2: T2;
|
||||
|
||||
var a: { 1.: string; bar?: string }
|
||||
>a : Symbol(a, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 3))
|
||||
>1. : Symbol(1., Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 8))
|
||||
>bar : Symbol(bar, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 13, 20))
|
||||
|
||||
var b: { 1.0: string; baz?: string }
|
||||
>b : Symbol(b, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 3))
|
||||
>1.0 : Symbol(1.0, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 8))
|
||||
>baz : Symbol(baz, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 14, 21))
|
||||
|
||||
var a2 = { 1.0: '' };
|
||||
>a2 : Symbol(a2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 3))
|
||||
>1.0 : Symbol(1.0, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 16, 10))
|
||||
|
||||
var b2 = { 1: '' };
|
||||
>b2 : Symbol(b2, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 17, 3))
|
||||
>1 : Symbol(1, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 17, 10))
|
||||
|
||||
s = t;
|
||||
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersNumericNames.ts, 5, 3))
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
|
||||
class S { 1: string; }
|
||||
>S : S
|
||||
>1 : string
|
||||
|
||||
class T { 1.: string; }
|
||||
>T : T
|
||||
>1. : string
|
||||
|
||||
var s: S;
|
||||
>s : S
|
||||
@@ -18,10 +20,12 @@ var t: T;
|
||||
|
||||
interface S2 { 1: string; bar?: string }
|
||||
>S2 : S2
|
||||
>1 : string
|
||||
>bar : string
|
||||
|
||||
interface T2 { 1.0: string; baz?: string }
|
||||
>T2 : T2
|
||||
>1.0 : string
|
||||
>baz : string
|
||||
|
||||
var s2: S2;
|
||||
@@ -34,20 +38,24 @@ var t2: T2;
|
||||
|
||||
var a: { 1.: string; bar?: string }
|
||||
>a : { 1.: string; bar?: string; }
|
||||
>1. : string
|
||||
>bar : string
|
||||
|
||||
var b: { 1.0: string; baz?: string }
|
||||
>b : { 1.0: string; baz?: string; }
|
||||
>1.0 : string
|
||||
>baz : string
|
||||
|
||||
var a2 = { 1.0: '' };
|
||||
>a2 : { 1.0: string; }
|
||||
>{ 1.0: '' } : { 1.0: string; }
|
||||
>1.0 : string
|
||||
>'' : ""
|
||||
|
||||
var b2 = { 1: '' };
|
||||
>b2 : { 1: string; }
|
||||
>{ 1: '' } : { 1: string; }
|
||||
>1 : string
|
||||
>'' : ""
|
||||
|
||||
s = t;
|
||||
|
||||
@@ -7,9 +7,11 @@ module JustStrings {
|
||||
|
||||
class S { '1': string; }
|
||||
>S : Symbol(S, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 3, 20))
|
||||
>'1' : Symbol(S['1'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 4, 13))
|
||||
|
||||
class T { '1.': string; }
|
||||
>T : Symbol(T, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 4, 28))
|
||||
>'1.' : Symbol(T['1.'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 5, 13))
|
||||
|
||||
var s: S;
|
||||
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 6, 7))
|
||||
@@ -21,10 +23,12 @@ module JustStrings {
|
||||
|
||||
interface S2 { '1': string; bar?: string }
|
||||
>S2 : Symbol(S2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 7, 13))
|
||||
>'1' : Symbol(S2['1'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 9, 18))
|
||||
>bar : Symbol(S2.bar, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 9, 31))
|
||||
|
||||
interface T2 { '1.0': string; baz?: string }
|
||||
>T2 : Symbol(T2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 9, 46))
|
||||
>'1.0' : Symbol(T2['1.0'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 18))
|
||||
>baz : Symbol(T2.baz, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 10, 33))
|
||||
|
||||
var s2: S2;
|
||||
@@ -37,17 +41,21 @@ module JustStrings {
|
||||
|
||||
var a: { '1.': string; bar?: string }
|
||||
>a : Symbol(a, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 14, 7))
|
||||
>'1.' : Symbol('1.', Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 14, 12))
|
||||
>bar : Symbol(bar, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 14, 26))
|
||||
|
||||
var b: { '1.0': string; baz?: string }
|
||||
>b : Symbol(b, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 15, 7))
|
||||
>'1.0' : Symbol('1.0', Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 15, 12))
|
||||
>baz : Symbol(baz, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 15, 27))
|
||||
|
||||
var a2 = { '1.0': '' };
|
||||
>a2 : Symbol(a2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 17, 7))
|
||||
>'1.0' : Symbol('1.0', Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 17, 14))
|
||||
|
||||
var b2 = { '1': '' };
|
||||
>b2 : Symbol(b2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 18, 7))
|
||||
>'1' : Symbol('1', Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 18, 14))
|
||||
|
||||
s = t;
|
||||
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 6, 7))
|
||||
@@ -131,9 +139,11 @@ module NumbersAndStrings {
|
||||
|
||||
class S { '1': string; }
|
||||
>S : Symbol(S, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 44, 26))
|
||||
>'1' : Symbol(S['1'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 45, 13))
|
||||
|
||||
class T { 1: string; }
|
||||
>T : Symbol(T, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 45, 28))
|
||||
>1 : Symbol(T[1], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 46, 13))
|
||||
|
||||
var s: S;
|
||||
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 47, 7))
|
||||
@@ -145,10 +155,12 @@ module NumbersAndStrings {
|
||||
|
||||
interface S2 { '1': string; bar?: string }
|
||||
>S2 : Symbol(S2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 48, 13))
|
||||
>'1' : Symbol(S2['1'], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 50, 18))
|
||||
>bar : Symbol(S2.bar, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 50, 31))
|
||||
|
||||
interface T2 { 1.0: string; baz?: string }
|
||||
>T2 : Symbol(T2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 50, 46))
|
||||
>1.0 : Symbol(T2[1.0], Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 51, 18))
|
||||
>baz : Symbol(T2.baz, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 51, 31))
|
||||
|
||||
var s2: S2;
|
||||
@@ -161,17 +173,21 @@ module NumbersAndStrings {
|
||||
|
||||
var a: { '1.': string; bar?: string }
|
||||
>a : Symbol(a, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 55, 7))
|
||||
>'1.' : Symbol('1.', Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 55, 12))
|
||||
>bar : Symbol(bar, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 55, 26))
|
||||
|
||||
var b: { 1.0: string; baz?: string }
|
||||
>b : Symbol(b, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 56, 7))
|
||||
>1.0 : Symbol(1.0, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 56, 12))
|
||||
>baz : Symbol(baz, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 56, 25))
|
||||
|
||||
var a2 = { '1.0': '' };
|
||||
>a2 : Symbol(a2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 58, 7))
|
||||
>'1.0' : Symbol('1.0', Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 58, 14))
|
||||
|
||||
var b2 = { 1.: '' };
|
||||
>b2 : Symbol(b2, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 59, 7))
|
||||
>1. : Symbol(1., Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 59, 14))
|
||||
|
||||
s = t; // ok
|
||||
>s : Symbol(s, Decl(assignmentCompatWithObjectMembersStringNumericNames.ts, 47, 7))
|
||||
|
||||
@@ -7,9 +7,11 @@ module JustStrings {
|
||||
|
||||
class S { '1': string; }
|
||||
>S : S
|
||||
>'1' : string
|
||||
|
||||
class T { '1.': string; }
|
||||
>T : T
|
||||
>'1.' : string
|
||||
|
||||
var s: S;
|
||||
>s : S
|
||||
@@ -21,10 +23,12 @@ module JustStrings {
|
||||
|
||||
interface S2 { '1': string; bar?: string }
|
||||
>S2 : S2
|
||||
>'1' : string
|
||||
>bar : string
|
||||
|
||||
interface T2 { '1.0': string; baz?: string }
|
||||
>T2 : T2
|
||||
>'1.0' : string
|
||||
>baz : string
|
||||
|
||||
var s2: S2;
|
||||
@@ -37,20 +41,24 @@ module JustStrings {
|
||||
|
||||
var a: { '1.': string; bar?: string }
|
||||
>a : { '1.': string; bar?: string; }
|
||||
>'1.' : string
|
||||
>bar : string
|
||||
|
||||
var b: { '1.0': string; baz?: string }
|
||||
>b : { '1.0': string; baz?: string; }
|
||||
>'1.0' : string
|
||||
>baz : string
|
||||
|
||||
var a2 = { '1.0': '' };
|
||||
>a2 : { '1.0': string; }
|
||||
>{ '1.0': '' } : { '1.0': string; }
|
||||
>'1.0' : string
|
||||
>'' : ""
|
||||
|
||||
var b2 = { '1': '' };
|
||||
>b2 : { '1': string; }
|
||||
>{ '1': '' } : { '1': string; }
|
||||
>'1' : string
|
||||
>'' : ""
|
||||
|
||||
s = t;
|
||||
@@ -154,9 +162,11 @@ module NumbersAndStrings {
|
||||
|
||||
class S { '1': string; }
|
||||
>S : S
|
||||
>'1' : string
|
||||
|
||||
class T { 1: string; }
|
||||
>T : T
|
||||
>1 : string
|
||||
|
||||
var s: S;
|
||||
>s : S
|
||||
@@ -168,10 +178,12 @@ module NumbersAndStrings {
|
||||
|
||||
interface S2 { '1': string; bar?: string }
|
||||
>S2 : S2
|
||||
>'1' : string
|
||||
>bar : string
|
||||
|
||||
interface T2 { 1.0: string; baz?: string }
|
||||
>T2 : T2
|
||||
>1.0 : string
|
||||
>baz : string
|
||||
|
||||
var s2: S2;
|
||||
@@ -184,20 +196,24 @@ module NumbersAndStrings {
|
||||
|
||||
var a: { '1.': string; bar?: string }
|
||||
>a : { '1.': string; bar?: string; }
|
||||
>'1.' : string
|
||||
>bar : string
|
||||
|
||||
var b: { 1.0: string; baz?: string }
|
||||
>b : { 1.0: string; baz?: string; }
|
||||
>1.0 : string
|
||||
>baz : string
|
||||
|
||||
var a2 = { '1.0': '' };
|
||||
>a2 : { '1.0': string; }
|
||||
>{ '1.0': '' } : { '1.0': string; }
|
||||
>'1.0' : string
|
||||
>'' : ""
|
||||
|
||||
var b2 = { 1.: '' };
|
||||
>b2 : { 1.: string; }
|
||||
>{ 1.: '' } : { 1.: string; }
|
||||
>1. : string
|
||||
>'' : ""
|
||||
|
||||
s = t; // ok
|
||||
|
||||
@@ -20,6 +20,8 @@ import x = require("./file1");
|
||||
// augmentation for './file1'
|
||||
// should error since './file1' does not have namespace meaning
|
||||
declare module "./file1" {
|
||||
>"./file1" : Symbol("./file1", Decl(file2.ts, 0, 30))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 4, 26))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 5, 17))
|
||||
|
||||
@@ -23,6 +23,8 @@ import x = require("./file1");
|
||||
// augmentation for './file1'
|
||||
// should error since './file1' does not have namespace meaning
|
||||
declare module "./file1" {
|
||||
>"./file1" : any
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -8,6 +8,8 @@ let a: x.A; // should not work
|
||||
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
var x: number;
|
||||
>x : Symbol(x, Decl(file1.d.ts, 1, 7))
|
||||
|
||||
@@ -23,6 +25,8 @@ import x = require("file1");
|
||||
// augmentation for 'file1'
|
||||
// should error since 'file1' does not have namespace meaning
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file2.ts, 1, 28))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 5, 24))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 6, 17))
|
||||
|
||||
@@ -10,6 +10,8 @@ let a: x.A; // should not work
|
||||
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : typeof "file1"
|
||||
|
||||
var x: number;
|
||||
>x : number
|
||||
|
||||
@@ -25,6 +27,8 @@ import x = require("file1");
|
||||
// augmentation for 'file1'
|
||||
// should error since 'file1' does not have namespace meaning
|
||||
declare module "file1" {
|
||||
>"file1" : any
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -19,6 +19,8 @@ import x = require("./file1");
|
||||
|
||||
// should error since './file1' does not have namespace meaning
|
||||
declare module "./file1" {
|
||||
>"./file1" : Symbol("./file1", Decl(file2.ts, 0, 30))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 3, 26))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 4, 17))
|
||||
|
||||
@@ -21,6 +21,8 @@ import x = require("./file1");
|
||||
|
||||
// should error since './file1' does not have namespace meaning
|
||||
declare module "./file1" {
|
||||
>"./file1" : any
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -8,6 +8,8 @@ let a: x.A; // should not work
|
||||
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
function foo(): void;
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24))
|
||||
|
||||
@@ -22,6 +24,8 @@ import x = require("file1");
|
||||
|
||||
// should error since './file1' does not have namespace meaning
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file2.ts, 1, 28))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 4, 24))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 5, 17))
|
||||
|
||||
@@ -10,6 +10,8 @@ let a: x.A; // should not work
|
||||
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : typeof "file1"
|
||||
|
||||
function foo(): void;
|
||||
>foo : () => void
|
||||
|
||||
@@ -24,6 +26,8 @@ import x = require("file1");
|
||||
|
||||
// should error since './file1' does not have namespace meaning
|
||||
declare module "file1" {
|
||||
>"file1" : any
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -22,6 +22,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "./file1" {
|
||||
>"./file1" : Symbol(x, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 17), Decl(file2.ts, 1, 8))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 4, 26))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 5, 17))
|
||||
|
||||
@@ -25,6 +25,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "./file1" {
|
||||
>"./file1" : typeof x
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
function foo(): void;
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 25), Decl(file2.ts, 2, 8))
|
||||
|
||||
@@ -26,6 +28,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol(x, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 25), Decl(file2.ts, 2, 8))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 5, 24))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 6, 17))
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : typeof "file1"
|
||||
|
||||
function foo(): void;
|
||||
>foo : typeof foo
|
||||
|
||||
@@ -28,6 +30,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "file1" {
|
||||
>"file1" : typeof x
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -22,6 +22,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "./file1" {
|
||||
>"./file1" : Symbol(x, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 8))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 4, 26))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 5, 17))
|
||||
|
||||
@@ -25,6 +25,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "./file1" {
|
||||
>"./file1" : typeof x
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
class foo {}
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 2, 8))
|
||||
|
||||
@@ -26,6 +28,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol(x, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 2, 8))
|
||||
|
||||
interface A { a }
|
||||
>A : Symbol(A, Decl(file2.ts, 5, 24))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 6, 17))
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : typeof "file1"
|
||||
|
||||
class foo {}
|
||||
>foo : foo
|
||||
|
||||
@@ -28,6 +30,8 @@ x.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "file1" {
|
||||
>"file1" : typeof x
|
||||
|
||||
interface A { a }
|
||||
>A : A
|
||||
>a : any
|
||||
|
||||
@@ -13,6 +13,8 @@ declare module Express {
|
||||
}
|
||||
|
||||
declare module "express" {
|
||||
>"express" : Symbol("express", Decl(express.d.ts, 4, 1))
|
||||
|
||||
function e(): e.Express;
|
||||
>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29))
|
||||
>e : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28))
|
||||
@@ -167,6 +169,8 @@ import * as e from "express";
|
||||
>e : Symbol(e, Decl(augmentation.ts, 1, 6))
|
||||
|
||||
declare module "express" {
|
||||
>"express" : Symbol(e, Decl(express.d.ts, 6, 26), Decl(express.d.ts, 7, 28), Decl(augmentation.ts, 1, 29))
|
||||
|
||||
interface Request {
|
||||
>Request : Symbol(Request, Decl(express.d.ts, 25, 49), Decl(augmentation.ts, 2, 26))
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ declare module Express {
|
||||
}
|
||||
|
||||
declare module "express" {
|
||||
>"express" : typeof "express"
|
||||
|
||||
function e(): e.Express;
|
||||
>e : typeof e
|
||||
>e : any
|
||||
@@ -167,6 +169,8 @@ import * as e from "express";
|
||||
>e : typeof e
|
||||
|
||||
declare module "express" {
|
||||
>"express" : typeof e
|
||||
|
||||
interface Request {
|
||||
>Request : Request
|
||||
|
||||
|
||||
@@ -28,6 +28,8 @@ x.B.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "./file1" {
|
||||
>"./file1" : Symbol(x, Decl(file1.ts, 0, 0), Decl(file1.ts, 0, 12), Decl(file2.ts, 1, 10))
|
||||
|
||||
interface A { a: number }
|
||||
>A : Symbol(A, Decl(file1.ts, 1, 15), Decl(file2.ts, 4, 26))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 5, 17))
|
||||
|
||||
@@ -30,6 +30,8 @@ x.B.b = 1;
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "./file1" {
|
||||
>"./file1" : typeof x
|
||||
|
||||
interface A { a: number }
|
||||
>A : A
|
||||
>a : number
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol("file1", Decl(file1.d.ts, 0, 0))
|
||||
|
||||
class foo {}
|
||||
>foo : Symbol(foo, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 1, 28))
|
||||
|
||||
@@ -21,6 +23,8 @@ import x = require("file1");
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "file1" {
|
||||
>"file1" : Symbol(x, Decl(file1.d.ts, 0, 24), Decl(file1.d.ts, 1, 16), Decl(file2.ts, 1, 28))
|
||||
|
||||
interface A { a: number }
|
||||
>A : Symbol(A, Decl(file1.d.ts, 2, 19), Decl(file2.ts, 4, 24))
|
||||
>a : Symbol(A.a, Decl(file2.ts, 5, 17))
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
=== tests/cases/compiler/file1.d.ts ===
|
||||
declare module "file1" {
|
||||
>"file1" : typeof "file1"
|
||||
|
||||
class foo {}
|
||||
>foo : foo
|
||||
|
||||
@@ -21,6 +23,8 @@ import x = require("file1");
|
||||
|
||||
// OK - './file1' is a namespace
|
||||
declare module "file1" {
|
||||
>"file1" : typeof x
|
||||
|
||||
interface A { a: number }
|
||||
>A : A
|
||||
>a : number
|
||||
|
||||
@@ -13,6 +13,8 @@ import * as lib from "lib";
|
||||
>lib : Symbol(lib, Decl(index.d.ts, 0, 6))
|
||||
|
||||
declare module "lib" {
|
||||
>"lib" : Symbol("lib", Decl(index.d.ts, 0, 27))
|
||||
|
||||
export function fn(): void;
|
||||
>fn : Symbol(fn, Decl(index.d.ts, 1, 22))
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ import * as lib from "lib";
|
||||
>lib : () => void
|
||||
|
||||
declare module "lib" {
|
||||
>"lib" : typeof "lib"
|
||||
|
||||
export function fn(): void;
|
||||
>fn : () => void
|
||||
}
|
||||
|
||||
@@ -6,9 +6,12 @@ import * as http from 'intern/dojo/node!http';
|
||||
|
||||
=== tests/cases/compiler/a.d.ts ===
|
||||
declare module "http" {
|
||||
>"http" : Symbol("http", Decl(a.d.ts, 0, 0))
|
||||
}
|
||||
|
||||
declare module 'intern/dojo/node!http' {
|
||||
>'intern/dojo/node!http' : Symbol('intern/dojo/node!http', Decl(a.d.ts, 1, 1))
|
||||
|
||||
import http = require('http');
|
||||
>http : Symbol(http, Decl(a.d.ts, 3, 40))
|
||||
|
||||
|
||||
@@ -6,9 +6,12 @@ import * as http from 'intern/dojo/node!http';
|
||||
|
||||
=== tests/cases/compiler/a.d.ts ===
|
||||
declare module "http" {
|
||||
>"http" : typeof "http"
|
||||
}
|
||||
|
||||
declare module 'intern/dojo/node!http' {
|
||||
>'intern/dojo/node!http' : typeof 'intern/dojo/node!http'
|
||||
|
||||
import http = require('http');
|
||||
>http : typeof http
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ var obj1 = {
|
||||
>obj1 : Symbol(obj1, Decl(binaryIntegerLiteral.ts, 5, 3))
|
||||
|
||||
0b11010: "Hello",
|
||||
>0b11010 : Symbol(0b11010, Decl(binaryIntegerLiteral.ts, 5, 12))
|
||||
|
||||
a: bin1,
|
||||
>a : Symbol(a, Decl(binaryIntegerLiteral.ts, 6, 21))
|
||||
>bin1 : Symbol(bin1, Decl(binaryIntegerLiteral.ts, 0, 3))
|
||||
@@ -26,12 +28,15 @@ var obj1 = {
|
||||
>b : Symbol(b, Decl(binaryIntegerLiteral.ts, 8, 9))
|
||||
|
||||
0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,
|
||||
>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : Symbol(0B1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Line truncated
|
||||
}
|
||||
|
||||
var obj2 = {
|
||||
>obj2 : Symbol(obj2, Decl(binaryIntegerLiteral.ts, 13, 3))
|
||||
|
||||
0B11010: "World",
|
||||
>0B11010 : Symbol(0B11010, Decl(binaryIntegerLiteral.ts, 13, 12))
|
||||
|
||||
a: bin2,
|
||||
>a : Symbol(a, Decl(binaryIntegerLiteral.ts, 14, 21))
|
||||
>bin2 : Symbol(bin2, Decl(binaryIntegerLiteral.ts, 1, 3))
|
||||
@@ -43,6 +48,7 @@ var obj2 = {
|
||||
>b : Symbol(b, Decl(binaryIntegerLiteral.ts, 16, 9))
|
||||
|
||||
0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,
|
||||
>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteral.ts, 17, 15))
|
||||
}
|
||||
|
||||
obj1[0b11010]; // string
|
||||
|
||||
@@ -20,6 +20,7 @@ var obj1 = {
|
||||
>{ 0b11010: "Hello", a: bin1, bin1, b: 0b11010, 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,} : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Line truncated
|
||||
|
||||
0b11010: "Hello",
|
||||
>0b11010 : string
|
||||
>"Hello" : "Hello"
|
||||
|
||||
a: bin1,
|
||||
@@ -34,6 +35,7 @@ var obj1 = {
|
||||
>0b11010 : 26
|
||||
|
||||
0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,
|
||||
>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : boolean
|
||||
>true : true
|
||||
}
|
||||
|
||||
@@ -42,6 +44,7 @@ var obj2 = {
|
||||
>{ 0B11010: "World", a: bin2, bin2, b: 0B11010, 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,} : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }
|
||||
|
||||
0B11010: "World",
|
||||
>0B11010 : string
|
||||
>"World" : "World"
|
||||
|
||||
a: bin2,
|
||||
@@ -56,6 +59,7 @@ var obj2 = {
|
||||
>0B11010 : 26
|
||||
|
||||
0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,
|
||||
>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : boolean
|
||||
>false : false
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,8 @@ var obj1 = {
|
||||
>obj1 : Symbol(obj1, Decl(binaryIntegerLiteralES6.ts, 5, 3))
|
||||
|
||||
0b11010: "Hello",
|
||||
>0b11010 : Symbol(0b11010, Decl(binaryIntegerLiteralES6.ts, 5, 12))
|
||||
|
||||
a: bin1,
|
||||
>a : Symbol(a, Decl(binaryIntegerLiteralES6.ts, 6, 21))
|
||||
>bin1 : Symbol(bin1, Decl(binaryIntegerLiteralES6.ts, 0, 3))
|
||||
@@ -26,12 +28,15 @@ var obj1 = {
|
||||
>b : Symbol(b, Decl(binaryIntegerLiteralES6.ts, 8, 9))
|
||||
|
||||
0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,
|
||||
>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : Symbol(0B1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Line truncated
|
||||
}
|
||||
|
||||
var obj2 = {
|
||||
>obj2 : Symbol(obj2, Decl(binaryIntegerLiteralES6.ts, 13, 3))
|
||||
|
||||
0B11010: "World",
|
||||
>0B11010 : Symbol(0B11010, Decl(binaryIntegerLiteralES6.ts, 13, 12))
|
||||
|
||||
a: bin2,
|
||||
>a : Symbol(a, Decl(binaryIntegerLiteralES6.ts, 14, 21))
|
||||
>bin2 : Symbol(bin2, Decl(binaryIntegerLiteralES6.ts, 1, 3))
|
||||
@@ -43,6 +48,7 @@ var obj2 = {
|
||||
>b : Symbol(b, Decl(binaryIntegerLiteralES6.ts, 16, 9))
|
||||
|
||||
0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,
|
||||
>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : Symbol(0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111, Decl(binaryIntegerLiteralES6.ts, 17, 15))
|
||||
}
|
||||
|
||||
obj1[0b11010]; // string
|
||||
|
||||
@@ -20,6 +20,7 @@ var obj1 = {
|
||||
>{ 0b11010: "Hello", a: bin1, bin1, b: 0b11010, 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,} : { 0b11010: string; a: number; bin1: number; b: number; 0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111Line truncated
|
||||
|
||||
0b11010: "Hello",
|
||||
>0b11010 : string
|
||||
>"Hello" : "Hello"
|
||||
|
||||
a: bin1,
|
||||
@@ -34,6 +35,7 @@ var obj1 = {
|
||||
>0b11010 : 26
|
||||
|
||||
0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111: true,
|
||||
>0B111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111101001010100000010111110001111111111 : boolean
|
||||
>true : true
|
||||
}
|
||||
|
||||
@@ -42,6 +44,7 @@ var obj2 = {
|
||||
>{ 0B11010: "World", a: bin2, bin2, b: 0B11010, 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,} : { 0B11010: string; a: number; bin2: number; b: number; 0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: boolean; }
|
||||
|
||||
0B11010: "World",
|
||||
>0B11010 : string
|
||||
>"World" : "World"
|
||||
|
||||
a: bin2,
|
||||
@@ -56,6 +59,7 @@ var obj2 = {
|
||||
>0B11010 : 26
|
||||
|
||||
0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111: false,
|
||||
>0B11111111111111111111111111111111111111111111111101001010100000010111110001111111111 : boolean
|
||||
>false : false
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,13 @@ var obj1 = {
|
||||
>obj1 : Symbol(obj1, Decl(binaryIntegerLiteralError.ts, 4, 3))
|
||||
|
||||
0b11010: "hi",
|
||||
>0b11010 : Symbol(0b11010, Decl(binaryIntegerLiteralError.ts, 4, 12), Decl(binaryIntegerLiteralError.ts, 5, 18), Decl(binaryIntegerLiteralError.ts, 6, 16))
|
||||
|
||||
26: "Hello",
|
||||
>26 : Symbol(0b11010, Decl(binaryIntegerLiteralError.ts, 4, 12), Decl(binaryIntegerLiteralError.ts, 5, 18), Decl(binaryIntegerLiteralError.ts, 6, 16))
|
||||
|
||||
"26": "world",
|
||||
>"26" : Symbol(0b11010, Decl(binaryIntegerLiteralError.ts, 4, 12), Decl(binaryIntegerLiteralError.ts, 5, 18), Decl(binaryIntegerLiteralError.ts, 6, 16))
|
||||
|
||||
};
|
||||
|
||||
@@ -15,12 +15,15 @@ var obj1 = {
|
||||
>{ 0b11010: "hi", 26: "Hello", "26": "world",} : { 0b11010: string; }
|
||||
|
||||
0b11010: "hi",
|
||||
>0b11010 : string
|
||||
>"hi" : "hi"
|
||||
|
||||
26: "Hello",
|
||||
>26 : string
|
||||
>"Hello" : "Hello"
|
||||
|
||||
"26": "world",
|
||||
>"26" : string
|
||||
>"world" : "world"
|
||||
|
||||
};
|
||||
|
||||
@@ -5,6 +5,7 @@ enum ENUM1 { A, B, "" };
|
||||
>ENUM1 : Symbol(ENUM1, Decl(bitwiseNotOperatorWithEnumType.ts, 0, 0))
|
||||
>A : Symbol(ENUM1.A, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 12))
|
||||
>B : Symbol(ENUM1.B, Decl(bitwiseNotOperatorWithEnumType.ts, 2, 15))
|
||||
>"" : Symbol(ENUM1[""], Decl(bitwiseNotOperatorWithEnumType.ts, 2, 18))
|
||||
|
||||
// enum type var
|
||||
var ResultIsNumber1 = ~ENUM1;
|
||||
|
||||
@@ -5,6 +5,7 @@ enum ENUM1 { A, B, "" };
|
||||
>ENUM1 : ENUM1
|
||||
>A : ENUM1.A
|
||||
>B : ENUM1.B
|
||||
>"" : ENUM1.
|
||||
|
||||
// enum type var
|
||||
var ResultIsNumber1 = ~ENUM1;
|
||||
|
||||
@@ -27,6 +27,7 @@ class C {
|
||||
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
0: number;
|
||||
>0 : Symbol(C[0], Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 8, 24))
|
||||
}
|
||||
|
||||
interface I {
|
||||
@@ -51,6 +52,7 @@ interface I {
|
||||
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
0: number;
|
||||
>0 : Symbol(I[0], Decl(classWithOnlyPublicMembersEquivalentToInterface.ts, 17, 24))
|
||||
}
|
||||
|
||||
var c: C;
|
||||
|
||||
@@ -29,6 +29,7 @@ class C {
|
||||
>Object : Object
|
||||
|
||||
0: number;
|
||||
>0 : number
|
||||
}
|
||||
|
||||
interface I {
|
||||
@@ -53,6 +54,7 @@ interface I {
|
||||
>Object : Object
|
||||
|
||||
0: number;
|
||||
>0 : number
|
||||
}
|
||||
|
||||
var c: C;
|
||||
|
||||
@@ -27,6 +27,7 @@ class C {
|
||||
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
0: number;
|
||||
>0 : Symbol(C[0], Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 8, 24))
|
||||
|
||||
public static foo: string; // doesn't effect equivalence
|
||||
>foo : Symbol(C.foo, Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 9, 14))
|
||||
@@ -54,6 +55,7 @@ interface I {
|
||||
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
|
||||
|
||||
0: number;
|
||||
>0 : Symbol(I[0], Decl(classWithOnlyPublicMembersEquivalentToInterface2.ts, 19, 24))
|
||||
}
|
||||
|
||||
var c: C;
|
||||
|
||||
@@ -29,6 +29,7 @@ class C {
|
||||
>Object : Object
|
||||
|
||||
0: number;
|
||||
>0 : number
|
||||
|
||||
public static foo: string; // doesn't effect equivalence
|
||||
>foo : string
|
||||
@@ -56,6 +57,7 @@ interface I {
|
||||
>Object : Object
|
||||
|
||||
0: number;
|
||||
>0 : number
|
||||
}
|
||||
|
||||
var c: C;
|
||||
|
||||
@@ -18,6 +18,8 @@ export const x = 0;
|
||||
|
||||
=== /types/bar.d.ts ===
|
||||
declare module "bar" {
|
||||
>"bar" : Symbol("bar", Decl(bar.d.ts, 0, 0))
|
||||
|
||||
export const y = 0;
|
||||
>y : Symbol(y, Decl(bar.d.ts, 1, 16))
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ export const x = 0;
|
||||
|
||||
=== /types/bar.d.ts ===
|
||||
declare module "bar" {
|
||||
>"bar" : typeof "bar"
|
||||
|
||||
export const y = 0;
|
||||
>y : 0
|
||||
>0 : 0
|
||||
|
||||
@@ -3800,6 +3800,8 @@ declare module Immutable {
|
||||
}
|
||||
}
|
||||
declare module "immutable" {
|
||||
>"immutable" : Symbol("immutable", Decl(immutable.ts, 506, 1))
|
||||
|
||||
export = Immutable
|
||||
>Immutable : Symbol(Immutable, Decl(immutable.ts, 0, 0))
|
||||
}
|
||||
|
||||
@@ -3800,6 +3800,8 @@ declare module Immutable {
|
||||
}
|
||||
}
|
||||
declare module "immutable" {
|
||||
>"immutable" : typeof "immutable"
|
||||
|
||||
export = Immutable
|
||||
>Immutable : typeof Immutable
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ let {["bar"]: bar2} = {bar: "bar"};
|
||||
let {[11]: bar2_1} = {11: "bar"};
|
||||
>11 : Symbol(bar2_1, Decl(computedPropertiesInDestructuring1_ES6.ts, 5, 5))
|
||||
>bar2_1 : Symbol(bar2_1, Decl(computedPropertiesInDestructuring1_ES6.ts, 5, 5))
|
||||
>11 : Symbol(11, Decl(computedPropertiesInDestructuring1_ES6.ts, 5, 22))
|
||||
|
||||
let foo2 = () => "bar";
|
||||
>foo2 : Symbol(foo2, Decl(computedPropertiesInDestructuring1_ES6.ts, 7, 3))
|
||||
|
||||
Loaded 100 of 789 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user