@tslite/services 1.16.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +3 -1
- package/dist/_namespaces/edit.d.ts +1 -1
- package/dist/_namespaces/edit.js +10759 -11
- package/dist/_namespaces/ts.codefix.d.ts +0 -1
- package/dist/_namespaces/ts.js +10196 -19
- package/dist/classifier.d.ts +3 -1
- package/dist/codeFixProvider.d.ts +2 -1
- package/dist/codefixes/helpers.d.ts +3 -1
- package/dist/codefixes/importFixes.d.ts +3 -1
- package/dist/completions.d.ts +5 -2
- package/dist/documentHighlights.d.ts +3 -1
- package/dist/documentRegistry.d.ts +2 -1
- package/dist/findAllReferences.d.ts +3 -1
- package/dist/formatting/formatting.d.ts +3 -2
- package/dist/formatting/formattingContext.d.ts +2 -1
- package/dist/formatting/formattingScanner.d.ts +2 -2
- package/dist/formatting/rule.d.ts +1 -1
- package/dist/formatting/rulesMap.d.ts +1 -1
- package/dist/formatting/smartIndenter.d.ts +2 -1
- package/dist/getEditsForFileRename.d.ts +4 -1
- package/dist/goToDefinition.d.ts +3 -1
- package/dist/importTracker.d.ts +2 -1
- package/dist/navigationBar.d.ts +3 -1
- package/dist/organizeImports.d.ts +4 -2
- package/dist/outliningElementsCollector.d.ts +3 -1
- package/dist/refactorProvider.d.ts +1 -1
- package/dist/refactors/extractSymbol.d.ts +2 -1
- package/dist/rename.d.ts +3 -1
- package/dist/services.d.ts +5 -2
- package/dist/signatureHelp.d.ts +3 -1
- package/dist/smartSelection.d.ts +2 -1
- package/dist/stringCompletions.d.ts +3 -1
- package/dist/suggestionDiagnostics.d.ts +4 -3
- package/dist/symbolDisplay.d.ts +3 -1
- package/dist/textChanges.d.ts +4 -2
- package/dist/types.d.ts +3 -3
- package/dist/utilities.d.ts +7 -2
- package/package.json +7 -5
- package/dist/_namespaces/ts.Completions.StringCompletions.js +0 -2
- package/dist/_namespaces/ts.Completions.js +0 -3
- package/dist/_namespaces/ts.FindAllReferences.js +0 -3
- package/dist/_namespaces/ts.GoToDefinition.js +0 -2
- package/dist/_namespaces/ts.NavigationBar.js +0 -2
- package/dist/_namespaces/ts.OrganizeImports.js +0 -2
- package/dist/_namespaces/ts.OutliningElementsCollector.js +0 -2
- package/dist/_namespaces/ts.Rename.js +0 -2
- package/dist/_namespaces/ts.SignatureHelp.js +0 -2
- package/dist/_namespaces/ts.SmartSelectionRange.js +0 -2
- package/dist/_namespaces/ts.SymbolDisplay.js +0 -2
- package/dist/_namespaces/ts.codefix.js +0 -27
- package/dist/_namespaces/ts.formatting.js +0 -8
- package/dist/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.js +0 -2
- package/dist/_namespaces/ts.refactor.convertParamsToDestructuredObject.js +0 -2
- package/dist/_namespaces/ts.refactor.convertStringOrTemplateLiteral.js +0 -2
- package/dist/_namespaces/ts.refactor.extractSymbol.js +0 -2
- package/dist/_namespaces/ts.refactor.js +0 -10
- package/dist/_namespaces/ts.textChanges.js +0 -2
- package/dist/classifier.js +0 -715
- package/dist/codeFixProvider.js +0 -84
- package/dist/codefixes/addConvertToUnknownForNonOverlappingTypes.d.ts +0 -1
- package/dist/codefixes/addConvertToUnknownForNonOverlappingTypes.js +0 -21
- package/dist/codefixes/addEmptyExportDeclaration.js +0 -17
- package/dist/codefixes/addMissingAsync.js +0 -75
- package/dist/codefixes/addMissingAwait.js +0 -236
- package/dist/codefixes/addMissingConst.js +0 -91
- package/dist/codefixes/addNameToNamelessParameter.js +0 -29
- package/dist/codefixes/convertConstToLet.js +0 -30
- package/dist/codefixes/convertToAsyncFunction.js +0 -495
- package/dist/codefixes/convertToMappedObjectType.js +0 -48
- package/dist/codefixes/correctQualifiedNameToIndexedAccessType.js +0 -33
- package/dist/codefixes/fixAddModuleReferTypeMissingTypeof.js +0 -27
- package/dist/codefixes/fixAwaitInSyncFunction.js +0 -69
- package/dist/codefixes/fixExpectedComma.js +0 -35
- package/dist/codefixes/fixInvalidJsxCharacters.js +0 -41
- package/dist/codefixes/fixMissingCallParentheses.js +0 -42
- package/dist/codefixes/fixSpelling.js +0 -94
- package/dist/codefixes/fixUnreachableCode.js +0 -65
- package/dist/codefixes/fixUnusedIdentifier.js +0 -224
- package/dist/codefixes/helpers.js +0 -53
- package/dist/codefixes/importFixes.js +0 -441
- package/dist/codefixes/inferFromUsage.js +0 -742
- package/dist/codefixes/removeUnnecessaryAwait.js +0 -41
- package/dist/codefixes/returnValueCorrect.js +0 -132
- package/dist/codefixes/splitTypeOnlyImport.js +0 -32
- package/dist/codefixes/useBigintLiteral.js +0 -29
- package/dist/completions.js +0 -1720
- package/dist/documentHighlights.js +0 -367
- package/dist/documentRegistry.js +0 -63
- package/dist/editingServices.js +0 -4
- package/dist/findAllReferences.js +0 -1366
- package/dist/formatting/formatting.js +0 -1021
- package/dist/formatting/formattingContext.js +0 -78
- package/dist/formatting/formattingScanner.js +0 -228
- package/dist/formatting/rule.js +0 -22
- package/dist/formatting/rules.js +0 -610
- package/dist/formatting/rulesMap.js +0 -127
- package/dist/formatting/smartIndenter.js +0 -518
- package/dist/getEditsForFileRename.js +0 -86
- package/dist/goToDefinition.js +0 -246
- package/dist/importTracker.js +0 -422
- package/dist/index.js +0 -3
- package/dist/navigationBar.js +0 -549
- package/dist/organizeImports.js +0 -290
- package/dist/outliningElementsCollector.js +0 -261
- package/dist/refactorProvider.js +0 -16
- package/dist/refactors/addOrRemoveBracesToArrowFunction.js +0 -86
- package/dist/refactors/convertExport.js +0 -126
- package/dist/refactors/convertImport.js +0 -116
- package/dist/refactors/convertParamsToDestructuredObject.js +0 -282
- package/dist/refactors/convertStringOrTemplateLiteral.js +0 -148
- package/dist/refactors/extractSymbol.js +0 -1281
- package/dist/refactors/extractType.js +0 -102
- package/dist/refactors/moveToNewFile.js +0 -477
- package/dist/rename.js +0 -100
- package/dist/services.js +0 -1480
- package/dist/signatureHelp.js +0 -414
- package/dist/smartSelection.js +0 -243
- package/dist/stringCompletions.js +0 -220
- package/dist/suggestionDiagnostics.js +0 -92
- package/dist/symbolDisplay.js +0 -400
- package/dist/textChanges.js +0 -1163
- package/dist/types.js +0 -263
- package/dist/utilities.js +0 -1981
package/dist/types.js
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
export var ScriptSnapshot;
|
|
2
|
-
(function (ScriptSnapshot) {
|
|
3
|
-
class StringScriptSnapshot {
|
|
4
|
-
constructor(text) {
|
|
5
|
-
this.text = text;
|
|
6
|
-
}
|
|
7
|
-
getText(start, end) {
|
|
8
|
-
return start === 0 && end === this.text.length
|
|
9
|
-
? this.text
|
|
10
|
-
: this.text.substring(start, end);
|
|
11
|
-
}
|
|
12
|
-
getLength() {
|
|
13
|
-
return this.text.length;
|
|
14
|
-
}
|
|
15
|
-
getChangeRange() {
|
|
16
|
-
// Text-based snapshots do not support incremental parsing. Return undefined
|
|
17
|
-
// to signal that to the caller.
|
|
18
|
-
return undefined;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function fromString(text) {
|
|
22
|
-
return new StringScriptSnapshot(text);
|
|
23
|
-
}
|
|
24
|
-
ScriptSnapshot.fromString = fromString;
|
|
25
|
-
})(ScriptSnapshot || (ScriptSnapshot = {}));
|
|
26
|
-
export const emptyOptions = {};
|
|
27
|
-
export var HighlightSpanKind;
|
|
28
|
-
(function (HighlightSpanKind) {
|
|
29
|
-
HighlightSpanKind["none"] = "none";
|
|
30
|
-
HighlightSpanKind["definition"] = "definition";
|
|
31
|
-
HighlightSpanKind["reference"] = "reference";
|
|
32
|
-
HighlightSpanKind["writtenReference"] = "writtenReference";
|
|
33
|
-
})(HighlightSpanKind || (HighlightSpanKind = {}));
|
|
34
|
-
export var IndentStyle;
|
|
35
|
-
(function (IndentStyle) {
|
|
36
|
-
IndentStyle[IndentStyle["None"] = 0] = "None";
|
|
37
|
-
IndentStyle[IndentStyle["Block"] = 1] = "Block";
|
|
38
|
-
IndentStyle[IndentStyle["Smart"] = 2] = "Smart";
|
|
39
|
-
})(IndentStyle || (IndentStyle = {}));
|
|
40
|
-
export var SemicolonPreference;
|
|
41
|
-
(function (SemicolonPreference) {
|
|
42
|
-
SemicolonPreference["Ignore"] = "ignore";
|
|
43
|
-
SemicolonPreference["Insert"] = "insert";
|
|
44
|
-
SemicolonPreference["Remove"] = "remove";
|
|
45
|
-
})(SemicolonPreference || (SemicolonPreference = {}));
|
|
46
|
-
export function getDefaultFormatCodeSettings(newLineCharacter) {
|
|
47
|
-
return {
|
|
48
|
-
indentSize: 4,
|
|
49
|
-
tabSize: 4,
|
|
50
|
-
newLineCharacter: newLineCharacter || "\n",
|
|
51
|
-
convertTabsToSpaces: true,
|
|
52
|
-
indentStyle: IndentStyle.Smart,
|
|
53
|
-
insertSpaceAfterConstructor: false,
|
|
54
|
-
insertSpaceAfterCommaDelimiter: true,
|
|
55
|
-
insertSpaceAfterSemicolonInForStatements: true,
|
|
56
|
-
insertSpaceBeforeAndAfterBinaryOperators: true,
|
|
57
|
-
insertSpaceAfterKeywordsInControlFlowStatements: true,
|
|
58
|
-
insertSpaceAfterFunctionKeywordForAnonymousFunctions: false,
|
|
59
|
-
insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: false,
|
|
60
|
-
insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false,
|
|
61
|
-
insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces: true,
|
|
62
|
-
insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: false,
|
|
63
|
-
insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: false,
|
|
64
|
-
insertSpaceBeforeFunctionParenthesis: false,
|
|
65
|
-
placeOpenBraceOnNewLineForFunctions: false,
|
|
66
|
-
placeOpenBraceOnNewLineForControlBlocks: false,
|
|
67
|
-
semicolons: SemicolonPreference.Ignore,
|
|
68
|
-
trimTrailingWhitespace: true
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export var SymbolDisplayPartKind;
|
|
72
|
-
(function (SymbolDisplayPartKind) {
|
|
73
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["aliasName"] = 0] = "aliasName";
|
|
74
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["className"] = 1] = "className";
|
|
75
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["enumName"] = 2] = "enumName";
|
|
76
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["fieldName"] = 3] = "fieldName";
|
|
77
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["interfaceName"] = 4] = "interfaceName";
|
|
78
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["keyword"] = 5] = "keyword";
|
|
79
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["lineBreak"] = 6] = "lineBreak";
|
|
80
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["numericLiteral"] = 7] = "numericLiteral";
|
|
81
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["stringLiteral"] = 8] = "stringLiteral";
|
|
82
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["localName"] = 9] = "localName";
|
|
83
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["methodName"] = 10] = "methodName";
|
|
84
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["moduleName"] = 11] = "moduleName";
|
|
85
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["operator"] = 12] = "operator";
|
|
86
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["parameterName"] = 13] = "parameterName";
|
|
87
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["propertyName"] = 14] = "propertyName";
|
|
88
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["punctuation"] = 15] = "punctuation";
|
|
89
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["space"] = 16] = "space";
|
|
90
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["text"] = 17] = "text";
|
|
91
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["typeParameterName"] = 18] = "typeParameterName";
|
|
92
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["enumMemberName"] = 19] = "enumMemberName";
|
|
93
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["functionName"] = 20] = "functionName";
|
|
94
|
-
SymbolDisplayPartKind[SymbolDisplayPartKind["regularExpressionLiteral"] = 21] = "regularExpressionLiteral";
|
|
95
|
-
})(SymbolDisplayPartKind || (SymbolDisplayPartKind = {}));
|
|
96
|
-
export var OutliningSpanKind;
|
|
97
|
-
(function (OutliningSpanKind) {
|
|
98
|
-
/** Single or multi-line comments */
|
|
99
|
-
OutliningSpanKind["Comment"] = "comment";
|
|
100
|
-
/** Sections marked by '// #region' and '// #endregion' comments */
|
|
101
|
-
OutliningSpanKind["Region"] = "region";
|
|
102
|
-
/** Declarations and expressions */
|
|
103
|
-
OutliningSpanKind["Code"] = "code";
|
|
104
|
-
/** Contiguous blocks of import declarations */
|
|
105
|
-
OutliningSpanKind["Imports"] = "imports";
|
|
106
|
-
})(OutliningSpanKind || (OutliningSpanKind = {}));
|
|
107
|
-
export var ScriptElementKind;
|
|
108
|
-
(function (ScriptElementKind) {
|
|
109
|
-
ScriptElementKind["unknown"] = "";
|
|
110
|
-
ScriptElementKind["warning"] = "warning";
|
|
111
|
-
/** predefined type (void) or keyword (class) */
|
|
112
|
-
ScriptElementKind["keyword"] = "keyword";
|
|
113
|
-
/** top level script node */
|
|
114
|
-
ScriptElementKind["scriptElement"] = "script";
|
|
115
|
-
/** module foo {} */
|
|
116
|
-
ScriptElementKind["moduleElement"] = "module";
|
|
117
|
-
/** class X {} */
|
|
118
|
-
ScriptElementKind["classElement"] = "class";
|
|
119
|
-
/** var x = class X {} */
|
|
120
|
-
ScriptElementKind["localClassElement"] = "local class";
|
|
121
|
-
/** interface Y {} */
|
|
122
|
-
ScriptElementKind["interfaceElement"] = "interface";
|
|
123
|
-
/** type T = ... */
|
|
124
|
-
ScriptElementKind["typeElement"] = "type";
|
|
125
|
-
/** enum E */
|
|
126
|
-
ScriptElementKind["enumElement"] = "enum";
|
|
127
|
-
ScriptElementKind["enumMemberElement"] = "enum member";
|
|
128
|
-
/**
|
|
129
|
-
* Inside module and script only
|
|
130
|
-
* const v = ..
|
|
131
|
-
*/
|
|
132
|
-
ScriptElementKind["variableElement"] = "var";
|
|
133
|
-
/** Inside function */
|
|
134
|
-
ScriptElementKind["localVariableElement"] = "local var";
|
|
135
|
-
/**
|
|
136
|
-
* Inside module and script only
|
|
137
|
-
* function f() { }
|
|
138
|
-
*/
|
|
139
|
-
ScriptElementKind["functionElement"] = "function";
|
|
140
|
-
/** Inside function */
|
|
141
|
-
ScriptElementKind["localFunctionElement"] = "local function";
|
|
142
|
-
/** class X { [public|private]* foo() {} } */
|
|
143
|
-
ScriptElementKind["memberFunctionElement"] = "method";
|
|
144
|
-
/** class X { [public|private]* [get|set] foo:number; } */
|
|
145
|
-
ScriptElementKind["memberGetAccessorElement"] = "getter";
|
|
146
|
-
ScriptElementKind["memberSetAccessorElement"] = "setter";
|
|
147
|
-
/**
|
|
148
|
-
* class X { [public|private]* foo:number; }
|
|
149
|
-
* interface Y { foo:number; }
|
|
150
|
-
*/
|
|
151
|
-
ScriptElementKind["memberVariableElement"] = "property";
|
|
152
|
-
/** class X { constructor() { } } */
|
|
153
|
-
ScriptElementKind["constructorImplementationElement"] = "constructor";
|
|
154
|
-
/** interface Y { ():number; } */
|
|
155
|
-
ScriptElementKind["callSignatureElement"] = "call";
|
|
156
|
-
/** interface Y { []:number; } */
|
|
157
|
-
ScriptElementKind["indexSignatureElement"] = "index";
|
|
158
|
-
/** interface Y { new():Y; } */
|
|
159
|
-
ScriptElementKind["constructSignatureElement"] = "construct";
|
|
160
|
-
/** function foo(*Y*: string) */
|
|
161
|
-
ScriptElementKind["parameterElement"] = "parameter";
|
|
162
|
-
ScriptElementKind["typeParameterElement"] = "type parameter";
|
|
163
|
-
ScriptElementKind["primitiveType"] = "primitive type";
|
|
164
|
-
ScriptElementKind["label"] = "label";
|
|
165
|
-
ScriptElementKind["alias"] = "alias";
|
|
166
|
-
ScriptElementKind["constElement"] = "const";
|
|
167
|
-
ScriptElementKind["letElement"] = "let";
|
|
168
|
-
ScriptElementKind["directory"] = "directory";
|
|
169
|
-
ScriptElementKind["externalModuleName"] = "external module name";
|
|
170
|
-
/**
|
|
171
|
-
* <JsxTagName attribute1 attribute2={0} />
|
|
172
|
-
*/
|
|
173
|
-
ScriptElementKind["jsxAttribute"] = "JSX attribute";
|
|
174
|
-
/** String literal */
|
|
175
|
-
ScriptElementKind["string"] = "string";
|
|
176
|
-
})(ScriptElementKind || (ScriptElementKind = {}));
|
|
177
|
-
export var ScriptElementKindModifier;
|
|
178
|
-
(function (ScriptElementKindModifier) {
|
|
179
|
-
ScriptElementKindModifier["none"] = "";
|
|
180
|
-
ScriptElementKindModifier["publicMemberModifier"] = "public";
|
|
181
|
-
ScriptElementKindModifier["privateMemberModifier"] = "private";
|
|
182
|
-
ScriptElementKindModifier["protectedMemberModifier"] = "protected";
|
|
183
|
-
ScriptElementKindModifier["exportedModifier"] = "export";
|
|
184
|
-
ScriptElementKindModifier["ambientModifier"] = "declare";
|
|
185
|
-
ScriptElementKindModifier["staticModifier"] = "static";
|
|
186
|
-
ScriptElementKindModifier["abstractModifier"] = "abstract";
|
|
187
|
-
ScriptElementKindModifier["optionalModifier"] = "optional";
|
|
188
|
-
ScriptElementKindModifier["dtsModifier"] = ".d.ts";
|
|
189
|
-
ScriptElementKindModifier["tsModifier"] = ".ts";
|
|
190
|
-
ScriptElementKindModifier["tsxModifier"] = ".tsx";
|
|
191
|
-
ScriptElementKindModifier["jsModifier"] = ".js";
|
|
192
|
-
ScriptElementKindModifier["jsxModifier"] = ".jsx";
|
|
193
|
-
ScriptElementKindModifier["jsonModifier"] = ".json";
|
|
194
|
-
})(ScriptElementKindModifier || (ScriptElementKindModifier = {}));
|
|
195
|
-
export var EndOfLineState;
|
|
196
|
-
(function (EndOfLineState) {
|
|
197
|
-
EndOfLineState[EndOfLineState["None"] = 0] = "None";
|
|
198
|
-
EndOfLineState[EndOfLineState["InMultiLineCommentTrivia"] = 1] = "InMultiLineCommentTrivia";
|
|
199
|
-
EndOfLineState[EndOfLineState["InSingleQuoteStringLiteral"] = 2] = "InSingleQuoteStringLiteral";
|
|
200
|
-
EndOfLineState[EndOfLineState["InDoubleQuoteStringLiteral"] = 3] = "InDoubleQuoteStringLiteral";
|
|
201
|
-
EndOfLineState[EndOfLineState["InTemplateHeadOrNoSubstitutionTemplate"] = 4] = "InTemplateHeadOrNoSubstitutionTemplate";
|
|
202
|
-
EndOfLineState[EndOfLineState["InTemplateMiddleOrTail"] = 5] = "InTemplateMiddleOrTail";
|
|
203
|
-
EndOfLineState[EndOfLineState["InTemplateSubstitutionPosition"] = 6] = "InTemplateSubstitutionPosition";
|
|
204
|
-
})(EndOfLineState || (EndOfLineState = {}));
|
|
205
|
-
export var ClassificationTypeNames;
|
|
206
|
-
(function (ClassificationTypeNames) {
|
|
207
|
-
ClassificationTypeNames["comment"] = "comment";
|
|
208
|
-
ClassificationTypeNames["identifier"] = "identifier";
|
|
209
|
-
ClassificationTypeNames["keyword"] = "keyword";
|
|
210
|
-
ClassificationTypeNames["numericLiteral"] = "number";
|
|
211
|
-
ClassificationTypeNames["bigintLiteral"] = "bigint";
|
|
212
|
-
ClassificationTypeNames["operator"] = "operator";
|
|
213
|
-
ClassificationTypeNames["stringLiteral"] = "string";
|
|
214
|
-
ClassificationTypeNames["whiteSpace"] = "whitespace";
|
|
215
|
-
ClassificationTypeNames["text"] = "text";
|
|
216
|
-
ClassificationTypeNames["punctuation"] = "punctuation";
|
|
217
|
-
ClassificationTypeNames["className"] = "class name";
|
|
218
|
-
ClassificationTypeNames["enumName"] = "enum name";
|
|
219
|
-
ClassificationTypeNames["interfaceName"] = "interface name";
|
|
220
|
-
ClassificationTypeNames["moduleName"] = "module name";
|
|
221
|
-
ClassificationTypeNames["typeParameterName"] = "type parameter name";
|
|
222
|
-
ClassificationTypeNames["typeAliasName"] = "type alias name";
|
|
223
|
-
ClassificationTypeNames["parameterName"] = "parameter name";
|
|
224
|
-
ClassificationTypeNames["docCommentTagName"] = "doc comment tag name";
|
|
225
|
-
ClassificationTypeNames["jsxOpenTagName"] = "jsx open tag name";
|
|
226
|
-
ClassificationTypeNames["jsxCloseTagName"] = "jsx close tag name";
|
|
227
|
-
ClassificationTypeNames["jsxSelfClosingTagName"] = "jsx self closing tag name";
|
|
228
|
-
ClassificationTypeNames["jsxAttribute"] = "jsx attribute";
|
|
229
|
-
ClassificationTypeNames["jsxText"] = "jsx text";
|
|
230
|
-
ClassificationTypeNames["jsxAttributeStringLiteralValue"] = "jsx attribute string literal value";
|
|
231
|
-
})(ClassificationTypeNames || (ClassificationTypeNames = {}));
|
|
232
|
-
/**
|
|
233
|
-
* O tipo de um trecho na classificação codificada. Os valores são o protocolo com o editor, como na tag: os que a
|
|
234
|
-
* Linguagem não produz (a classe, o enum, a regex, a tag do JSDoc) ficam, sem renumerar os outros.
|
|
235
|
-
*/
|
|
236
|
-
export var ClassificationType;
|
|
237
|
-
(function (ClassificationType) {
|
|
238
|
-
ClassificationType[ClassificationType["comment"] = 1] = "comment";
|
|
239
|
-
ClassificationType[ClassificationType["identifier"] = 2] = "identifier";
|
|
240
|
-
ClassificationType[ClassificationType["keyword"] = 3] = "keyword";
|
|
241
|
-
ClassificationType[ClassificationType["numericLiteral"] = 4] = "numericLiteral";
|
|
242
|
-
ClassificationType[ClassificationType["operator"] = 5] = "operator";
|
|
243
|
-
ClassificationType[ClassificationType["stringLiteral"] = 6] = "stringLiteral";
|
|
244
|
-
ClassificationType[ClassificationType["regularExpressionLiteral"] = 7] = "regularExpressionLiteral";
|
|
245
|
-
ClassificationType[ClassificationType["whiteSpace"] = 8] = "whiteSpace";
|
|
246
|
-
ClassificationType[ClassificationType["text"] = 9] = "text";
|
|
247
|
-
ClassificationType[ClassificationType["punctuation"] = 10] = "punctuation";
|
|
248
|
-
ClassificationType[ClassificationType["className"] = 11] = "className";
|
|
249
|
-
ClassificationType[ClassificationType["enumName"] = 12] = "enumName";
|
|
250
|
-
ClassificationType[ClassificationType["interfaceName"] = 13] = "interfaceName";
|
|
251
|
-
ClassificationType[ClassificationType["moduleName"] = 14] = "moduleName";
|
|
252
|
-
ClassificationType[ClassificationType["typeParameterName"] = 15] = "typeParameterName";
|
|
253
|
-
ClassificationType[ClassificationType["typeAliasName"] = 16] = "typeAliasName";
|
|
254
|
-
ClassificationType[ClassificationType["parameterName"] = 17] = "parameterName";
|
|
255
|
-
ClassificationType[ClassificationType["docCommentTagName"] = 18] = "docCommentTagName";
|
|
256
|
-
ClassificationType[ClassificationType["jsxOpenTagName"] = 19] = "jsxOpenTagName";
|
|
257
|
-
ClassificationType[ClassificationType["jsxCloseTagName"] = 20] = "jsxCloseTagName";
|
|
258
|
-
ClassificationType[ClassificationType["jsxSelfClosingTagName"] = 21] = "jsxSelfClosingTagName";
|
|
259
|
-
ClassificationType[ClassificationType["jsxAttribute"] = 22] = "jsxAttribute";
|
|
260
|
-
ClassificationType[ClassificationType["jsxText"] = 23] = "jsxText";
|
|
261
|
-
ClassificationType[ClassificationType["jsxAttributeStringLiteralValue"] = 24] = "jsxAttributeStringLiteralValue";
|
|
262
|
-
ClassificationType[ClassificationType["bigintLiteral"] = 25] = "bigintLiteral";
|
|
263
|
-
})(ClassificationType || (ClassificationType = {}));
|