ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as ts from 'typescript';
// ============================================================================
// Types
// ============================================================================
export interface ISpan {
start: ts.LineAndCharacter;
end: ts.LineAndCharacter;
}
export interface ILocalizeCall {
keySpan: ISpan;
key: string;
valueSpan: ISpan;
value: string;
}
// ============================================================================
// AST Collection
// ============================================================================
export const CollectStepResult = Object.freeze
Yes
YesAndRecurse
No
NoAndRecurse
CollectStepResult CollectStepResult
node tsNode node tsNode CollectStepResult tsNode
result tsNode
node tsNode
stepResult node
stepResult CollectStepResultYes stepResult CollectStepResultYesAndRecurse
resultnode
stepResult CollectStepResultYesAndRecurse stepResult CollectStepResultNoAndRecurse
tsnode loop
node
result
node tsNode
nodekind tsSyntaxKindImportDeclaration nodekind tsSyntaxKindImportEqualsDeclaration
textSpan tsTextSpan node tsNode CollectStepResult
ts start nodepos length nodeend nodepos textSpan
CollectStepResultNo
nodekind tsSyntaxKindCallExpression CollectStepResultYesAndRecurse CollectStepResultNoAndRecurse
LanguageServiceHost
file tsIScriptSnapshot
lib tsIScriptSnapshot
options tsCompilerOptions
filename
options tsCompilerOptions filename contents
options options
filename filename
file tsScriptSnapshotcontents
lib tsScriptSnapshot
options
filename
name name filename file lib
path
path filename
file file
path
path filename
contents
functionName
ILocalizeCall
filename
options tsCompilerOptions noResolve
serviceHost options filename contents
service tsserviceHost
sourceFile tsfilename contents tsScriptTarget
imports sourceFile n n CollectStepResultYesAndRecurse CollectStepResultNoAndRecurse
importEqualsDeclarations imports
n nkind tsSyntaxKindImportEqualsDeclaration
n n tsImportEqualsDeclaration
d dmoduleReferencekind tsSyntaxKindExternalModuleReference
d
text dmoduleReference tsExternalModuleReferenceexpression
text text text text
importDeclarations imports
n nkind tsSyntaxKindImportDeclaration
n n tsImportDeclaration
d dmoduleSpecifierkind tsSyntaxKindStringLiteral
d
text dmoduleSpecifier
text text text text
d dimportClause dimportClausenamedBindings
nlsLocalizeCallExpressions tsCallExpression
namespaceImports importDeclarations
d dimportClausenamedBindingskind tsSyntaxKindNamespaceImport
d dimportClausenamedBindings tsNamespaceImportname
importEqualsNames importEqualsDeclarationsd dname
name namespaceImports importEqualsNames
refs servicefilename namepos
ref refs
refisWriteAccess
calls sourceFile n reftextSpan n
lastCall callscallslength tsCallExpression
lastCall
lastCallexpressionkind tsSyntaxKindPropertyAccessExpression
lastCallexpression tsPropertyAccessExpressionname functionName
nlsLocalizeCallExpressionslastCall
namedImports importDeclarations
d dimportClausenamedBindingskind tsSyntaxKindNamedImports
d dimportClausenamedBindings tsNamedImportselements
localizeCallExpressions tsCallExpression
namedImport namedImports
isTarget namedImportname functionName
namedImportpropertyName namedImportpropertyName functionName
isTarget
searchName namedImportpropertyName namedImportname namedImportname
refs servicefilename searchNamepos
ref refs
refisWriteAccess
calls sourceFile n reftextSpan n
lastCall callscallslength tsCallExpression
lastCall
localizeCallExpressionslastCall
allCalls nlsLocalizeCallExpressions localizeCallExpressions
seen
uniqueCalls allCallscall
start call
seenstart
seenstart
uniqueCalls
e eargumentslength
a b aarguments barguments
e
args earguments
keySpan
start tssourceFile args
end tssourceFile args
key args
valueSpan
start tssourceFile args
end tssourceFile args
value args
lines
lineEndings
contents
regex
index
match RegExpExecArray
lines
lineEndings
match regexcontents
linescontentsindex matchindex
lineEndingsmatch
index regexlastIndex
contentslength
linescontentsindex contentslength
lineEndings
index
linesindex
index line
linesindex line
lineslength
span ISpan content
startLineNumber spanstartline
endLineNumber spanendline
startLine linesstartLineNumber
endLine linesendLineNumber
linesstartLineNumber
startLine spanstartcharacter
content
endLinespanendcharacter
i startLineNumber i endLineNumber i
linesi
result
i i lineslength i
result linesi lineEndingsi
result
sourceExpression key comment