@artel/artc 0.6.25223 → 0.6.25225
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 +85 -79
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +797 -674
- package/build/{chunk-DZNNWICP.js → chunk-TFTCV5R5.js} +6604 -5875
- package/build/{chunk-AX3LQ2CF.js → chunk-UB6LHKS5.js} +3 -3
- package/build/{chunk-LG4Z4SWO.js → chunk-Z6TZA6SN.js} +3 -3
- package/build/types/analysis/AccessedFunction.d.ts +53 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +16 -15
- package/build/types/analysis/Analyzer.d.ts +142 -127
- package/build/types/analysis/CallExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/DiagnosticCollector.d.ts +17 -17
- package/build/types/analysis/EntityLocalizationHelper.d.ts +6 -6
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -0
- package/build/types/analysis/LocalizationContext.d.ts +2 -2
- package/build/types/analysis/{PropertyAccessExpressionMeaning.d.ts → MemberAccessExpressionMeaning.d.ts} +27 -21
- package/build/types/analysis/NamedTypeResolver.d.ts +5 -1
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +13 -13
- package/build/types/analysis/OperationOverloadResolver.d.ts +1 -1
- package/build/types/analysis/Scope.d.ts +15 -15
- package/build/types/analysis/SemanticContext.d.ts +29 -29
- package/build/types/analysis/SemanticContextBuilder.d.ts +22 -22
- package/build/types/analysis/SourceFileMembers.d.ts +2 -2
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +12 -12
- package/build/types/analysis/{SubstitutedMethod.d.ts → SubstitutedFunction.d.ts} +14 -14
- package/build/types/analysis/TagMeaning.d.ts +23 -20
- package/build/types/analysis/Tags.d.ts +6 -6
- package/build/types/analysis/TypeNarrower.d.ts +21 -21
- package/build/types/analysis/Utils.d.ts +15 -3
- package/build/types/analysis/WellKnownDeclarations.d.ts +4 -4
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +43 -0
- package/build/types/analysis/{ControlFlowGraphVisualizer.d.ts → control-flow/GraphVisualizer.d.ts} +3 -3
- package/build/types/analysis/control-flow/NarrowableExpression.d.ts +5 -0
- package/build/types/analysis/control-flow/Nodes.d.ts +91 -0
- package/build/types/analysis/control-flow/index.d.ts +4 -0
- package/build/types/api/Api.d.ts +3 -3
- package/build/types/common/HelperPhrases.d.ts +3 -2
- package/build/types/diagnostic/DiagnosticCode.d.ts +130 -131
- package/build/types/emitter/EmitPhaseName.d.ts +8 -8
- package/build/types/emitter/Emitter.d.ts +4 -4
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/Entities.d.ts +31 -29
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/IrBuilder.d.ts +18 -18
- package/build/types/emitter/IrToJs.d.ts +9 -9
- package/build/types/emitter/Transformer.d.ts +37 -37
- package/build/types/emitter/ir/AccessedEntities.d.ts +5 -5
- package/build/types/emitter/ir/ComputedAccess.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +41 -27
- package/build/types/emitter/ir/Nodes.d.ts +141 -140
- package/build/types/emitter/ir/types.d.ts +8 -8
- package/build/types/entities/ConstructorEntity.d.ts +9 -9
- package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
- package/build/types/entities/DestructorEntity.d.ts +4 -4
- package/build/types/entities/{MethodEntity.d.ts → FunctionEntity.d.ts} +36 -36
- package/build/types/entities/{MethodTypeEntity.d.ts → FunctionTypeEntity.d.ts} +23 -23
- package/build/types/entities/GetterEntity.d.ts +9 -9
- package/build/types/entities/IndexerEntity.d.ts +4 -4
- package/build/types/entities/SetterEntity.d.ts +9 -9
- package/build/types/entities/TypeEntity.d.ts +3 -3
- package/build/types/entities/TypeEntityMembers.d.ts +3 -3
- package/build/types/entities/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/VariableEntity.d.ts +32 -32
- package/build/types/entities/index.d.ts +14 -14
- package/build/types/services/CompletionService.d.ts +8 -9
- package/build/types/services/DisplayService.d.ts +72 -69
- package/build/types/services/HoverService.d.ts +1 -1
- package/build/types/services/NodeSemanticInfo.d.ts +26 -21
- package/build/types/services/SemanticTokensService.d.ts +6 -6
- package/build/types/services/SourceFileItemsService.d.ts +11 -11
- package/build/types/services/TypeDefinitionService.d.ts +2 -2
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +10 -10
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +10 -9
- package/build/types/tree/NodeKind.d.ts +27 -27
- package/build/types/tree/green/Nodes.d.ts +127 -128
- package/build/types/tree/green/SyntaxFactory.d.ts +20 -19
- package/build/types/tree/green/SyntaxToCode.d.ts +23 -21
- package/build/types/tree/red/Nodes.d.ts +173 -172
- package/build/types/ts-interop/Entities.d.ts +28 -28
- package/build/types/ts-interop/TsInteropContext.d.ts +2 -1
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
- package/build/types/types/{MethodType.d.ts → FunctionType.d.ts} +6 -6
- package/build/types/types/IntersectionType.d.ts +20 -0
- package/build/types/types/ParameterType.d.ts +6 -3
- package/build/types/types/StandardTypes.d.ts +2 -2
- package/build/types/types/Type.d.ts +3 -2
- package/build/types/types/TypeFactory.d.ts +8 -6
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/build/types/analysis/AccessedMethod.d.ts +0 -53
- package/build/types/analysis/ControlFlowGraphBuilder.d.ts +0 -129
package/build/types/api/Api.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from '../analysis/
|
1
|
+
export * from '../analysis/AccessedFunction.js';
|
2
2
|
export * from '../analysis/AnalyzedTranslationPackage.js';
|
3
3
|
export * from '../analysis/Analyzer.js';
|
4
4
|
export type { Meaning as AutotypeCallExpressionMeaning } from '../analysis/AutotypeCallExpressionMeaning.js';
|
@@ -19,12 +19,12 @@ export * from '../analysis/Lookup.js';
|
|
19
19
|
export * from '../analysis/NodeTypeUtils.js';
|
20
20
|
export type { Meaning as ObjectExpressionMeaning } from '../analysis/ObjectExpressionMeaning.js';
|
21
21
|
export * from '../analysis/PackageMemberLookup.js';
|
22
|
-
export type { Meaning as
|
22
|
+
export type { Meaning as MemberAccessExpressionMeaning, ResolutionResult as MemberAccessExpressionResolutionResult } from '../analysis/MemberAccessExpressionMeaning.js';
|
23
23
|
export type { IScope, NamedDeclaration, TypeOrContainerWithTypes } from '../analysis/Scope.js';
|
24
24
|
export * from '../analysis/SemanticContext.js';
|
25
25
|
export * from '../analysis/SourceFileMembers.js';
|
26
26
|
export * from '../analysis/SourcePackageDependencyGraph.js';
|
27
|
-
export * from '../analysis/
|
27
|
+
export * from '../analysis/SubstitutedFunction.js';
|
28
28
|
export type { Meaning as TagMeaning } from '../analysis/TagMeaning.js';
|
29
29
|
export * from '../analysis/Tags.js';
|
30
30
|
export * from '../analysis/TargetTypeHint.js';
|
@@ -5,7 +5,8 @@ export declare const enum HelperPhraseKind {
|
|
5
5
|
TypeParameter = 2,
|
6
6
|
Package = 3,
|
7
7
|
PackageAlias = 4,
|
8
|
-
|
9
|
-
|
8
|
+
PackageNameSegment = 5,
|
9
|
+
Variable = 6,
|
10
|
+
Overloads = 7
|
10
11
|
}
|
11
12
|
export declare function getHelperPhrase(kind: HelperPhraseKind, locale: PackageLocale): string;
|
@@ -1,133 +1,132 @@
|
|
1
1
|
export declare enum DiagnosticCode {
|
2
|
-
UnterminatedToken =
|
3
|
-
UnterminatedMultiLineComment =
|
4
|
-
UnterminatedNumber =
|
5
|
-
UnterminatedTextOrTextTemplate =
|
6
|
-
UnterminatedQuotedIdentifier =
|
7
|
-
IdentifierExpected =
|
8
|
-
TypeNameExpected =
|
9
|
-
PackageNameExpected =
|
10
|
-
TypeMemberDeclarationExpected =
|
11
|
-
|
12
|
-
EnumerationVariableDeclarationExpected =
|
13
|
-
StatementExpected =
|
14
|
-
ExpressionExpected =
|
15
|
-
BaseTypeNameExpected =
|
16
|
-
TypeSpecifierExpected =
|
17
|
-
TypeBodyExpected =
|
18
|
-
|
19
|
-
IndexedAccessArgumentExpected =
|
20
|
-
TagArgumentExpected =
|
21
|
-
TypeParameterExpected =
|
22
|
-
ParameterExpected =
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
CannotDetermineTargetTypeToCallTheConstructor =
|
68
|
-
AmbiguousAccess =
|
69
|
-
|
70
|
-
CanNotAssignValueToContextVariable =
|
71
|
-
ExpectedPackageNameOrAliasButFoundType =
|
72
|
-
TypeExpected =
|
73
|
-
NameOfTypeOrPackageNotFound =
|
74
|
-
TypeIsNotATag =
|
75
|
-
ExpressionOfType0CanNotBeUsedForEnumeration =
|
76
|
-
Operator0IsNotDefinedForTypes1And2 =
|
77
|
-
Operator0IsNotDefinedForType1 =
|
78
|
-
VariantMustHaveAssociatedValue =
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
Declaration0NotFoundInStandardPackage1 = 130
|
2
|
+
UnterminatedToken = 1000,
|
3
|
+
UnterminatedMultiLineComment = 1001,
|
4
|
+
UnterminatedNumber = 1002,
|
5
|
+
UnterminatedTextOrTextTemplate = 1003,
|
6
|
+
UnterminatedQuotedIdentifier = 1004,
|
7
|
+
IdentifierExpected = 101,
|
8
|
+
TypeNameExpected = 102,
|
9
|
+
PackageNameExpected = 103,
|
10
|
+
TypeMemberDeclarationExpected = 104,
|
11
|
+
PackageMemberDeclarationExpected = 105,
|
12
|
+
EnumerationVariableDeclarationExpected = 106,
|
13
|
+
StatementExpected = 107,
|
14
|
+
ExpressionExpected = 108,
|
15
|
+
BaseTypeNameExpected = 109,
|
16
|
+
TypeSpecifierExpected = 110,
|
17
|
+
TypeBodyExpected = 111,
|
18
|
+
FunctionCallArgumentExpected = 112,
|
19
|
+
IndexedAccessArgumentExpected = 113,
|
20
|
+
TagArgumentExpected = 114,
|
21
|
+
TypeParameterExpected = 115,
|
22
|
+
ParameterExpected = 116,
|
23
|
+
CatchClauseOrFinallyClauseExpected = 117,
|
24
|
+
PackageImportExpected = 118,
|
25
|
+
DeclarationOrPackageImportExpected = 119,
|
26
|
+
Expected0But1Found = 120,
|
27
|
+
InvalidTextTemplateLiteral = 121,
|
28
|
+
ModifierListExpected = 122,
|
29
|
+
RunKeywordCreationKeywordOrModifierListExpected = 123,
|
30
|
+
HidingLevelExpected = 124,
|
31
|
+
ParameterNameCanContainOnlyOneBackQuote = 125,
|
32
|
+
FieldNameCanContainOnlyTwoBackQuote = 126,
|
33
|
+
BackQuotesCanOnlyBeUsedInParameterAndFieldNames = 127,
|
34
|
+
NameThatMatchesKeywordMustBeEnclosedInSingleQuotes = 128,
|
35
|
+
TagNameExpected = 129,
|
36
|
+
TypeMemberTranslationExpected = 130,
|
37
|
+
TranslationExpected = 131,
|
38
|
+
TypeCannotBeUsedAsValue = 2001,
|
39
|
+
PackageNameCannotBeUsedAsValue = 2002,
|
40
|
+
PackageAliasCannotBeUsedAsValue = 2003,
|
41
|
+
PackageMemberOrPackageNotFound = 2004,
|
42
|
+
PackageMemberNotFound = 2005,
|
43
|
+
TypeMemberNotFound = 2006,
|
44
|
+
ConstructorNotFound = 2007,
|
45
|
+
IndexerOfTheSpecifiedTypeNotFound = 2008,
|
46
|
+
DereferenceOperatorOfTheSpecifiedTypeNotFound = 2009,
|
47
|
+
IndexerNotFound = 2010,
|
48
|
+
CannotAccessStaticMembersOnTypeParameter = 2011,
|
49
|
+
CannotCreateInstanceOfAspect = 2012,
|
50
|
+
CannotCreateInstanceOfTypeParameter = 2013,
|
51
|
+
CannotCreateInstanceOfUnresolvedType = 2014,
|
52
|
+
ExpressionIsNotCallable = 2015,
|
53
|
+
ParameterForPositionalArgumentNotFound = 2016,
|
54
|
+
ParameterWithGivenNameNotFound = 2017,
|
55
|
+
NamedArgumentExpectedButPositionalArgumentFound = 2018,
|
56
|
+
ArgumentForParameterAlreadyAssigned = 2019,
|
57
|
+
NotAllRequiredParametersAreProvidedWithArguments = 2020,
|
58
|
+
UnknownVariable = 2021,
|
59
|
+
UnknownType = 2022,
|
60
|
+
TypeWithArity0NotFound = 2023,
|
61
|
+
VariableUsedBeforeBeingDeclared = 2024,
|
62
|
+
Type0IsNotAssignableToType1 = 2025,
|
63
|
+
VariableNotFound = 2026,
|
64
|
+
FunctionNotFound = 2027,
|
65
|
+
UnknownPackage = 2028,
|
66
|
+
CannotAssignValueToExpression = 2029,
|
67
|
+
CannotDetermineTargetTypeToCallTheConstructor = 2030,
|
68
|
+
AmbiguousAccess = 2031,
|
69
|
+
AmbiguousAccess0 = 2032,
|
70
|
+
CanNotAssignValueToContextVariable = 2033,
|
71
|
+
ExpectedPackageNameOrAliasButFoundType = 2034,
|
72
|
+
TypeExpected = 2035,
|
73
|
+
NameOfTypeOrPackageNotFound = 2036,
|
74
|
+
TypeIsNotATag = 2037,
|
75
|
+
ExpressionOfType0CanNotBeUsedForEnumeration = 2038,
|
76
|
+
Operator0IsNotDefinedForTypes1And2 = 2039,
|
77
|
+
Operator0IsNotDefinedForType1 = 2040,
|
78
|
+
VariantMustHaveAssociatedValue = 2041,
|
79
|
+
TranslationsCanOnlyBeDeclaredInTranslationPackage = 2042,
|
80
|
+
UnknownTranslatedPackage0 = 2043,
|
81
|
+
BaseCannotBeUsedInThisContext = 2044,
|
82
|
+
OverriddenMethodNotFound = 2045,
|
83
|
+
ObjectCannotBeUsedInThisContext = 2046,
|
84
|
+
BaseCannotBeUsedAsAnExpressionInItself = 2047,
|
85
|
+
InterfacePackageMustNotContainImplementation = 2048,
|
86
|
+
InterfacePackageVariablesMustNotHaveInitializers = 2049,
|
87
|
+
BodyIsMissing = 2050,
|
88
|
+
AbstractTypeMembersMustNotHaveBody = 2051,
|
89
|
+
AbstractVariablesMustNotHaveInitializers = 2052,
|
90
|
+
PackageIsAlreadyImportedInAnotherLanguage = 2053,
|
91
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 2054,
|
92
|
+
FunctionsUsingYieldStatementCanNotReturnValue = 2055,
|
93
|
+
YieldStatementCanNotBeUsedInAnonymousFunctions = 2056,
|
94
|
+
YieldStatementCanNotBeUsedHere = 2057,
|
95
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 2058,
|
96
|
+
YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause = 2059,
|
97
|
+
YieldStatementCanNotBeUsedInFinallyClause = 2060,
|
98
|
+
SubprogramMustReturnValue = 2061,
|
99
|
+
ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement = 2062,
|
100
|
+
TypeAliasReferencesItself = 2063,
|
101
|
+
TypeParameterHasCircularConstraint = 2064,
|
102
|
+
BaseTypeCausesInheritanceCycle = 2065,
|
103
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 2066,
|
104
|
+
Expected0TypeArguments = 2067,
|
105
|
+
ExpectedFrom0To1TypeArguments = 2068,
|
106
|
+
Type0IsNotAssignableToConstraint1 = 2069,
|
107
|
+
VariableIsDeclaredButNotUsed = 2070,
|
108
|
+
DefaultConstructorArgumentsMustBeNamed = 2071,
|
109
|
+
IncorrectBodyOfRedefinableAliasTypeMethod = 2072,
|
110
|
+
TheFollowingDeclarationsAreNotTranslated0 = 2073,
|
111
|
+
TheFollowingDeclarationAreNotTranslated0And1More = 2074,
|
112
|
+
OperatorFunctionMustNotBeStatic = 2075,
|
113
|
+
OperatorFunction0MustNotHaveParameters = 2076,
|
114
|
+
OperatorFunction0MustHaveOneParameter = 2077,
|
115
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 2078,
|
116
|
+
CorrespondingRedefinableTypeMemberNotFound = 2079,
|
117
|
+
ConstructorCanNotBeRedefinable = 2080,
|
118
|
+
ConstructorCanNotBeRedefined = 2081,
|
119
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 2082,
|
120
|
+
TagNotFound = 2083,
|
121
|
+
TypeOrFunctionNameExpected = 2084,
|
122
|
+
PackageNameOrAliasExpected = 2085,
|
123
|
+
ExpressionCanBeNone = 2086,
|
124
|
+
NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement = 2087,
|
125
|
+
UnreachableCode = 2088,
|
126
|
+
CanNotFindTsLibDirectoryBaseSearchPaths0 = 2089,
|
127
|
+
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 2090,
|
128
|
+
ProgramWithoutMainPackageCanNotBeCompiled = 2091,
|
129
|
+
JsonConfigurationValidationError = 2092,
|
130
|
+
StandardPackage0NotFound = 2093,
|
131
|
+
Declaration0NotFoundInStandardPackage1 = 2094
|
133
132
|
}
|
@@ -9,13 +9,13 @@ export declare class EmitPhaseName {
|
|
9
9
|
static ofExtensionMethodTargetParameter(locale: PackageLocale): string;
|
10
10
|
static ofGlobalVariableGetter(locale: PackageLocale, originalName: string): string;
|
11
11
|
static ofGlobalVariableSetter(locale: PackageLocale, originalName: string): string;
|
12
|
-
static
|
13
|
-
static
|
14
|
-
static
|
15
|
-
static
|
16
|
-
static
|
17
|
-
static
|
18
|
-
static
|
12
|
+
static ofFieldGetter(locale: PackageLocale, originalName: string): string;
|
13
|
+
static ofFieldSetter(locale: PackageLocale, originalName: string): string;
|
14
|
+
static ofIndexedElementGetter(locale: PackageLocale): string;
|
15
|
+
static ofIndexedElementSetter(locale: PackageLocale): string;
|
16
|
+
static ofDereferencedVariable(locale: PackageLocale): string;
|
17
|
+
static ofDereferencedVariableGetter(locale: PackageLocale): string;
|
18
|
+
static ofDereferencedVariableSetter(locale: PackageLocale): string;
|
19
19
|
static ofTypeBackingVariable(locale: PackageLocale, originalName: string): string;
|
20
20
|
static ofTempVariable(locale: PackageLocale, id: number): string;
|
21
21
|
static ofDefaultImport(locale: PackageLocale, id: number): string;
|
@@ -31,7 +31,7 @@ export declare class EmitPhaseName {
|
|
31
31
|
static ofPlainObjectMethodResultNewThisProperty(locale: PackageLocale): string;
|
32
32
|
static ofPlainObjectMethodResultResultProperty(locale: PackageLocale): string;
|
33
33
|
static ofProxyVariable(locale: PackageLocale, originalName: string): string;
|
34
|
-
static
|
34
|
+
static ofConstructor(locale: PackageLocale): string;
|
35
35
|
static ofTypeExtension(locale: PackageLocale, extendedTypeName: string): string;
|
36
36
|
static ofOperator(locale: PackageLocale, kind: OperatorKind): string;
|
37
37
|
static ofSetterParameter(locale: PackageLocale): string;
|
@@ -20,9 +20,9 @@ export declare class Emitter {
|
|
20
20
|
emitToString(): string;
|
21
21
|
private createEmitterPackageFromSource;
|
22
22
|
private enumerateEmittingSourcePackages;
|
23
|
-
private
|
24
|
-
private
|
25
|
-
private
|
23
|
+
private createPackageWithMainFunction;
|
24
|
+
private createMainFunction;
|
25
|
+
private createMainFunctionCall;
|
26
26
|
private createUniqueNamesForPackageMembers;
|
27
27
|
private setOutputUris;
|
28
28
|
private addImports;
|
@@ -59,7 +59,7 @@ export interface SourceMapOptions {
|
|
59
59
|
useAbsolutePaths?: boolean;
|
60
60
|
includeSourcesContent?: boolean;
|
61
61
|
justApplicationCode?: boolean;
|
62
|
-
|
62
|
+
mapMainFunctionCallToProgramFirstLine?: boolean;
|
63
63
|
}
|
64
64
|
export declare enum SourceMapMode {
|
65
65
|
Linked = "linked",
|
@@ -43,7 +43,7 @@ declare class StandardTypes {
|
|
43
43
|
private _text;
|
44
44
|
private _char;
|
45
45
|
private _array;
|
46
|
-
private
|
46
|
+
private _func;
|
47
47
|
private _textTemplate;
|
48
48
|
private _reference;
|
49
49
|
get none(): Type;
|
@@ -55,7 +55,7 @@ declare class StandardTypes {
|
|
55
55
|
get text(): Type;
|
56
56
|
get char(): Type;
|
57
57
|
get array(): Type;
|
58
|
-
get
|
58
|
+
get func(): Type;
|
59
59
|
get textTemplate(): Type;
|
60
60
|
get reference(): Type;
|
61
61
|
constructor(_analyzer: Analyzer, _entityMap: EntityMap);
|
@@ -1,29 +1,29 @@
|
|
1
1
|
import { PackageLocale } from '../common/index.js';
|
2
2
|
import { JavaScriptImplementationConfig } from '../project/SourcePackage.js';
|
3
|
-
export interface
|
3
|
+
export interface FunctionEntity {
|
4
4
|
readonly kind: 'method';
|
5
|
-
|
5
|
+
functionEntityKind: FunctionEntityKind;
|
6
6
|
name: string;
|
7
7
|
parameters: readonly VariableEntity[];
|
8
8
|
returnType: Type;
|
9
9
|
ifTypeMemberThenContainingType: TypeOrExtensionEntity | undefined;
|
10
10
|
isPackageMember: boolean;
|
11
11
|
containingPackage: PackageEntity;
|
12
|
-
details:
|
12
|
+
details: FunctionEntityDetails;
|
13
13
|
}
|
14
|
-
export declare enum
|
15
|
-
|
14
|
+
export declare enum FunctionEntityKind {
|
15
|
+
RegularFunction = 0,
|
16
16
|
GetterOrSetter = 1,
|
17
17
|
Constructor = 2,
|
18
18
|
Destructor = 3,
|
19
19
|
Operator = 4
|
20
20
|
}
|
21
|
-
export declare class
|
21
|
+
export declare class FunctionEntityDetails implements TypeMemberEntityDetails {
|
22
22
|
isAsync: boolean;
|
23
23
|
isPackageConstructor: boolean;
|
24
24
|
isPackageEntryPoint: boolean;
|
25
|
-
overriddenMembers: readonly
|
26
|
-
ifRedefinableAliasTypeMethodThenRealMethod:
|
25
|
+
overriddenMembers: readonly FunctionEntity[];
|
26
|
+
ifRedefinableAliasTypeMethodThenRealMethod: FunctionEntity | undefined;
|
27
27
|
isDefaultExport: boolean;
|
28
28
|
isAliasTypeOrExtensionMemberThatRequiresLowering: boolean;
|
29
29
|
isBuiltInOperator: boolean;
|
@@ -32,6 +32,7 @@ export declare class MethodEntityDetails implements TypeMemberEntityDetails {
|
|
32
32
|
isTypeExtensionMemberAddedToPrototype: boolean;
|
33
33
|
isAbstract: boolean;
|
34
34
|
isStatic: boolean;
|
35
|
+
originalFunctionEntityKind: FunctionEntityKind;
|
35
36
|
}
|
36
37
|
export interface ComputedNameInfo {
|
37
38
|
/**
|
@@ -54,14 +55,14 @@ export interface VariableEntity {
|
|
54
55
|
ifTypeMemberThenContainingType: TypeOrExtensionEntity | undefined;
|
55
56
|
isPackageMember: boolean;
|
56
57
|
containingPackage: PackageEntity;
|
57
|
-
getter:
|
58
|
-
setter:
|
58
|
+
getter: FunctionEntity | undefined;
|
59
|
+
setter: FunctionEntity | undefined;
|
59
60
|
details: VariableEntityDetails;
|
60
61
|
}
|
61
62
|
export declare class VariableEntityDetails implements TypeMemberEntityDetails {
|
62
63
|
isVariadicParameter: boolean;
|
63
64
|
overriddenMembers: readonly VariableEntity[];
|
64
|
-
|
65
|
+
isProxiedField: ProxiedFieldInfo | undefined;
|
65
66
|
isDefaultExport: boolean;
|
66
67
|
hasComputedName: ComputedNameInfo | undefined;
|
67
68
|
isRedefinable: boolean;
|
@@ -69,11 +70,11 @@ export declare class VariableEntityDetails implements TypeMemberEntityDetails {
|
|
69
70
|
isTypeExtensionMemberAddedToPrototype: boolean;
|
70
71
|
isStatic: boolean;
|
71
72
|
}
|
72
|
-
export interface
|
73
|
+
export interface ProxiedFieldInfo {
|
73
74
|
readonly tagType: TypeOrExtensionEntity;
|
74
|
-
readonly constructor:
|
75
|
+
readonly constructor: FunctionEntity;
|
75
76
|
}
|
76
|
-
export type TypeMemberEntity =
|
77
|
+
export type TypeMemberEntity = FunctionEntity | VariableEntity;
|
77
78
|
interface TypeMemberEntityDetails {
|
78
79
|
isStatic: boolean;
|
79
80
|
isAbstract: boolean;
|
@@ -114,7 +115,7 @@ export declare enum TypeOrExtensionEntityKind {
|
|
114
115
|
StructuredType = 0,
|
115
116
|
AliasType = 1,
|
116
117
|
VariantType = 2,
|
117
|
-
|
118
|
+
FunctionType = 3,
|
118
119
|
ParameterType = 4,
|
119
120
|
TypeExtension = 5
|
120
121
|
}
|
@@ -123,7 +124,7 @@ export declare enum StructuredTypeKind {
|
|
123
124
|
PlainObject = 1,
|
124
125
|
Aspect = 2
|
125
126
|
}
|
126
|
-
export type PackageMemberEntity =
|
127
|
+
export type PackageMemberEntity = FunctionEntity | VariableEntity | TypeOrExtensionEntity;
|
127
128
|
export interface PackageEntity {
|
128
129
|
readonly kind: 'package';
|
129
130
|
name: string;
|
@@ -134,9 +135,9 @@ export interface PackageEntity {
|
|
134
135
|
export declare class PackageEntityDetails {
|
135
136
|
isJavaScriptPackage: JavaScriptImplementationConfig | undefined;
|
136
137
|
isSource: boolean;
|
137
|
-
|
138
|
+
isPackageWithMainFunction: boolean;
|
138
139
|
}
|
139
|
-
export type Type = SimpleType |
|
140
|
+
export type Type = SimpleType | UnionOrIntersectionType;
|
140
141
|
export declare class SimpleType {
|
141
142
|
readonly entity: TypeOrExtensionEntity;
|
142
143
|
readonly typeArguments: readonly Type[];
|
@@ -144,14 +145,15 @@ export declare class SimpleType {
|
|
144
145
|
constructor(entity: TypeOrExtensionEntity, typeArguments: readonly Type[]);
|
145
146
|
equals(other: Type): boolean;
|
146
147
|
}
|
147
|
-
export declare class
|
148
|
+
export declare class UnionOrIntersectionType {
|
148
149
|
readonly types: readonly Type[];
|
149
|
-
readonly
|
150
|
-
|
150
|
+
readonly isUnion: boolean;
|
151
|
+
readonly kind = "union-or-intersection";
|
152
|
+
constructor(types: readonly Type[], isUnion: boolean);
|
151
153
|
equals(other: Type): boolean;
|
152
154
|
}
|
153
|
-
export type Entity = VariableEntity |
|
154
|
-
export type NamedEntity = VariableEntity |
|
155
|
+
export type Entity = VariableEntity | FunctionEntity | TypeOrExtensionEntity | PackageEntity;
|
156
|
+
export type NamedEntity = VariableEntity | FunctionEntity | TypeOrExtensionEntity;
|
155
157
|
export declare function isComputedVariableEntity(entity: VariableEntity): boolean;
|
156
158
|
export declare class IntrinsicVariableEntity implements VariableEntity {
|
157
159
|
name: string;
|
@@ -160,13 +162,13 @@ export declare class IntrinsicVariableEntity implements VariableEntity {
|
|
160
162
|
readonly kind = "variable";
|
161
163
|
ifTypeMemberThenContainingType: TypeOrExtensionEntity | undefined;
|
162
164
|
isPackageMember: boolean;
|
163
|
-
getter:
|
164
|
-
setter:
|
165
|
+
getter: FunctionEntity | undefined;
|
166
|
+
setter: FunctionEntity | undefined;
|
165
167
|
details: VariableEntityDetails;
|
166
168
|
constructor(name: string, type: Type, containingPackage: PackageEntity);
|
167
169
|
}
|
168
|
-
export declare class
|
169
|
-
|
170
|
+
export declare class IntrinsicFunctionEntity implements FunctionEntity {
|
171
|
+
functionEntityKind: FunctionEntityKind;
|
170
172
|
name: string;
|
171
173
|
parameters: readonly VariableEntity[];
|
172
174
|
returnType: Type;
|
@@ -174,8 +176,8 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
174
176
|
readonly kind = "method";
|
175
177
|
ifTypeMemberThenContainingType: TypeOrExtensionEntity | undefined;
|
176
178
|
isPackageMember: boolean;
|
177
|
-
details:
|
178
|
-
constructor(
|
179
|
+
details: FunctionEntityDetails;
|
180
|
+
constructor(functionEntityKind: FunctionEntityKind, name: string, parameters: readonly VariableEntity[], returnType: Type, containingPackage: PackageEntity);
|
179
181
|
}
|
180
182
|
export declare class IntrinsicPackageEntity implements PackageEntity {
|
181
183
|
name: string;
|
@@ -12,22 +12,22 @@ export declare class EntityMap {
|
|
12
12
|
private readonly _analyzer;
|
13
13
|
private readonly _targetPlatform;
|
14
14
|
private readonly _variables;
|
15
|
-
private readonly
|
15
|
+
private readonly _functions;
|
16
16
|
private readonly _typeOrExtensions;
|
17
17
|
private readonly _packages;
|
18
18
|
private readonly _linkedPackages;
|
19
19
|
constructor(analyzer: Analyzer, targetPlatform: PlatformKind);
|
20
20
|
getVariableEntity(entity: analyzerEntities.VariableEntity): emitterEntities.VariableEntity;
|
21
|
-
|
22
|
-
getOperatorEntity(entity: analyzerEntities.OperatorEntity): emitterEntities.
|
23
|
-
getConstructorEntity(entity: analyzerEntities.ConstructorEntity): emitterEntities.
|
24
|
-
getDestructorEntity(entity: analyzerEntities.DestructorEntity): emitterEntities.
|
25
|
-
getGetterEntity(entity: analyzerEntities.GetterEntity): emitterEntities.
|
26
|
-
getSetterEntity(entity: analyzerEntities.SetterEntity): emitterEntities.
|
21
|
+
getFunctionEntity(entity: analyzerEntities.FunctionEntity): emitterEntities.FunctionEntity;
|
22
|
+
getOperatorEntity(entity: analyzerEntities.OperatorEntity): emitterEntities.FunctionEntity;
|
23
|
+
getConstructorEntity(entity: analyzerEntities.ConstructorEntity): emitterEntities.FunctionEntity;
|
24
|
+
getDestructorEntity(entity: analyzerEntities.DestructorEntity): emitterEntities.FunctionEntity;
|
25
|
+
getGetterEntity(entity: analyzerEntities.GetterEntity): emitterEntities.FunctionEntity;
|
26
|
+
getSetterEntity(entity: analyzerEntities.SetterEntity): emitterEntities.FunctionEntity;
|
27
27
|
getStructuredTypeEntity(entity: analyzerEntities.StructuredTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
28
28
|
getVariantTypeEntity(entity: analyzerEntities.VariantTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
29
29
|
getTypeParameterEntity(entity: analyzerEntities.TypeParameterEntity): emitterEntities.TypeOrExtensionEntity;
|
30
|
-
|
30
|
+
getFunctionTypeEntity(entity: analyzerEntities.FunctionTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
31
31
|
getAliasTypeEntity(entity: analyzerEntities.AliasTypeEntity): emitterEntities.TypeOrExtensionEntity;
|
32
32
|
getTypeExtensionEntity(entity: analyzerEntities.TypeExtensionEntity): emitterEntities.TypeOrExtensionEntity;
|
33
33
|
getTypeOrExtensionEntity(entity: analyzerEntities.TypeEntity | analyzerEntities.TypeExtensionEntity): emitterEntities.TypeOrExtensionEntity;
|
@@ -26,7 +26,7 @@ export declare class IrBuilder {
|
|
26
26
|
private buildContinueLoopStatement;
|
27
27
|
private buildBreakLoopStatement;
|
28
28
|
private buildPackageEntryPointDeclaration;
|
29
|
-
private
|
29
|
+
private buildPackageFunctionDeclaration;
|
30
30
|
private buildPackageStructuredTypeDeclaration;
|
31
31
|
private buildPackageAliasTypeDeclaration;
|
32
32
|
private buildPackageVariableDeclaration;
|
@@ -37,20 +37,20 @@ export declare class IrBuilder {
|
|
37
37
|
private buildVariantDeclaration;
|
38
38
|
private buildTypeExtensionDeclaration;
|
39
39
|
private buildTypeMemberList;
|
40
|
-
private
|
40
|
+
private buildConstructorDeclaration;
|
41
41
|
private createDefaultStructuredTypeConstructor;
|
42
|
-
private
|
43
|
-
private
|
44
|
-
private
|
45
|
-
private
|
46
|
-
private
|
47
|
-
private
|
42
|
+
private buildDestructorDeclaration;
|
43
|
+
private buildIndexedElementGetterDeclaration;
|
44
|
+
private buildIndexedElementSetterDeclaration;
|
45
|
+
private buildDereferencedVariableGetterDeclaration;
|
46
|
+
private buildDereferencedVariableSetterDeclaration;
|
47
|
+
private buildMethodDeclaration;
|
48
48
|
private buildOperatorDeclaration;
|
49
|
-
private
|
50
|
-
private
|
51
|
-
private
|
52
|
-
private
|
53
|
-
private
|
49
|
+
private buildFieldDeclaration;
|
50
|
+
private buildComputedFieldDeclaration;
|
51
|
+
private buildFieldGetterDeclarationRequired;
|
52
|
+
private buildFieldSetterDeclaration;
|
53
|
+
private buildBackingField;
|
54
54
|
private buildDisposeStatement;
|
55
55
|
private buildRunStatement;
|
56
56
|
private buildTryStatement;
|
@@ -61,7 +61,7 @@ export declare class IrBuilder {
|
|
61
61
|
private buildForStatement;
|
62
62
|
private buildIfStatement;
|
63
63
|
private buildElseIfClausesRecursively;
|
64
|
-
private
|
64
|
+
private buildNestedFunctionDeclarationStatement;
|
65
65
|
private buildParameterList;
|
66
66
|
private buildLocalVariableDeclarationStatement;
|
67
67
|
private buildLoopStatement;
|
@@ -79,15 +79,15 @@ export declare class IrBuilder {
|
|
79
79
|
private buildAssumptionExpression;
|
80
80
|
private buildAsExpression;
|
81
81
|
private buildBinaryExpression;
|
82
|
-
private
|
82
|
+
private buildFunctionBlockLiteral;
|
83
83
|
private buildCallExpression;
|
84
84
|
private buildAutotypeCallExpression;
|
85
85
|
private buildIndexedAccessExpression;
|
86
86
|
private buildIsExpression;
|
87
|
-
private
|
87
|
+
private buildFunctionLiteral;
|
88
88
|
private buildParenthesizedExpression;
|
89
89
|
private buildPrefixUnaryExpression;
|
90
|
-
private
|
90
|
+
private buildMemberAccessExpression;
|
91
91
|
private convertIndexedAccess;
|
92
92
|
private convertDereferencedVariableAccess;
|
93
93
|
private buildReferenceExpression;
|
@@ -111,7 +111,7 @@ export declare class IrBuilder {
|
|
111
111
|
private buildAnonymousStructuredTypeDeclaration;
|
112
112
|
private buildAnonymousVariantTypeDeclaration;
|
113
113
|
private getUnderlyingTypeKind;
|
114
|
-
private
|
114
|
+
private createAccessedFunctionFromOperator;
|
115
115
|
private expressionIsCallee;
|
116
116
|
private generateLoopLabel;
|
117
117
|
private getSourceLocation;
|