@artel/artc 0.6.25237 → 0.6.25238

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.
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-PDVQZURU.js";
13
+ } from "./chunk-S6SV63VD.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {
@@ -507,10 +507,10 @@ declare class OverriddenMember {
507
507
  getEntityTypeOrReturnType(entity: OverridableTypeMemberEntity): types.Type;
508
508
  getMemberTypeOrReturnType(member: OverridableTypeMember): types.Type;
509
509
  private findOverriddenMembers;
510
- private findOverriddenOrShadowedNamedMemberInType;
511
- private findOverriddenOrShadowedOperatorInType;
512
- private findOverriddenOrShadowedIndexerInType;
513
- private findOverriddenOrShadowedDereferenceOperatorInType;
510
+ private findOverriddenOrShadowedNamedMembersInType;
511
+ private findOverriddenOrShadowedOperatorsInType;
512
+ private findOverriddenOrShadowedIndexersInType;
513
+ private findOverriddenOrShadowedDereferenceOperatorsInType;
514
514
  private checkMethodOverridesOrShadowsMethod;
515
515
  private checkOperatorOverridesOrShadowsOperator;
516
516
  private checkIndexerOverridesOrShadowsIndexer;
@@ -539,12 +539,14 @@ export type OverridableTypeMemberEntity = e.FieldEntity | e.MethodEntity | e.Ope
539
539
  export declare function isOverridableTypeMemberEntity(entity: e.TypeMemberEntity): entity is OverridableTypeMemberEntity;
540
540
  export type OverridableTypeMember = types.Field | types.Method | types.Operator | types.Indexer | types.DereferenceOperator;
541
541
  export declare function isOverridableTypeMember(entity: types.TypeMember): entity is OverridableTypeMember;
542
+ export type NodeWithTags = tree.PackageMemberDeclaration | tree.TypeMemberDeclaration | tree.ParameterDeclaration;
542
543
  declare class Tags {
543
- readonly _analyzer: Analyzer;
544
- private readonly _tags;
544
+ private readonly _analyzer;
545
+ private readonly _tagsByNodeWithTags;
545
546
  constructor(_analyzer: Analyzer);
546
- ofTagList(tagList: tree.TagList): readonly tags.Tag[];
547
- private createTags;
547
+ ofNodeWithTags(node: NodeWithTags): readonly tags.Tag[];
548
+ private createTagsOfNodeWithTags;
549
+ private createTagFromNode;
548
550
  private argumentToTagArgument;
549
551
  }
550
552
  declare class LinkedEntity {
@@ -1,7 +1,7 @@
1
1
  import { Name, PackageDialect, PackageLocale, ReadonlyNonEmptyArray, Uri } from '../common/index.js';
2
2
  import { Compilation } from './Compilation.js';
3
3
  import { SourceFile } from './SourceFile.js';
4
- export type SourcePackage = ProgramPackage | TranslationPackage;
4
+ export type SourcePackage = ProgramPackage | TranslationPackage | TextTranslationPackage;
5
5
  declare abstract class SourcePackageBase {
6
6
  readonly uri: Uri;
7
7
  readonly name: PackageName;
@@ -33,7 +33,15 @@ export declare class TranslationPackage extends SourcePackageBase {
33
33
  get dialect(): PackageDialect;
34
34
  constructor(uri: Uri, configuration: TranslationPackageConfiguration, sourceFiles: SourceFile[]);
35
35
  }
36
- export type PackageConfiguration = ProgramPackageConfiguration | TranslationPackageConfiguration;
36
+ export declare class TextTranslationPackage extends SourcePackageBase {
37
+ readonly kind = "text-translation";
38
+ readonly configuration: TextTranslationPackageConfiguration;
39
+ protected get asPackage(): SourcePackage;
40
+ get locale(): PackageLocale;
41
+ get dialect(): PackageDialect;
42
+ constructor(uri: Uri, configuration: TextTranslationPackageConfiguration, sourceFiles: SourceFile[]);
43
+ }
44
+ export type PackageConfiguration = ProgramPackageConfiguration | TranslationPackageConfiguration | TextTranslationPackageConfiguration;
37
45
  export declare class TranslationPackageConfiguration {
38
46
  readonly targetPackageName: PackageName;
39
47
  readonly translatedName: PackageName;
@@ -43,6 +51,14 @@ export declare class TranslationPackageConfiguration {
43
51
  get name(): PackageName;
44
52
  constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect);
45
53
  }
54
+ export declare class TextTranslationPackageConfiguration {
55
+ readonly targetPackageName: PackageName;
56
+ readonly translationLocale: PackageLocale;
57
+ readonly locale: PackageLocale;
58
+ readonly dialect: PackageDialect;
59
+ get name(): PackageName;
60
+ constructor(targetPackageName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect);
61
+ }
46
62
  export declare class ProgramPackageConfiguration {
47
63
  readonly name: PackageName;
48
64
  readonly locale: PackageLocale;
@@ -2,13 +2,14 @@ import { PackageDialect } from '../../common/index.js';
2
2
  import { PackageLocale } from '../../common/PackageLocale.js';
3
3
  import { Uri } from '../../common/Uri.js';
4
4
  import * as origin from '../configuration/types/PackageConfigurationEn.js';
5
- import { PackageConfiguration, ProgramPackageConfiguration, TranslationPackageConfiguration } from '../SourcePackage.js';
5
+ import { PackageConfiguration, ProgramPackageConfiguration, TextTranslationPackageConfiguration, TranslationPackageConfiguration } from '../SourcePackage.js';
6
6
  export declare class ConfigurationConverter {
7
7
  private static readonly _uriRegexp;
8
8
  static convert(configurations: readonly origin.Configuration[], packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ConvertedConfiguration;
9
9
  static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
10
10
  static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
11
11
  static convertTranslationsConfiguration(configuration: origin.Translations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TranslationPackageConfiguration;
12
+ static convertTextTranslationsConfiguration(configuration: origin.TextTranslations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TextTranslationPackageConfiguration;
12
13
  private static convertJavaScriptImplementation;
13
14
  private static convertLanguage;
14
15
  private static convertDialect;
@@ -1,5 +1,5 @@
1
1
  export type ConfigurationArray = Configuration[];
2
- export type Configuration = Package | PackageGroup | Translations;
2
+ export type Configuration = Package | PackageGroup | Translations | TextTranslations;
3
3
  export interface Package {
4
4
  type: 'Package';
5
5
  name: string;
@@ -24,6 +24,13 @@ export interface Translations {
24
24
  language?: Language;
25
25
  dialect?: Dialect;
26
26
  }
27
+ export interface TextTranslations {
28
+ type: 'TextTranslations';
29
+ originalPackageName: string;
30
+ translationLanguage: Language;
31
+ language?: Language;
32
+ dialect?: Dialect;
33
+ }
27
34
  export declare enum Language {
28
35
  Russian = "russian",
29
36
  English = "english"
@@ -1,5 +1,5 @@
1
1
  export type МассивКонфигураций = Конфигурация[];
2
- export type Конфигурация = Пакет | ГруппаПакетов | Переводы;
2
+ export type Конфигурация = Пакет | ГруппаПакетов | Переводы | ПереводыТекстов;
3
3
  export interface Пакет {
4
4
  тип: 'Пакет';
5
5
  имя: string;
@@ -24,6 +24,13 @@ export interface Переводы {
24
24
  язык?: Язык;
25
25
  диалект?: Диалект;
26
26
  }
27
+ export interface ПереводыТекстов {
28
+ тип: 'ПереводыТекстов';
29
+ имяПакетаИсходное: string;
30
+ языкПеревода: Язык;
31
+ язык?: Язык;
32
+ диалект?: Диалект;
33
+ }
27
34
  export declare enum Язык {
28
35
  Русский = "\u0440\u0443\u0441\u0441\u043A\u0438\u0439",
29
36
  Английский = "\u0430\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u0438\u0439"
@@ -64,14 +64,14 @@ export declare enum NodeKind {
64
64
  AssumptionExpression = 62,
65
65
  AsExpression = 63,
66
66
  BinaryExpression = 64,
67
- FunctionBlockLiteral = 65,
68
- ArgumentList = 66,
69
- CallExpression = 67,
70
- AutotypeCallExpression = 68,
71
- IndexedAccessExpression = 69,
72
- InvalidExpression = 70,
73
- IsExpression = 71,
74
- FunctionLiteral = 72,
67
+ FunctionLiteral = 65,
68
+ FunctionBlockLiteral = 66,
69
+ ArgumentList = 67,
70
+ CallExpression = 68,
71
+ AutotypeCallExpression = 69,
72
+ IndexedAccessExpression = 70,
73
+ InvalidExpression = 71,
74
+ IsExpression = 72,
75
75
  ParenthesizedExpression = 73,
76
76
  ConditionalExpression = 74,
77
77
  PrefixUnaryExpression = 75,
@@ -891,7 +891,7 @@ export declare class EnumerationVariableDeclaration extends BaseNode {
891
891
  constructor(name: Identifier);
892
892
  toRed(rangeStart: number, parent: red.EnumerationVariableDeclarationParent): red.EnumerationVariableDeclaration;
893
893
  }
894
- export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
894
+ export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
895
895
  export type ExpressionListElement = Expression | Comma;
896
896
  export declare class ArrayLiteral extends BaseNode {
897
897
  readonly kind = NodeKind.ArrayLiteral;
@@ -968,6 +968,24 @@ export declare class BinaryExpression extends BaseNode {
968
968
  toRed(rangeStart: number, parent: red.ExpressionParent): red.BinaryExpression;
969
969
  }
970
970
  export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanOrEqual> | Token<TokenKind.GreaterThanOrEqual> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor> | Token<TokenKind.Ampersand> | Token<TokenKind.Bar> | Token<TokenKind.BarBar>;
971
+ export declare class FunctionLiteral extends BaseNode {
972
+ readonly kind = NodeKind.FunctionLiteral;
973
+ readonly children: readonly [
974
+ Keyword<KeywordKind.Async> | undefined,
975
+ Keyword<KeywordKind.Function>,
976
+ ParameterClause,
977
+ TypeAnnotation | undefined,
978
+ FunctionBlock
979
+ ];
980
+ get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
981
+ get functionKeyword(): Keyword<KeywordKind.Function>;
982
+ get parameterClause(): ParameterClause;
983
+ get returnTypeAnnotation(): TypeAnnotation | undefined;
984
+ get block(): FunctionBlock;
985
+ protected get thisAsNode(): Node;
986
+ constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock);
987
+ toRed(rangeStart: number, parent: red.ExpressionParent): red.FunctionLiteral;
988
+ }
971
989
  export declare class FunctionBlockLiteral extends BaseNode {
972
990
  readonly kind = NodeKind.FunctionBlockLiteral;
973
991
  readonly children: readonly [
@@ -1056,24 +1074,6 @@ export declare class IsExpression extends BaseNode {
1056
1074
  constructor(expression: Expression, isKeyword: Keyword<KeywordKind.Is>, typeSpecifier: TypeSpecifier);
1057
1075
  toRed(rangeStart: number, parent: red.ExpressionParent): red.IsExpression;
1058
1076
  }
1059
- export declare class FunctionLiteral extends BaseNode {
1060
- readonly kind = NodeKind.FunctionLiteral;
1061
- readonly children: readonly [
1062
- Keyword<KeywordKind.Async> | undefined,
1063
- Keyword<KeywordKind.Function>,
1064
- ParameterClause,
1065
- TypeAnnotation | undefined,
1066
- FunctionBlock
1067
- ];
1068
- get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
1069
- get functionKeyword(): Keyword<KeywordKind.Function>;
1070
- get parameterClause(): ParameterClause;
1071
- get returnTypeAnnotation(): TypeAnnotation | undefined;
1072
- get block(): FunctionBlock;
1073
- protected get thisAsNode(): Node;
1074
- constructor(asyncKeyword: Keyword<KeywordKind.Async> | undefined, functionKeyword: Keyword<KeywordKind.Function>, parameterClause: ParameterClause, returnTypeAnnotation: TypeAnnotation | undefined, block: FunctionBlock);
1075
- toRed(rangeStart: number, parent: red.ExpressionParent): red.FunctionLiteral;
1076
- }
1077
1077
  export declare class ParenthesizedExpression extends BaseNode {
1078
1078
  readonly kind = NodeKind.ParenthesizedExpression;
1079
1079
  readonly children: readonly [
@@ -1962,27 +1962,26 @@ export declare class TextLiteralTranslation extends BaseNode {
1962
1962
  Token<TokenKind.MinusGreaterThan>,
1963
1963
  Token<TokenKind.TextLiteral>
1964
1964
  ];
1965
- get sourceTextLiteral(): Token<TokenKind.TextLiteral>;
1965
+ get sourceText(): Token<TokenKind.TextLiteral>;
1966
1966
  get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
1967
- get translatedTextLiteral(): Token<TokenKind.TextLiteral>;
1967
+ get translatedText(): Token<TokenKind.TextLiteral>;
1968
1968
  protected get thisAsNode(): Node;
1969
- constructor(sourceTextLiteral: Token<TokenKind.TextLiteral>, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedTextLiteral: Token<TokenKind.TextLiteral>);
1969
+ constructor(sourceText: Token<TokenKind.TextLiteral>, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedText: Token<TokenKind.TextLiteral>);
1970
1970
  toRed(rangeStart: number, parent: red.TextLiteralTranslationParent): red.TextLiteralTranslation;
1971
1971
  }
1972
+ export type TranslatedTextOrTranslationFunction = TextTemplateLiteral | FunctionLiteral | FunctionBlockLiteral | InvalidExpression;
1972
1973
  export declare class TextTemplateLiteralTranslation extends BaseNode {
1973
1974
  readonly kind = NodeKind.TextTemplateLiteralTranslation;
1974
1975
  readonly children: readonly [
1975
1976
  TextTemplateLiteral,
1976
1977
  Token<TokenKind.MinusGreaterThan>,
1977
- TextTemplateLiteral | undefined,
1978
- FunctionBlockLiteral | undefined
1978
+ TranslatedTextOrTranslationFunction
1979
1979
  ];
1980
- get sourceTextTemplateLiteral(): TextTemplateLiteral;
1980
+ get sourceText(): TextTemplateLiteral;
1981
1981
  get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
1982
- get translatedTextTemplateLiteral(): TextTemplateLiteral | undefined;
1983
- get functionBlockLiteral(): FunctionBlockLiteral | undefined;
1982
+ get translatedTextOrTranslationFunction(): TranslatedTextOrTranslationFunction;
1984
1983
  protected get thisAsNode(): Node;
1985
- constructor(sourceTextTemplateLiteral: TextTemplateLiteral, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedTextTemplateLiteral: TextTemplateLiteral | undefined, functionBlockLiteral: FunctionBlockLiteral | undefined);
1984
+ constructor(sourceText: TextTemplateLiteral, minusGreaterThanToken: Token<TokenKind.MinusGreaterThan>, translatedTextOrTranslationFunction: TranslatedTextOrTranslationFunction);
1986
1985
  toRed(rangeStart: number, parent: red.TextTemplateLiteralTranslationParent): red.TextTemplateLiteralTranslation;
1987
1986
  }
1988
1987
  export declare class VariantDeclaration extends BaseNode {
@@ -2189,4 +2188,4 @@ export declare class TypeAnnotation extends BaseNode {
2189
2188
  constructor(colonToken: Token<TokenKind.Colon>, typeSpecifier: TypeSpecifier);
2190
2189
  toRed(rangeStart: number, parent: red.TypeAnnotationParent): red.TypeAnnotation;
2191
2190
  }
2192
- export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
2191
+ export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
@@ -849,7 +849,7 @@ export declare class EnumerationVariableDeclaration extends BaseNode {
849
849
  constructor(green: green.EnumerationVariableDeclaration, rangeStart: number, parent: EnumerationVariableDeclarationParent);
850
850
  private createChildren;
851
851
  }
852
- export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
852
+ export type Expression = ArrayLiteral | AsExpression | AssertionExpression | AssumptionExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | CallExpression | IdentifierExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | GenericSpecializationExpression | DefaultMatchExpression | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression;
853
853
  export type ExpressionParent = ArrayLiteralElementList | AsExpression | AssertionExpression | AssumptionExpression | AssignmentStatement | BinaryExpression | Argument | CallExpression | DisposeStatement | ErrorStatement | ImportantStatement | ExpressionStatement | ForStatement | PackageVariableDeclaration | IfStatement | IndexedAccessExpression | IsExpression | LocalVariableDeclaration | MatchExpressionList | ParameterDeclaration | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | LoopStatement | ReturnStatement | TextTemplateSpan | FieldDeclaration | SwitchStatement | VariantDeclaration | WhileStatement | YieldStatement | GenericSpecializationExpression | ElseIfClause | TextTemplateLiteralTranslation | FunctionBlock;
854
854
  export type ExpressionListElement = Expression | Comma;
855
855
  export declare class ArrayLiteral extends BaseNode {
@@ -929,6 +929,21 @@ export declare class BinaryExpression extends BaseNode {
929
929
  private createChildren;
930
930
  }
931
931
  export type BinaryExpressionOperator = Token<TokenKind.Plus> | Token<TokenKind.Minus> | Token<TokenKind.Asterisk> | Token<TokenKind.Slash> | Token<TokenKind.Backslash> | Token<TokenKind.BackslashBackslash> | Token<TokenKind.EqualsEquals> | Token<TokenKind.ExclamationEquals> | Token<TokenKind.LessThan> | Token<TokenKind.GreaterThan> | Token<TokenKind.LessThanOrEqual> | Token<TokenKind.GreaterThanOrEqual> | Token<TokenKind.QuestionQuestion> | Keyword<KeywordKind.Or> | Keyword<KeywordKind.And> | Keyword<KeywordKind.Xor> | Token<TokenKind.Ampersand> | Token<TokenKind.Bar> | Token<TokenKind.BarBar>;
932
+ export declare class FunctionLiteral extends BaseNode {
933
+ readonly kind = NodeKind.FunctionLiteral;
934
+ readonly green: green.FunctionLiteral;
935
+ readonly parent: ExpressionParent;
936
+ private _children;
937
+ get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, ParameterClause, TypeAnnotation | undefined, FunctionBlock];
938
+ get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
939
+ get functionKeyword(): Keyword<KeywordKind.Function>;
940
+ get parameterClause(): ParameterClause;
941
+ get returnTypeAnnotation(): TypeAnnotation | undefined;
942
+ get block(): FunctionBlock;
943
+ protected get thisAsNode(): Node;
944
+ constructor(green: green.FunctionLiteral, rangeStart: number, parent: ExpressionParent);
945
+ private createChildren;
946
+ }
932
947
  export declare class FunctionBlockLiteral extends BaseNode {
933
948
  readonly kind = NodeKind.FunctionBlockLiteral;
934
949
  readonly green: green.FunctionBlockLiteral;
@@ -1017,21 +1032,6 @@ export declare class IsExpression extends BaseNode {
1017
1032
  constructor(green: green.IsExpression, rangeStart: number, parent: ExpressionParent);
1018
1033
  private createChildren;
1019
1034
  }
1020
- export declare class FunctionLiteral extends BaseNode {
1021
- readonly kind = NodeKind.FunctionLiteral;
1022
- readonly green: green.FunctionLiteral;
1023
- readonly parent: ExpressionParent;
1024
- private _children;
1025
- get children(): readonly [Keyword<green.KeywordKind.Async> | undefined, Keyword<green.KeywordKind.Function>, ParameterClause, TypeAnnotation | undefined, FunctionBlock];
1026
- get asyncKeyword(): Keyword<KeywordKind.Async> | undefined;
1027
- get functionKeyword(): Keyword<KeywordKind.Function>;
1028
- get parameterClause(): ParameterClause;
1029
- get returnTypeAnnotation(): TypeAnnotation | undefined;
1030
- get block(): FunctionBlock;
1031
- protected get thisAsNode(): Node;
1032
- constructor(green: green.FunctionLiteral, rangeStart: number, parent: ExpressionParent);
1033
- private createChildren;
1034
- }
1035
1035
  export declare class ParenthesizedExpression extends BaseNode {
1036
1036
  readonly kind = NodeKind.ParenthesizedExpression;
1037
1037
  readonly green: green.ParenthesizedExpression;
@@ -1946,24 +1946,24 @@ export declare class TextLiteralTranslation extends BaseNode {
1946
1946
  readonly parent: TextLiteralTranslationParent;
1947
1947
  private _children;
1948
1948
  get children(): readonly [Token<green.TokenKind.TextLiteral>, Token<green.TokenKind.MinusGreaterThan>, Token<green.TokenKind.TextLiteral>];
1949
- get sourceTextLiteral(): Token<TokenKind.TextLiteral>;
1949
+ get sourceText(): Token<TokenKind.TextLiteral>;
1950
1950
  get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
1951
- get translatedTextLiteral(): Token<TokenKind.TextLiteral>;
1951
+ get translatedText(): Token<TokenKind.TextLiteral>;
1952
1952
  protected get thisAsNode(): Node;
1953
1953
  constructor(green: green.TextLiteralTranslation, rangeStart: number, parent: TextLiteralTranslationParent);
1954
1954
  private createChildren;
1955
1955
  }
1956
1956
  export type TextTemplateLiteralTranslationParent = TopLevelTranslationList;
1957
+ export type TranslatedTextOrTranslationFunction = TextTemplateLiteral | FunctionLiteral | FunctionBlockLiteral | InvalidExpression;
1957
1958
  export declare class TextTemplateLiteralTranslation extends BaseNode {
1958
1959
  readonly kind = NodeKind.TextTemplateLiteralTranslation;
1959
1960
  readonly green: green.TextTemplateLiteralTranslation;
1960
1961
  readonly parent: TextTemplateLiteralTranslationParent;
1961
1962
  private _children;
1962
- get children(): readonly [TextTemplateLiteral, Token<green.TokenKind.MinusGreaterThan>, TextTemplateLiteral | undefined, FunctionBlockLiteral | undefined];
1963
- get sourceTextTemplateLiteral(): TextTemplateLiteral;
1963
+ get children(): readonly [TextTemplateLiteral, Token<green.TokenKind.MinusGreaterThan>, TranslatedTextOrTranslationFunction];
1964
+ get sourceText(): TextTemplateLiteral;
1964
1965
  get minusGreaterThanToken(): Token<TokenKind.MinusGreaterThan>;
1965
- get translatedTextTemplateLiteral(): TextTemplateLiteral | undefined;
1966
- get functionBlockLiteral(): FunctionBlockLiteral | undefined;
1966
+ get translatedTextOrTranslationFunction(): TranslatedTextOrTranslationFunction;
1967
1967
  protected get thisAsNode(): Node;
1968
1968
  constructor(green: green.TextTemplateLiteralTranslation, rangeStart: number, parent: TextTemplateLiteralTranslationParent);
1969
1969
  private createChildren;
@@ -2185,4 +2185,4 @@ export declare class TypeAnnotation extends BaseNode {
2185
2185
  constructor(green: green.TypeAnnotation, rangeStart: number, parent: TypeAnnotationParent);
2186
2186
  private createChildren;
2187
2187
  }
2188
- export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | FunctionLiteral | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
2188
+ export type Node = SourceFile | PackageMemberDeclarationList | Keyword | PackageImportDirectiveList | SinglePackageImportDirective | PackageGroupImportDirective | PackageImportList | PackageImport | PackageName | NamedTypeSpecifier | UnionTypeSpecifier | IntersectionTypeSpecifier | ParenthesizedTypeSpecifier | NullableTypeSpecifier | AnonymousTypeSpecifier | InvalidTypeSpecifier | AnonymousFunctionTypeDeclaration | AnonymousStructuredTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | AliasTypeDeclarationBody | PackageMemberGroupDeclaration | PackageConstructorDeclaration | PackageEntryPointDeclaration | PackageFunctionDeclaration | PackageFunctionTypeDeclaration | FunctionTypeDeclarationBody | BaseTypeList | TypeMemberDeclarationList | TypeMemberDeclarationBlock | PackageStructuredTypeDeclaration | StructuredTypeDeclarationBody | PackageVariableDeclaration | PackageVariableGetterDeclaration | PackageVariableSetterDeclaration | PackageVariantTypeDeclaration | VariantTypeDeclarationBody | TypeExtensionDeclaration | ExtendedTypeClauseCommaList | ExtendedTypeClause | InvalidPackageMemberDeclaration | TypeMemberGroupDeclaration | ConstructorDeclaration | DestructorDeclaration | IndexedElementGetterDeclaration | IndexedElementSetterDeclaration | IndexParameterClause | DereferencedVariableGetterDeclaration | DereferencedVariableSetterDeclaration | MethodDeclaration | OperatorDeclaration | FieldDeclaration | FieldGetterDeclaration | FieldSetterDeclaration | InvalidTypeMemberDeclaration | NestedFunctionDeclaration | LocalVariableDeclaration | EnumerationVariableDeclaration | ArrayLiteral | ArrayLiteralElementList | AssertionExpression | AssumptionExpression | AsExpression | BinaryExpression | FunctionLiteral | FunctionBlockLiteral | ArgumentList | CallExpression | AutotypeCallExpression | IndexedAccessExpression | InvalidExpression | IsExpression | ParenthesizedExpression | ConditionalExpression | PrefixUnaryExpression | MemberAccessExpression | ReferenceExpression | DereferenceExpression | TextTemplateLiteral | TextTemplateSpanList | TextTemplateSpan | TokenExpression | KeywordExpression | ObjectExpression | BaseExpression | IdentifierExpression | GenericSpecializationExpression | DefaultMatchExpression | AssignmentStatement | StatementList | StatementBlock | FunctionBlock | BreakLoopStatement | ContinueLoopStatement | DisposeStatement | RunStatement | TryStatement | CatchClause | ErrorVariableDeclaration | FinallyClause | EmptyStatement | ErrorStatement | ImportantStatement | ExpressionStatement | EnumerationVariableList | ForStatement | IfStatement | ElseIfClauseList | ElseIfClause | ElseClause | InvalidStatement | NestedFunctionDeclarationStatement | LocalVariableDeclarationStatement | LoopStatement | ReturnStatement | CaseClauseList | SwitchStatement | MatchExpressionList | CaseClause | WhileStatement | YieldStatement | TranslationsDeclaration | TopLevelTranslationList | TranslationParameterList | TranslationParameterClause | ConstructorTranslation | IndexParameterTranslationClause | IndexerTranslation | TranslationTypeParameterList | TranslationTypeParameterClause | PackageFunctionTranslation | MethodTranslation | FunctionTypeTranslation | PackageImportTranslation | QualifiedName | PackageVariableTranslation | FieldOrVariantTranslation | TypeMemberTranslationList | TypeTranslation | TextLiteralTranslation | TextTemplateLiteralTranslation | VariantDeclaration | TypeParameterDeclaration | ParameterDeclaration | Argument | TagList | Tag | ModifierList | Modifier | ParameterClause | ParameterList | TypeArgumentClause | TypeArgumentList | TypeParameterClause | TypeParameterList | TypeAnnotation | Token;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25237",
3
+ "version": "0.6.25238",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",