@artel/artc 0.9.26060-pre-release → 0.9.26061-pre-release
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 +8 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +54 -11
- package/build/{chunk-OBK4F7TH.js → chunk-53U5PFPM.js} +3546 -2003
- package/build/{chunk-ETOGWBIL.js → chunk-6UH5JW67.js} +2 -2
- package/build/{chunk-CSGFLTKZ.js → chunk-ZYVAYG57.js} +1 -1
- package/build/types/analysis/Analyzer.d.ts +5 -1
- package/build/types/analysis/TypeArgumentInferrerCore.d.ts +4 -3
- package/build/types/analysis/WellKnownDeclarations.d.ts +6 -0
- package/build/types/analysis/a/ModifierValidator.d.ts +3 -1
- package/build/types/analysis/m/WellKnownTagValidator.d.ts +2 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +180 -174
- package/build/types/entities/ClosedHierarchyScope.d.ts +13 -0
- package/build/types/entities/index.d.ts +1 -0
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +23 -1
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +4 -3
- package/build/types/entities/source/a/SourceStructuredTypeEntity.d.ts +11 -1
- package/build/types/entities/source/m/SourceStructuredTypeEntity.d.ts +12 -1
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +11 -2
- package/build/types/services/a/CompletionService.d.ts +5 -1
- package/build/types/tree/a/ModifierFlags.d.ts +14 -11
- package/build/types/tree/a/SyntaxFactory.d.ts +102 -8
- package/build/types/tree/a/SyntaxToCode.d.ts +84 -2
- package/build/types/tree/m/WellKnownTagFlags.d.ts +11 -8
- package/build/types/ts-interop/TypeEntities.d.ts +13 -3
- package/build/types/types/StructuredType.d.ts +20 -0
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/TypeVisitor.d.ts +6 -0
- package/build/types/types/index.d.ts +1 -0
- package/package.json +1 -1
package/build/Cli.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CommandLineCompiler
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-6UH5JW67.js";
|
|
5
|
+
import "./chunk-ZYVAYG57.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-53U5PFPM.js";
|
|
9
9
|
|
|
10
10
|
// source/Cli.ts
|
|
11
11
|
function main() {
|
package/build/api/Api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler,
|
|
3
3
|
DiagnosticFormatter
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-ZYVAYG57.js";
|
|
5
5
|
import {
|
|
6
6
|
AccessKind,
|
|
7
7
|
AccessedFunction_entity,
|
|
@@ -42,6 +42,8 @@ import {
|
|
|
42
42
|
Cached,
|
|
43
43
|
CancelledError,
|
|
44
44
|
CharacterCodes,
|
|
45
|
+
ClosedHierarchyScope_file,
|
|
46
|
+
ClosedHierarchyScope_package,
|
|
45
47
|
CommonAnalyzerState,
|
|
46
48
|
Compilation,
|
|
47
49
|
CompilationKind,
|
|
@@ -74,6 +76,7 @@ import {
|
|
|
74
76
|
DiagnosticFlags,
|
|
75
77
|
DiagnosticKind,
|
|
76
78
|
DiagnosticLocation,
|
|
79
|
+
DirectSubtypeInfo,
|
|
77
80
|
DirectoryEntry,
|
|
78
81
|
DisplayableArray,
|
|
79
82
|
DisplayableOrPrimitive,
|
|
@@ -318,7 +321,7 @@ import {
|
|
|
318
321
|
withoutQuotes,
|
|
319
322
|
withoutTemplateQuotes,
|
|
320
323
|
yieldTask
|
|
321
|
-
} from "../chunk-
|
|
324
|
+
} from "../chunk-53U5PFPM.js";
|
|
322
325
|
export {
|
|
323
326
|
AccessKind,
|
|
324
327
|
AccessedFunction_entity,
|
|
@@ -359,6 +362,8 @@ export {
|
|
|
359
362
|
Cached,
|
|
360
363
|
CancelledError,
|
|
361
364
|
CharacterCodes,
|
|
365
|
+
ClosedHierarchyScope_file,
|
|
366
|
+
ClosedHierarchyScope_package,
|
|
362
367
|
CommonAnalyzerState,
|
|
363
368
|
Compilation,
|
|
364
369
|
CompilationKind,
|
|
@@ -393,6 +398,7 @@ export {
|
|
|
393
398
|
DiagnosticFormatter,
|
|
394
399
|
DiagnosticKind,
|
|
395
400
|
DiagnosticLocation,
|
|
401
|
+
DirectSubtypeInfo,
|
|
396
402
|
DirectoryEntry,
|
|
397
403
|
DisplayableArray,
|
|
398
404
|
DisplayableOrPrimitive,
|
package/build/api/ApiNodeJS.js
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
PhysicalFileSystem,
|
|
7
7
|
PhysicalTypeScriptLibrariesProvider,
|
|
8
8
|
PrintingDiagnosticAcceptor
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-6UH5JW67.js";
|
|
10
|
+
import "../chunk-ZYVAYG57.js";
|
|
11
|
+
import "../chunk-53U5PFPM.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
traverseTreeAsync,
|
|
147
147
|
traverseTreeAsync2,
|
|
148
148
|
yieldTask
|
|
149
|
-
} from "../chunk-
|
|
149
|
+
} from "../chunk-53U5PFPM.js";
|
|
150
150
|
|
|
151
151
|
// source/services/common/Types.ts
|
|
152
152
|
import * as ls from "vscode-languageserver";
|
|
@@ -1526,7 +1526,7 @@ var UniversalParameter = class {
|
|
|
1526
1526
|
};
|
|
1527
1527
|
|
|
1528
1528
|
// source/services/a/CompletionService.ts
|
|
1529
|
-
var CompletionServiceA = class {
|
|
1529
|
+
var CompletionServiceA = class _CompletionServiceA {
|
|
1530
1530
|
constructor() {
|
|
1531
1531
|
this.cache = new CompletionItemInfoCache();
|
|
1532
1532
|
this.completionItemInfoContext_ = new Cached();
|
|
@@ -2105,8 +2105,9 @@ var CompletionServiceA = class {
|
|
|
2105
2105
|
if (syntaxContext.precedingExpression !== void 0) {
|
|
2106
2106
|
kinds.add(48 /* As */).add(20 /* Is */).add(27 /* And */).add(28 /* Or */).add(29 /* Xor */).add(34 /* When */);
|
|
2107
2107
|
}
|
|
2108
|
-
|
|
2109
|
-
|
|
2108
|
+
const modifierLevelKeywordKinds = this.ifModifierLevelContextThenKinds(positionDescription);
|
|
2109
|
+
if (modifierLevelKeywordKinds !== void 0) {
|
|
2110
|
+
modifierLevelKeywordKinds.forEach((k) => kinds.add(k));
|
|
2110
2111
|
}
|
|
2111
2112
|
if (this.isRepeatWhileKeywordContext(positionDescription)) {
|
|
2112
2113
|
kinds.add(32 /* RepeatWhile */);
|
|
@@ -2129,12 +2130,54 @@ var CompletionServiceA = class {
|
|
|
2129
2130
|
const tokenOrKeyword = positionDescription.tokenOrKeyword;
|
|
2130
2131
|
return tokenOrKeyword.isToken(28 /* CloseBrace */) && tokenOrKeyword.parent.kind === 91 /* StatementBlock */ && tokenOrKeyword.parent.parent.kind === 112 /* LoopStatement */;
|
|
2131
2132
|
}
|
|
2132
|
-
|
|
2133
|
+
static {
|
|
2134
|
+
this.packageLevelHidingLevelKinds = [
|
|
2135
|
+
55 /* InFile */,
|
|
2136
|
+
56 /* InPackage */
|
|
2137
|
+
];
|
|
2138
|
+
}
|
|
2139
|
+
static {
|
|
2140
|
+
this.typeLevelHidingLevelKinds = [
|
|
2141
|
+
57 /* InType */,
|
|
2142
|
+
54 /* InHierarchy */,
|
|
2143
|
+
55 /* InFile */,
|
|
2144
|
+
56 /* InPackage */
|
|
2145
|
+
];
|
|
2146
|
+
}
|
|
2147
|
+
static {
|
|
2148
|
+
this.packageLevelAbstractLevelKinds = [
|
|
2149
|
+
55 /* InFile */,
|
|
2150
|
+
56 /* InPackage */
|
|
2151
|
+
];
|
|
2152
|
+
}
|
|
2153
|
+
ifModifierLevelContextThenKinds(positionDescription) {
|
|
2133
2154
|
if (positionDescription.kind !== "after-token-or-keyword") {
|
|
2134
|
-
return
|
|
2155
|
+
return void 0;
|
|
2135
2156
|
}
|
|
2136
2157
|
const tokenOrKeyword = positionDescription.tokenOrKeyword;
|
|
2137
|
-
|
|
2158
|
+
if (!(tokenOrKeyword.isToken(50 /* OpenParenthesis */) && tokenOrKeyword.parent.kind === 151 /* Modifier */)) {
|
|
2159
|
+
return void 0;
|
|
2160
|
+
}
|
|
2161
|
+
const modifier = tokenOrKeyword.parent;
|
|
2162
|
+
if (modifier.value.keywordKind === 42 /* Hidden */) {
|
|
2163
|
+
const modifierOwner = modifier.parent.parent;
|
|
2164
|
+
if (isPackageMemberDeclaration(modifierOwner)) {
|
|
2165
|
+
return _CompletionServiceA.packageLevelHidingLevelKinds;
|
|
2166
|
+
} else if (isTypeMemberDeclaration(modifierOwner)) {
|
|
2167
|
+
return _CompletionServiceA.typeLevelHidingLevelKinds;
|
|
2168
|
+
} else {
|
|
2169
|
+
Debug.never(modifierOwner);
|
|
2170
|
+
}
|
|
2171
|
+
} else if (modifier.value.keywordKind === 44 /* Abstract */) {
|
|
2172
|
+
const modifierOwner = modifier.parent.parent;
|
|
2173
|
+
if (isPackageMemberDeclaration(modifierOwner)) {
|
|
2174
|
+
return _CompletionServiceA.packageLevelAbstractLevelKinds;
|
|
2175
|
+
} else {
|
|
2176
|
+
return void 0;
|
|
2177
|
+
}
|
|
2178
|
+
} else {
|
|
2179
|
+
return void 0;
|
|
2180
|
+
}
|
|
2138
2181
|
}
|
|
2139
2182
|
isElseOrElseIfKeywordContext(positionDescription) {
|
|
2140
2183
|
if (positionDescription.kind !== "after-token-or-keyword") {
|
|
@@ -10833,16 +10876,16 @@ var EntityToSyntax2 = class {
|
|
|
10833
10876
|
switch (entity.kind) {
|
|
10834
10877
|
case 2 /* Type */: {
|
|
10835
10878
|
if (entity.typeEntityKind === 1 /* Structured */ && entity.structuredTypeKind === 1 /* Structure */) {
|
|
10836
|
-
wkTagFlags.add(
|
|
10879
|
+
wkTagFlags.add(131072 /* Plain */);
|
|
10837
10880
|
}
|
|
10838
10881
|
if (entity.typeEntityKind === 1 /* Structured */ && entity.structuredTypeKind === 2 /* Aspect */) {
|
|
10839
|
-
wkTagFlags.add(
|
|
10882
|
+
wkTagFlags.add(262144 /* Aspect */);
|
|
10840
10883
|
}
|
|
10841
10884
|
if (entity.typeEntityKind === 6 /* Extension */) {
|
|
10842
|
-
wkTagFlags.add(
|
|
10885
|
+
wkTagFlags.add(1048576 /* Extension */);
|
|
10843
10886
|
}
|
|
10844
10887
|
if (TypeEntity.isWrapperType(entity)) {
|
|
10845
|
-
wkTagFlags.add(
|
|
10888
|
+
wkTagFlags.add(524288 /* Wrapper */);
|
|
10846
10889
|
}
|
|
10847
10890
|
if (entity.typeEntityKind === 1 /* Structured */ && entity.isAbstract()) {
|
|
10848
10891
|
wkTagFlags.add(32 /* Abstract */);
|