@artel/artc 0.6.25210 → 0.6.25211

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.
Files changed (34) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +14 -4
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +318 -333
  5. package/build/{chunk-CAQIZO5K.js → chunk-5BGDYCRQ.js} +2 -2
  6. package/build/{chunk-HRQLSHI7.js → chunk-EYLAO2SF.js} +1 -1
  7. package/build/{chunk-3ORG7RXI.js → chunk-Y3KGPV3L.js} +1498 -1616
  8. package/build/types/analysis/Analyzer.d.ts +1 -2
  9. package/build/types/common/Debug.d.ts +3 -0
  10. package/build/types/common/Logger.d.ts +1 -1
  11. package/build/types/emitter/Transformer.d.ts +1 -1
  12. package/build/types/emitter/ir/Nodes.d.ts +13 -11
  13. package/build/types/entities/BinaryOperatorEntity.d.ts +4 -1
  14. package/build/types/entities/EntityHiding.d.ts +2 -2
  15. package/build/types/entities/OperatorEntity.d.ts +45 -0
  16. package/build/types/entities/OperatorKind.d.ts +63 -0
  17. package/build/types/entities/UnaryOperatorEntity.d.ts +2 -1
  18. package/build/types/entities/VariableEntity.d.ts +1 -11
  19. package/build/types/entities/index.d.ts +7 -4
  20. package/build/types/parser/OperatorDictionary.d.ts +11 -0
  21. package/build/types/services/DisplayService.d.ts +5 -5
  22. package/build/types/tree/KeywordKind.d.ts +25 -29
  23. package/build/types/tree/NodeKind.d.ts +83 -87
  24. package/build/types/tree/OperatorKind.d.ts +23 -0
  25. package/build/types/tree/green/Nodes.d.ts +27 -83
  26. package/build/types/tree/green/Token.d.ts +4 -3
  27. package/build/types/tree/green/index.d.ts +1 -0
  28. package/build/types/tree/index.d.ts +0 -3
  29. package/build/types/tree/red/Nodes.d.ts +22 -74
  30. package/build/types/tree/red/index.d.ts +4 -0
  31. package/build/types/ts-interop/Entities.d.ts +0 -4
  32. package/package.json +4 -4
  33. package/build/types/emitter/IntrinsicEntities.d.ts +0 -118
  34. /package/build/types/emitter/{error-boundary.d.ts → ErrorBoundary.d.ts} +0 -0
@@ -234,6 +234,7 @@ export declare class Analyzer {
234
234
  checkBodyOfRedefinableAliasTypeMethod(node: tree.TypeMethodDeclaration, diagnostics?: DiagnosticAcceptor): {
235
235
  redefinableMethodOfOriginalType: TypeMethodEntity;
236
236
  } | undefined;
237
+ determineOperatorKind(name: Name, parameterCount: number, locale: PackageLocale): entities.OperatorKind | undefined;
237
238
  private createTsInterop;
238
239
  }
