@artel/artc 0.6.26027 → 0.6.26029

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.
@@ -21,37 +21,33 @@ export declare class SourceFileAnalyzer {
21
21
  constructor(analyzer: Analyzer, sourceFile: project.SourceFileA);
22
22
  analyze(taskController: TaskController): Promise<Diagnostic[]>;
23
23
  private analyzeNode;
24
- private checkBinaryExpression;
24
+ private checkTag;
25
+ private checkPackageReducedTypeDeclaration;
26
+ private checkPackageAliasTypeDeclaration;
27
+ private checkPackageEntryPointDeclaration;
28
+ private checkPackageConstructorDeclaration;
29
+ private checkTranslationsDeclaration;
30
+ private addNotTranslatedTextsDiagnostics;
31
+ private collectNotTranslatedTexts;
32
+ private createNotTranslatedTextsDiagnostic;
33
+ private checkTextTranslationDeclaration;
25
34
  private checkPackageVariantDeclaration;
26
- private checkTypeMemberDeclarationBlock;
27
- private checkAssumptionExpression;
28
- private checkStatementBlock;
29
- private checkFunctionBlock;
30
35
  private checkPackageStructuredTypeDeclaration;
31
36
  private checkAllFieldsOfStructureAreConst;
32
37
  private checkStructureHasRecursiveLayout;
33
38
  private checkStructureIsReferencedByFieldTypeRecursively;
34
39
  private checkStructureIsReferencedByFieldsOfStructure;
35
40
  private isReferencedAutomaticallyGeneratedBackingVariable;
36
- private checkErrorStatement;
37
- private checkBreakLoopOrContinueLoopStatement;
38
- private isStatementUsedInsideLoop;
39
- private checkTypeParameterList;
40
- private checkTypeParameterDeclaration;
41
- private checkFunctionLiteral;
42
- private checkFunctionBlockLiteral;
43
- private checkDereferenceExpression;
44
- private checkIndexedAccessExpression;
45
- private checkCallExpression;
46
- private addNotTranslatedTextsDiagnostics;
47
- private collectNotTranslatedTexts;
48
- private createNotTranslatedTextsDiagnostic;
49
- private checkAllDefaultConstructorArgumentsAreNamed;
41
+ private checkAspectsHaveNotBeenExtendedWithDifferentTypeArguments;
50
42
  private checkPackageVariableDeclaration;
51
43
  private checkPackageFunctionDeclaration;
52
44
  private checkPackageVariableGetterDeclaration;
53
45
  private checkPackageVariableSetterDeclaration;
46
+ private checkPackageMemberBodyPresence;
47
+ private checkTypeExtensionDeclaration;
48
+ private checkTypeMemberDeclarationBlock;
54
49
  private checkConstructorDeclaration;
50
+ private checkDestructorDeclaration;
55
51
  private checkMethodDeclaration;
56
52
  private checkFieldDeclaration;
57
53
  private checkFieldGetterDeclaration;
@@ -60,12 +56,54 @@ export declare class SourceFileAnalyzer {
60
56
  private checkIndexedElementSetterDeclaration;
61
57
  private checkDereferencedVariableGetterDeclaration;
62
58
  private checkDereferencedVariableSetterDeclaration;
59
+ private checkTypeMemberBodyPresence;
60
+ private checkTypeParameterList;
61
+ private checkTypeParameterDeclaration;
62
+ private checkNamedTypeSpecifier;
63
+ private checkAnonymousClassDeclaration;
64
+ private checkAnonymousFunctionTypeDeclaration;
65
+ private checkParameterList;
66
+ private checkRequiredParametersDoNotFollowOptionalParameters;
67
+ private parameterListCanDeclareObjectParameter;
68
+ private checkObjectParameterIsTheFirstParameter;
69
+ private checkParameterDeclaration;
70
+ private checkOwnConstructorCallExpression;
71
+ private checkReferenceExpression;
72
+ private checkMatchExpressionList;
73
+ private checkWhileStatement;
74
+ private checkLoopStatement;
75
+ private checkElseIfClause;
76
+ private checkIfStatement;
77
+ private checkArgument;
78
+ private checkErrorVariableDeclaration;
79
+ private checkForStatementVariableDeclaration;
80
+ private checkLocalVariableDeclaration;
81
+ private checkBaseExpression;
82
+ private checkObjectExpression;
83
+ private checkAssignmentStatement;
84
+ private checkPrefixUnaryExpression;
85
+ private checkCatchClause;
86
+ private checkForStatement;
87
+ private checkLocalizableTextTemplateLiteral;
88
+ private checkLocalizableTextLiteral;
89
+ private checkAutotypeCallExpression;
90
+ private checkBinaryExpression;
91
+ private checkAssumptionExpression;
92
+ private checkStatementBlock;
93
+ private checkFunctionBlock;
94
+ private checkErrorStatement;
95
+ private checkBreakLoopOrContinueLoopStatement;
96
+ private isStatementUsedInsideLoop;
97
+ private checkFunctionLiteral;
98
+ private checkFunctionBlockLiteral;
99
+ private checkDereferenceExpression;
100
+ private checkIndexedAccessExpression;
101
+ private checkCallExpression;
102
+ private checkAllDefaultConstructorArgumentsAreNamed;
63
103
  private checkNestedFunctionDeclaration;
64
104
  private checkPossibleGeneratorFunctionReturnType;
65
105
  private checkReturnStatement;
66
106
  private checkYieldStatement;
67
- private checkPackageMemberBodyPresence;
68
- private checkTypeMemberBodyPresence;
69
107
  private checkIdentifierExpression;
70
108
  private checkLocalVariableUsedBeforeDeclaration;
71
109
  private checkLocalVariableIsUsedBeforeBeingAssigned;
@@ -88,18 +126,11 @@ export declare class SourceFileAnalyzer {
88
126
  private checkOptionalChainingIsUsedOnTheLeftSideOfAssignment;
89
127
  private checkGenericSpecializationExpression;
90
128
  private checkTypeArgumentTypesAreAssignableToConstraints;
91
- private checkParameterList;
92
- private checkRequiredParametersDoNotFollowOptionalParameters;
93
- private parameterListCanDeclareObjectParameter;
94
- private checkObjectParameterIsTheFirstParameter;
95
- private checkParameterDeclaration;
96
129
  private checkIfVariableIsUnused;
97
130
  private checkIfNestedFunctionIsUnused;
98
131
  private checkIfTypeParameterIsUnused;
99
132
  private checkAllCodePathsReturnOrResultVariableIsAssigned;
100
133
  private isReceiverBaseAutoVariableAccess;
101
- private overridingMemberHasCorrectHiding;
102
- private checkTextTranslationDeclaration;
103
134
  private attachNodeLocationAndAddDiagnostics;
104
135
  private createAndAddDiagnostic;
105
136
  private addDiagnostic;
@@ -278,6 +278,7 @@ export declare enum DiagnosticCode {
278
278
  CannotAssignValueBecauseWriteFunctionIsNotDefined = 2243,
279
279
  CannotAssignValueBecauseWriteFunctionIsHidden = 2244,
280
280
  ReadFunctionMustHaveTheSameTypeAsWriteFunction = 2245,
281
+ AspectHasAlreadyBeenExtendedWithDifferentTypeArguments0 = 2246,
281
282
  CannotFindTsLibDirectoryBaseSearchPaths0 = 3000,
282
283
  SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 3001,
283
284
  ProgramWithoutMainPackageCannotBeCompiled = 3002,
@@ -38,6 +38,7 @@ export declare class FunctionEntityDetails implements TypeMemberEntityDetails {
38
38
  hasObjectParameter: boolean;
39
39
  variableOwningAccessor: VariableEntity | undefined;
40
40
  isSetter: boolean;
41
+ nameSource: NamedEntity | undefined;
41
42
  }
42
43
  export interface ComputedNameInfo {
43
44
  /**
@@ -76,6 +77,7 @@ export declare class VariableEntityDetails implements TypeMemberEntityDetails {
76
77
  isStatic: boolean;
77
78
  isConst: boolean;
78
79
  isObjectParameter: boolean;
80
+ nameSource: NamedEntity | undefined;
79
81
  }
80
82
  export interface ProxiedFieldInfo {
81
83
  readonly tagType: TypeOrExtensionEntity;
@@ -118,6 +120,7 @@ export declare class TypeOrExtensionEntityDetails {
118
120
  */
119
121
  areOwnComputedNamesOfMembersResolved: boolean;
120
122
  implicitlyImplementedAbstractMembersByImplementingMember: ReadonlyMap<TypeMemberEntity, readonly TypeMemberEntity[]>;
123
+ nameSource: NamedEntity | undefined;
121
124
  }
122
125
  export declare enum TypeOrExtensionEntityKind {
123
126
  StructuredType = 0,
@@ -73,7 +73,7 @@ export declare function loopStatement(label: string | undefined, body: ir.BlockS
73
73
  export declare function measureLiteral(sourceLocation?: ir.SourceLocation): ir.MeasureLiteral;
74
74
  export declare function functionAccessExpression(func: ir.AccessedFunction, isCallee: boolean, sourceLocation?: ir.SourceLocation): ir.FunctionAccessExpression;
75
75
  export declare function functionLiteral(parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: ir.SourceLocation): ir.FunctionLiteral;
76
- export declare function jsFunctionLiteral(parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: ir.SourceLocation): ir.JsFunctionLiteral;
76
+ export declare function jsFunctionLiteral(parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, isGenerator: boolean, returnType: Type, sourceLocation?: ir.SourceLocation): ir.JsFunctionLiteral;
77
77
  export declare function nestedFunctionDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: ir.SourceLocation): ir.NestedFunctionDeclaration;
78
78
  export declare function nestedFunctionDeclarationStatement(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: ir.SourceLocation): ir.NestedFunctionDeclarationStatement;
79
79
  export declare function nestedFunctionDeclarationStatementWithDeclaration(declaration: ir.NestedFunctionDeclaration, sourceLocation?: ir.SourceLocation): ir.NestedFunctionDeclarationStatement;
@@ -6,7 +6,9 @@ export declare class Transformer {
6
6
  protected readonly debugStack: DebugStack;
7
7
  private hoistedLocalVariables;
8
8
  private transformedDeclaration_;
9
+ private transformedTypeDeclaration_;
9
10
  get transformedDeclaration(): ir.Declaration | undefined;
11
+ get transformedTypeDeclaration(): ir.PackageTypeDeclaration | ir.PackageVariantTypeDeclaration | undefined;
10
12
  constructor(config: TransformationConfig);
11
13
  transformChildren(node: ir.Node): void;
12
14
  transformPackage(pkg: ir.Package): void;
@@ -551,10 +551,11 @@ export declare class JsFunctionLiteral {
551
551
  parameters: readonly ParameterDeclaration[];
552
552
  body: BlockStatement;
553
553
  isAsync: boolean;
554
+ isGenerator: boolean;
554
555
  returnType: Type;
555
556
  sourceLocation?: SourceLocation | undefined;
556
557
  readonly kind = NodeKind.JsFunctionLiteral;
557
- constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: SourceLocation | undefined);
558
+ constructor(parameters: readonly ParameterDeclaration[], body: BlockStatement, isAsync: boolean, isGenerator: boolean, returnType: Type, sourceLocation?: SourceLocation | undefined);
558
559
  clone(): JsFunctionLiteral;
559
560
  }
560
561
  export declare class Modifiers {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.26027",
3
+ "version": "0.6.26029",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "Apache-2.0",