@artel/artc 0.6.26017 → 0.6.26019
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/build/Cli.js +3 -3
- package/build/api/Api.js +39 -161
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +6744 -8943
- package/build/{chunk-UCBPXOLW.js → chunk-27AIX6Z7.js} +3 -5
- package/build/{chunk-SJFIPH42.js → chunk-LYYIQT6J.js} +63496 -60655
- package/build/{chunk-65XBWCU7.js → chunk-QBUXIP7E.js} +11 -11
- package/build/types/analysis/AccessedFunction.d.ts +3 -6
- package/build/types/analysis/AccessedFunctionParameter.d.ts +7 -0
- package/build/types/analysis/Analyzer.d.ts +81 -580
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageMap.d.ts +14 -0
- package/build/types/analysis/EntityOrPackageNameTreeNode.d.ts +13 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +6 -2
- package/build/types/analysis/NodeOrDiagnosticLocation.d.ts +12 -0
- package/build/types/analysis/OverridableTypeMember.d.ts +6 -0
- package/build/types/analysis/ReferencedPackagesCollector.d.ts +24 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +1 -2
- package/build/types/analysis/SignatureComparisonOptions.d.ts +6 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +2 -3
- package/build/types/analysis/SpecialNameKey.d.ts +1 -1
- package/build/types/analysis/SubstitutedFunction.d.ts +1 -1
- package/build/types/analysis/TsInteropInputs.d.ts +9 -0
- package/build/types/analysis/TypeAssignabilityFlags.d.ts +22 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +1 -1
- package/build/types/analysis/a/Analyzer.d.ts +466 -0
- package/build/types/analysis/{ArgumentToParameterMatchResult.d.ts → a/ArgumentToParameterMatchResult.d.ts} +4 -4
- package/build/types/analysis/{ArgumentsToParametersMatcher.d.ts → a/ArgumentsToParametersMatcher.d.ts} +5 -5
- package/build/types/analysis/{AutotypeCallExpressionMeaning.d.ts → a/AutotypeCallExpressionMeaning.d.ts} +8 -9
- package/build/types/analysis/{BaseExpressionMeaning.d.ts → a/BaseExpressionMeaning.d.ts} +7 -8
- package/build/types/analysis/{CallExpressionMeaning.d.ts → a/CallExpressionMeaning.d.ts} +11 -16
- package/build/types/analysis/{ConstructorCallResolver.d.ts → a/ConstructorCallResolver.d.ts} +9 -7
- package/build/types/analysis/a/DeclarationsUsageCounter.d.ts +12 -0
- package/build/types/analysis/{DereferenceExpressionMeaning.d.ts → a/DereferenceExpressionMeaning.d.ts} +5 -5
- package/build/types/analysis/a/ExpressionAnalysisOptions.d.ts +21 -0
- package/build/types/analysis/a/FindModifier.d.ts +5 -0
- package/build/types/analysis/{FunctionAccessResolver.d.ts → a/FunctionAccessResolver.d.ts} +11 -8
- package/build/types/analysis/{IdentifierExpressionMeaning.d.ts → a/IdentifierExpressionMeaning.d.ts} +11 -13
- package/build/types/analysis/{IndexedAccessExpressionMeaning.d.ts → a/IndexedAccessExpressionMeaning.d.ts} +5 -5
- package/build/types/analysis/{InstanceFieldsInitializationValidator.d.ts → a/InstanceFieldsInitializationValidator.d.ts} +4 -4
- package/build/types/analysis/{MemberAccessExpressionMeaning.d.ts → a/MemberAccessExpressionMeaning.d.ts} +15 -23
- package/build/types/analysis/{ModifierValidator.d.ts → a/ModifierValidator.d.ts} +3 -3
- package/build/types/analysis/{NamedTypeResolver.d.ts → a/NamedTypeResolver.d.ts} +5 -5
- package/build/types/analysis/{NamedTypeSpecifierResolver.d.ts → a/NamedTypeSpecifierResolver.d.ts} +4 -4
- package/build/types/analysis/{NodeTypeUtils.d.ts → a/NodeTypeUtils.d.ts} +1 -1
- package/build/types/analysis/{ObjectExpressionMeaning.d.ts → a/ObjectExpressionMeaning.d.ts} +4 -5
- package/build/types/analysis/{OverloadResolver.d.ts → a/OverloadResolver.d.ts} +9 -8
- package/build/types/analysis/{OwnAndBaseConstructorCallsChecker.d.ts → a/OwnAndBaseConstructorCallsChecker.d.ts} +4 -4
- package/build/types/analysis/{OwnConstructorCallExpressionMeaning.d.ts → a/OwnConstructorCallExpressionMeaning.d.ts} +6 -8
- package/build/types/analysis/{PackageAndStaticVariablesInitializationValidator.d.ts → a/PackageAndStaticVariablesInitializationValidator.d.ts} +4 -4
- package/build/types/analysis/{ReductionSourceMemberFinder.d.ts → a/ReductionSourceMemberFinder.d.ts} +5 -6
- package/build/types/analysis/{ReservedNameDictionary.d.ts → a/ReservedNameDictionary.d.ts} +3 -1
- package/build/types/analysis/{AnalyzedTranslationPackage.d.ts → a/ResolvedTranslationPackage.d.ts} +10 -12
- package/build/types/analysis/{ReturnTypeInferrer.d.ts → a/ReturnTypeInferrer.d.ts} +3 -3
- package/build/types/analysis/{SourceFileAnalyzer.d.ts → a/SourceFileAnalyzer.d.ts} +6 -6
- package/build/types/analysis/{SourcePackageMembersCreator.d.ts → a/SourcePackageMembersCreator.d.ts} +3 -3
- package/build/types/analysis/a/SyntacticAccessKind.d.ts +6 -0
- package/build/types/analysis/{TagMeaning.d.ts → a/TagMeaning.d.ts} +14 -21
- package/build/types/analysis/{TextIdentity.d.ts → a/TextIdentity.d.ts} +2 -2
- package/build/types/analysis/{TranslatedEntityNameConflictsValidator.d.ts → a/TranslatedEntityNameConflictsValidator.d.ts} +3 -3
- package/build/types/analysis/{TreeQuery.d.ts → a/TreeQuery.d.ts} +7 -8
- package/build/types/analysis/{TypeArgumentInferrer.d.ts → a/TypeArgumentInferrer.d.ts} +5 -4
- package/build/types/analysis/{TypeInferrer.d.ts → a/TypeInferrer.d.ts} +2 -2
- package/build/types/analysis/{TypeNarrower.d.ts → a/TypeNarrower.d.ts} +2 -2
- package/build/types/analysis/{TypeOverloadResolver.d.ts → a/TypeOverloadResolver.d.ts} +1 -1
- package/build/types/analysis/{UserDefinableBinaryOperatorResolver.d.ts → a/UserDefinableBinaryOperatorResolver.d.ts} +6 -6
- package/build/types/analysis/{UserDefinableUnaryOperatorResolver.d.ts → a/UserDefinableUnaryOperatorResolver.d.ts} +4 -4
- package/build/types/analysis/{control-flow → a/control-flow}/GraphBuilder.d.ts +6 -7
- package/build/types/analysis/{control-flow → a/control-flow}/NarrowableExpression.d.ts +1 -1
- package/build/types/analysis/{control-flow → a/control-flow}/NarrowableReference.d.ts +3 -3
- package/build/types/analysis/{control-flow → a/control-flow}/Nodes.d.ts +1 -1
- package/build/types/analysis/{semantic-context → a/semantic-context}/Declarations.d.ts +4 -4
- package/build/types/analysis/{semantic-context → a/semantic-context}/FieldWithInitializerSemanticContext.d.ts +3 -3
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextBase.d.ts +28 -22
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextBuilder.d.ts +16 -13
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextValidatingNameConflicts.d.ts +4 -4
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextWithParent.d.ts +1 -1
- package/build/types/analysis/{semantic-context → a/semantic-context}/SourceFileSemanticContext.d.ts +9 -10
- package/build/types/analysis/{semantic-context → a/semantic-context}/SpecialLocalDeclarationsBuilder.d.ts +2 -2
- package/build/types/analysis/{semantic-context → a/semantic-context}/SubprogramBodyAndParametersSemanticContext.d.ts +3 -3
- package/build/types/analysis/{semantic-context → a/semantic-context}/SubprogramSemanticContext.d.ts +7 -8
- package/build/types/analysis/{semantic-context → a/semantic-context}/TypeSemanticContext.d.ts +8 -9
- package/build/types/analysis/m/Analyzer.d.ts +10 -0
- package/build/types/api/Api.d.ts +24 -25
- package/build/types/common/LocalizationHelper.d.ts +1 -11
- package/build/types/common/LocalizationHelperA.d.ts +16 -0
- package/build/types/common/Logger.d.ts +1 -1
- package/build/types/common/index.d.ts +1 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +177 -174
- package/build/types/diagnostic/TokenDiagnostic.d.ts +1 -1
- package/build/types/emitter/Emitter.d.ts +1 -1
- package/build/types/emitter/{IrBuilder.d.ts → IrBuilderA.d.ts} +7 -7
- package/build/types/entities/BaseObjectType.d.ts +1 -1
- package/build/types/entities/Entity.d.ts +3 -47
- package/build/types/entities/EntityKind.d.ts +16 -0
- package/build/types/entities/EntityLocalizationContext.d.ts +8 -6
- package/build/types/entities/EntityToStringDecorator.d.ts +4 -0
- package/build/types/entities/IEntity.d.ts +1 -3
- package/build/types/entities/OperatorKind.d.ts +2 -2
- package/build/types/entities/PackageEntityMembers.d.ts +1 -2
- package/build/types/{analysis → entities}/Tag.d.ts +5 -2
- package/build/types/{analysis → entities}/Translation.d.ts +7 -7
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeMemberEntity.d.ts +31 -0
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +4 -5
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -4
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -2
- package/build/types/entities/interfaces/DestructorEntity.d.ts +2 -2
- package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -5
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +3 -5
- package/build/types/entities/interfaces/GetterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/IndexerEntity.d.ts +2 -2
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +2 -2
- package/build/types/entities/interfaces/PackageEntity.d.ts +23 -2
- package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +4 -5
- package/build/types/entities/interfaces/SetterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +3 -5
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +3 -3
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +3 -4
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/VariableEntity.d.ts +11 -11
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +3 -5
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +7 -5
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +9 -4
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicGetterEntity.d.ts +5 -4
- package/build/types/entities/intrinsic/IntrinsicSetterEntity.d.ts +21 -0
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +5 -3
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +6 -4
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +6 -4
- package/build/types/entities/intrinsic/index.d.ts +1 -0
- package/build/types/entities/source/{SourceAliasTypeEntity.d.ts → a/SourceAliasTypeEntity.d.ts} +5 -8
- package/build/types/entities/source/{SourceConstructorEntity.d.ts → a/SourceConstructorEntity.d.ts} +6 -8
- package/build/types/entities/source/{SourceDereferenceOperatorEntity.d.ts → a/SourceDereferenceOperatorEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceDestructorEntity.d.ts → a/SourceDestructorEntity.d.ts} +6 -8
- package/build/types/entities/source/{SourceFunctionEntity.d.ts → a/SourceFunctionEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceFunctionTypeEntity.d.ts → a/SourceFunctionTypeEntity.d.ts} +7 -12
- package/build/types/entities/source/{SourceGetterEntity.d.ts → a/SourceGetterEntity.d.ts} +9 -11
- package/build/types/entities/source/{SourceIndexerEntity.d.ts → a/SourceIndexerEntity.d.ts} +6 -7
- package/build/types/entities/source/{SourcePackageAliasEntity.d.ts → a/SourcePackageAliasEntity.d.ts} +5 -7
- package/build/types/entities/source/a/SourcePackageEntity.d.ts +67 -0
- package/build/types/entities/source/{SourceReducedTypeEntity.d.ts → a/SourceReducedTypeEntity.d.ts} +6 -9
- package/build/types/entities/source/{SourceSetterEntity.d.ts → a/SourceSetterEntity.d.ts} +8 -25
- package/build/types/entities/source/{SourceStructuredTypeEntity.d.ts → a/SourceStructuredTypeEntity.d.ts} +10 -15
- package/build/types/entities/source/{SourceTextTranslationEntity.d.ts → a/SourceTextTranslationEntity.d.ts} +4 -7
- package/build/types/entities/source/{SourceTypeExtensionEntity.d.ts → a/SourceTypeExtensionEntity.d.ts} +5 -8
- package/build/types/entities/source/{SourceTypeParameterEntity.d.ts → a/SourceTypeParameterEntity.d.ts} +6 -9
- package/build/types/entities/source/{SourceVariableEntity.d.ts → a/SourceVariableEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceVariantTypeEntity.d.ts → a/SourceVariantTypeEntity.d.ts} +6 -10
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +11 -21
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +5 -17
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +5 -8
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +10 -14
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +14 -31
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +9 -25
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +6 -16
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +37 -12
- package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +10 -19
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +18 -27
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +8 -15
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +10 -16
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +10 -25
- package/build/types/entities/translated/source/a/SourceTranslatedAliasTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedConstructorEntity.d.ts +12 -0
- package/build/types/entities/translated/source/a/SourceTranslatedDestructorEntity.d.ts +9 -0
- package/build/types/entities/translated/source/a/SourceTranslatedFunctionEntity.d.ts +24 -0
- package/build/types/entities/translated/source/a/SourceTranslatedFunctionTypeEntity.d.ts +13 -0
- package/build/types/entities/translated/source/a/SourceTranslatedIndexerEntity.d.ts +11 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageEntity.d.ts +19 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageStructuredTypeEntity.d.ts +20 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageVariantTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedReducedTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedTypeExtensionEntity.d.ts +9 -0
- package/build/types/entities/translated/source/a/index.d.ts +11 -0
- package/build/types/executor/NodeCompiler.d.ts +1 -1
- package/build/types/parser/{ConvertTokenKind.d.ts → a/ConvertTokenKind.d.ts} +1 -1
- package/build/types/parser/{KeywordDictionary.d.ts → a/KeywordDictionary.d.ts} +4 -3
- package/build/types/parser/{Parser.d.ts → a/Parser.d.ts} +2 -2
- package/build/types/parser/a/TokenKind.d.ts +80 -0
- package/build/types/parser/{TriviaInterner.d.ts → a/TriviaInterner.d.ts} +1 -1
- package/build/types/project/CompilationLoader.d.ts +3 -3
- package/build/types/project/SourceFile.d.ts +34 -10
- package/build/types/project/SourcePackage.d.ts +71 -19
- package/build/types/project/configuration/ConfigurationConverter.d.ts +3 -5
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +7 -6
- package/build/types/project/configuration/ConfigurationTranslator.d.ts +1 -3
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +1 -2
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +1 -2
- package/build/types/services/LanguageServer.d.ts +10 -10
- package/build/types/services/a/CodeActionsService.d.ts +10 -0
- package/build/types/services/{CompletionService.d.ts → a/CompletionService.d.ts} +5 -52
- package/build/types/services/a/DefinitionService.d.ts +11 -0
- package/build/types/services/a/DisplayService.d.ts +57 -0
- package/build/types/services/a/EvaluatableExpressionService.d.ts +10 -0
- package/build/types/services/a/HoverService.d.ts +11 -0
- package/build/types/services/a/NodeSemanticInfo.d.ts +45 -0
- package/build/types/services/a/RenameService.d.ts +11 -0
- package/build/types/services/a/ScriptEditingService.d.ts +13 -0
- package/build/types/services/a/SelectionRangeService.d.ts +7 -0
- package/build/types/services/a/SemanticTokensService.d.ts +11 -0
- package/build/types/services/a/SourceFileItemsService.d.ts +11 -0
- package/build/types/services/{TranslationService.d.ts → a/TranslationService.d.ts} +4 -4
- package/build/types/services/a/TranslationsGenerationService.d.ts +7 -0
- package/build/types/services/{TreeUtils.d.ts → a/TreeUtils.d.ts} +1 -1
- package/build/types/services/a/references/DefinitionInfoFinder.d.ts +6 -0
- package/build/types/services/a/references/ReferencesFinder.d.ts +7 -0
- package/build/types/services/{signature-help → a/signature-help}/ParametersSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/a/signature-help/SignatureHelpService.d.ts +6 -0
- package/build/types/services/{signature-help → a/signature-help}/SignatureWithParameters.d.ts +6 -6
- package/build/types/services/{signature-help → a/signature-help}/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/{signature-help → a/signature-help}/utils.d.ts +1 -1
- package/build/types/services/{FileSystemTreeDisplayService.d.ts → common/FileSystemTreeDisplayService.d.ts} +1 -1
- package/build/types/services/{Types.d.ts → common/Types.d.ts} +5 -5
- package/build/types/services/{Utils.d.ts → common/Utils.d.ts} +2 -2
- package/build/types/services/common/WorkspaceItemsService.d.ts +6 -0
- package/build/types/services/{CodeActionsService.d.ts → common/code-action/Types.d.ts} +8 -9
- package/build/types/services/common/completion/Types.d.ts +49 -0
- package/build/types/services/common/definition/DefinitionService.d.ts +23 -0
- package/build/types/services/common/definition/Types.d.ts +7 -0
- package/build/types/services/common/display/BaseDisplayService.d.ts +41 -0
- package/build/types/services/common/display/DisplayService.d.ts +52 -0
- package/build/types/services/{DisplayService.d.ts → common/display/Types.d.ts} +60 -177
- package/build/types/services/common/display/index.d.ts +2 -0
- package/build/types/services/common/document-highlights/DocumentHighlightsService.d.ts +9 -0
- package/build/types/services/common/document-highlights/Types.d.ts +11 -0
- package/build/types/services/common/evaluatable-expression/Types.d.ts +6 -0
- package/build/types/services/common/hover/HoverService.d.ts +16 -0
- package/build/types/services/common/hover/Types.d.ts +8 -0
- package/build/types/services/common/node-semantic-info/Types.d.ts +101 -0
- package/build/types/services/common/references/ReferencesFinder.d.ts +14 -0
- package/build/types/services/common/references/ReferencesSearchUtils.d.ts +5 -0
- package/build/types/services/common/references/ReferencesService.d.ts +12 -0
- package/build/types/services/common/references/Types.d.ts +41 -0
- package/build/types/services/common/rename/RenameService.d.ts +17 -0
- package/build/types/services/common/rename/Types.d.ts +8 -0
- package/build/types/services/common/script-editing/ScriptEditingService.d.ts +9 -0
- package/build/types/services/common/script-editing/Types.d.ts +9 -0
- package/build/types/services/common/selection-rage/Types.d.ts +6 -0
- package/build/types/services/{SemanticTokensService.d.ts → common/semantic-tokens/Types.d.ts} +1 -10
- package/build/types/services/{signature-help/SignatureHelpService.d.ts → common/signature-help/Types.d.ts} +1 -6
- package/build/types/services/{SourceFileItemsService.d.ts → common/source-file-items/Types.d.ts} +7 -16
- package/build/types/services/{source-generation → common/source-generation}/EntityToSyntax.d.ts +3 -3
- package/build/types/services/{source-generation → common/source-generation}/SourceGenerationService.d.ts +6 -6
- package/build/types/services/workspace/CompilationController.d.ts +5 -4
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +1 -1
- package/build/types/services/workspace/Workspace.d.ts +1 -1
- package/build/types/tree/NodePath.d.ts +6 -2
- package/build/types/tree/Types.d.ts +7 -0
- package/build/types/tree/Utils.d.ts +4 -7
- package/build/types/tree/a/BaseNode.d.ts +42 -0
- package/build/types/tree/{Nodes.d.ts → a/Nodes.d.ts} +87 -66
- package/build/types/tree/{SyntaxFactory.d.ts → a/SyntaxFactory.d.ts} +8 -4
- package/build/types/tree/{SyntaxToCode.d.ts → a/SyntaxToCode.d.ts} +2 -2
- package/build/types/tree/a/Token.d.ts +46 -0
- package/build/types/tree/a/TokenKind.d.ts +74 -0
- package/build/types/tree/a/TreeTraversal.d.ts +18 -0
- package/build/types/tree/a/Types.d.ts +45 -0
- package/build/types/tree/a/Utils.d.ts +3 -0
- package/build/types/tree/a/index.d.ts +15 -0
- package/build/types/tree/index.d.ts +1 -9
- package/build/types/tree/{BaseNode.d.ts → m/BaseNode.d.ts} +4 -27
- package/build/types/tree/m/NodeKind.d.ts +4 -0
- package/build/types/tree/m/Nodes.d.ts +17 -0
- package/build/types/tree/m/TokenKind.d.ts +74 -0
- package/build/types/tree/m/TriviaKind.d.ts +7 -0
- package/build/types/tree/m/index.d.ts +5 -0
- package/build/types/ts-interop/Entities.d.ts +9 -353
- package/build/types/ts-interop/TsInteropContext.d.ts +5 -14
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -2
- package/build/types/ts-interop/TsUtils.d.ts +10 -0
- package/build/types/ts-interop/TypeEntities.d.ts +359 -0
- package/build/types/ts-interop/Utils.d.ts +1 -1
- package/build/types/types/AliasType.d.ts +6 -8
- package/build/types/types/FunctionType.d.ts +7 -8
- package/build/types/types/IntersectionType.d.ts +4 -7
- package/build/types/types/ParameterType.d.ts +7 -9
- package/build/types/types/ReducedType.d.ts +6 -8
- package/build/types/types/StandardTypes.d.ts +4 -2
- package/build/types/types/StructuredType.d.ts +6 -7
- package/build/types/types/SubstitutionStubType.d.ts +5 -8
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +15 -9
- package/build/types/types/TypeFactory.d.ts +11 -2
- package/build/types/types/TypeMembers.d.ts +5 -2
- package/build/types/types/UnionType.d.ts +4 -7
- package/build/types/types/UnresolvedType.d.ts +4 -7
- package/build/types/types/VariantType.d.ts +6 -8
- package/package.json +13 -11
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +0 -21
- package/build/types/analysis/FindModifier.d.ts +0 -7
- package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +0 -9
- package/build/types/analysis/Utils.d.ts +0 -47
- package/build/types/analysis/Visitor.d.ts +0 -7
- package/build/types/analysis/index.d.ts +0 -8
- package/build/types/common/TreeTraversal.d.ts +0 -14
- package/build/types/entities/source/SourcePackageEntity.d.ts +0 -33
- package/build/types/parser/TokenKind.d.ts +0 -75
- package/build/types/services/DefinitionService.d.ts +0 -24
- package/build/types/services/DocumentHighlightsService.d.ts +0 -18
- package/build/types/services/EvaluatableExpressionService.d.ts +0 -15
- package/build/types/services/HoverService.d.ts +0 -17
- package/build/types/services/NodeSemanticInfo.d.ts +0 -147
- package/build/types/services/ReferencesService.d.ts +0 -30
- package/build/types/services/RenameService.d.ts +0 -17
- package/build/types/services/ScriptEditingService.d.ts +0 -25
- package/build/types/services/SelectionRangeService.d.ts +0 -12
- package/build/types/services/TranslationsGenerationService.d.ts +0 -7
- package/build/types/services/WorkspaceItemsService.d.ts +0 -6
- package/build/types/tree/TokenKind.d.ts +0 -74
- /package/build/types/analysis/{ModifierFlags.d.ts → a/ModifierFlags.d.ts} +0 -0
- /package/build/types/analysis/{ReachabilityChecker.d.ts → a/ReachabilityChecker.d.ts} +0 -0
- /package/build/types/analysis/{VariableIsAssignedChecker.d.ts → a/VariableIsAssignedChecker.d.ts} +0 -0
- /package/build/types/analysis/{VariableIsNotAssignedChecker.d.ts → a/VariableIsNotAssignedChecker.d.ts} +0 -0
- /package/build/types/analysis/{control-flow → a/control-flow}/GraphVisualizer.d.ts +0 -0
- /package/build/types/analysis/{control-flow → a/control-flow}/index.d.ts +0 -0
- /package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContext.d.ts +0 -0
- /package/build/types/analysis/{semantic-context → a/semantic-context}/index.d.ts +0 -0
- /package/build/types/entities/source/{index.d.ts → a/index.d.ts} +0 -0
- /package/build/types/parser/{Scanner.d.ts → a/Scanner.d.ts} +0 -0
- /package/build/types/tree/{KeywordFlags.d.ts → a/KeywordFlags.d.ts} +0 -0
- /package/build/types/tree/{KeywordKind.d.ts → a/KeywordKind.d.ts} +0 -0
- /package/build/types/tree/{NodeKind.d.ts → a/NodeKind.d.ts} +0 -0
- /package/build/types/tree/{NodesDebug.d.ts → a/NodesDebug.d.ts} +0 -0
- /package/build/types/tree/{OperatorKind.d.ts → a/OperatorKind.d.ts} +0 -0
- /package/build/types/tree/{TokenFlags.d.ts → a/TokenFlags.d.ts} +0 -0
- /package/build/types/tree/{TriviaKind.d.ts → a/TriviaKind.d.ts} +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { PackageDialect, PackageLocale, Query, Range } from '
|
|
2
|
-
import { ParserDiagnostic } from '
|
|
3
|
-
import { BaseNode
|
|
1
|
+
import { PackageDialect, PackageLocale, Query, Range } from '../../common/index.js';
|
|
2
|
+
import { ParserDiagnostic } from '../../parser/ParserDiagnostic.js';
|
|
3
|
+
import { BaseNode } from './BaseNode.js';
|
|
4
|
+
import { KeywordFlags } from './KeywordFlags.js';
|
|
4
5
|
import { KeywordKind } from './KeywordKind.js';
|
|
5
6
|
import { NodeKind } from './NodeKind.js';
|
|
6
7
|
import { NodesWithChild } from './NodesDebug.js';
|
|
8
|
+
import { Token } from './Token.js';
|
|
7
9
|
import { TokenKind } from './TokenKind.js';
|
|
8
10
|
export type Comma = Token<TokenKind.Comma>;
|
|
9
11
|
export type Semicolon = Token<TokenKind.Semicolon>;
|
|
@@ -27,10 +29,20 @@ export declare class SourceFile extends BaseNode {
|
|
|
27
29
|
get packageImportDirectiveList(): PackageImportDirectiveList;
|
|
28
30
|
get declarationList(): PackageMemberDeclarationList;
|
|
29
31
|
get endOfFileToken(): Token<TokenKind.EndOfFile>;
|
|
30
|
-
getSourceCode(): string;
|
|
31
32
|
protected get thisAsNode(): Node;
|
|
32
33
|
constructor(packageImportDirectiveList: PackageImportDirectiveList, declarationList: PackageMemberDeclarationList, endOfFileToken: Token<TokenKind.EndOfFile>, locale: PackageLocale, dialect: PackageDialect, diagnostics: readonly ParserDiagnostic[], rangeWithTrivia: Range | undefined);
|
|
33
34
|
}
|
|
35
|
+
export declare class Keyword<TKind extends KeywordKind = KeywordKind> extends BaseNode {
|
|
36
|
+
readonly kind = NodeKind.Keyword;
|
|
37
|
+
readonly children: readonly Identifier[];
|
|
38
|
+
readonly keywordKind: TKind;
|
|
39
|
+
readonly flags: KeywordFlags;
|
|
40
|
+
get parent(): Node;
|
|
41
|
+
get tokens(): readonly Identifier[];
|
|
42
|
+
get isMissing(): boolean;
|
|
43
|
+
protected get thisAsNode(): Node;
|
|
44
|
+
constructor(tokens: readonly Identifier[], keywordKind: TKind, flags: KeywordFlags | undefined, rangeWithTrivia: Range | undefined);
|
|
45
|
+
}
|
|
34
46
|
export type PackageMemberDeclarationListElement = PackageMemberDeclaration | Semicolon;
|
|
35
47
|
export type PackageMemberDeclarationListParent = SourceFile | PackageMemberGroupDeclaration;
|
|
36
48
|
export declare class PackageMemberDeclarationList extends BaseNode {
|
|
@@ -41,6 +53,7 @@ export declare class PackageMemberDeclarationList extends BaseNode {
|
|
|
41
53
|
get declarations(): Query<PackageMemberDeclaration>;
|
|
42
54
|
protected get thisAsNode(): Node;
|
|
43
55
|
constructor(elements: readonly PackageMemberDeclarationListElement[], rangeWithTrivia: Range | undefined);
|
|
56
|
+
flatten(): Iterable<Exclude<PackageMemberDeclaration, PackageMemberGroupDeclaration>>;
|
|
44
57
|
}
|
|
45
58
|
export type PackageImportDirectiveListElement = PackageImportDirective | Semicolon;
|
|
46
59
|
export declare class PackageImportDirectiveList extends BaseNode {
|
|
@@ -51,6 +64,7 @@ export declare class PackageImportDirectiveList extends BaseNode {
|
|
|
51
64
|
get packageImportDirectives(): Query<PackageImportDirective>;
|
|
52
65
|
protected get thisAsNode(): Node;
|
|
53
66
|
constructor(elements: readonly PackageImportDirectiveListElement[], rangeWithTrivia: Range | undefined);
|
|
67
|
+
flatten(): Iterable<PackageImport>;
|
|
54
68
|
}
|
|
55
69
|
export type PackageImportDirective = SinglePackageImportDirective | PackageGroupImportDirective;
|
|
56
70
|
export declare class SinglePackageImportDirective extends BaseNode {
|
|
@@ -344,6 +358,7 @@ export declare class TypeMemberDeclarationList extends BaseNode {
|
|
|
344
358
|
get members(): Query<TypeMemberDeclaration>;
|
|
345
359
|
protected get thisAsNode(): Node;
|
|
346
360
|
constructor(elements: readonly TypeMemberDeclarationListElement[], rangeWithTrivia: Range | undefined);
|
|
361
|
+
flatten(): Iterable<Exclude<TypeMemberDeclaration, TypeMemberGroupDeclaration>>;
|
|
347
362
|
}
|
|
348
363
|
export type TypeMemberDeclarationBlockParent = PackageClassDeclaration | PackageStructureDeclaration | PackageAspectDeclaration | PackageReducedTypeDeclaration | PackageVariantDeclaration | AnonymousClassDeclaration | PackageAliasTypeDeclaration | TypeExtensionDeclaration | TypeMemberGroupDeclaration;
|
|
349
364
|
export declare class TypeMemberDeclarationBlock extends BaseNode {
|
|
@@ -897,7 +912,12 @@ export declare class ForStatementVariableDeclaration extends BaseNode {
|
|
|
897
912
|
export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | MissingExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextLiteral | LocalizableTextLiteral | TextTemplateLiteral | LocalizableTextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | OwnConstructorCallExpression;
|
|
898
913
|
export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | Argument | CallExpression | DisposeStatement | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | ParameterDeclaration | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | FieldDeclaration | SwitchStatement | VariantValueDeclaration | WhileStatement | YieldStatement | GenericSpecializationExpression | ElseIfClause | TextTranslationDeclaration;
|
|
899
914
|
export type ExpressionListElement = Expression | Comma;
|
|
900
|
-
|
|
915
|
+
declare abstract class BaseExpressionNode extends BaseNode {
|
|
916
|
+
protected abstract get thisAsNode(): Expression;
|
|
917
|
+
unwrapParenthesizedExpressions(): Expression;
|
|
918
|
+
getParentSkippingParenthesizedExpressions(): ExpressionParent;
|
|
919
|
+
}
|
|
920
|
+
export declare class ArrayLiteral extends BaseExpressionNode {
|
|
901
921
|
readonly kind = NodeKind.ArrayLiteral;
|
|
902
922
|
readonly children: readonly [
|
|
903
923
|
Token<TokenKind.OpenSquareBracket>,
|
|
@@ -908,7 +928,7 @@ export declare class ArrayLiteral extends BaseNode {
|
|
|
908
928
|
get openSquareBracketToken(): Token<TokenKind.OpenSquareBracket>;
|
|
909
929
|
get elementList(): ArrayLiteralElementList;
|
|
910
930
|
get closeSquareBracketToken(): Token<TokenKind.CloseSquareBracket>;
|
|
911
|
-
protected get thisAsNode():
|
|
931
|
+
protected get thisAsNode(): Expression;
|
|
912
932
|
constructor(openSquareBracketToken: Token<TokenKind.OpenSquareBracket>, elementList: ArrayLiteralElementList, closeSquareBracketToken: Token<TokenKind.CloseSquareBracket>, rangeWithTrivia: Range | undefined);
|
|
913
933
|
}
|
|
914
934
|
export declare class ArrayLiteralElementList extends BaseNode {
|
|
@@ -920,7 +940,7 @@ export declare class ArrayLiteralElementList extends BaseNode {
|
|
|
920
940
|
protected get thisAsNode(): Node;
|
|
921
941
|
constructor(elements: readonly ExpressionListElement[], rangeWithTrivia: Range | undefined);
|
|
922
942
|
}
|
|
923
|
-
export declare class AssertionExpression extends
|
|
943
|
+
export declare class AssertionExpression extends BaseExpressionNode {
|
|
924
944
|
readonly kind = NodeKind.AssertionExpression;
|
|
925
945
|
readonly children: readonly [
|
|
926
946
|
Expression,
|
|
@@ -929,10 +949,10 @@ export declare class AssertionExpression extends BaseNode {
|
|
|
929
949
|
get parent(): ExpressionParent;
|
|
930
950
|
get expression(): Expression;
|
|
931
951
|
get exclamationToken(): Token<TokenKind.Exclamation>;
|
|
932
|
-
protected get thisAsNode():
|
|
952
|
+
protected get thisAsNode(): Expression;
|
|
933
953
|
constructor(expression: Expression, exclamationToken: Token<TokenKind.Exclamation>, rangeWithTrivia: Range | undefined);
|
|
934
954
|
}
|
|
935
|
-
export declare class AssumptionExpression extends
|
|
955
|
+
export declare class AssumptionExpression extends BaseExpressionNode {
|
|
936
956
|
readonly kind = NodeKind.AssumptionExpression;
|
|
937
957
|
readonly children: readonly [
|
|
938
958
|
Expression,
|
|
@@ -941,10 +961,10 @@ export declare class AssumptionExpression extends BaseNode {
|
|
|
941
961
|
get parent(): ExpressionParent;
|
|
942
962
|
get expression(): Expression;
|
|
943
963
|
get questionToken(): Token<TokenKind.Question>;
|
|
944
|
-
protected get thisAsNode():
|
|
964
|
+
protected get thisAsNode(): Expression;
|
|
945
965
|
constructor(expression: Expression, questionToken: Token<TokenKind.Question>, rangeWithTrivia: Range | undefined);
|
|
946
966
|
}
|
|
947
|
-
export declare class AsExpression extends
|
|
967
|
+
export declare class AsExpression extends BaseExpressionNode {
|
|
948
968
|
readonly kind = NodeKind.AsExpression;
|
|
949
969
|
readonly children: readonly [
|
|
950
970
|
Expression,
|
|
@@ -955,10 +975,10 @@ export declare class AsExpression extends BaseNode {
|
|
|
955
975
|
get expression(): Expression;
|
|
956
976
|
get asKeyword(): Keyword<KeywordKind.As>;
|
|
957
977
|
get typeSpecifier(): TypeSpecifier;
|
|
958
|
-
protected get thisAsNode():
|
|
978
|
+
protected get thisAsNode(): Expression;
|
|
959
979
|
constructor(expression: Expression, asKeyword: Keyword<KeywordKind.As>, typeSpecifier: TypeSpecifier, rangeWithTrivia: Range | undefined);
|
|
960
980
|
}
|
|
961
|
-
export declare class BinaryExpression extends
|
|
981
|
+
export declare class BinaryExpression extends BaseExpressionNode {
|
|
962
982
|
readonly kind = NodeKind.BinaryExpression;
|
|
963
983
|
readonly children: readonly [
|
|
964
984
|
Expression,
|
|
@@ -969,11 +989,11 @@ export declare class BinaryExpression extends BaseNode {
|
|
|
969
989
|
get left(): Expression;
|
|
970
990
|
get operator(): BinaryExpressionOperator;
|
|
971
991
|
get right(): Expression;
|
|
972
|
-
protected get thisAsNode():
|
|
992
|
+
protected get thisAsNode(): Expression;
|
|
973
993
|
constructor(left: Expression, operator: BinaryExpressionOperator, right: Expression, rangeWithTrivia: Range | undefined);
|
|
974
994
|
}
|
|
975
|
-
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Percent> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanOrEqual> | Token<TokenKind.GreaterThanOrEqual> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor> | Token<TokenKind.Ampersand> | Token<TokenKind.Bar> | Token<TokenKind.BarBar> | Token<TokenKind.
|
|
976
|
-
export declare class FunctionLiteral extends
|
|
995
|
+
export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Percent> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanOrEqual> | Token<TokenKind.GreaterThanOrEqual> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor> | Token<TokenKind.Ampersand> | Token<TokenKind.Bar> | Token<TokenKind.BarBar> | Token<TokenKind.BarLessThan> | Token<TokenKind.BarGreaterThan> | Token<TokenKind.BarGreaterThanGreaterThan>;
|
|
996
|
+
export declare class FunctionLiteral extends BaseExpressionNode {
|
|
977
997
|
readonly kind = NodeKind.FunctionLiteral;
|
|
978
998
|
readonly children: readonly [
|
|
979
999
|
Keyword<KeywordKind.Async> | undefined,
|
|
@@ -988,17 +1008,17 @@ export declare class FunctionLiteral extends BaseNode {
|
|
|
988
1008
|
get parameterClause(): ParameterClause;
|
|
989
1009
|
get returnTypeAnnotation(): TypeAnnotation | undefined;
|
|
990
1010
|
get block(): FunctionBlock;
|
|
991
|
-
protected get thisAsNode():
|
|
1011
|
+
protected get thisAsNode(): Expression;
|
|
992
1012
|
constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock, rangeWithTrivia: Range | undefined);
|
|
993
1013
|
}
|
|
994
|
-
export declare class FunctionBlockLiteral extends
|
|
1014
|
+
export declare class FunctionBlockLiteral extends BaseExpressionNode {
|
|
995
1015
|
readonly kind = NodeKind.FunctionBlockLiteral;
|
|
996
1016
|
readonly children: readonly [
|
|
997
1017
|
FunctionBlock
|
|
998
1018
|
];
|
|
999
1019
|
get parent(): ExpressionParent;
|
|
1000
1020
|
get block(): FunctionBlock;
|
|
1001
|
-
protected get thisAsNode():
|
|
1021
|
+
protected get thisAsNode(): Expression;
|
|
1002
1022
|
constructor(block: FunctionBlock, rangeWithTrivia: Range | undefined);
|
|
1003
1023
|
}
|
|
1004
1024
|
export type ArgumentListElement = Argument | Comma;
|
|
@@ -1012,7 +1032,7 @@ export declare class ArgumentList extends BaseNode {
|
|
|
1012
1032
|
protected get thisAsNode(): Node;
|
|
1013
1033
|
constructor(elements: readonly ArgumentListElement[], rangeWithTrivia: Range | undefined);
|
|
1014
1034
|
}
|
|
1015
|
-
export declare class CallExpression extends
|
|
1035
|
+
export declare class CallExpression extends BaseExpressionNode {
|
|
1016
1036
|
readonly kind = NodeKind.CallExpression;
|
|
1017
1037
|
readonly children: readonly [
|
|
1018
1038
|
Expression,
|
|
@@ -1025,10 +1045,10 @@ export declare class CallExpression extends BaseNode {
|
|
|
1025
1045
|
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
|
1026
1046
|
get argumentList(): ArgumentList;
|
|
1027
1047
|
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
|
1028
|
-
protected get thisAsNode():
|
|
1048
|
+
protected get thisAsNode(): Expression;
|
|
1029
1049
|
constructor(expression: Expression, openParenthesisToken: Token<TokenKind.OpenParenthesis>, argumentList: ArgumentList, closeParenthesisToken: Token<TokenKind.CloseParenthesis>, rangeWithTrivia: Range | undefined);
|
|
1030
1050
|
}
|
|
1031
|
-
export declare class AutotypeCallExpression extends
|
|
1051
|
+
export declare class AutotypeCallExpression extends BaseExpressionNode {
|
|
1032
1052
|
readonly kind = NodeKind.AutotypeCallExpression;
|
|
1033
1053
|
readonly children: readonly [
|
|
1034
1054
|
Keyword<KeywordKind.Autotype>,
|
|
@@ -1041,10 +1061,10 @@ export declare class AutotypeCallExpression extends BaseNode {
|
|
|
1041
1061
|
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
|
1042
1062
|
get argumentList(): ArgumentList;
|
|
1043
1063
|
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
|
1044
|
-
protected get thisAsNode():
|
|
1064
|
+
protected get thisAsNode(): Expression;
|
|
1045
1065
|
constructor(autotypeKeyword: Keyword<KeywordKind.Autotype>, openParenthesisToken: Token<TokenKind.OpenParenthesis>, argumentList: ArgumentList, closeParenthesisToken: Token<TokenKind.CloseParenthesis>, rangeWithTrivia: Range | undefined);
|
|
1046
1066
|
}
|
|
1047
|
-
export declare class IndexedAccessExpression extends
|
|
1067
|
+
export declare class IndexedAccessExpression extends BaseExpressionNode {
|
|
1048
1068
|
readonly kind = NodeKind.IndexedAccessExpression;
|
|
1049
1069
|
readonly children: readonly [
|
|
1050
1070
|
Expression,
|
|
@@ -1057,17 +1077,17 @@ export declare class IndexedAccessExpression extends BaseNode {
|
|
|
1057
1077
|
get openSquareBracketToken(): Token<TokenKind.OpenSquareBracket>;
|
|
1058
1078
|
get argumentList(): ArgumentList;
|
|
1059
1079
|
get closeSquareBracketToken(): Token<TokenKind.CloseSquareBracket>;
|
|
1060
|
-
protected get thisAsNode():
|
|
1080
|
+
protected get thisAsNode(): Expression;
|
|
1061
1081
|
constructor(expression: Expression, openSquareBracketToken: Token<TokenKind.OpenSquareBracket>, argumentList: ArgumentList, closeSquareBracketToken: Token<TokenKind.CloseSquareBracket>, rangeWithTrivia: Range | undefined);
|
|
1062
1082
|
}
|
|
1063
|
-
export declare class MissingExpression extends
|
|
1083
|
+
export declare class MissingExpression extends BaseExpressionNode {
|
|
1064
1084
|
readonly kind = NodeKind.MissingExpression;
|
|
1065
1085
|
get children(): readonly [];
|
|
1066
1086
|
get parent(): ExpressionParent;
|
|
1067
|
-
protected get thisAsNode():
|
|
1087
|
+
protected get thisAsNode(): Expression;
|
|
1068
1088
|
constructor(rangeWithTrivia: Range | undefined);
|
|
1069
1089
|
}
|
|
1070
|
-
export declare class IsExpression extends
|
|
1090
|
+
export declare class IsExpression extends BaseExpressionNode {
|
|
1071
1091
|
readonly kind = NodeKind.IsExpression;
|
|
1072
1092
|
readonly children: readonly [
|
|
1073
1093
|
Expression,
|
|
@@ -1078,10 +1098,10 @@ export declare class IsExpression extends BaseNode {
|
|
|
1078
1098
|
get expression(): Expression;
|
|
1079
1099
|
get isKeyword(): Keyword<KeywordKind.Is>;
|
|
1080
1100
|
get typeSpecifier(): TypeSpecifier;
|
|
1081
|
-
protected get thisAsNode():
|
|
1101
|
+
protected get thisAsNode(): Expression;
|
|
1082
1102
|
constructor(expression: Expression, isKeyword: Keyword<KeywordKind.Is>, typeSpecifier: TypeSpecifier, rangeWithTrivia: Range | undefined);
|
|
1083
1103
|
}
|
|
1084
|
-
export declare class ParenthesizedExpression extends
|
|
1104
|
+
export declare class ParenthesizedExpression extends BaseExpressionNode {
|
|
1085
1105
|
readonly kind = NodeKind.ParenthesizedExpression;
|
|
1086
1106
|
readonly children: readonly [
|
|
1087
1107
|
Token<TokenKind.OpenParenthesis>,
|
|
@@ -1092,10 +1112,10 @@ export declare class ParenthesizedExpression extends BaseNode {
|
|
|
1092
1112
|
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
|
1093
1113
|
get expression(): Expression;
|
|
1094
1114
|
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
|
1095
|
-
protected get thisAsNode():
|
|
1115
|
+
protected get thisAsNode(): Expression;
|
|
1096
1116
|
constructor(openParenthesisToken: Token<TokenKind.OpenParenthesis>, expression: Expression, closeParenthesisToken: Token<TokenKind.CloseParenthesis>, rangeWithTrivia: Range | undefined);
|
|
1097
1117
|
}
|
|
1098
|
-
export declare class ConditionalExpression extends
|
|
1118
|
+
export declare class ConditionalExpression extends BaseExpressionNode {
|
|
1099
1119
|
readonly kind = NodeKind.ConditionalExpression;
|
|
1100
1120
|
readonly children: readonly [
|
|
1101
1121
|
Keyword<KeywordKind.Cond>,
|
|
@@ -1116,10 +1136,10 @@ export declare class ConditionalExpression extends BaseNode {
|
|
|
1116
1136
|
get secondCommaToken(): Comma | undefined;
|
|
1117
1137
|
get secondExpression(): Expression | undefined;
|
|
1118
1138
|
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
|
1119
|
-
protected get thisAsNode():
|
|
1139
|
+
protected get thisAsNode(): Expression;
|
|
1120
1140
|
constructor(condKeyword: Keyword<KeywordKind.Cond>, openParenthesisToken: Token<TokenKind.OpenParenthesis>, condition: Expression, firstCommaToken: Comma, firstExpression: Expression, secondCommaToken: Comma | undefined, secondExpression: Expression | undefined, closeParenthesisToken: Token<TokenKind.CloseParenthesis>, rangeWithTrivia: Range | undefined);
|
|
1121
1141
|
}
|
|
1122
|
-
export declare class PrefixUnaryExpression extends
|
|
1142
|
+
export declare class PrefixUnaryExpression extends BaseExpressionNode {
|
|
1123
1143
|
readonly kind = NodeKind.PrefixUnaryExpression;
|
|
1124
1144
|
readonly children: readonly [
|
|
1125
1145
|
PrefixUnaryExpressionOperator,
|
|
@@ -1128,11 +1148,11 @@ export declare class PrefixUnaryExpression extends BaseNode {
|
|
|
1128
1148
|
get parent(): ExpressionParent;
|
|
1129
1149
|
get operator(): PrefixUnaryExpressionOperator;
|
|
1130
1150
|
get operand(): Expression;
|
|
1131
|
-
protected get thisAsNode():
|
|
1151
|
+
protected get thisAsNode(): Expression;
|
|
1132
1152
|
constructor(operator: PrefixUnaryExpressionOperator, operand: Expression, rangeWithTrivia: Range | undefined);
|
|
1133
1153
|
}
|
|
1134
1154
|
export type PrefixUnaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Keyword<KeywordKind.Not>;
|
|
1135
|
-
export declare class MemberAccessExpression extends
|
|
1155
|
+
export declare class MemberAccessExpression extends BaseExpressionNode {
|
|
1136
1156
|
readonly kind = NodeKind.MemberAccessExpression;
|
|
1137
1157
|
readonly children: readonly [
|
|
1138
1158
|
Expression,
|
|
@@ -1143,10 +1163,10 @@ export declare class MemberAccessExpression extends BaseNode {
|
|
|
1143
1163
|
get expression(): Expression;
|
|
1144
1164
|
get dotToken(): Token<TokenKind.Dot>;
|
|
1145
1165
|
get memberName(): Identifier;
|
|
1146
|
-
protected get thisAsNode():
|
|
1166
|
+
protected get thisAsNode(): Expression;
|
|
1147
1167
|
constructor(expression: Expression, dotToken: Token<TokenKind.Dot>, memberName: Identifier, rangeWithTrivia: Range | undefined);
|
|
1148
1168
|
}
|
|
1149
|
-
export declare class ReferenceExpression extends
|
|
1169
|
+
export declare class ReferenceExpression extends BaseExpressionNode {
|
|
1150
1170
|
readonly kind = NodeKind.ReferenceExpression;
|
|
1151
1171
|
readonly children: readonly [
|
|
1152
1172
|
Keyword<KeywordKind.Reference>,
|
|
@@ -1159,10 +1179,10 @@ export declare class ReferenceExpression extends BaseNode {
|
|
|
1159
1179
|
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
|
1160
1180
|
get expression(): Expression;
|
|
1161
1181
|
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
|
1162
|
-
protected get thisAsNode():
|
|
1182
|
+
protected get thisAsNode(): Expression;
|
|
1163
1183
|
constructor(referenceKeyword: Keyword<KeywordKind.Reference>, openParenthesisToken: Token<TokenKind.OpenParenthesis>, expression: Expression, closeParenthesisToken: Token<TokenKind.CloseParenthesis>, rangeWithTrivia: Range | undefined);
|
|
1164
1184
|
}
|
|
1165
|
-
export declare class DereferenceExpression extends
|
|
1185
|
+
export declare class DereferenceExpression extends BaseExpressionNode {
|
|
1166
1186
|
readonly kind = NodeKind.DereferenceExpression;
|
|
1167
1187
|
readonly children: readonly [
|
|
1168
1188
|
Expression,
|
|
@@ -1171,10 +1191,10 @@ export declare class DereferenceExpression extends BaseNode {
|
|
|
1171
1191
|
get parent(): ExpressionParent;
|
|
1172
1192
|
get expression(): Expression;
|
|
1173
1193
|
get caretToken(): Token<TokenKind.Caret>;
|
|
1174
|
-
protected get thisAsNode():
|
|
1194
|
+
protected get thisAsNode(): Expression;
|
|
1175
1195
|
constructor(expression: Expression, caretToken: Token<TokenKind.Caret>, rangeWithTrivia: Range | undefined);
|
|
1176
1196
|
}
|
|
1177
|
-
export declare class TextTemplateLiteral extends
|
|
1197
|
+
export declare class TextTemplateLiteral extends BaseExpressionNode {
|
|
1178
1198
|
readonly kind = NodeKind.TextTemplateLiteral;
|
|
1179
1199
|
readonly children: readonly [
|
|
1180
1200
|
TextTemplateHead,
|
|
@@ -1183,10 +1203,10 @@ export declare class TextTemplateLiteral extends BaseNode {
|
|
|
1183
1203
|
get parent(): ExpressionParent;
|
|
1184
1204
|
get head(): TextTemplateHead;
|
|
1185
1205
|
get spanList(): TextTemplateSpanList;
|
|
1186
|
-
protected get thisAsNode():
|
|
1206
|
+
protected get thisAsNode(): Expression;
|
|
1187
1207
|
constructor(head: TextTemplateHead, spanList: TextTemplateSpanList, rangeWithTrivia: Range | undefined);
|
|
1188
1208
|
}
|
|
1189
|
-
export declare class LocalizableTextTemplateLiteral extends
|
|
1209
|
+
export declare class LocalizableTextTemplateLiteral extends BaseExpressionNode {
|
|
1190
1210
|
readonly kind = NodeKind.LocalizableTextTemplateLiteral;
|
|
1191
1211
|
readonly children: readonly [
|
|
1192
1212
|
TextTemplateHead,
|
|
@@ -1197,7 +1217,7 @@ export declare class LocalizableTextTemplateLiteral extends BaseNode {
|
|
|
1197
1217
|
get head(): TextTemplateHead;
|
|
1198
1218
|
get spanList(): TextTemplateSpanList;
|
|
1199
1219
|
get code(): Token<TokenKind.IntegerLiteral> | undefined;
|
|
1200
|
-
protected get thisAsNode():
|
|
1220
|
+
protected get thisAsNode(): Expression;
|
|
1201
1221
|
constructor(head: TextTemplateHead, spanList: TextTemplateSpanList, code: Token<TokenKind.IntegerLiteral> | undefined, rangeWithTrivia: Range | undefined);
|
|
1202
1222
|
}
|
|
1203
1223
|
export type TextTemplateSpanListParent = TextTemplateLiteral | LocalizableTextTemplateLiteral;
|
|
@@ -1224,28 +1244,28 @@ export declare class TextTemplateSpan extends BaseNode {
|
|
|
1224
1244
|
protected get thisAsNode(): Node;
|
|
1225
1245
|
constructor(expression: Expression, text: TextTemplatePart | TextTemplateTail, rangeWithTrivia: Range | undefined);
|
|
1226
1246
|
}
|
|
1227
|
-
export declare class TokenExpression extends
|
|
1247
|
+
export declare class TokenExpression extends BaseExpressionNode {
|
|
1228
1248
|
readonly kind = NodeKind.TokenExpression;
|
|
1229
1249
|
readonly children: readonly [
|
|
1230
1250
|
TokenExpressionToken
|
|
1231
1251
|
];
|
|
1232
1252
|
get parent(): ExpressionParent;
|
|
1233
1253
|
get token(): TokenExpressionToken;
|
|
1234
|
-
protected get thisAsNode():
|
|
1254
|
+
protected get thisAsNode(): Expression;
|
|
1235
1255
|
constructor(token: TokenExpressionToken, rangeWithTrivia: Range | undefined);
|
|
1236
1256
|
}
|
|
1237
1257
|
export type TokenExpressionToken = Token<TokenKind.IntegerLiteral> | Token<TokenKind.RealLiteral> | Token<TokenKind.MeasureLiteral>;
|
|
1238
|
-
export declare class TextLiteral extends
|
|
1258
|
+
export declare class TextLiteral extends BaseExpressionNode {
|
|
1239
1259
|
readonly kind = NodeKind.TextLiteral;
|
|
1240
1260
|
readonly children: readonly [
|
|
1241
1261
|
Token<TokenKind.TextLiteral>
|
|
1242
1262
|
];
|
|
1243
1263
|
get parent(): ExpressionParent;
|
|
1244
1264
|
get text(): Token<TokenKind.TextLiteral>;
|
|
1245
|
-
protected get thisAsNode():
|
|
1265
|
+
protected get thisAsNode(): Expression;
|
|
1246
1266
|
constructor(text: Token<TokenKind.TextLiteral>, rangeWithTrivia: Range | undefined);
|
|
1247
1267
|
}
|
|
1248
|
-
export declare class LocalizableTextLiteral extends
|
|
1268
|
+
export declare class LocalizableTextLiteral extends BaseExpressionNode {
|
|
1249
1269
|
readonly kind = NodeKind.LocalizableTextLiteral;
|
|
1250
1270
|
readonly children: readonly [
|
|
1251
1271
|
Token<TokenKind.TextLiteral>,
|
|
@@ -1254,51 +1274,51 @@ export declare class LocalizableTextLiteral extends BaseNode {
|
|
|
1254
1274
|
get parent(): ExpressionParent;
|
|
1255
1275
|
get text(): Token<TokenKind.TextLiteral>;
|
|
1256
1276
|
get code(): Token<TokenKind.IntegerLiteral> | undefined;
|
|
1257
|
-
protected get thisAsNode():
|
|
1277
|
+
protected get thisAsNode(): Expression;
|
|
1258
1278
|
constructor(text: Token<TokenKind.TextLiteral>, code: Token<TokenKind.IntegerLiteral> | undefined, rangeWithTrivia: Range | undefined);
|
|
1259
1279
|
}
|
|
1260
|
-
export declare class KeywordExpression extends
|
|
1280
|
+
export declare class KeywordExpression extends BaseExpressionNode {
|
|
1261
1281
|
readonly kind = NodeKind.KeywordExpression;
|
|
1262
1282
|
readonly children: readonly [
|
|
1263
1283
|
KeywordExpressionKeyword
|
|
1264
1284
|
];
|
|
1265
1285
|
get parent(): ExpressionParent;
|
|
1266
1286
|
get keyword(): KeywordExpressionKeyword;
|
|
1267
|
-
protected get thisAsNode():
|
|
1287
|
+
protected get thisAsNode(): Expression;
|
|
1268
1288
|
constructor(keyword: KeywordExpressionKeyword, rangeWithTrivia: Range | undefined);
|
|
1269
1289
|
}
|
|
1270
1290
|
export type KeywordExpressionKeyword = Keyword<KeywordKind.Yes> | Keyword<KeywordKind.No> | Keyword<KeywordKind.Null>;
|
|
1271
|
-
export declare class ObjectExpression extends
|
|
1291
|
+
export declare class ObjectExpression extends BaseExpressionNode {
|
|
1272
1292
|
readonly kind = NodeKind.ObjectExpression;
|
|
1273
1293
|
readonly children: readonly [
|
|
1274
1294
|
ObjectKeyword
|
|
1275
1295
|
];
|
|
1276
1296
|
get parent(): ExpressionParent;
|
|
1277
1297
|
get keyword(): ObjectKeyword;
|
|
1278
|
-
protected get thisAsNode():
|
|
1298
|
+
protected get thisAsNode(): Expression;
|
|
1279
1299
|
constructor(keyword: ObjectKeyword, rangeWithTrivia: Range | undefined);
|
|
1280
1300
|
}
|
|
1281
|
-
export declare class BaseExpression extends
|
|
1301
|
+
export declare class BaseExpression extends BaseExpressionNode {
|
|
1282
1302
|
readonly kind = NodeKind.BaseExpression;
|
|
1283
1303
|
readonly children: readonly [
|
|
1284
1304
|
Keyword<KeywordKind.Base>
|
|
1285
1305
|
];
|
|
1286
1306
|
get parent(): ExpressionParent;
|
|
1287
1307
|
get keyword(): Keyword<KeywordKind.Base>;
|
|
1288
|
-
protected get thisAsNode():
|
|
1308
|
+
protected get thisAsNode(): Expression;
|
|
1289
1309
|
constructor(keyword: Keyword<KeywordKind.Base>, rangeWithTrivia: Range | undefined);
|
|
1290
1310
|
}
|
|
1291
|
-
export declare class IdentifierExpression extends
|
|
1311
|
+
export declare class IdentifierExpression extends BaseExpressionNode {
|
|
1292
1312
|
readonly kind = NodeKind.IdentifierExpression;
|
|
1293
1313
|
readonly children: readonly [
|
|
1294
1314
|
Identifier
|
|
1295
1315
|
];
|
|
1296
1316
|
get parent(): ExpressionParent;
|
|
1297
1317
|
get identifier(): Identifier;
|
|
1298
|
-
protected get thisAsNode():
|
|
1318
|
+
protected get thisAsNode(): Expression;
|
|
1299
1319
|
constructor(identifier: Identifier, rangeWithTrivia: Range | undefined);
|
|
1300
1320
|
}
|
|
1301
|
-
export declare class GenericSpecializationExpression extends
|
|
1321
|
+
export declare class GenericSpecializationExpression extends BaseExpressionNode {
|
|
1302
1322
|
readonly kind = NodeKind.GenericSpecializationExpression;
|
|
1303
1323
|
readonly children: readonly [
|
|
1304
1324
|
Expression,
|
|
@@ -1307,20 +1327,20 @@ export declare class GenericSpecializationExpression extends BaseNode {
|
|
|
1307
1327
|
get parent(): ExpressionParent;
|
|
1308
1328
|
get expression(): Expression;
|
|
1309
1329
|
get typeArgumentClause(): TypeArgumentClause;
|
|
1310
|
-
protected get thisAsNode():
|
|
1330
|
+
protected get thisAsNode(): Expression;
|
|
1311
1331
|
constructor(expression: Expression, typeArgumentClause: TypeArgumentClause, rangeWithTrivia: Range | undefined);
|
|
1312
1332
|
}
|
|
1313
|
-
export declare class DefaultMatchExpression extends
|
|
1333
|
+
export declare class DefaultMatchExpression extends BaseExpressionNode {
|
|
1314
1334
|
readonly kind = NodeKind.DefaultMatchExpression;
|
|
1315
1335
|
readonly children: readonly [
|
|
1316
1336
|
Token<TokenKind.Asterisk>
|
|
1317
1337
|
];
|
|
1318
1338
|
get parent(): ExpressionParent;
|
|
1319
1339
|
get asteriskToken(): Token<TokenKind.Asterisk>;
|
|
1320
|
-
protected get thisAsNode():
|
|
1340
|
+
protected get thisAsNode(): Expression;
|
|
1321
1341
|
constructor(asteriskToken: Token<TokenKind.Asterisk>, rangeWithTrivia: Range | undefined);
|
|
1322
1342
|
}
|
|
1323
|
-
export declare class OwnConstructorCallExpression extends
|
|
1343
|
+
export declare class OwnConstructorCallExpression extends BaseExpressionNode {
|
|
1324
1344
|
readonly kind = NodeKind.OwnConstructorCallExpression;
|
|
1325
1345
|
readonly children: readonly [
|
|
1326
1346
|
Keyword<KeywordKind.Creation>,
|
|
@@ -1333,7 +1353,7 @@ export declare class OwnConstructorCallExpression extends BaseNode {
|
|
|
1333
1353
|
get openParenthesisToken(): Token<TokenKind.OpenParenthesis>;
|
|
1334
1354
|
get argumentList(): ArgumentList;
|
|
1335
1355
|
get closeParenthesisToken(): Token<TokenKind.CloseParenthesis>;
|
|
1336
|
-
protected get thisAsNode():
|
|
1356
|
+
protected get thisAsNode(): Expression;
|
|
1337
1357
|
constructor(creationKeyword: Keyword<KeywordKind.Creation>, openParenthesisToken: Token<TokenKind.OpenParenthesis>, argumentList: ArgumentList, closeParenthesisToken: Token<TokenKind.CloseParenthesis>, rangeWithTrivia: Range | undefined);
|
|
1338
1358
|
}
|
|
1339
1359
|
export type Statement = AssignmentStatement | RunStatement | TryStatement | IfStatement | ForStatement | WhileStatement | LoopStatement | ReturnStatement | ErrorStatement | LocalVariableDeclarationStatement | YieldStatement | MissingStatement | ImportantStatement | ExpressionStatement | SwitchStatement | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | NestedFunctionDeclarationStatement;
|
|
@@ -1351,7 +1371,7 @@ export declare class AssignmentStatement extends BaseNode {
|
|
|
1351
1371
|
protected get thisAsNode(): Node;
|
|
1352
1372
|
constructor(left: Expression, operator: AssignmentStatementOperator, right: Expression, rangeWithTrivia: Range | undefined);
|
|
1353
1373
|
}
|
|
1354
|
-
export type AssignmentStatementOperator = Token<TokenKind.Equals> | Token<TokenKind.PlusEquals> | Token<TokenKind.MinusEquals> | Token<TokenKind.AsteriskEquals> | Token<TokenKind.SlashEquals> | Token<TokenKind.PercentEquals> | Token<TokenKind.AmpersandEquals> | Token<TokenKind.BarEquals> | Token<TokenKind.BarBarEquals> | Token<TokenKind.
|
|
1374
|
+
export type AssignmentStatementOperator = Token<TokenKind.Equals> | Token<TokenKind.PlusEquals> | Token<TokenKind.MinusEquals> | Token<TokenKind.AsteriskEquals> | Token<TokenKind.SlashEquals> | Token<TokenKind.PercentEquals> | Token<TokenKind.AmpersandEquals> | Token<TokenKind.BarEquals> | Token<TokenKind.BarBarEquals> | Token<TokenKind.BarLessThanEquals> | Token<TokenKind.BarGreaterThanEquals> | Token<TokenKind.BarGreaterThanGreaterThanEquals>;
|
|
1355
1375
|
export type StatementListParent = FunctionBlock | StatementBlock;
|
|
1356
1376
|
export type StatementListElement = Statement | Semicolon;
|
|
1357
1377
|
export declare class StatementList extends BaseNode {
|
|
@@ -2302,3 +2322,4 @@ export declare class TypeAnnotation extends BaseNode {
|
|
|
2302
2322
|
constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier, rangeWithTrivia: Range | undefined);
|
|
2303
2323
|
}
|
|
2304
2324
|
export type Node = Token | Keyword | SourceFile | PackageMemberDeclarationList | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | MissingTypeSpecifier | AnonymousFunctionTypeDeclaration | PackageAliasTypeDeclaration | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | MissingPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | MissingTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | ForStatementVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | MissingExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | LocalizableTextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | TextLiteral | LocalizableTextLiteral | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | OwnConstructorCallExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | MissingStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslationDeclaration | MethodTranslation | FunctionTypeTranslationDeclaration | QualifiedName | PackageVariableTranslationDeclaration | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslationDeclaration | TextTranslationDeclaration | TextTranslationFunctionDeclaration | TranslationTextLiteral | TranslationTextTemplate | TranslationTextTemplateSpanList | TranslationTextTemplateSpan | TranslationTextTemplateParameter | VariantValueDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | PackageClassDeclaration | PackageStructureDeclaration | PackageAspectDeclaration | PackageReducedTypeDeclaration | PackageVariantDeclaration | ExtendsClause | ReducesClause | AnonymousClassDeclaration;
|
|
2325
|
+
export {};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { KeywordKind } from './KeywordKind.js';
|
|
2
|
+
import * as tree from './Nodes.js';
|
|
3
|
+
import { Token } from './Token.js';
|
|
4
|
+
import { TokenFlags } from './TokenFlags.js';
|
|
5
|
+
import { TokenKind } from './TokenKind.js';
|
|
2
6
|
export declare class SyntaxFactory {
|
|
3
7
|
static sourceFile(packageImportDirectives: readonly tree.PackageImportDirective[], declarations: readonly tree.PackageMemberDeclaration[]): tree.SourceFile;
|
|
4
8
|
static singlePackageImportDirective(alias: tree.Identifier | string | undefined, pathSegments: readonly string[]): tree.SinglePackageImportDirective;
|
|
@@ -60,9 +64,9 @@ export declare class SyntaxFactory {
|
|
|
60
64
|
static translationParameterClause(parameters: readonly (tree.Identifier | string)[]): tree.TranslationParameterClause;
|
|
61
65
|
static indexParameterTranslationClause(parameters: readonly (tree.Identifier | string)[]): tree.IndexParameterTranslationClause;
|
|
62
66
|
static typeMemberDeclarationWithModifiers(node: tree.TypeMemberDeclaration, modifiers: readonly tree.Modifier[] | tree.ModifierList): tree.TypeMemberDeclaration;
|
|
63
|
-
static identifier(value: tree.Identifier | string, flags?:
|
|
64
|
-
static token<T extends
|
|
65
|
-
static keyword<T extends
|
|
67
|
+
static identifier(value: tree.Identifier | string, flags?: TokenFlags): tree.Identifier;
|
|
68
|
+
static token<T extends TokenKind>(kind: T, value?: string): Token<T>;
|
|
69
|
+
static keyword<T extends KeywordKind>(kind: T): tree.Keyword<T>;
|
|
66
70
|
private static createToken;
|
|
67
71
|
private static createKeyword;
|
|
68
72
|
private static createTypeParameterClause;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PackageDialect, PackageLocale } from '
|
|
2
|
-
import * as tree from './
|
|
1
|
+
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
2
|
+
import type * as tree from './Nodes.js';
|
|
3
3
|
export declare class SyntaxToCode {
|
|
4
4
|
private static writeFunctions_;
|
|
5
5
|
private readonly node;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Range } from '../../common/index.js';
|
|
2
|
+
import { BaseNode } from './BaseNode.js';
|
|
3
|
+
import { NodeKind } from './NodeKind.js';
|
|
4
|
+
import { Node } from './Nodes.js';
|
|
5
|
+
import { OperatorKind } from './OperatorKind.js';
|
|
6
|
+
import { TokenFlags } from './TokenFlags.js';
|
|
7
|
+
import { TokenKind } from './TokenKind.js';
|
|
8
|
+
import { TriviaKind } from './TriviaKind.js';
|
|
9
|
+
export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode {
|
|
10
|
+
readonly kind = NodeKind.Token;
|
|
11
|
+
readonly tokenKind: TKind;
|
|
12
|
+
readonly value: string;
|
|
13
|
+
readonly leadingTrivia: readonly Trivia[];
|
|
14
|
+
readonly trailingTrivia: readonly Trivia[];
|
|
15
|
+
readonly flags: TokenFlags;
|
|
16
|
+
readonly operatorKind: OperatorKind | undefined;
|
|
17
|
+
get children(): readonly [];
|
|
18
|
+
get parent(): Node;
|
|
19
|
+
get isMissing(): boolean;
|
|
20
|
+
protected get thisAsNode(): Node;
|
|
21
|
+
constructor(tokenKind: TKind, value: string, leadingTrivia: readonly Trivia[], trailingTrivia: readonly Trivia[], flags: TokenFlags, operatorKind: OperatorKind | undefined, rangeWithTrivia: Range | undefined);
|
|
22
|
+
get rangeWithoutTrivia(): Range;
|
|
23
|
+
getTextWithTrivia(): string;
|
|
24
|
+
hasLeadingLineBreak(): boolean;
|
|
25
|
+
hasTrailingLineBreak(): boolean;
|
|
26
|
+
getTriviaAt(position: number): TokenTrivia | undefined;
|
|
27
|
+
selectLeadingTrivia(condition: (trivia: Trivia, rangeStart: number, rangeEnd: number) => boolean): TokenTrivia[];
|
|
28
|
+
selectTrailingTrivia(condition: (trivia: Trivia, rangeStart: number, rangeEnd: number) => boolean): TokenTrivia[];
|
|
29
|
+
protected getLengthWithTrivia(): number;
|
|
30
|
+
}
|
|
31
|
+
export declare class Trivia {
|
|
32
|
+
readonly kind: TriviaKind;
|
|
33
|
+
readonly value: string;
|
|
34
|
+
get rangeLength(): number;
|
|
35
|
+
constructor(kind: TriviaKind, value: string);
|
|
36
|
+
}
|
|
37
|
+
export declare class TokenTrivia {
|
|
38
|
+
readonly trivia: Trivia;
|
|
39
|
+
readonly token: Token<TokenKind>;
|
|
40
|
+
readonly isTrailing: boolean;
|
|
41
|
+
readonly index: number;
|
|
42
|
+
readonly range: Range;
|
|
43
|
+
get kind(): TriviaKind;
|
|
44
|
+
get value(): string;
|
|
45
|
+
constructor(token: Token<TokenKind>, trivia: Trivia, isTrailing: boolean, index: number, range: Range);
|
|
46
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare enum TokenKind {
|
|
2
|
+
Unknown = 0,
|
|
3
|
+
EndOfFile = 1,
|
|
4
|
+
IntegerLiteral = 2,
|
|
5
|
+
RealLiteral = 3,
|
|
6
|
+
MeasureLiteral = 4,
|
|
7
|
+
TextLiteral = 5,
|
|
8
|
+
TextTemplateHead = 6,
|
|
9
|
+
TextTemplatePart = 7,
|
|
10
|
+
TextTemplateTail = 8,
|
|
11
|
+
Identifier = 9,
|
|
12
|
+
Ampersand = 10,
|
|
13
|
+
AmpersandAmpersand = 11,
|
|
14
|
+
AmpersandEquals = 12,
|
|
15
|
+
Asterisk = 13,
|
|
16
|
+
AsteriskAsterisk = 14,
|
|
17
|
+
AsteriskEquals = 15,
|
|
18
|
+
BackQuote = 16,
|
|
19
|
+
Bar = 17,
|
|
20
|
+
BarBar = 18,
|
|
21
|
+
BarEquals = 19,
|
|
22
|
+
BarBarEquals = 20,
|
|
23
|
+
BarLessThan = 21,
|
|
24
|
+
BarLessThanEquals = 22,
|
|
25
|
+
BarGreaterThan = 23,
|
|
26
|
+
BarGreaterThanEquals = 24,
|
|
27
|
+
BarGreaterThanGreaterThan = 25,
|
|
28
|
+
BarGreaterThanGreaterThanEquals = 26,
|
|
29
|
+
Caret = 27,
|
|
30
|
+
CloseBrace = 28,
|
|
31
|
+
CloseParenthesis = 29,
|
|
32
|
+
CloseSquareBracket = 30,
|
|
33
|
+
Colon = 31,
|
|
34
|
+
Comma = 32,
|
|
35
|
+
CommercialAt = 33,
|
|
36
|
+
Dot = 34,
|
|
37
|
+
DoublePeriod = 35,
|
|
38
|
+
Ellipsis = 36,
|
|
39
|
+
EqualsEquals = 37,
|
|
40
|
+
Exclamation = 38,
|
|
41
|
+
ExclamationEquals = 39,
|
|
42
|
+
GreaterThan = 40,
|
|
43
|
+
GreaterThanOrEqual = 41,
|
|
44
|
+
HashSign = 42,
|
|
45
|
+
LessThan = 43,
|
|
46
|
+
LessThanOrEqual = 44,
|
|
47
|
+
LessThanMinus = 45,
|
|
48
|
+
Minus = 46,
|
|
49
|
+
MinusMinus = 47,
|
|
50
|
+
MinusEquals = 48,
|
|
51
|
+
MinusGreaterThan = 49,
|
|
52
|
+
OpenBrace = 50,
|
|
53
|
+
OpenParenthesis = 51,
|
|
54
|
+
OpenSquareBracket = 52,
|
|
55
|
+
Plus = 53,
|
|
56
|
+
PlusPlus = 54,
|
|
57
|
+
PlusEquals = 55,
|
|
58
|
+
Question = 56,
|
|
59
|
+
QuestionQuestion = 57,
|
|
60
|
+
Semicolon = 58,
|
|
61
|
+
Slash = 59,
|
|
62
|
+
SlashEquals = 60,
|
|
63
|
+
Tilde = 61,
|
|
64
|
+
TildeTilde = 62,
|
|
65
|
+
Underscore = 63,
|
|
66
|
+
Equals = 64,
|
|
67
|
+
Percent = 65,
|
|
68
|
+
PercentEquals = 66,
|
|
69
|
+
PercentPercent = 67,
|
|
70
|
+
Backslash = 68
|
|
71
|
+
}
|
|
72
|
+
export declare const tokenKindValues: {
|
|
73
|
+
[T in TokenKind]: string;
|
|
74
|
+
};
|