239
240
  export declare class TsInteropInputs {
@@ -276,7 +277,6 @@ declare class Type {
276
277
  private ofIndexedAccessExpression;
277
278
  private ofInvalidExpression;
278
279
  private ofIsExpression;
279
- private ofUnobservableExpression;
280
280
  private ofNotExpression;
281
281
  private ofParenthesizedExpression;
282
282
  private ofPrefixUnaryExpression;
@@ -285,7 +285,6 @@ declare class Type {
285
285
  private ofDereferenceExpression;
286
286
  private ofWhenTernaryExpression;
287
287
  private ofTextTemplateLiteral;
288
- private ofTransactionalExpression;
289
288
  private ofIdentifierExpression;
290
289
  private ofTokenExpression;
291
290
  private ofKeywordExpression;
@@ -8,3 +8,6 @@ export declare class Debug {
8
8
  static cast<T>(_value: unknown): asserts _value is T;
9
9
  static internalError(message?: string): never;
10
10
  }
11
+ export type AreEqual<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false;
12
+ export type IsTrue<_T extends true> = never;
13
+ export type IsNever<_T extends never> = never;
@@ -1,4 +1,4 @@
1
- import { EmitterError } from '../emitter/error-boundary.js';
1
+ import { EmitterError } from '../emitter/ErrorBoundary.js';
2
2
  import { Node } from '../tree/index.js';
3
3
  export declare class Logger {
4
4
  static info(message: string): void;
@@ -1,7 +1,7 @@
1
1
  import { DebugStack } from './DebugStack.js';
2
2
  import { blockStatementTransformationResult, expressionTransformationResult, packageMemberDeclarationTransformationResult, simpleTransformationResult, statementTransformationResult, typeAccessExpressionTransformationResult, typeMemberDeclarationTransformationResult } from './Internal.js';
3
- import { TransformationContinuationAction } from './TransformationContinuationAction.js';
4
3
  import * as ir from './ir/index.js';
4
+ import { TransformationContinuationAction } from './TransformationContinuationAction.js';
5
5
  export declare class Transformer {
6
6
  readonly config: TransformationConfig;
7
7
  protected readonly _debugStack: DebugStack;
@@ -973,19 +973,18 @@ export declare const enum NodeKind {
973
973
  JsFunctionLiteral = 85,
974
974
  JsTypeOfExpression = 86,
975
975
  JsInstanceOfExpression = 87,
976
- TransactionalExpression = 88,
977
- UnobservableExpression = 89,
978
- JsIdentifierExpression = 90,
979
- DereferenceExpression = 91,
980
- BaseExpression = 92,
981
- OwnConstructorCallExpression = 93,
982
- TypeDereferencedVariableGetterDeclaration = 94,
983
- TypeDereferencedVariableSetterDeclaration = 95,
984
- JsNamespaceDestructuringStatement = 96
976
+ JsIdentifierExpression = 88,
977
+ DereferenceExpression = 89,
978
+ BaseExpression = 90,
979
+ OwnConstructorCallExpression = 91,
980
+ TypeDereferencedVariableGetterDeclaration = 92,
981
+ TypeDereferencedVariableSetterDeclaration = 93,
982
+ JsNamespaceDestructuringStatement = 94
985
983
  }
986
984
  export declare const enum PrefixUnaryExpressionOperator {
987
985
  Plus = 0,
988
- Minus = 1
986
+ Minus = 1,
987
+ BitwiseNot = 2
989
988
  }
990
989
  export declare const enum BinaryExpressionOperator {
991
990
  Add = 0,
@@ -1003,5 +1002,8 @@ export declare const enum BinaryExpressionOperator {
1003
1002
  And = 12,
1004
1003
  Xor = 13,
1005
1004
  QuestionQuestion = 14,
1006
- Modulo = 15
1005
+ Modulo = 15,
1006
+ BitwiseAnd = 16,
1007
+ BitwiseOr = 17,
1008
+ BitwiseXor = 18
1007
1009
  }
@@ -30,7 +30,10 @@ export declare enum BinaryOperatorKind {
30
30
  GreaterThanEquals = 11,
31
31
  Or = 12,
32
32
  And = 13,
33
- Xor = 14
33
+ Xor = 14,
34
+ BitwiseAnd = 15,
35
+ BitwiseOr = 16,
36
+ BitwiseXor = 17
34
37
  }
35
38
  export declare class IntrinsicBinaryOperatorEntity implements BinaryOperatorEntity {
36
39
  private readonly _operatorKind;
@@ -1,13 +1,13 @@
1
1
  import { SourceFile } from '../project/index.js';
2
2
  import { PackageEntity } from './PackageEntity.js';
3
3
  import { TypeEntity } from './index.js';
4
- export type EntityHidingLevel = EntityHidingLevel_type | EntityHidingLevel_typeFamily | EntityHidingLevel_file | EntityHidingLevel_package;
4
+ export type EntityHidingLevel = EntityHidingLevel_type | EntityHidingLevel_typeHierarchy | EntityHidingLevel_file | EntityHidingLevel_package;
5
5
  export declare class EntityHidingLevel_type {
6
6
  readonly typeEntity: TypeEntity;
7
7
  readonly kind = "type";
8
8
  constructor(typeEntity: TypeEntity);
9
9
  }
10
- export declare class EntityHidingLevel_typeFamily {
10
+ export declare class EntityHidingLevel_typeHierarchy {
11
11
  readonly baseTypeEntity: TypeEntity;
12
12
  readonly kind = "type-hierarchy";
13
13
  constructor(baseTypeEntity: TypeEntity);
@@ -0,0 +1,45 @@
1
+ import { Analyzer } from '../analysis/index.js';
2
+ import { Tag } from '../analysis/Tags.js';
3
+ import { Name } from '../common/index.js';
4
+ import { TypeMethodDeclaration } from '../tree/index.js';
5
+ import * as types from '../types/index.js';
6
+ import { DefinitionKind, EntityHidingLevel, EntityKind, OperatorKind, ParameterVariableEntity, TypeMemberEntityContainer } from './index.js';
7
+ export interface OperatorEntity {
8
+ readonly kind: EntityKind.Operator;
9
+ getOperatorKind(): OperatorKind;
10
+ getName(): Name;
11
+ getValueParameters(): readonly ParameterVariableEntity[];
12
+ getResultType(): types.Type;
13
+ getDefinition(): OperatorDefinition;
14
+ getContainer(): TypeMemberEntityContainer;
15
+ isStatic(): boolean;
16
+ isRedefinable(): boolean;
17
+ isRedefined(): boolean;
18
+ isAbstract(): boolean;
19
+ isHidden(): EntityHidingLevel | undefined;
20
+ getTags(): readonly Tag[];
21
+ }
22
+ export type OperatorDefinition = {
23
+ kind: DefinitionKind.Source;
24
+ node: TypeMethodDeclaration;
25
+ };
26
+ export declare class OperatorDeclarationEntity implements OperatorEntity {
27
+ private readonly _analyzer;
28
+ private readonly _node;
29
+ private readonly _operatorKind;
30
+ readonly kind = EntityKind.Operator;
31
+ private readonly _valueParameters;
32
+ constructor(_analyzer: Analyzer, _node: TypeMethodDeclaration, _operatorKind: OperatorKind);
33
+ getOperatorKind(): OperatorKind;
34
+ getName(): Name;
35
+ getValueParameters(): readonly ParameterVariableEntity[];
36
+ getResultType(): types.Type;
37
+ getDefinition(): OperatorDefinition;
38
+ getContainer(): TypeMemberEntityContainer;
39
+ isStatic(): boolean;
40
+ isRedefinable(): boolean;
41
+ isRedefined(): boolean;
42
+ isAbstract(): boolean;
43
+ isHidden(): EntityHidingLevel | undefined;
44
+ getTags(): readonly Tag[];
45
+ }
@@ -0,0 +1,63 @@
1
+ import { PackageLocale } from '../common/PackageLocale.js';
2
+ export declare enum OperatorKind {
3
+ UnaryPlus = 0,
4
+ UnaryMinus = 1,
5
+ Not = 2,
6
+ ImplicitConversion = 3,
7
+ Add = 4,
8
+ Subtract = 5,
9
+ Multiply = 6,
10
+ Divide = 7,
11
+ IntegerDivide = 8,
12
+ Modulo = 9,
13
+ LessThan = 10,
14
+ GreaterThan = 11,
15
+ LessThanEquals = 12,
16
+ GreaterThanEquals = 13,
17
+ Or = 14,
18
+ And = 15,
19
+ Xor = 16,
20
+ AddEquals = 17,
21
+ SubtractEquals = 18,
22
+ MultiplyEquals = 19,
23
+ DivideEquals = 20,
24
+ IntegerDivideEquals = 21,
25
+ ModuloEquals = 22
26
+ }
27
+ /**
28
+ * Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
29
+ */
30
+ export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.ImplicitConversion | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanEquals | OperatorKind.GreaterThanEquals | OperatorKind.AddEquals | OperatorKind.SubtractEquals | OperatorKind.MultiplyEquals | OperatorKind.DivideEquals | OperatorKind.IntegerDivideEquals | OperatorKind.ModuloEquals;
31
+ /**
32
+ * Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
33
+ */
34
+ export type KindOfOperatorDefinedByKeyword = OperatorKind.Not | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor;
35
+ /**
36
+ * Виды одноместных операторов. Объявление одноместного оператора не должно содержать ни одного параметра.
37
+ */
38
+ export type UnaryOperatorKind = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Not | OperatorKind.ImplicitConversion;
39
+ /**
40
+ * Виды двухместных операторов, в том числе составных. Объявление двухместного оператора должно содержать один параметр.
41
+ */
42
+ export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanEquals | OperatorKind.GreaterThanEquals | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor | OperatorKind.AddEquals | OperatorKind.SubtractEquals | OperatorKind.MultiplyEquals | OperatorKind.DivideEquals | OperatorKind.IntegerDivideEquals | OperatorKind.ModuloEquals;
43
+ export type KindOfUnaryOperatorDefinedByToken = UnaryOperatorKind & KindOfOperatorDefinedByToken;
44
+ export type KindOfUnaryOperatorDefinedByKeyword = UnaryOperatorKind & KindOfOperatorDefinedByKeyword;
45
+ export type KindOfBinaryOperatorDefinedByToken = BinaryOperatorKind & KindOfOperatorDefinedByToken;
46
+ export type KindOfBinaryOperatorDefinedByKeyword = BinaryOperatorKind & KindOfOperatorDefinedByKeyword;
47
+ export declare const unaryOperatorKindByTokenText: Record<string, KindOfUnaryOperatorDefinedByToken | undefined>;
48
+ export declare const binaryOperatorKindByTokenText: Record<string, KindOfBinaryOperatorDefinedByToken | undefined>;
49
+ export declare const operatorKindByRussianKeywordText: {
50
+ readonly не: OperatorKind.Not;
51
+ readonly или: OperatorKind.Or;
52
+ readonly и: OperatorKind.And;
53
+ readonly искл: OperatorKind.Xor;
54
+ };
55
+ export declare const operatorKindByEnglishKeywordText: {
56
+ readonly not: OperatorKind.Not;
57
+ readonly or: OperatorKind.Or;
58
+ readonly and: OperatorKind.And;
59
+ readonly xor: OperatorKind.Xor;
60
+ };
61
+ export declare const operatorKindByKeywordTextByPackageLocale: {
62
+ [T in PackageLocale]: Record<string, KindOfOperatorDefinedByKeyword>;
63
+ };
@@ -17,7 +17,8 @@ export type UnaryOperatorDefinition = {
17
17
  export declare enum UnaryOperatorKind {
18
18
  Plus = 0,
19
19
  Minus = 1,
20
- Not = 2
20
+ Not = 2,
21
+ BitwiseNot = 3
21
22
  }
22
23
  export declare class IntrinsicUnaryOperatorEntity implements UnaryOperatorEntity {
23
24
  readonly _operatorKind: UnaryOperatorKind;
@@ -17,8 +17,6 @@ export interface TypeVariableEntity extends IVariableEntity {
17
17
  isRedefinable(): boolean;
18
18
  isRedefined(): boolean;
19
19
  isAbstract(): boolean;
20
- isConsistent(): boolean;
21
- isObservable(): boolean;
22
20
  }
23
21
  export interface ParameterVariableEntity extends IVariableEntity {
24
22
  readonly subkind: 'parameter';
@@ -157,8 +155,6 @@ export declare class TypeVariableDeclarationEntity implements TypeVariableEntity
157
155
  isRedefinable(): boolean;
158
156
  isRedefined(): boolean;
159
157
  isAbstract(): boolean;
160
- isConsistent(): boolean;
161
- isObservable(): boolean;
162
158
  }
163
159
  export declare class ComputedTypeVariableDeclarationEntity implements TypeVariableEntity {
164
160
  readonly kind = EntityKind.Variable;
@@ -177,8 +173,6 @@ export declare class ComputedTypeVariableDeclarationEntity implements TypeVariab
177
173
  isRedefinable(): boolean;
178
174
  isRedefined(): boolean;
179
175
  isAbstract(): boolean;
180
- isConsistent(): boolean;
181
- isObservable(): boolean;
182
176
  getDefinition(): VariableEntityDefinition;
183
177
  getGetter(): GetterEntity | undefined;
184
178
  getSetter(): SetterEntity | undefined;
@@ -351,15 +345,13 @@ export declare class IntrinsicTypeVariableEntity implements TypeVariableEntity {
351
345
  private readonly _isRedefinable;
352
346
  private readonly _isRedefined;
353
347
  private readonly _isAbstract;
354
- private readonly _isConsistent;
355
- private readonly _isObservable;
356
348
  private readonly _isSpecial;
357
349
  private readonly _isHidden;
358
350
  private readonly _getter;
359
351
  private readonly _setter;
360
352
  readonly kind = EntityKind.Variable;
361
353
  readonly subkind = "type";
362
- constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean, _isRedefinable: boolean, _isRedefined: boolean, _isAbstract: boolean, _isConsistent: boolean, _isObservable: boolean, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined);
354
+ constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean, _isRedefinable: boolean, _isRedefined: boolean, _isAbstract: boolean, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined);
363
355
  getName(): Name;
364
356
  getType(): types.Type;
365
357
  getDefinition(): VariableEntityDefinition;
@@ -374,8 +366,6 @@ export declare class IntrinsicTypeVariableEntity implements TypeVariableEntity {
374
366
  isRedefinable(): boolean;
375
367
  isRedefined(): boolean;
376
368
  isAbstract(): boolean;
377
- isConsistent(): boolean;
378
- isObservable(): boolean;
379
369
  }
380
370
  export declare class IntrinsicParameterVariableEntity implements ParameterVariableEntity {
381
371
  private readonly _name;
@@ -1,9 +1,9 @@
1
1
  import { AliasTypeEntity } from './AliasTypeEntity.js';
2
2
  import { ConstructorEntity } from './ConstructorEntity.js';
3
+ import { DereferenceOperatorEntity } from './DereferenceOperatorEntity.js';
3
4
  import { DestructorEntity } from './DestructorEntity.js';
4
5
  import { GetterEntity } from './GetterEntity.js';
5
6
  import { IndexerEntity } from './IndexerEntity.js';
6
- import { DereferenceOperatorEntity } from './DereferenceOperatorEntity.js';
7
7
  import { MethodEntity, PackageMethodEntity, TypeMethodEntity } from './MethodEntity.js';
8
8
  import { AnonymousMethodTypeEntity, MethodTypeEntity, PackageMethodTypeEntity } from './MethodTypeEntity.js';
9
9
  import { PackageAliasEntity } from './PackageAliasEntity.js';
@@ -20,14 +20,16 @@ import { BinaryOperatorEntity } from './index.js';
20
20
  export * from './AliasTypeEntity.js';
21
21
  export * from './BinaryOperatorEntity.js';
22
22
  export * from './ConstructorEntity.js';
23
+ export * from './DereferenceOperatorEntity.js';
23
24
  export * from './DestructorEntity.js';
24
25
  export * from './EntityHiding.js';
25
26
  export * from './EntityNaming.js';
26
27
  export * from './GetterEntity.js';
27
28
  export * from './IndexerEntity.js';
28
- export * from './DereferenceOperatorEntity.js';
29
29
  export * from './MethodEntity.js';
30
30
  export * from './MethodTypeEntity.js';
31
+ export * from './OperatorEntity.js';
32
+ export { binaryOperatorKindByTokenText, OperatorKind, operatorKindByKeywordTextByPackageLocale, unaryOperatorKindByTokenText } from './OperatorKind.js';
31
33
  export * from './PackageAliasEntity.js';
32
34
  export * from './PackageEntity.js';
33
35
  export * from './SetterEntity.js';
@@ -63,8 +65,9 @@ export declare const enum EntityKind {
63
65
  AliasType = 14,
64
66
  UnaryOperator = 15,
65
67
  BinaryOperator = 16,
66
- Package = 17,
67
- TypeExtension = 18
68
+ Operator = 17,
69
+ Package = 18,
70
+ TypeExtension = 19
68
71
  }
69
72
  export type Entity = PackageEntity | VariableEntity | VariantEntity | VariantTypeEntity | GetterEntity | SetterEntity | MethodEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | MethodTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | TypeExtensionEntity | UnaryOperatorEntity | BinaryOperatorEntity;
70
73
  export type TypeEntity = MethodTypeEntity | StructuredTypeEntity | TypeParameterEntity | VariantTypeEntity | AliasTypeEntity;
@@ -0,0 +1,11 @@
1
+ import { OperatorKind } from '../tree/OperatorKind.js';
2
+ /**
3
+ * Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
4
+ */
5
+ export type KindOfOperatorDefinedByToken = OperatorKind.Plus | OperatorKind.Minus | OperatorKind.ImplicitConversion | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanEquals | OperatorKind.GreaterThanEquals | OperatorKind.AddEquals | OperatorKind.SubtractEquals | OperatorKind.MultiplyEquals | OperatorKind.DivideEquals | OperatorKind.IntegerDivideEquals | OperatorKind.ModuloEquals;
6
+ /**
7
+ * Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
8
+ */
9
+ export type KindOfOperatorDefinedByKeyword = OperatorKind.Not | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor;
10
+ export declare const operatorKindByTokenText: Record<string, KindOfOperatorDefinedByToken | undefined>;
11
+ export declare const operatorKindByKeywordKind: Record<number, KindOfOperatorDefinedByKeyword | undefined>;
@@ -741,8 +741,8 @@ declare class TypeMemberContainer {
741
741
  }
742
742
  export declare class MethodDeclarationDisplayParts {
743
743
  readonly asyncKeywordWithWhitespace: string;
744
- readonly operationKeyword: string;
745
- readonly whitespaceAfterOperationKeyword: string;
744
+ readonly functionKeyword: string;
745
+ readonly whitespaceAfterFunctionKeyword: string;
746
746
  readonly container: string;
747
747
  readonly name: string;
748
748
  readonly typeParametersStart: string;
@@ -755,7 +755,7 @@ export declare class MethodDeclarationDisplayParts {
755
755
  readonly valueParametersEnd: string;
756
756
  readonly returnTypeAnnotationColon: string;
757
757
  readonly returnType: string;
758
- constructor(asyncKeywordWithWhitespace: string, operationKeyword: string, whitespaceAfterOperationKeyword: string, container: string, name: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
758
+ constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
759
759
  toString(): string;
760
760
  }
761
761
  export declare class ValueParameterDeclarationDisplayParts {
@@ -817,14 +817,14 @@ export declare class NamedTypeDisplayParts {
817
817
  }
818
818
  export declare class MethodTypeBodyDisplayParts {
819
819
  readonly asyncKeywordWithWhitespace: string;
820
- readonly operationKeyword: string;
820
+ readonly functionKeyword: string;
821
821
  readonly valueParametersStart: string;
822
822
  readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
823
823
  readonly valueParameterSeparator: string;
824
824
  readonly valueParametersEnd: string;
825
825
  readonly returnTypeAnnotationColon: string;
826
826
  readonly returnType: string;
827
- constructor(asyncKeywordWithWhitespace: string, operationKeyword: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
827
+ constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
828
828
  toString(): string;
829
829
  }
830
830
  export {};
@@ -10,7 +10,7 @@ export declare enum KeywordKind {
10
10
  From = 8,
11
11
  Else = 9,
12
12
  ElseIf = 10,
13
- Operation = 11,
13
+ Function = 11,
14
14
  If = 12,
15
15
  Is = 13,
16
16
  Return = 14,
@@ -34,32 +34,28 @@ export declare enum KeywordKind {
34
34
  For = 32,
35
35
  Const = 33,
36
36
  Hidden = 34,
37
- Observable = 35,
38
- Consistent = 36,
39
- Abstract = 37,
40
- Redefinable = 38,
41
- Redefined = 39,
42
- Transactional = 40,
43
- Unobservable = 41,
44
- Async = 42,
45
- Static = 43,
46
- As = 44,
47
- Not = 45,
48
- Switch = 46,
49
- Case = 47,
50
- Await = 48,
51
- Dispose = 49,
52
- Destruction = 50,
53
- InHierarchy = 51,
54
- InFile = 52,
55
- InPackage = 53,
56
- InType = 54,
57
- Yes = 55,
58
- No = 56,
59
- Reference = 57,
60
- Translations = 58,
61
- Base = 59,
62
- None = 60,
63
- Get = 61,
64
- Set = 62
37
+ Abstract = 35,
38
+ Redefinable = 36,
39
+ Redefined = 37,
40
+ Async = 38,
41
+ Static = 39,
42
+ As = 40,
43
+ Not = 41,
44
+ Switch = 42,
45
+ Case = 43,
46
+ Await = 44,
47
+ Dispose = 45,
48
+ Destruction = 46,
49
+ InHierarchy = 47,
50
+ InFile = 48,
51
+ InPackage = 49,
52
+ InType = 50,
53
+ Yes = 51,
54
+ No = 52,
55
+ Reference = 53,
56
+ Translations = 54,
57
+ Base = 55,
58
+ None = 56,
59
+ Get = 57,
60
+ Set = 58
65
61
  }
@@ -73,91 +73,87 @@ export declare enum NodeKind {
73
73
  IndexedAccessExpression = 71,
74
74
  InvalidExpression = 72,
75
75
  IsExpression = 73,
76
- UnobservableExpression = 74,
77
- NotExpression = 75,
78
- MethodLiteral = 76,
79
- ParenthesizedExpression = 77,
80
- WhenTernaryExpression = 78,
81
- PrefixUnaryExpression = 79,
82
- PropertyAccessExpression = 80,
83
- ReferenceExpression = 81,
84
- DereferenceExpression = 82,
85
- TextTemplateLiteral = 83,
86
- TextTemplateSpanList = 84,
87
- TextTemplateSpan = 85,
88
- TokenExpression = 86,
89
- KeywordExpression = 87,
90
- ObjectExpression = 88,
91
- BaseExpression = 89,
92
- IdentifierExpression = 90,
93
- TransactionalExpression = 91,
94
- GenericSpecializationExpression = 92,
95
- DefaultMatchExpression = 93,
96
- AssignmentStatement = 94,
97
- StatementList = 95,
98
- StatementBlock = 96,
99
- BreakLoopStatement = 97,
100
- ContinueLoopStatement = 98,
101
- DisposeStatement = 99,
102
- RunStatementClauseList = 100,
103
- RunStatement = 101,
104
- OnErrorClause = 102,
105
- ErrorVariableDeclaration = 103,
106
- FinallyClause = 104,
107
- EmptyStatement = 105,
108
- ErrorStatement = 106,
109
- ExpressionStatement = 107,
110
- EnumerationVariableList = 108,
111
- ForStatement = 109,
112
- IfStatement = 110,
113
- ElseIfClauseList = 111,
114
- ElseIfClause = 112,
115
- InvalidStatement = 113,
116
- NestedMethodDeclarationStatement = 114,
117
- LocalVariableDeclarationStatement = 115,
118
- UnobservableStatement = 116,
119
- LoopStatement = 117,
120
- ReturnStatement = 118,
121
- CaseClauseList = 119,
122
- SwitchStatement = 120,
123
- MatchExpressionList = 121,
124
- SwitchStatementCaseClause = 122,
125
- TransactionalStatement = 123,
126
- WhileStatement = 124,
127
- YieldStatement = 125,
128
- TranslationParameterList = 126,
129
- TranslationParameterClause = 127,
130
- ConstructorTranslation = 128,
131
- IndexerTranslationParameterClause = 129,
132
- IndexerTranslation = 130,
133
- TranslationTypeParameterList = 131,
134
- TranslationTypeParameterClause = 132,
135
- PackageMethodTranslation = 133,
136
- TypeMethodTranslation = 134,
137
- MethodTypeTranslation = 135,
138
- PackageImportTranslation = 136,
139
- QualifiedName = 137,
140
- PackageVariableTranslation = 138,
141
- TypeVariableOrVariantTranslation = 139,
142
- TypeMemberTranslationList = 140,
143
- TypeTranslation = 141,
144
- TextLiteralTranslation = 142,
145
- TextTemplateLiteralTranslation = 143,
146
- VariantDeclaration = 144,
147
- TypeParameterDeclaration = 145,
148
- ParameterDeclaration = 146,
149
- CallArgument = 147,
150
- TagList = 148,
151
- Tag = 149,
152
- ModifierList = 150,
153
- Modifier = 151,
154
- ParameterClause = 152,
155
- ParameterList = 153,
156
- SetterParameterClause = 154,
157
- SetterParameterDeclaration = 155,
158
- TypeArgumentClause = 156,
159
- TypeArgumentList = 157,
160
- TypeParameterClause = 158,
161
- TypeParameterList = 159,
162
- TypeAnnotation = 160
76
+ NotExpression = 74,
77
+ MethodLiteral = 75,
78
+ ParenthesizedExpression = 76,
79
+ WhenTernaryExpression = 77,
80
+ PrefixUnaryExpression = 78,
81
+ PropertyAccessExpression = 79,
82
+ ReferenceExpression = 80,
83
+ DereferenceExpression = 81,
84
+ TextTemplateLiteral = 82,
85
+ TextTemplateSpanList = 83,
86
+ TextTemplateSpan = 84,
87
+ TokenExpression = 85,
88
+ KeywordExpression = 86,
89
+ ObjectExpression = 87,
90
+ BaseExpression = 88,
91
+ IdentifierExpression = 89,
92
+ GenericSpecializationExpression = 90,
93
+ DefaultMatchExpression = 91,
94
+ AssignmentStatement = 92,
95
+ StatementList = 93,
96
+ StatementBlock = 94,
97
+ BreakLoopStatement = 95,
98
+ ContinueLoopStatement = 96,
99
+ DisposeStatement = 97,
100
+ RunStatementClauseList = 98,
101
+ RunStatement = 99,
102
+ OnErrorClause = 100,
103
+ ErrorVariableDeclaration = 101,
104
+ FinallyClause = 102,
105
+ EmptyStatement = 103,
106
+ ErrorStatement = 104,
107
+ ExpressionStatement = 105,
108
+ EnumerationVariableList = 106,
109
+ ForStatement = 107,
110
+ IfStatement = 108,
111
+ ElseIfClauseList = 109,
112
+ ElseIfClause = 110,
113
+ InvalidStatement = 111,
114
+ NestedMethodDeclarationStatement = 112,
115
+ LocalVariableDeclarationStatement = 113,
116
+ LoopStatement = 114,
117
+ ReturnStatement = 115,
118
+ CaseClauseList = 116,
119
+ SwitchStatement = 117,
120
+ MatchExpressionList = 118,
121
+ SwitchStatementCaseClause = 119,
122
+ WhileStatement = 120,
123
+ YieldStatement = 121,
124
+ TranslationParameterList = 122,
125
+ TranslationParameterClause = 123,
126
+ ConstructorTranslation = 124,
127
+ IndexerTranslationParameterClause = 125,
128
+ IndexerTranslation = 126,
129
+ TranslationTypeParameterList = 127,
130
+ TranslationTypeParameterClause = 128,
131
+ PackageMethodTranslation = 129,
132
+ TypeMethodTranslation = 130,
133
+ MethodTypeTranslation = 131,
134
+ PackageImportTranslation = 132,
135
+ QualifiedName = 133,
136
+ PackageVariableTranslation = 134,
137
+ TypeVariableOrVariantTranslation = 135,
138
+ TypeMemberTranslationList = 136,
139
+ TypeTranslation = 137,
140
+ TextLiteralTranslation = 138,
141
+ TextTemplateLiteralTranslation = 139,
142
+ VariantDeclaration = 140,
143
+ TypeParameterDeclaration = 141,
144
+ ParameterDeclaration = 142,
145
+ CallArgument = 143,
146
+ TagList = 144,
147
+ Tag = 145,
148
+ ModifierList = 146,
149
+ Modifier = 147,
150
+ ParameterClause = 148,
151
+ ParameterList = 149,
152
+ SetterParameterClause = 150,
153
+ SetterParameterDeclaration = 151,
154
+ TypeArgumentClause = 152,
155
+ TypeArgumentList = 153,
156
+ TypeParameterClause = 154,
157
+ TypeParameterList = 155,
158
+ TypeAnnotation = 156
163
159
  }
@@ -0,0 +1,23 @@
1
+ export declare enum OperatorKind {
2
+ Plus = 0,// Одноместный или двухместный.
3
+ Minus = 1,// Одноместный или двухместный.
4
+ Not = 2,
5
+ ImplicitConversion = 3,
6
+ Multiply = 4,
7
+ Divide = 5,
8
+ IntegerDivide = 6,
9
+ Modulo = 7,
10
+ LessThan = 8,
11
+ GreaterThan = 9,
12
+ LessThanEquals = 10,
13
+ GreaterThanEquals = 11,
14
+ Or = 12,
15
+ And = 13,
16
+ Xor = 14,
17
+ AddEquals = 15,
18
+ SubtractEquals = 16,
19
+ MultiplyEquals = 17,
20
+ DivideEquals = 18,
21
+ IntegerDivideEquals = 19,
22
+ ModuloEquals = 20
23
+ }