@artel/artc 0.6.25191
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 +20 -0
- package/build/api/Api.js +664 -0
- package/build/api/ApiNodeJS.js +20 -0
- package/build/api/ApiServices.js +12847 -0
- package/build/chunk-BQHCAH6D.js +588 -0
- package/build/chunk-O2JKESUU.js +63219 -0
- package/build/chunk-QRBDQKYM.js +94 -0
- package/build/types/Cli.d.ts +3 -0
- package/build/types/analysis/AccessedMethod.d.ts +53 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +191 -0
- package/build/types/analysis/Analyzer.d.ts +665 -0
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +25 -0
- package/build/types/analysis/BaseExpressionMeaning.d.ts +47 -0
- package/build/types/analysis/BuiltInOperators.d.ts +14 -0
- package/build/types/analysis/CallArgumentToParameterMatchResult.d.ts +30 -0
- package/build/types/analysis/CallArgumentsToParametersMatcher.d.ts +44 -0
- package/build/types/analysis/CallExpressionMeaning.d.ts +39 -0
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +34 -0
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +18 -0
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +23 -0
- package/build/types/analysis/DiagnosticCollector.d.ts +68 -0
- package/build/types/analysis/EntityLocalizationHelper.d.ts +15 -0
- package/build/types/analysis/FindModifier.d.ts +4 -0
- package/build/types/analysis/FoundDeclaration.d.ts +19 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +98 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +22 -0
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +26 -0
- package/build/types/analysis/IndexerAccess.d.ts +10 -0
- package/build/types/analysis/Localization.d.ts +54 -0
- package/build/types/analysis/LocalizationContext.d.ts +15 -0
- package/build/types/analysis/Lookup.d.ts +23 -0
- package/build/types/analysis/NamedTypeResolver.d.ts +42 -0
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +20 -0
- package/build/types/analysis/NodeTypeUtils.d.ts +28 -0
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +38 -0
- package/build/types/analysis/OperationOverloadResolver.d.ts +19 -0
- package/build/types/analysis/OverloadResolver.d.ts +12 -0
- package/build/types/analysis/PackageMemberLookup.d.ts +15 -0
- package/build/types/analysis/PrefixUnaryOperatorResolver.d.ts +27 -0
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +100 -0
- package/build/types/analysis/Scope.d.ts +309 -0
- package/build/types/analysis/SemanticContext.d.ts +320 -0
- package/build/types/analysis/SemanticContextBuilder.d.ts +54 -0
- package/build/types/analysis/SourceFileMembers.d.ts +92 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +41 -0
- package/build/types/analysis/SourcePackageMembersCreator.d.ts +6 -0
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +22 -0
- package/build/types/analysis/SubstitutedMethod.d.ts +49 -0
- package/build/types/analysis/TagMeaning.d.ts +26 -0
- package/build/types/analysis/Tags.d.ts +29 -0
- package/build/types/analysis/TargetTypeHint.d.ts +5 -0
- package/build/types/analysis/TypeInferrer.d.ts +9 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +27 -0
- package/build/types/analysis/TypeOverloadResolver.d.ts +7 -0
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +37 -0
- package/build/types/analysis/Utils.d.ts +17 -0
- package/build/types/analysis/VariableAccess.d.ts +10 -0
- package/build/types/analysis/VariantLookup.d.ts +20 -0
- package/build/types/analysis/Visitor.d.ts +7 -0
- package/build/types/analysis/WellKnownDeclarations.d.ts +34 -0
- package/build/types/analysis/index.d.ts +8 -0
- package/build/types/api/Api.d.ts +59 -0
- package/build/types/api/ApiNodeJS.d.ts +5 -0
- package/build/types/api/ApiServices.d.ts +3 -0
- package/build/types/common/AccessKind.d.ts +4 -0
- package/build/types/common/ArtelFileCheck.d.ts +2 -0
- package/build/types/common/Cached.d.ts +6 -0
- package/build/types/common/CancellationToken.d.ts +13 -0
- package/build/types/common/Constants.d.ts +19 -0
- package/build/types/common/Debug.d.ts +10 -0
- package/build/types/common/Delayed.d.ts +7 -0
- package/build/types/common/ErrorHandlingStrategy.d.ts +3 -0
- package/build/types/common/FormatString.d.ts +5 -0
- package/build/types/common/HelperPhrases.d.ts +11 -0
- package/build/types/common/Interner.d.ts +4 -0
- package/build/types/common/L10nConfig.d.ts +1 -0
- package/build/types/common/Lazy.d.ts +9 -0
- package/build/types/common/LocalizationHelper.d.ts +10 -0
- package/build/types/common/Logger.d.ts +10 -0
- package/build/types/common/Name.d.ts +83 -0
- package/build/types/common/NameFormatConversion.d.ts +12 -0
- package/build/types/common/NonEmptyArray.d.ts +8 -0
- package/build/types/common/Option.d.ts +28 -0
- package/build/types/common/PackageDialect.d.ts +5 -0
- package/build/types/common/PackageLocale.d.ts +15 -0
- package/build/types/common/PackageLocaleGuard.d.ts +1 -0
- package/build/types/common/Path.d.ts +8 -0
- package/build/types/common/PerformanceMeasurement.d.ts +20 -0
- package/build/types/common/Query.d.ts +39 -0
- package/build/types/common/Range.d.ts +10 -0
- package/build/types/common/Result.d.ts +13 -0
- package/build/types/common/SearchName.d.ts +13 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +17 -0
- package/build/types/common/TreeQuery.d.ts +53 -0
- package/build/types/common/TreeTraversal.d.ts +13 -0
- package/build/types/common/Uri.d.ts +28 -0
- package/build/types/common/UriTree.d.ts +41 -0
- package/build/types/common/UserLocale.d.ts +2 -0
- package/build/types/common/WithDiagnostics.d.ts +19 -0
- package/build/types/common/YieldExecution.d.ts +1 -0
- package/build/types/common/index.d.ts +32 -0
- package/build/types/diagnostic/Diagnostic.d.ts +21 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +146 -0
- package/build/types/diagnostic/DiagnosticData.d.ts +20 -0
- package/build/types/diagnostic/DiagnosticFormatter.d.ts +8 -0
- package/build/types/diagnostic/RangeDiagnostic.d.ts +19 -0
- package/build/types/emitter/BlockStatementTransformationResult.d.ts +10 -0
- package/build/types/emitter/CustomModuleLoader.d.ts +1 -0
- package/build/types/emitter/DebugStack.d.ts +10 -0
- package/build/types/emitter/Emitter.d.ts +61 -0
- package/build/types/emitter/EmitterContext.d.ts +342 -0
- package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +36 -0
- package/build/types/emitter/EmitterPackage.d.ts +60 -0
- package/build/types/emitter/EntityNameProviders.d.ts +33 -0
- package/build/types/emitter/ExpressionTransformationResult.d.ts +17 -0
- package/build/types/emitter/GeneralLowering.d.ts +72 -0
- package/build/types/emitter/Internal.d.ts +10 -0
- package/build/types/emitter/IntrinsicEntities.d.ts +118 -0
- package/build/types/emitter/IrBuilder.d.ts +108 -0
- package/build/types/emitter/IrToJs.d.ts +113 -0
- package/build/types/emitter/JavaScriptName.d.ts +1 -0
- package/build/types/emitter/PackageMemberDeclarationTransformationResult.d.ts +17 -0
- package/build/types/emitter/SimpleTransformationResult.d.ts +14 -0
- package/build/types/emitter/StatementTransformationResult.d.ts +16 -0
- package/build/types/emitter/StructuredTypeMemberDeclarationTransformationResult.d.ts +13 -0
- package/build/types/emitter/TransformationContinuationAction.d.ts +4 -0
- package/build/types/emitter/Transformer.d.ts +282 -0
- package/build/types/emitter/TypeAccessExpressionTransformationResult.d.ts +12 -0
- package/build/types/emitter/error-boundary.d.ts +10 -0
- package/build/types/emitter/index.d.ts +1 -0
- package/build/types/emitter/ir/AccessedEntities.d.ts +19 -0
- package/build/types/emitter/ir/LoweringOptions.d.ts +34 -0
- package/build/types/emitter/ir/Nodes.d.ts +1585 -0
- package/build/types/emitter/ir/SourceLocation.d.ts +10 -0
- package/build/types/emitter/ir/index.d.ts +5 -0
- package/build/types/emitter/ir/types.d.ts +10 -0
- package/build/types/entities/AliasTypeEntity.d.ts +84 -0
- package/build/types/entities/BinaryOperatorEntity.d.ts +48 -0
- package/build/types/entities/ConstructorEntity.d.ts +99 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +40 -0
- package/build/types/entities/DestructorEntity.d.ts +31 -0
- package/build/types/entities/EntityHiding.d.ts +27 -0
- package/build/types/entities/EntityNaming.d.ts +12 -0
- package/build/types/entities/GetterEntity.d.ts +86 -0
- package/build/types/entities/IndexerEntity.d.ts +51 -0
- package/build/types/entities/MethodEntity.d.ts +174 -0
- package/build/types/entities/MethodTypeEntity.d.ts +98 -0
- package/build/types/entities/PackageAliasEntity.d.ts +30 -0
- package/build/types/entities/PackageEntity.d.ts +56 -0
- package/build/types/entities/PackageMembers.d.ts +98 -0
- package/build/types/entities/SetterEntity.d.ts +78 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +199 -0
- package/build/types/entities/SubstitutionApplicationMode.d.ts +4 -0
- package/build/types/entities/TypeEntityMembers.d.ts +36 -0
- package/build/types/entities/TypeExtensionEntity.d.ts +33 -0
- package/build/types/entities/TypeMemberContainer.d.ts +23 -0
- package/build/types/entities/TypeParameterEntity.d.ts +94 -0
- package/build/types/entities/UnaryOperatorEntity.d.ts +33 -0
- package/build/types/entities/VariableEntity.d.ts +423 -0
- package/build/types/entities/VariantEntity.d.ts +31 -0
- package/build/types/entities/VariantTypeEntity.d.ts +83 -0
- package/build/types/entities/Variants.d.ts +10 -0
- package/build/types/entities/index.d.ts +87 -0
- package/build/types/executor/CommandLineCompiler.d.ts +8 -0
- package/build/types/executor/Compiler.d.ts +15 -0
- package/build/types/executor/FileSystemUri.d.ts +5 -0
- package/build/types/executor/NodeCompiler.d.ts +39 -0
- package/build/types/executor/PhysicalFileSystem.d.ts +12 -0
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +12 -0
- package/build/types/generated/BuiltInSystemPackages.d.ts +3 -0
- package/build/types/old/Executor.d.ts +14 -0
- package/build/types/old/JavaScriptEmitter.d.ts +1 -0
- package/build/types/old/JavaScriptEmittingVisitor.d.ts +1 -0
- package/build/types/old/NzonParser.d.ts +1 -0
- package/build/types/old/NzonScanner.d.ts +1 -0
- package/build/types/old/NzonSyntax.d.ts +1 -0
- package/build/types/old/RemoteWorkspaceFileSystem.d.ts +1 -0
- package/build/types/parser/CharacterCodes.d.ts +21 -0
- package/build/types/parser/ConvertTokenKind.d.ts +3 -0
- package/build/types/parser/KeywordDictionary.d.ts +12 -0
- package/build/types/parser/ParseNumber.d.ts +5 -0
- package/build/types/parser/Parser.d.ts +7 -0
- package/build/types/parser/ParserDiagnostic.d.ts +7 -0
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +12 -0
- package/build/types/parser/Scanner.d.ts +60 -0
- package/build/types/parser/TokenKind.d.ts +73 -0
- package/build/types/parser/UnescapeText.d.ts +2 -0
- package/build/types/project/Compilation.d.ts +21 -0
- package/build/types/project/CompilationLoader.d.ts +104 -0
- package/build/types/project/FileSystemTree.d.ts +70 -0
- package/build/types/project/PackageConfigurationSerializer.d.ts +1 -0
- package/build/types/project/Position.d.ts +5 -0
- package/build/types/project/SourceFile.d.ts +21 -0
- package/build/types/project/SourcePackage.d.ts +151 -0
- package/build/types/project/TextFile.d.ts +11 -0
- package/build/types/project/configuration/BuildPackageApi.d.ts +75 -0
- package/build/types/project/configuration/ConfigurationConverter.d.ts +25 -0
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +26 -0
- package/build/types/project/configuration/PackageConfigurationInterpreter.d.ts +27 -0
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +90 -0
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +91 -0
- package/build/types/project/index.d.ts +12 -0
- package/build/types/services/AddPropertyAssignmentService.d.ts +15 -0
- package/build/types/services/CompletionService.d.ts +95 -0
- package/build/types/services/CustomCommand.d.ts +120 -0
- package/build/types/services/DefinitionService.d.ts +19 -0
- package/build/types/services/DisplayService.d.ts +830 -0
- package/build/types/services/DocumentHighlightsService.d.ts +18 -0
- package/build/types/services/EvaluatableExpressionService.d.ts +15 -0
- package/build/types/services/FileSystemTreeDisplayService.d.ts +7 -0
- package/build/types/services/HoverService.d.ts +17 -0
- package/build/types/services/LanguageServer.d.ts +125 -0
- package/build/types/services/NodeSemanticInfo.d.ts +132 -0
- package/build/types/services/ProjectItemsService.d.ts +6 -0
- package/build/types/services/ReferencesService.d.ts +30 -0
- package/build/types/services/RenameService.d.ts +16 -0
- package/build/types/services/SelectionRangeService.d.ts +12 -0
- package/build/types/services/SemanticTokensService.d.ts +40 -0
- package/build/types/services/SourceFileItemsService.d.ts +42 -0
- package/build/types/services/TranslationService.d.ts +23 -0
- package/build/types/services/TreeUtils.d.ts +58 -0
- package/build/types/services/TypeDefinitionService.d.ts +9 -0
- package/build/types/services/Types.d.ts +22 -0
- package/build/types/services/Utils.d.ts +5 -0
- package/build/types/services/signature-help/SignatureHelpService.d.ts +17 -0
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +114 -0
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +20 -0
- package/build/types/services/signature-help/ValueParametersSignatureHelpProvider.d.ts +15 -0
- package/build/types/services/signature-help/utils.d.ts +9 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +47 -0
- package/build/types/services/source-generation/SourceGenerationService.d.ts +22 -0
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +41 -0
- package/build/types/services/workspace/CompilationController.d.ts +108 -0
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +61 -0
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +21 -0
- package/build/types/services/workspace/Workspace.d.ts +59 -0
- package/build/types/services/workspace/WorkspaceFileSystem.d.ts +5 -0
- package/build/types/services/workspace/WorkspaceFiles.d.ts +35 -0
- package/build/types/services/workspace/index.d.ts +7 -0
- package/build/types/tree/KeywordKind.d.ts +64 -0
- package/build/types/tree/NodeKind.d.ts +163 -0
- package/build/types/tree/TokenKind.d.ts +132 -0
- package/build/types/tree/TriviaKind.d.ts +7 -0
- package/build/types/tree/green/BaseNode.d.ts +12 -0
- package/build/types/tree/green/Nodes.d.ts +2235 -0
- package/build/types/tree/green/SyntaxFactory.d.ts +67 -0
- package/build/types/tree/green/SyntaxToCode.d.ts +116 -0
- package/build/types/tree/green/Token.d.ts +37 -0
- package/build/types/tree/green/Utils.d.ts +2 -0
- package/build/types/tree/green/index.d.ts +7 -0
- package/build/types/tree/index.d.ts +4 -0
- package/build/types/tree/red/BaseNode.d.ts +15 -0
- package/build/types/tree/red/Internal.d.ts +2 -0
- package/build/types/tree/red/NodePath.d.ts +10 -0
- package/build/types/tree/red/Nodes.d.ts +2237 -0
- package/build/types/tree/red/Token.d.ts +29 -0
- package/build/types/tree/red/Utils.d.ts +6 -0
- package/build/types/tree/red/index.d.ts +6 -0
- package/build/types/ts-interop/Entities.d.ts +634 -0
- package/build/types/ts-interop/TsInteropContext.d.ts +179 -0
- package/build/types/ts-interop/TsLibrariesProvider.d.ts +12 -0
- package/build/types/ts-interop/TsPackageContents.d.ts +64 -0
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +69 -0
- package/build/types/ts-interop/TsProgramLoader.d.ts +38 -0
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +45 -0
- package/build/types/ts-interop/Utils.d.ts +43 -0
- package/build/types/types/AliasType.d.ts +20 -0
- package/build/types/types/Internal.d.ts +1 -0
- package/build/types/types/MethodType.d.ts +23 -0
- package/build/types/types/ParameterType.d.ts +19 -0
- package/build/types/types/StandardTypes.d.ts +42 -0
- package/build/types/types/StructuredType.d.ts +25 -0
- package/build/types/types/Substitutions.d.ts +18 -0
- package/build/types/types/Type.d.ts +16 -0
- package/build/types/types/TypeFactory.d.ts +15 -0
- package/build/types/types/TypeMembers.d.ts +134 -0
- package/build/types/types/UnionType.d.ts +20 -0
- package/build/types/types/UnresolvedType.d.ts +16 -0
- package/build/types/types/VariantType.d.ts +19 -0
- package/build/types/types/index.d.ts +12 -0
- package/package.json +73 -0
@@ -0,0 +1,134 @@
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { Name } from '../common/index.js';
|
3
|
+
import { BinaryOperatorEntity, BinaryOperatorKind, ConstructorEntity, DestructorEntity, EntityHidingLevel, IndexerEntity, ParameterVariableEntity, DereferenceOperatorEntity, TypeMethodEntity, TypeParameterEntity, TypeVariableEntity, UnaryOperatorEntity, UnaryOperatorKind } from '../entities/index.js';
|
4
|
+
import { MethodType } from './MethodType.js';
|
5
|
+
import { Substitutions } from './Substitutions.js';
|
6
|
+
import { Type } from './Type.js';
|
7
|
+
export type TypeMember = Variable | Method | Constructor | Destructor | Indexer | DereferenceOperator | BinaryOperator | UnaryOperator;
|
8
|
+
export type NamedTypeMember = Variable | Method;
|
9
|
+
export declare class Method implements ITypeMember {
|
10
|
+
private readonly _analyzer;
|
11
|
+
private readonly _entity;
|
12
|
+
private readonly _substitutions;
|
13
|
+
readonly kind = "method";
|
14
|
+
private readonly _valueParameters;
|
15
|
+
private readonly _signatureEntity;
|
16
|
+
constructor(_analyzer: Analyzer, _entity: TypeMethodEntity, _substitutions: Substitutions);
|
17
|
+
getName(): Name;
|
18
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
19
|
+
getValueParameters(): readonly ValueParameter[];
|
20
|
+
getReturnType(): Type;
|
21
|
+
getEntity(): TypeMethodEntity;
|
22
|
+
getSubstitutions(): Substitutions;
|
23
|
+
getSignatureType(): MethodType;
|
24
|
+
isAsync(): boolean;
|
25
|
+
isHidden(): EntityHidingLevel | undefined;
|
26
|
+
isStatic(): boolean;
|
27
|
+
applySubstitutions(substitutions: Substitutions): Method;
|
28
|
+
getTypeParametersArity(): number;
|
29
|
+
}
|
30
|
+
export declare class ValueParameter {
|
31
|
+
private readonly _entity;
|
32
|
+
private readonly _substitutions;
|
33
|
+
constructor(_entity: ParameterVariableEntity, _substitutions: Substitutions);
|
34
|
+
getName(): Name;
|
35
|
+
getType(): Type;
|
36
|
+
getEntity(): ParameterVariableEntity;
|
37
|
+
getSubstitutions(): Substitutions;
|
38
|
+
isOptional(): boolean;
|
39
|
+
isVariadic(): boolean;
|
40
|
+
}
|
41
|
+
export declare class Variable implements ITypeMember {
|
42
|
+
private readonly _entity;
|
43
|
+
private readonly _substitutions;
|
44
|
+
readonly kind = "variable";
|
45
|
+
constructor(_entity: TypeVariableEntity, _substitutions: Substitutions);
|
46
|
+
getName(): Name;
|
47
|
+
getType(): Type;
|
48
|
+
getEntity(): TypeVariableEntity;
|
49
|
+
getSubstitutions(): Substitutions;
|
50
|
+
isConstant(): boolean;
|
51
|
+
isHidden(): EntityHidingLevel | undefined;
|
52
|
+
isStatic(): boolean;
|
53
|
+
applySubstitutions(substitutions: Substitutions): Variable;
|
54
|
+
}
|
55
|
+
export declare class Constructor implements ITypeMember {
|
56
|
+
private readonly _entity;
|
57
|
+
private readonly _substitutions;
|
58
|
+
private readonly _instanceType;
|
59
|
+
readonly kind = "constructor";
|
60
|
+
private readonly _valueParameters;
|
61
|
+
constructor(_entity: ConstructorEntity, _substitutions: Substitutions, _instanceType: Type);
|
62
|
+
getValueParameters(): readonly ValueParameter[];
|
63
|
+
getInstanceType(): Type;
|
64
|
+
getEntity(): ConstructorEntity;
|
65
|
+
getSubstitutions(): Substitutions;
|
66
|
+
isHidden(): EntityHidingLevel | undefined;
|
67
|
+
}
|
68
|
+
export declare class Destructor implements ITypeMember {
|
69
|
+
private readonly _entity;
|
70
|
+
private readonly _substitutions;
|
71
|
+
readonly kind = "destructor";
|
72
|
+
private readonly _valueParameters;
|
73
|
+
constructor(_entity: DestructorEntity, _substitutions: Substitutions);
|
74
|
+
getValueParameters(): readonly ValueParameter[];
|
75
|
+
getEntity(): DestructorEntity;
|
76
|
+
getSubstitutions(): Substitutions;
|
77
|
+
isHidden(): EntityHidingLevel | undefined;
|
78
|
+
applySubstitutions(substitutions: Substitutions): Destructor;
|
79
|
+
}
|
80
|
+
export declare class Indexer implements ITypeMember {
|
81
|
+
private readonly _entity;
|
82
|
+
private readonly _substitutions;
|
83
|
+
readonly kind = "indexer";
|
84
|
+
private readonly _valueParameters;
|
85
|
+
constructor(_entity: IndexerEntity, _substitutions: Substitutions);
|
86
|
+
getValueParameters(): readonly ValueParameter[];
|
87
|
+
getType(): Type;
|
88
|
+
getEntity(): IndexerEntity;
|
89
|
+
getSubstitutions(): Substitutions;
|
90
|
+
isHidden(): EntityHidingLevel | undefined;
|
91
|
+
applySubstitutions(substitutions: Substitutions): Indexer;
|
92
|
+
}
|
93
|
+
export declare class DereferenceOperator implements ITypeMember {
|
94
|
+
private readonly _entity;
|
95
|
+
private readonly _substitutions;
|
96
|
+
readonly kind = "dereference-operator";
|
97
|
+
constructor(_entity: DereferenceOperatorEntity, _substitutions: Substitutions);
|
98
|
+
getType(): Type;
|
99
|
+
getEntity(): DereferenceOperatorEntity;
|
100
|
+
getSubstitutions(): Substitutions;
|
101
|
+
isHidden(): EntityHidingLevel | undefined;
|
102
|
+
applySubstitutions(substitutions: Substitutions): DereferenceOperator;
|
103
|
+
}
|
104
|
+
export declare class BinaryOperator implements ITypeMember {
|
105
|
+
private readonly _entity;
|
106
|
+
private readonly _substitutions;
|
107
|
+
readonly kind = "binary-operator";
|
108
|
+
constructor(_entity: BinaryOperatorEntity, _substitutions: Substitutions);
|
109
|
+
getEntity(): BinaryOperatorEntity;
|
110
|
+
getSubstitutions(): Substitutions;
|
111
|
+
getOperatorKind(): BinaryOperatorKind;
|
112
|
+
getLeftOperandType(): Type;
|
113
|
+
getRightOperandType(): Type;
|
114
|
+
getResultType(): Type;
|
115
|
+
applySubstitutions(substitutions: Substitutions): BinaryOperator;
|
116
|
+
isHidden(): EntityHidingLevel | undefined;
|
117
|
+
}
|
118
|
+
export declare class UnaryOperator implements ITypeMember {
|
119
|
+
private readonly _entity;
|
120
|
+
private readonly _substitutions;
|
121
|
+
readonly kind = "unary-operator";
|
122
|
+
constructor(_entity: UnaryOperatorEntity, _substitutions: Substitutions);
|
123
|
+
getEntity(): UnaryOperatorEntity;
|
124
|
+
getSubstitutions(): Substitutions;
|
125
|
+
getOperatorKind(): UnaryOperatorKind;
|
126
|
+
getOperandType(): Type;
|
127
|
+
getResultType(): Type;
|
128
|
+
applySubstitutions(substitutions: Substitutions): UnaryOperator;
|
129
|
+
isHidden(): EntityHidingLevel | undefined;
|
130
|
+
}
|
131
|
+
export interface ITypeMember {
|
132
|
+
isHidden(): EntityHidingLevel | undefined;
|
133
|
+
getSubstitutions(): Substitutions;
|
134
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { TypeEntity } from '../entities/index.js';
|
3
|
+
import { SubstitutionMap, Substitutions } from './Substitutions.js';
|
4
|
+
import { IType, Type } from './index.js';
|
5
|
+
export declare class UnionType implements IType {
|
6
|
+
readonly kind = "union";
|
7
|
+
readonly originalTypes: readonly Type[];
|
8
|
+
private readonly _analyzer;
|
9
|
+
private readonly _unaliasedFlattenedTypes;
|
10
|
+
get unaliasedFlattenedTypes(): readonly Type[];
|
11
|
+
get debuggerDisplay(): string;
|
12
|
+
constructor(analyzer: Analyzer, originalTypes: readonly Type[]);
|
13
|
+
equals(other: Type): boolean;
|
14
|
+
getSubstitutions(): Substitutions;
|
15
|
+
applySubstitutions(map: SubstitutionMap): Type;
|
16
|
+
getEntity(): TypeEntity | undefined;
|
17
|
+
getBaseObjectTypeOrAliasedType(): Type | undefined;
|
18
|
+
toString(): string;
|
19
|
+
private unaliasAndFlattenType;
|
20
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { TypeEntity } from '../entities/index.js';
|
3
|
+
import { SubstitutionMap, Substitutions } from './Substitutions.js';
|
4
|
+
import { IType, Type } from './Type.js';
|
5
|
+
export declare class UnresolvedType implements IType {
|
6
|
+
private readonly _analyzer;
|
7
|
+
readonly kind = "unresolved";
|
8
|
+
get debuggerDisplay(): string;
|
9
|
+
constructor(_analyzer: Analyzer);
|
10
|
+
equals(other: Type): boolean;
|
11
|
+
getSubstitutions(): Substitutions;
|
12
|
+
applySubstitutions(_map: SubstitutionMap): Type;
|
13
|
+
getEntity(): TypeEntity | undefined;
|
14
|
+
getBaseObjectTypeOrAliasedType(): Type | undefined;
|
15
|
+
toString(): string;
|
16
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { VariantTypeEntity } from '../entities/index.js';
|
3
|
+
import { IType, StructuredType, SubstitutionMap, Substitutions, Type } from './index.js';
|
4
|
+
export declare class VariantType implements IType {
|
5
|
+
private readonly _analyzer;
|
6
|
+
private readonly _entity;
|
7
|
+
private readonly _substitutions;
|
8
|
+
readonly kind = "variant";
|
9
|
+
get debuggerDisplay(): string;
|
10
|
+
constructor(_analyzer: Analyzer, _entity: VariantTypeEntity, _substitutions: Substitutions);
|
11
|
+
getSubstitutions(): Substitutions;
|
12
|
+
applySubstitutions(map: SubstitutionMap): Type;
|
13
|
+
getEntity(): VariantTypeEntity;
|
14
|
+
equals(other: Type): boolean;
|
15
|
+
getUnderlyingType(): Type;
|
16
|
+
getBaseType(): StructuredType;
|
17
|
+
getBaseObjectTypeOrAliasedType(): Type | undefined;
|
18
|
+
toString(): string;
|
19
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from './AliasType.js';
|
2
|
+
export * from './MethodType.js';
|
3
|
+
export * from './ParameterType.js';
|
4
|
+
export * from './StandardTypes.js';
|
5
|
+
export * from './StructuredType.js';
|
6
|
+
export * from './Substitutions.js';
|
7
|
+
export * from './Type.js';
|
8
|
+
export * from './TypeFactory.js';
|
9
|
+
export * from './TypeMembers.js';
|
10
|
+
export * from './UnionType.js';
|
11
|
+
export * from './UnresolvedType.js';
|
12
|
+
export * from './VariantType.js';
|
package/package.json
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
{
|
2
|
+
"name": "@artel/artc",
|
3
|
+
"version": "0.6.25191",
|
4
|
+
"description": "Артель Компилятор | Artel Compiler",
|
5
|
+
"author": "Nezaboodka Team <contact@nezaboodka.com>",
|
6
|
+
"license": "Apache License 2.0",
|
7
|
+
"type": "module",
|
8
|
+
"files": [
|
9
|
+
"build/**/*.*js",
|
10
|
+
"build/types/**/*.d.ts",
|
11
|
+
"СистемныеПакеты"
|
12
|
+
],
|
13
|
+
"exports": {
|
14
|
+
".": {
|
15
|
+
"artel-dev": "./source/api/Api.ts",
|
16
|
+
"default": "./build/api/Api.js",
|
17
|
+
"types": "./build/types/api/Api.d.ts"
|
18
|
+
},
|
19
|
+
"./node": {
|
20
|
+
"artel-dev": "./source/api/ApiNodeJS.ts",
|
21
|
+
"default": "./build/api/ApiNodeJS.js",
|
22
|
+
"types": "./build/types/api/ApiNodeJS.d.ts"
|
23
|
+
},
|
24
|
+
"./cli": {
|
25
|
+
"artel-dev": "./source/Cli.ts",
|
26
|
+
"default": "./build/Cli.js",
|
27
|
+
"types": "./build/types/Cli.d.ts"
|
28
|
+
},
|
29
|
+
"./services": {
|
30
|
+
"artel-dev": "./source/api/ApiServices.ts",
|
31
|
+
"default": "./build/api/ApiServices.js",
|
32
|
+
"types": "./build/types/api/ApiServices.d.ts"
|
33
|
+
},
|
34
|
+
"./internal/*": {
|
35
|
+
"artel-dev": "./*"
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"dependencies": {
|
39
|
+
"@babel/generator": "7.23.0",
|
40
|
+
"@babel/parser": "7.23.0",
|
41
|
+
"@babel/types": "7.23.0",
|
42
|
+
"@vscode/l10n": "0.0.18",
|
43
|
+
"jsonc-parser": "3.3.1",
|
44
|
+
"reactronic": "0.92.25006",
|
45
|
+
"typescript": "5.5.4",
|
46
|
+
"vscode-json-languageservice": "5.4.2",
|
47
|
+
"vscode-languageserver": "9.0.1",
|
48
|
+
"vscode-languageserver-textdocument": "1.0.11",
|
49
|
+
"vscode-uri": "3.0.8"
|
50
|
+
},
|
51
|
+
"devDependencies": {
|
52
|
+
"@vscode/l10n-dev": "0.0.31",
|
53
|
+
"ts-json-schema-generator": "2.3.0"
|
54
|
+
},
|
55
|
+
"scripts": {
|
56
|
+
"debug-test": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js",
|
57
|
+
"test": "npm run before-build --prefix ../.. && node --experimental-vm-modules ../../node_modules/jest/bin/jest.js",
|
58
|
+
"lint:check": "eslint source test",
|
59
|
+
"lint:fix": "eslint --fix source test",
|
60
|
+
"generate-files": "npm run generate-built-in-system-packages",
|
61
|
+
"generate-files:force": "npm run generate-built-in-system-packages",
|
62
|
+
"compile": "npm run generate-files && tsc --build .",
|
63
|
+
"bundle:debug": "npm run compile && node ./scripts/bundle.js --debug && npm run copy-global-storage",
|
64
|
+
"bundle:release": "npm run compile && node ./scripts/bundle.js && npm run copy-global-storage",
|
65
|
+
"prepare-for-publish": "npm run bundle:release && node ./scripts/copy-compiler-dts.js",
|
66
|
+
"export-l10n-text": "npx @vscode/l10n-dev export -o l10n source",
|
67
|
+
"copy-global-storage": "node ../vscode-extension/scripts/copy-global-storage.js projects/compiler/СистемныеПакеты",
|
68
|
+
"install-global": "npm run prepare-for-publish && npm i -g .",
|
69
|
+
"generate-tree": "npm run bundle:debug && node build/Cli.js build ../tree-generator/ ../tree-generator/build --workspace ../.. --standard-packages ../СтандартныеПакеты && node ../tree-generator/build/launch.mjs ../compiler/source/tree",
|
70
|
+
"generate-built-in-system-packages": "node ./scripts/generateBuiltInSystemPackages.mjs",
|
71
|
+
"generate-configuration-json-schemas": "node ./scripts/generateConfigurationJsonSchemas.mjs"
|
72
|
+
}
|
73
|
+
}
|