From c086dc6d3ac51fb71a786db25533b9a10336da73 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 3 Mar 2015 15:10:18 -0800 Subject: [PATCH] Accepting new baselines --- .../baselines/reference/APISample_compile.js | 19 ++++++------ .../reference/APISample_compile.types | 30 +++++++++---------- tests/baselines/reference/APISample_linter.js | 19 ++++++------ .../reference/APISample_linter.types | 30 +++++++++---------- .../reference/APISample_transform.js | 19 ++++++------ .../reference/APISample_transform.types | 30 +++++++++---------- .../baselines/reference/APISample_watcher.js | 19 ++++++------ .../reference/APISample_watcher.types | 30 +++++++++---------- 8 files changed, 100 insertions(+), 96 deletions(-) diff --git a/tests/baselines/reference/APISample_compile.js b/tests/baselines/reference/APISample_compile.js index 18c82646535..4967205ba17 100644 --- a/tests/baselines/reference/APISample_compile.js +++ b/tests/baselines/reference/APISample_compile.js @@ -313,15 +313,16 @@ declare module "typescript" { Private = 32, Protected = 64, Static = 128, - MultiLine = 256, - Synthetic = 512, - DeclarationFile = 1024, - Let = 2048, - Const = 4096, - OctalLiteral = 8192, - Modifier = 243, + Default = 256, + MultiLine = 512, + Synthetic = 1024, + DeclarationFile = 2048, + Let = 4096, + Const = 8192, + OctalLiteral = 16384, + Modifier = 499, AccessibilityModifier = 112, - BlockScoped = 6144, + BlockScoped = 12288, } const enum ParserContextFlags { StrictMode = 1, @@ -924,7 +925,7 @@ declare module "typescript" { errorModuleName?: string; } interface EmitResolver { - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; + getGeneratedNameForNode(node: Node): string; getExpressionNameSubstitution(node: Identifier): string; hasExportDefaultValue(node: SourceFile): boolean; isReferencedImportDeclaration(node: Node): boolean; diff --git a/tests/baselines/reference/APISample_compile.types b/tests/baselines/reference/APISample_compile.types index d717386a2d0..2f01ef05d63 100644 --- a/tests/baselines/reference/APISample_compile.types +++ b/tests/baselines/reference/APISample_compile.types @@ -954,31 +954,34 @@ declare module "typescript" { Static = 128, >Static : NodeFlags - MultiLine = 256, + Default = 256, +>Default : NodeFlags + + MultiLine = 512, >MultiLine : NodeFlags - Synthetic = 512, + Synthetic = 1024, >Synthetic : NodeFlags - DeclarationFile = 1024, + DeclarationFile = 2048, >DeclarationFile : NodeFlags - Let = 2048, + Let = 4096, >Let : NodeFlags - Const = 4096, + Const = 8192, >Const : NodeFlags - OctalLiteral = 8192, + OctalLiteral = 16384, >OctalLiteral : NodeFlags - Modifier = 243, + Modifier = 499, >Modifier : NodeFlags AccessibilityModifier = 112, >AccessibilityModifier : NodeFlags - BlockScoped = 6144, + BlockScoped = 12288, >BlockScoped : NodeFlags } const enum ParserContextFlags { @@ -2954,13 +2957,10 @@ declare module "typescript" { interface EmitResolver { >EmitResolver : EmitResolver - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; ->getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string ->node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration ->ModuleDeclaration : ModuleDeclaration ->EnumDeclaration : EnumDeclaration ->ImportDeclaration : ImportDeclaration ->ExportDeclaration : ExportDeclaration + getGeneratedNameForNode(node: Node): string; +>getGeneratedNameForNode : (node: Node) => string +>node : Node +>Node : Node getExpressionNameSubstitution(node: Identifier): string; >getExpressionNameSubstitution : (node: Identifier) => string diff --git a/tests/baselines/reference/APISample_linter.js b/tests/baselines/reference/APISample_linter.js index 477bf531fac..91394e58a4e 100644 --- a/tests/baselines/reference/APISample_linter.js +++ b/tests/baselines/reference/APISample_linter.js @@ -344,15 +344,16 @@ declare module "typescript" { Private = 32, Protected = 64, Static = 128, - MultiLine = 256, - Synthetic = 512, - DeclarationFile = 1024, - Let = 2048, - Const = 4096, - OctalLiteral = 8192, - Modifier = 243, + Default = 256, + MultiLine = 512, + Synthetic = 1024, + DeclarationFile = 2048, + Let = 4096, + Const = 8192, + OctalLiteral = 16384, + Modifier = 499, AccessibilityModifier = 112, - BlockScoped = 6144, + BlockScoped = 12288, } const enum ParserContextFlags { StrictMode = 1, @@ -955,7 +956,7 @@ declare module "typescript" { errorModuleName?: string; } interface EmitResolver { - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; + getGeneratedNameForNode(node: Node): string; getExpressionNameSubstitution(node: Identifier): string; hasExportDefaultValue(node: SourceFile): boolean; isReferencedImportDeclaration(node: Node): boolean; diff --git a/tests/baselines/reference/APISample_linter.types b/tests/baselines/reference/APISample_linter.types index 6eb0e17a6e8..35c3ef91153 100644 --- a/tests/baselines/reference/APISample_linter.types +++ b/tests/baselines/reference/APISample_linter.types @@ -1100,31 +1100,34 @@ declare module "typescript" { Static = 128, >Static : NodeFlags - MultiLine = 256, + Default = 256, +>Default : NodeFlags + + MultiLine = 512, >MultiLine : NodeFlags - Synthetic = 512, + Synthetic = 1024, >Synthetic : NodeFlags - DeclarationFile = 1024, + DeclarationFile = 2048, >DeclarationFile : NodeFlags - Let = 2048, + Let = 4096, >Let : NodeFlags - Const = 4096, + Const = 8192, >Const : NodeFlags - OctalLiteral = 8192, + OctalLiteral = 16384, >OctalLiteral : NodeFlags - Modifier = 243, + Modifier = 499, >Modifier : NodeFlags AccessibilityModifier = 112, >AccessibilityModifier : NodeFlags - BlockScoped = 6144, + BlockScoped = 12288, >BlockScoped : NodeFlags } const enum ParserContextFlags { @@ -3100,13 +3103,10 @@ declare module "typescript" { interface EmitResolver { >EmitResolver : EmitResolver - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; ->getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string ->node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration ->ModuleDeclaration : ModuleDeclaration ->EnumDeclaration : EnumDeclaration ->ImportDeclaration : ImportDeclaration ->ExportDeclaration : ExportDeclaration + getGeneratedNameForNode(node: Node): string; +>getGeneratedNameForNode : (node: Node) => string +>node : Node +>Node : Node getExpressionNameSubstitution(node: Identifier): string; >getExpressionNameSubstitution : (node: Identifier) => string diff --git a/tests/baselines/reference/APISample_transform.js b/tests/baselines/reference/APISample_transform.js index 5ee45e960c6..12fe5286ded 100644 --- a/tests/baselines/reference/APISample_transform.js +++ b/tests/baselines/reference/APISample_transform.js @@ -345,15 +345,16 @@ declare module "typescript" { Private = 32, Protected = 64, Static = 128, - MultiLine = 256, - Synthetic = 512, - DeclarationFile = 1024, - Let = 2048, - Const = 4096, - OctalLiteral = 8192, - Modifier = 243, + Default = 256, + MultiLine = 512, + Synthetic = 1024, + DeclarationFile = 2048, + Let = 4096, + Const = 8192, + OctalLiteral = 16384, + Modifier = 499, AccessibilityModifier = 112, - BlockScoped = 6144, + BlockScoped = 12288, } const enum ParserContextFlags { StrictMode = 1, @@ -956,7 +957,7 @@ declare module "typescript" { errorModuleName?: string; } interface EmitResolver { - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; + getGeneratedNameForNode(node: Node): string; getExpressionNameSubstitution(node: Identifier): string; hasExportDefaultValue(node: SourceFile): boolean; isReferencedImportDeclaration(node: Node): boolean; diff --git a/tests/baselines/reference/APISample_transform.types b/tests/baselines/reference/APISample_transform.types index 05aa191ce11..f5be4160106 100644 --- a/tests/baselines/reference/APISample_transform.types +++ b/tests/baselines/reference/APISample_transform.types @@ -1050,31 +1050,34 @@ declare module "typescript" { Static = 128, >Static : NodeFlags - MultiLine = 256, + Default = 256, +>Default : NodeFlags + + MultiLine = 512, >MultiLine : NodeFlags - Synthetic = 512, + Synthetic = 1024, >Synthetic : NodeFlags - DeclarationFile = 1024, + DeclarationFile = 2048, >DeclarationFile : NodeFlags - Let = 2048, + Let = 4096, >Let : NodeFlags - Const = 4096, + Const = 8192, >Const : NodeFlags - OctalLiteral = 8192, + OctalLiteral = 16384, >OctalLiteral : NodeFlags - Modifier = 243, + Modifier = 499, >Modifier : NodeFlags AccessibilityModifier = 112, >AccessibilityModifier : NodeFlags - BlockScoped = 6144, + BlockScoped = 12288, >BlockScoped : NodeFlags } const enum ParserContextFlags { @@ -3050,13 +3053,10 @@ declare module "typescript" { interface EmitResolver { >EmitResolver : EmitResolver - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; ->getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string ->node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration ->ModuleDeclaration : ModuleDeclaration ->EnumDeclaration : EnumDeclaration ->ImportDeclaration : ImportDeclaration ->ExportDeclaration : ExportDeclaration + getGeneratedNameForNode(node: Node): string; +>getGeneratedNameForNode : (node: Node) => string +>node : Node +>Node : Node getExpressionNameSubstitution(node: Identifier): string; >getExpressionNameSubstitution : (node: Identifier) => string diff --git a/tests/baselines/reference/APISample_watcher.js b/tests/baselines/reference/APISample_watcher.js index 5bd28a4c187..56fa829d95b 100644 --- a/tests/baselines/reference/APISample_watcher.js +++ b/tests/baselines/reference/APISample_watcher.js @@ -382,15 +382,16 @@ declare module "typescript" { Private = 32, Protected = 64, Static = 128, - MultiLine = 256, - Synthetic = 512, - DeclarationFile = 1024, - Let = 2048, - Const = 4096, - OctalLiteral = 8192, - Modifier = 243, + Default = 256, + MultiLine = 512, + Synthetic = 1024, + DeclarationFile = 2048, + Let = 4096, + Const = 8192, + OctalLiteral = 16384, + Modifier = 499, AccessibilityModifier = 112, - BlockScoped = 6144, + BlockScoped = 12288, } const enum ParserContextFlags { StrictMode = 1, @@ -993,7 +994,7 @@ declare module "typescript" { errorModuleName?: string; } interface EmitResolver { - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; + getGeneratedNameForNode(node: Node): string; getExpressionNameSubstitution(node: Identifier): string; hasExportDefaultValue(node: SourceFile): boolean; isReferencedImportDeclaration(node: Node): boolean; diff --git a/tests/baselines/reference/APISample_watcher.types b/tests/baselines/reference/APISample_watcher.types index f7797f07d68..a58524de812 100644 --- a/tests/baselines/reference/APISample_watcher.types +++ b/tests/baselines/reference/APISample_watcher.types @@ -1223,31 +1223,34 @@ declare module "typescript" { Static = 128, >Static : NodeFlags - MultiLine = 256, + Default = 256, +>Default : NodeFlags + + MultiLine = 512, >MultiLine : NodeFlags - Synthetic = 512, + Synthetic = 1024, >Synthetic : NodeFlags - DeclarationFile = 1024, + DeclarationFile = 2048, >DeclarationFile : NodeFlags - Let = 2048, + Let = 4096, >Let : NodeFlags - Const = 4096, + Const = 8192, >Const : NodeFlags - OctalLiteral = 8192, + OctalLiteral = 16384, >OctalLiteral : NodeFlags - Modifier = 243, + Modifier = 499, >Modifier : NodeFlags AccessibilityModifier = 112, >AccessibilityModifier : NodeFlags - BlockScoped = 6144, + BlockScoped = 12288, >BlockScoped : NodeFlags } const enum ParserContextFlags { @@ -3223,13 +3226,10 @@ declare module "typescript" { interface EmitResolver { >EmitResolver : EmitResolver - getGeneratedNameForNode(node: ModuleDeclaration | EnumDeclaration | ImportDeclaration | ExportDeclaration): string; ->getGeneratedNameForNode : (node: EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration) => string ->node : EnumDeclaration | ModuleDeclaration | ImportDeclaration | ExportDeclaration ->ModuleDeclaration : ModuleDeclaration ->EnumDeclaration : EnumDeclaration ->ImportDeclaration : ImportDeclaration ->ExportDeclaration : ExportDeclaration + getGeneratedNameForNode(node: Node): string; +>getGeneratedNameForNode : (node: Node) => string +>node : Node +>Node : Node getExpressionNameSubstitution(node: Identifier): string; >getExpressionNameSubstitution : (node: Identifier) => string