Make more diagnostic features internal so they're not exposed in our DTS.

This commit is contained in:
Cyrus Najmabadi
2015-02-04 13:22:28 -08:00
parent 35a6d0e68a
commit 9fac51b108
9 changed files with 13 additions and 86 deletions
+13 -22
View File
@@ -896,37 +896,27 @@ module ts {
languageVersion: ScriptTarget;
identifiers: Map<string>;
// @internal
nodeCount: number;
/* @internal */ nodeCount: number;
/* @internal */ identifierCount: number;
/* @internal */ symbolCount: number;
// @internal
identifierCount: number;
// @internal
symbolCount: number;
// @internal
// Diagnostics reported about the "///<reference" comments in the file.
referenceDiagnostics: Diagnostic[];
/* @internal */ referenceDiagnostics: Diagnostic[];
// @internal
// Parse errors refer specifically to things the parser could not understand at all (like
// missing tokens, or tokens it didn't know how to deal with).
parseDiagnostics: Diagnostic[];
/* @internal */ parseDiagnostics: Diagnostic[];
// @internal
// File level diagnostics reported by the binder.
semanticDiagnostics: Diagnostic[];
/* @internal */ semanticDiagnostics: Diagnostic[];
// @internal
// Returns all syntactic diagnostics (i.e. the reference, parser and grammar diagnostics).
// This field should never be used directly, use getSyntacticDiagnostics function instead.
syntacticDiagnostics: Diagnostic[];
/* @internal */ syntacticDiagnostics: Diagnostic[];
// @internal
// Stores a line map for the file.
// This field should never be used directly to obtain line map, use getLineMap function instead.
lineMap: number[];
/* @internal */ lineMap: number[];
}
export interface ScriptReferenceHost {
@@ -1007,10 +997,6 @@ module ts {
getEmitResolver(): EmitResolver;
getDiagnostics(sourceFile?: SourceFile): Diagnostic[];
getGlobalDiagnostics(): Diagnostic[];
getNodeCount(): number;
getIdentifierCount(): number;
getSymbolCount(): number;
getTypeCount(): number;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
@@ -1039,6 +1025,11 @@ module ts {
getEnumMemberValue(node: EnumMember): number;
isValidPropertyAccess(node: PropertyAccessExpression | QualifiedName, propertyName: string): boolean;
getAliasedSymbol(symbol: Symbol): Symbol;
/* @internal */ getNodeCount(): number;
/* @internal */ getIdentifierCount(): number;
/* @internal */ getSymbolCount(): number;
/* @internal */ getTypeCount(): number;
}
export interface SymbolDisplayBuilder {
@@ -791,10 +791,6 @@ declare module "typescript" {
getEmitResolver(): EmitResolver;
getDiagnostics(sourceFile?: SourceFile): Diagnostic[];
getGlobalDiagnostics(): Diagnostic[];
getNodeCount(): number;
getIdentifierCount(): number;
getSymbolCount(): number;
getTypeCount(): number;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
@@ -2421,18 +2421,6 @@ declare module "typescript" {
>getGlobalDiagnostics : () => Diagnostic[]
>Diagnostic : Diagnostic
getNodeCount(): number;␍
>getNodeCount : () => number
getIdentifierCount(): number;␍
>getIdentifierCount : () => number
getSymbolCount(): number;␍
>getSymbolCount : () => number
getTypeCount(): number;␍
>getTypeCount : () => number
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;␍
>getTypeOfSymbolAtLocation : (symbol: Symbol, node: Node) => Type
>symbol : Symbol
@@ -820,10 +820,6 @@ declare module "typescript" {
getEmitResolver(): EmitResolver;
getDiagnostics(sourceFile?: SourceFile): Diagnostic[];
getGlobalDiagnostics(): Diagnostic[];
getNodeCount(): number;
getIdentifierCount(): number;
getSymbolCount(): number;
getTypeCount(): number;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
@@ -2551,18 +2551,6 @@ declare module "typescript" {
>getGlobalDiagnostics : () => Diagnostic[]
>Diagnostic : Diagnostic
getNodeCount(): number;
>getNodeCount : () => number
getIdentifierCount(): number;
>getIdentifierCount : () => number
getSymbolCount(): number;
>getSymbolCount : () => number
getTypeCount(): number;
>getTypeCount : () => number
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
>getTypeOfSymbolAtLocation : (symbol: Symbol, node: Node) => Type
>symbol : Symbol
@@ -821,10 +821,6 @@ declare module "typescript" {
getEmitResolver(): EmitResolver;
getDiagnostics(sourceFile?: SourceFile): Diagnostic[];
getGlobalDiagnostics(): Diagnostic[];
getNodeCount(): number;
getIdentifierCount(): number;
getSymbolCount(): number;
getTypeCount(): number;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
@@ -2499,18 +2499,6 @@ declare module "typescript" {
>getGlobalDiagnostics : () => Diagnostic[]
>Diagnostic : Diagnostic
getNodeCount(): number;
>getNodeCount : () => number
getIdentifierCount(): number;
>getIdentifierCount : () => number
getSymbolCount(): number;
>getSymbolCount : () => number
getTypeCount(): number;
>getTypeCount : () => number
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
>getTypeOfSymbolAtLocation : (symbol: Symbol, node: Node) => Type
>symbol : Symbol
@@ -858,10 +858,6 @@ declare module "typescript" {
getEmitResolver(): EmitResolver;
getDiagnostics(sourceFile?: SourceFile): Diagnostic[];
getGlobalDiagnostics(): Diagnostic[];
getNodeCount(): number;
getIdentifierCount(): number;
getSymbolCount(): number;
getTypeCount(): number;
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
getDeclaredTypeOfSymbol(symbol: Symbol): Type;
getPropertiesOfType(type: Type): Symbol[];
@@ -2677,18 +2677,6 @@ declare module "typescript" {
>getGlobalDiagnostics : () => Diagnostic[]
>Diagnostic : Diagnostic
getNodeCount(): number;
>getNodeCount : () => number
getIdentifierCount(): number;
>getIdentifierCount : () => number
getSymbolCount(): number;
>getSymbolCount : () => number
getTypeCount(): number;
>getTypeCount : () => number
getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type;
>getTypeOfSymbolAtLocation : (symbol: Symbol, node: Node) => Type
>symbol : Symbol