Also convert ClassificationTypeNames and CommandTypes/CommandNames

This commit is contained in:
Andy Hanson 2017-05-22 10:40:59 -07:00
parent b162097c3c
commit f94818da36
5 changed files with 163 additions and 255 deletions

View file

@ -2174,7 +2174,7 @@ namespace FourSlash {
} }
ts.zipWith(expected, actual, (expectedClassification, actualClassification) => { ts.zipWith(expected, actual, (expectedClassification, actualClassification) => {
const expectedType: string = (<any>ts.ClassificationTypeNames)[expectedClassification.classificationType]; const expectedType = expectedClassification.classificationType;
if (expectedType !== actualClassification.classificationType) { if (expectedType !== actualClassification.classificationType) {
this.raiseError("verifyClassifications failed - expected classifications type to be " + this.raiseError("verifyClassifications failed - expected classifications type to be " +
expectedType + ", but was " + expectedType + ", but was " +
@ -3876,7 +3876,7 @@ namespace FourSlashInterface {
/** /**
* This method *requires* an ordered stream of classifications for a file, and spans are highly recommended. * This method *requires* an ordered stream of classifications for a file, and spans are highly recommended.
*/ */
public semanticClassificationsAre(...classifications: { classificationType: string; text: string; textSpan?: FourSlash.TextSpan }[]) { public semanticClassificationsAre(...classifications: Classification[]) {
this.state.verifySemanticClassifications(classifications); this.state.verifySemanticClassifications(classifications);
} }
@ -4071,102 +4071,107 @@ namespace FourSlashInterface {
} }
} }
interface Classification {
classificationType: ts.ClassificationTypeNames;
text: string;
textSpan?: FourSlash.TextSpan;
}
export namespace Classification { export namespace Classification {
export function comment(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function comment(text: string, position?: number): Classification {
return getClassification("comment", text, position); return getClassification(ts.ClassificationTypeNames.comment, text, position);
} }
export function identifier(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function identifier(text: string, position?: number): Classification {
return getClassification("identifier", text, position); return getClassification(ts.ClassificationTypeNames.identifier, text, position);
} }
export function keyword(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function keyword(text: string, position?: number): Classification {
return getClassification("keyword", text, position); return getClassification(ts.ClassificationTypeNames.keyword, text, position);
} }
export function numericLiteral(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function numericLiteral(text: string, position?: number): Classification {
return getClassification("numericLiteral", text, position); return getClassification(ts.ClassificationTypeNames.numericLiteral, text, position);
} }
export function operator(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function operator(text: string, position?: number): Classification {
return getClassification("operator", text, position); return getClassification(ts.ClassificationTypeNames.operator, text, position);
} }
export function stringLiteral(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function stringLiteral(text: string, position?: number): Classification {
return getClassification("stringLiteral", text, position); return getClassification(ts.ClassificationTypeNames.stringLiteral, text, position);
} }
export function whiteSpace(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function whiteSpace(text: string, position?: number): Classification {
return getClassification("whiteSpace", text, position); return getClassification(ts.ClassificationTypeNames.whiteSpace, text, position);
} }
export function text(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function text(text: string, position?: number): Classification {
return getClassification("text", text, position); return getClassification(ts.ClassificationTypeNames.text, text, position);
} }
export function punctuation(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function punctuation(text: string, position?: number): Classification {
return getClassification("punctuation", text, position); return getClassification(ts.ClassificationTypeNames.punctuation, text, position);
} }
export function docCommentTagName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function docCommentTagName(text: string, position?: number): Classification {
return getClassification("docCommentTagName", text, position); return getClassification(ts.ClassificationTypeNames.docCommentTagName, text, position);
} }
export function className(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function className(text: string, position?: number): Classification {
return getClassification("className", text, position); return getClassification(ts.ClassificationTypeNames.className, text, position);
} }
export function enumName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function enumName(text: string, position?: number): Classification {
return getClassification("enumName", text, position); return getClassification(ts.ClassificationTypeNames.enumName, text, position);
} }
export function interfaceName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function interfaceName(text: string, position?: number): Classification {
return getClassification("interfaceName", text, position); return getClassification(ts.ClassificationTypeNames.interfaceName, text, position);
} }
export function moduleName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function moduleName(text: string, position?: number): Classification {
return getClassification("moduleName", text, position); return getClassification(ts.ClassificationTypeNames.moduleName, text, position);
} }
export function typeParameterName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function typeParameterName(text: string, position?: number): Classification {
return getClassification("typeParameterName", text, position); return getClassification(ts.ClassificationTypeNames.typeParameterName, text, position);
} }
export function parameterName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function parameterName(text: string, position?: number): Classification {
return getClassification("parameterName", text, position); return getClassification(ts.ClassificationTypeNames.parameterName, text, position);
} }
export function typeAliasName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function typeAliasName(text: string, position?: number): Classification {
return getClassification("typeAliasName", text, position); return getClassification(ts.ClassificationTypeNames.typeAliasName, text, position);
} }
export function jsxOpenTagName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function jsxOpenTagName(text: string, position?: number): Classification {
return getClassification("jsxOpenTagName", text, position); return getClassification(ts.ClassificationTypeNames.jsxOpenTagName, text, position);
} }
export function jsxCloseTagName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function jsxCloseTagName(text: string, position?: number): Classification {
return getClassification("jsxCloseTagName", text, position); return getClassification(ts.ClassificationTypeNames.jsxCloseTagName, text, position);
} }
export function jsxSelfClosingTagName(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function jsxSelfClosingTagName(text: string, position?: number): Classification {
return getClassification("jsxSelfClosingTagName", text, position); return getClassification(ts.ClassificationTypeNames.jsxSelfClosingTagName, text, position);
} }
export function jsxAttribute(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function jsxAttribute(text: string, position?: number): Classification {
return getClassification("jsxAttribute", text, position); return getClassification(ts.ClassificationTypeNames.jsxAttribute, text, position);
} }
export function jsxText(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function jsxText(text: string, position?: number): Classification {
return getClassification("jsxText", text, position); return getClassification(ts.ClassificationTypeNames.jsxText, text, position);
} }
export function jsxAttributeStringLiteralValue(text: string, position?: number): { classificationType: string; text: string; textSpan?: FourSlash.TextSpan } { export function jsxAttributeStringLiteralValue(text: string, position?: number): Classification {
return getClassification("jsxAttributeStringLiteralValue", text, position); return getClassification(ts.ClassificationTypeNames.jsxAttributeStringLiteralValue, text, position);
} }
function getClassification(type: string, text: string, position?: number) { function getClassification(classificationType: ts.ClassificationTypeNames, text: string, position?: number): Classification {
return { return {
classificationType: type, classificationType,
text: text, text: text,
textSpan: position === undefined ? undefined : { start: position, end: position + text.length } textSpan: position === undefined ? undefined : { start: position, end: position + text.length }
}; };

View file

@ -2,103 +2,103 @@
* Declaration module describing the TypeScript Server protocol * Declaration module describing the TypeScript Server protocol
*/ */
namespace ts.server.protocol { namespace ts.server.protocol {
export namespace CommandTypes { export enum CommandTypes {
export type Brace = "brace"; Brace = "brace",
/* @internal */ /* @internal */
export type BraceFull = "brace-full"; BraceFull = "brace-full",
export type BraceCompletion = "braceCompletion"; BraceCompletion = "braceCompletion",
export type Change = "change"; Change = "change",
export type Close = "close"; Close = "close",
export type Completions = "completions"; Completions = "completions",
/* @internal */ /* @internal */
export type CompletionsFull = "completions-full"; CompletionsFull = "completions-full",
export type CompletionDetails = "completionEntryDetails"; CompletionDetails = "completionEntryDetails",
export type CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList"; CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList",
export type CompileOnSaveEmitFile = "compileOnSaveEmitFile"; CompileOnSaveEmitFile = "compileOnSaveEmitFile",
export type Configure = "configure"; Configure = "configure",
export type Definition = "definition"; Definition = "definition",
/* @internal */ /* @internal */
export type DefinitionFull = "definition-full"; DefinitionFull = "definition-full",
export type Implementation = "implementation"; Implementation = "implementation",
/* @internal */ /* @internal */
export type ImplementationFull = "implementation-full"; ImplementationFull = "implementation-full",
export type Exit = "exit"; Exit = "exit",
export type Format = "format"; Format = "format",
export type Formatonkey = "formatonkey"; Formatonkey = "formatonkey",
/* @internal */ /* @internal */
export type FormatFull = "format-full"; FormatFull = "format-full",
/* @internal */ /* @internal */
export type FormatonkeyFull = "formatonkey-full"; FormatonkeyFull = "formatonkey-full",
/* @internal */ /* @internal */
export type FormatRangeFull = "formatRange-full"; FormatRangeFull = "formatRange-full",
export type Geterr = "geterr"; Geterr = "geterr",
export type GeterrForProject = "geterrForProject"; GeterrForProject = "geterrForProject",
export type SemanticDiagnosticsSync = "semanticDiagnosticsSync"; SemanticDiagnosticsSync = "semanticDiagnosticsSync",
export type SyntacticDiagnosticsSync = "syntacticDiagnosticsSync"; SyntacticDiagnosticsSync = "syntacticDiagnosticsSync",
export type NavBar = "navbar"; NavBar = "navbar",
/* @internal */ /* @internal */
export type NavBarFull = "navbar-full"; NavBarFull = "navbar-full",
export type Navto = "navto"; Navto = "navto",
/* @internal */ /* @internal */
export type NavtoFull = "navto-full"; NavtoFull = "navto-full",
export type NavTree = "navtree"; NavTree = "navtree",
export type NavTreeFull = "navtree-full"; NavTreeFull = "navtree-full",
export type Occurrences = "occurrences"; Occurrences = "occurrences",
export type DocumentHighlights = "documentHighlights"; DocumentHighlights = "documentHighlights",
/* @internal */ /* @internal */
export type DocumentHighlightsFull = "documentHighlights-full"; DocumentHighlightsFull = "documentHighlights-full",
export type Open = "open"; Open = "open",
export type Quickinfo = "quickinfo"; Quickinfo = "quickinfo",
/* @internal */ /* @internal */
export type QuickinfoFull = "quickinfo-full"; QuickinfoFull = "quickinfo-full",
export type References = "references"; References = "references",
/* @internal */ /* @internal */
export type ReferencesFull = "references-full"; ReferencesFull = "references-full",
export type Reload = "reload"; Reload = "reload",
export type Rename = "rename"; Rename = "rename",
/* @internal */ /* @internal */
export type RenameInfoFull = "rename-full"; RenameInfoFull = "rename-full",
/* @internal */ /* @internal */
export type RenameLocationsFull = "renameLocations-full"; RenameLocationsFull = "renameLocations-full",
export type Saveto = "saveto"; Saveto = "saveto",
export type SignatureHelp = "signatureHelp"; SignatureHelp = "signatureHelp",
/* @internal */ /* @internal */
export type SignatureHelpFull = "signatureHelp-full"; SignatureHelpFull = "signatureHelp-full",
export type TypeDefinition = "typeDefinition"; TypeDefinition = "typeDefinition",
export type ProjectInfo = "projectInfo"; ProjectInfo = "projectInfo",
export type ReloadProjects = "reloadProjects"; ReloadProjects = "reloadProjects",
export type Unknown = "unknown"; Unknown = "unknown",
export type OpenExternalProject = "openExternalProject"; OpenExternalProject = "openExternalProject",
export type OpenExternalProjects = "openExternalProjects"; OpenExternalProjects = "openExternalProjects",
export type CloseExternalProject = "closeExternalProject"; CloseExternalProject = "closeExternalProject",
/* @internal */ /* @internal */
export type SynchronizeProjectList = "synchronizeProjectList"; SynchronizeProjectList = "synchronizeProjectList",
/* @internal */ /* @internal */
export type ApplyChangedToOpenFiles = "applyChangedToOpenFiles"; ApplyChangedToOpenFiles = "applyChangedToOpenFiles",
/* @internal */ /* @internal */
export type EncodedSemanticClassificationsFull = "encodedSemanticClassifications-full"; EncodedSemanticClassificationsFull = "encodedSemanticClassifications-full",
/* @internal */ /* @internal */
export type Cleanup = "cleanup"; Cleanup = "cleanup",
/* @internal */ /* @internal */
export type OutliningSpans = "outliningSpans"; OutliningSpans = "outliningSpans",
export type TodoComments = "todoComments"; TodoComments = "todoComments",
export type Indentation = "indentation"; Indentation = "indentation",
export type DocCommentTemplate = "docCommentTemplate"; DocCommentTemplate = "docCommentTemplate",
/* @internal */ /* @internal */
export type CompilerOptionsDiagnosticsFull = "compilerOptionsDiagnostics-full"; CompilerOptionsDiagnosticsFull = "compilerOptionsDiagnostics-full",
/* @internal */ /* @internal */
export type NameOrDottedNameSpan = "nameOrDottedNameSpan"; NameOrDottedNameSpan = "nameOrDottedNameSpan",
/* @internal */ /* @internal */
export type BreakpointStatement = "breakpointStatement"; BreakpointStatement = "breakpointStatement",
export type CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects"; CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects",
export type GetCodeFixes = "getCodeFixes"; GetCodeFixes = "getCodeFixes",
/* @internal */ /* @internal */
export type GetCodeFixesFull = "getCodeFixes-full"; GetCodeFixesFull = "getCodeFixes-full",
export type GetSupportedCodeFixes = "getSupportedCodeFixes"; GetSupportedCodeFixes = "getSupportedCodeFixes",
export type GetApplicableRefactors = "getApplicableRefactors"; GetApplicableRefactors = "getApplicableRefactors",
export type GetRefactorCodeActions = "getRefactorCodeActions"; GetRefactorCodeActions = "getRefactorCodeActions",
export type GetRefactorCodeActionsFull = "getRefactorCodeActions-full"; GetRefactorCodeActionsFull = "getRefactorCodeActions-full",
} }
/** /**

View file

@ -112,104 +112,7 @@ namespace ts.server {
return true; return true;
} }
export namespace CommandNames { export import CommandNames = protocol.CommandTypes;
export const Brace: protocol.CommandTypes.Brace = "brace";
/* @internal */
export const BraceFull: protocol.CommandTypes.BraceFull = "brace-full";
export const BraceCompletion: protocol.CommandTypes.BraceCompletion = "braceCompletion";
export const Change: protocol.CommandTypes.Change = "change";
export const Close: protocol.CommandTypes.Close = "close";
export const Completions: protocol.CommandTypes.Completions = "completions";
/* @internal */
export const CompletionsFull: protocol.CommandTypes.CompletionsFull = "completions-full";
export const CompletionDetails: protocol.CommandTypes.CompletionDetails = "completionEntryDetails";
export const CompileOnSaveAffectedFileList: protocol.CommandTypes.CompileOnSaveAffectedFileList = "compileOnSaveAffectedFileList";
export const CompileOnSaveEmitFile: protocol.CommandTypes.CompileOnSaveEmitFile = "compileOnSaveEmitFile";
export const Configure: protocol.CommandTypes.Configure = "configure";
export const Definition: protocol.CommandTypes.Definition = "definition";
/* @internal */
export const DefinitionFull: protocol.CommandTypes.DefinitionFull = "definition-full";
export const Exit: protocol.CommandTypes.Exit = "exit";
export const Format: protocol.CommandTypes.Format = "format";
export const Formatonkey: protocol.CommandTypes.Formatonkey = "formatonkey";
/* @internal */
export const FormatFull: protocol.CommandTypes.FormatFull = "format-full";
/* @internal */
export const FormatonkeyFull: protocol.CommandTypes.FormatonkeyFull = "formatonkey-full";
/* @internal */
export const FormatRangeFull: protocol.CommandTypes.FormatRangeFull = "formatRange-full";
export const Geterr: protocol.CommandTypes.Geterr = "geterr";
export const GeterrForProject: protocol.CommandTypes.GeterrForProject = "geterrForProject";
export const Implementation: protocol.CommandTypes.Implementation = "implementation";
/* @internal */
export const ImplementationFull: protocol.CommandTypes.ImplementationFull = "implementation-full";
export const SemanticDiagnosticsSync: protocol.CommandTypes.SemanticDiagnosticsSync = "semanticDiagnosticsSync";
export const SyntacticDiagnosticsSync: protocol.CommandTypes.SyntacticDiagnosticsSync = "syntacticDiagnosticsSync";
export const NavBar: protocol.CommandTypes.NavBar = "navbar";
/* @internal */
export const NavBarFull: protocol.CommandTypes.NavBarFull = "navbar-full";
export const NavTree: protocol.CommandTypes.NavTree = "navtree";
export const NavTreeFull: protocol.CommandTypes.NavTreeFull = "navtree-full";
export const Navto: protocol.CommandTypes.Navto = "navto";
/* @internal */
export const NavtoFull: protocol.CommandTypes.NavtoFull = "navto-full";
export const Occurrences: protocol.CommandTypes.Occurrences = "occurrences";
export const DocumentHighlights: protocol.CommandTypes.DocumentHighlights = "documentHighlights";
/* @internal */
export const DocumentHighlightsFull: protocol.CommandTypes.DocumentHighlightsFull = "documentHighlights-full";
export const Open: protocol.CommandTypes.Open = "open";
export const Quickinfo: protocol.CommandTypes.Quickinfo = "quickinfo";
/* @internal */
export const QuickinfoFull: protocol.CommandTypes.QuickinfoFull = "quickinfo-full";
export const References: protocol.CommandTypes.References = "references";
/* @internal */
export const ReferencesFull: protocol.CommandTypes.ReferencesFull = "references-full";
export const Reload: protocol.CommandTypes.Reload = "reload";
export const Rename: protocol.CommandTypes.Rename = "rename";
/* @internal */
export const RenameInfoFull: protocol.CommandTypes.RenameInfoFull = "rename-full";
/* @internal */
export const RenameLocationsFull: protocol.CommandTypes.RenameLocationsFull = "renameLocations-full";
export const Saveto: protocol.CommandTypes.Saveto = "saveto";
export const SignatureHelp: protocol.CommandTypes.SignatureHelp = "signatureHelp";
/* @internal */
export const SignatureHelpFull: protocol.CommandTypes.SignatureHelpFull = "signatureHelp-full";
export const TypeDefinition: protocol.CommandTypes.TypeDefinition = "typeDefinition";
export const ProjectInfo: protocol.CommandTypes.ProjectInfo = "projectInfo";
export const ReloadProjects: protocol.CommandTypes.ReloadProjects = "reloadProjects";
export const Unknown: protocol.CommandTypes.Unknown = "unknown";
export const OpenExternalProject: protocol.CommandTypes.OpenExternalProject = "openExternalProject";
export const OpenExternalProjects: protocol.CommandTypes.OpenExternalProjects = "openExternalProjects";
export const CloseExternalProject: protocol.CommandTypes.CloseExternalProject = "closeExternalProject";
/* @internal */
export const SynchronizeProjectList: protocol.CommandTypes.SynchronizeProjectList = "synchronizeProjectList";
/* @internal */
export const ApplyChangedToOpenFiles: protocol.CommandTypes.ApplyChangedToOpenFiles = "applyChangedToOpenFiles";
/* @internal */
export const EncodedSemanticClassificationsFull: protocol.CommandTypes.EncodedSemanticClassificationsFull = "encodedSemanticClassifications-full";
/* @internal */
export const Cleanup: protocol.CommandTypes.Cleanup = "cleanup";
/* @internal */
export const OutliningSpans: protocol.CommandTypes.OutliningSpans = "outliningSpans";
export const TodoComments: protocol.CommandTypes.TodoComments = "todoComments";
export const Indentation: protocol.CommandTypes.Indentation = "indentation";
export const DocCommentTemplate: protocol.CommandTypes.DocCommentTemplate = "docCommentTemplate";
/* @internal */
export const CompilerOptionsDiagnosticsFull: protocol.CommandTypes.CompilerOptionsDiagnosticsFull = "compilerOptionsDiagnostics-full";
/* @internal */
export const NameOrDottedNameSpan: protocol.CommandTypes.NameOrDottedNameSpan = "nameOrDottedNameSpan";
/* @internal */
export const BreakpointStatement: protocol.CommandTypes.BreakpointStatement = "breakpointStatement";
export const CompilerOptionsForInferredProjects: protocol.CommandTypes.CompilerOptionsForInferredProjects = "compilerOptionsForInferredProjects";
export const GetCodeFixes: protocol.CommandTypes.GetCodeFixes = "getCodeFixes";
/* @internal */
export const GetCodeFixesFull: protocol.CommandTypes.GetCodeFixesFull = "getCodeFixes-full";
export const GetSupportedCodeFixes: protocol.CommandTypes.GetSupportedCodeFixes = "getSupportedCodeFixes";
export const GetApplicableRefactors: protocol.CommandTypes.GetApplicableRefactors = "getApplicableRefactors";
export const GetRefactorCodeActions: protocol.CommandTypes.GetRefactorCodeActions = "getRefactorCodeActions";
export const GetRefactorCodeActionsFull: protocol.CommandTypes.GetRefactorCodeActionsFull = "getRefactorCodeActions-full";
}
export function formatMessage<T extends protocol.Message>(msg: T, logger: server.Logger, byteLength: (s: string, encoding: string) => number, newLine: string): string { export function formatMessage<T extends protocol.Message>(msg: T, logger: server.Logger, byteLength: (s: string, encoding: string) => number, newLine: string): string {
const verboseLogging = logger.hasLevel(LogLevel.verbose); const verboseLogging = logger.hasLevel(LogLevel.verbose);

View file

@ -573,7 +573,7 @@ namespace ts {
} }
} }
function getClassificationTypeName(type: ClassificationType) { function getClassificationTypeName(type: ClassificationType): ClassificationTypeNames {
switch (type) { switch (type) {
case ClassificationType.comment: return ClassificationTypeNames.comment; case ClassificationType.comment: return ClassificationTypeNames.comment;
case ClassificationType.identifier: return ClassificationTypeNames.identifier; case ClassificationType.identifier: return ClassificationTypeNames.identifier;

View file

@ -286,7 +286,7 @@ namespace ts {
export interface ClassifiedSpan { export interface ClassifiedSpan {
textSpan: TextSpan; textSpan: TextSpan;
classificationType: string; // ClassificationTypeNames classificationType: ClassificationTypeNames;
} }
/** /**
@ -804,43 +804,43 @@ namespace ts {
jsxAttribute = "JSX attribute", jsxAttribute = "JSX attribute",
} }
export namespace ScriptElementKindModifier { export const enum ScriptElementKindModifier {
export const none = ""; none = "",
export const publicMemberModifier = "public"; publicMemberModifier = "public",
export const privateMemberModifier = "private"; privateMemberModifier = "private",
export const protectedMemberModifier = "protected"; protectedMemberModifier = "protected",
export const exportedModifier = "export"; exportedModifier = "export",
export const ambientModifier = "declare"; ambientModifier = "declare",
export const staticModifier = "static"; staticModifier = "static",
export const abstractModifier = "abstract"; abstractModifier = "abstract",
} }
export class ClassificationTypeNames { export const enum ClassificationTypeNames {
public static comment = "comment"; comment = "comment",
public static identifier = "identifier"; identifier = "identifier",
public static keyword = "keyword"; keyword = "keyword",
public static numericLiteral = "number"; numericLiteral = "number",
public static operator = "operator"; operator = "operator",
public static stringLiteral = "string"; stringLiteral = "string",
public static whiteSpace = "whitespace"; whiteSpace = "whitespace",
public static text = "text"; text = "text",
public static punctuation = "punctuation"; punctuation = "punctuation",
public static className = "class name"; className = "class name",
public static enumName = "enum name"; enumName = "enum name",
public static interfaceName = "interface name"; interfaceName = "interface name",
public static moduleName = "module name"; moduleName = "module name",
public static typeParameterName = "type parameter name"; typeParameterName = "type parameter name",
public static typeAliasName = "type alias name"; typeAliasName = "type alias name",
public static parameterName = "parameter name"; parameterName = "parameter name",
public static docCommentTagName = "doc comment tag name"; docCommentTagName = "doc comment tag name",
public static jsxOpenTagName = "jsx open tag name"; jsxOpenTagName = "jsx open tag name",
public static jsxCloseTagName = "jsx close tag name"; jsxCloseTagName = "jsx close tag name",
public static jsxSelfClosingTagName = "jsx self closing tag name"; jsxSelfClosingTagName = "jsx self closing tag name",
public static jsxAttribute = "jsx attribute"; jsxAttribute = "jsx attribute",
public static jsxText = "jsx text"; jsxText = "jsx text",
public static jsxAttributeStringLiteralValue = "jsx attribute string literal value"; jsxAttributeStringLiteralValue = "jsx attribute string literal value",
} }
export const enum ClassificationType { export const enum ClassificationType {