@goast/kotlin 0.3.13 → 0.3.14
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/esm/lib/ast/node.js +1 -1
- package/esm/lib/ast/nodes/annotation.js +1 -1
- package/esm/lib/ast/nodes/call.js +1 -1
- package/esm/lib/ast/nodes/class.js +1 -1
- package/esm/lib/ast/nodes/collection-literal.js +1 -1
- package/esm/lib/ast/nodes/constructor.js +1 -1
- package/esm/lib/ast/nodes/doc-tag.js +1 -1
- package/esm/lib/ast/nodes/doc.js +1 -1
- package/esm/lib/ast/nodes/enum-value.js +1 -1
- package/esm/lib/ast/nodes/enum.js +1 -1
- package/esm/lib/ast/nodes/function.js +1 -1
- package/esm/lib/ast/nodes/interface.js +1 -1
- package/esm/lib/ast/nodes/lambda-type.js +1 -1
- package/esm/lib/ast/nodes/lambda.js +1 -1
- package/esm/lib/ast/nodes/object.js +1 -1
- package/esm/lib/ast/nodes/parameter.js +1 -1
- package/esm/lib/ast/nodes/property.js +1 -1
- package/esm/lib/ast/nodes/reference.js +1 -1
- package/esm/lib/ast/nodes/string.js +1 -1
- package/esm/lib/ast/utils/get-kotlin-builder-options.js +1 -1
- package/esm/lib/ast/utils/write-kt-annotations.js +1 -1
- package/esm/lib/ast/utils/write-kt-arguments.js +1 -1
- package/esm/lib/ast/utils/write-kt-enum-values.js +1 -1
- package/esm/lib/ast/utils/write-kt-generic-parameters.js +1 -1
- package/esm/lib/ast/utils/write-kt-members.js +1 -1
- package/esm/lib/ast/utils/write-kt-node.js +1 -1
- package/esm/lib/ast/utils/write-kt-parameters.js +1 -1
- package/esm/lib/file-builder.js +1 -1
- package/esm/lib/generators/file-generator.js +1 -1
- package/esm/lib/generators/models/model-generator.js +1 -1
- package/esm/lib/generators/models/models-generator.js +1 -1
- package/esm/lib/generators/services/okhttp3-clients/okhttp3-client-generator.js +1 -1
- package/esm/lib/generators/services/okhttp3-clients/okhttp3-clients-generator.js +1 -1
- package/esm/lib/generators/services/spring-controllers/spring-controller-generator.js +1 -1
- package/esm/lib/generators/services/spring-controllers/spring-controllers-generator.js +1 -1
- package/esm/lib/import-collection.js +1 -1
- package/package.json +1 -1
- package/types/lib/ast/node.d.ts +1 -1
- package/types/lib/ast/nodes/annotation.d.ts +1 -1
- package/types/lib/ast/nodes/argument.d.ts +1 -1
- package/types/lib/ast/nodes/call.d.ts +1 -1
- package/types/lib/ast/nodes/class.d.ts +1 -1
- package/types/lib/ast/nodes/collection-literal.d.ts +1 -1
- package/types/lib/ast/nodes/constructor.d.ts +1 -1
- package/types/lib/ast/nodes/doc-tag.d.ts +1 -1
- package/types/lib/ast/nodes/doc.d.ts +1 -1
- package/types/lib/ast/nodes/enum-value.d.ts +1 -1
- package/types/lib/ast/nodes/enum.d.ts +1 -1
- package/types/lib/ast/nodes/function.d.ts +1 -1
- package/types/lib/ast/nodes/generic-parameter.d.ts +1 -1
- package/types/lib/ast/nodes/init-block.d.ts +1 -1
- package/types/lib/ast/nodes/interface.d.ts +1 -1
- package/types/lib/ast/nodes/lambda-type.d.ts +1 -1
- package/types/lib/ast/nodes/lambda.d.ts +1 -1
- package/types/lib/ast/nodes/object.d.ts +1 -1
- package/types/lib/ast/nodes/parameter.d.ts +1 -1
- package/types/lib/ast/nodes/property.d.ts +1 -1
- package/types/lib/ast/nodes/reference.d.ts +1 -1
- package/types/lib/ast/nodes/string.d.ts +1 -1
- package/types/lib/ast/nodes/types.d.ts +1 -1
- package/types/lib/ast/references/jackson.d.ts +56 -56
- package/types/lib/ast/references/jakarta.d.ts +24 -24
- package/types/lib/ast/references/java.d.ts +59 -59
- package/types/lib/ast/references/kotlin.d.ts +195 -195
- package/types/lib/ast/references/okhttp3.d.ts +16 -16
- package/types/lib/ast/references/reactor.d.ts +22 -22
- package/types/lib/ast/references/spring.d.ts +107 -107
- package/types/lib/ast/references/swagger.d.ts +32 -32
- package/types/lib/ast/utils/get-kotlin-builder-options.d.ts +1 -1
- package/types/lib/ast/utils/to-kt-node.d.ts +1 -1
- package/types/lib/ast/utils/write-kt-annotations.d.ts +1 -1
- package/types/lib/ast/utils/write-kt-arguments.d.ts +1 -1
- package/types/lib/ast/utils/write-kt-enum-values.d.ts +1 -1
- package/types/lib/ast/utils/write-kt-generic-parameters.d.ts +1 -1
- package/types/lib/ast/utils/write-kt-members.d.ts +1 -1
- package/types/lib/ast/utils/write-kt-node.d.ts +1 -1
- package/types/lib/ast/utils/write-kt-parameters.d.ts +1 -1
- package/types/lib/config.d.ts +1 -1
- package/types/lib/file-builder.d.ts +1 -1
- package/types/lib/generators/file-generator.d.ts +1 -1
- package/types/lib/generators/models/args.d.ts +1 -1
- package/types/lib/generators/models/model-generator.d.ts +2 -2
- package/types/lib/generators/models/models-generator.d.ts +1 -1
- package/types/lib/generators/models/models.d.ts +1 -1
- package/types/lib/generators/services/okhttp3-clients/args.d.ts +1 -1
- package/types/lib/generators/services/okhttp3-clients/models.d.ts +1 -1
- package/types/lib/generators/services/okhttp3-clients/okhttp3-client-generator.d.ts +1 -1
- package/types/lib/generators/services/okhttp3-clients/okhttp3-clients-generator.d.ts +1 -1
- package/types/lib/generators/services/okhttp3-clients/refs.d.ts +163 -163
- package/types/lib/generators/services/spring-controllers/args.d.ts +1 -1
- package/types/lib/generators/services/spring-controllers/models.d.ts +1 -1
- package/types/lib/generators/services/spring-controllers/spring-controller-generator.d.ts +1 -1
- package/types/lib/generators/services/spring-controllers/spring-controllers-generator.d.ts +1 -1
- package/types/lib/import-collection.d.ts +1 -1
- package/types/lib/types.d.ts +1 -1
- package/types/lib/utils.d.ts +1 -1
package/esm/lib/ast/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { notNullish, basicAppendValueGroup, } from '
|
|
1
|
+
import { notNullish, basicAppendValueGroup, } from '@goast/core';
|
|
2
2
|
import { isKotlinAppendValue } from '../../file-builder.js';
|
|
3
3
|
import { KtNode } from '../node.js';
|
|
4
4
|
import { writeKtNodes } from '../utils/write-kt-node.js';
|
package/esm/lib/ast/nodes/doc.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createOverwriteProxy, notNullish, getIsInstanceOf, } from '
|
|
1
|
+
import { createOverwriteProxy, notNullish, getIsInstanceOf, } from '@goast/core';
|
|
2
2
|
import { ktDocTag } from './doc-tag.js';
|
|
3
3
|
import { KtGenericParameter } from './generic-parameter.js';
|
|
4
4
|
import { KtParameter } from './parameter.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createOverwriteProxy, notNullish, } from '
|
|
1
|
+
import { createOverwriteProxy, notNullish, } from '@goast/core';
|
|
2
2
|
import { ktAnnotation } from './annotation.js';
|
|
3
3
|
import { ktDoc } from './doc.js';
|
|
4
4
|
import { ktEnumValue } from './enum-value.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { notNullish, createOverwriteProxy, } from '
|
|
1
|
+
import { notNullish, createOverwriteProxy, } from '@goast/core';
|
|
2
2
|
import { ktAnnotation } from './annotation.js';
|
|
3
3
|
import { ktDoc } from './doc.js';
|
|
4
4
|
import { ktGenericParameter } from './generic-parameter.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
|
-
import { notNullish } from '
|
|
2
|
+
import { notNullish } from '@goast/core';
|
|
3
3
|
import { ktAnnotation } from './annotation.js';
|
|
4
4
|
import { ktArgument } from './argument.js';
|
|
5
5
|
import { KtNode } from '../node.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultOpenApiGeneratorConfig } from '
|
|
1
|
+
import { defaultOpenApiGeneratorConfig } from '@goast/core';
|
|
2
2
|
import { defaultKotlinGeneratorConfig } from '../../config.js';
|
|
3
3
|
import { KotlinFileBuilder } from '../../file-builder.js';
|
|
4
4
|
const ktConfigSymbol = Symbol();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toArray, notNullish } from '
|
|
1
|
+
import { toArray, notNullish } from '@goast/core';
|
|
2
2
|
import { writeKtNode } from './write-kt-node.js';
|
|
3
3
|
export function writeKtAnnotations(builder, nodes, options) {
|
|
4
4
|
const filteredNodes = toArray(nodes).filter(notNullish);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { notNullish, toArray } from '
|
|
1
|
+
import { notNullish, toArray } from '@goast/core';
|
|
2
2
|
import { writeKtNode, writeKtNodes } from './write-kt-node.js';
|
|
3
3
|
import { KtLambda } from '../nodes/lambda.js';
|
|
4
4
|
export function writeKtArguments(builder, nodes) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toArray, notNullish } from '
|
|
1
|
+
import { toArray, notNullish } from '@goast/core';
|
|
2
2
|
import { writeKtNode } from './write-kt-node.js';
|
|
3
3
|
export function writeKtEnumValues(builder, nodes) {
|
|
4
4
|
const filteredNodes = toArray(nodes).filter(notNullish);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toArray, notNullish } from '
|
|
1
|
+
import { toArray, notNullish } from '@goast/core';
|
|
2
2
|
import { writeKtNode } from './write-kt-node.js';
|
|
3
3
|
export function writeKtGenericParameters(builder, nodes) {
|
|
4
4
|
const filteredNodes = toArray(nodes).filter(notNullish);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { notNullish, isAppendValue, isAppendValueGroup } from '
|
|
1
|
+
import { notNullish, isAppendValue, isAppendValueGroup } from '@goast/core';
|
|
2
2
|
import { writeKtNode } from './write-kt-node.js';
|
|
3
3
|
import { KtProperty } from '../nodes/property.js';
|
|
4
4
|
export function writeKtMembers(builder, members, options) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toArray, notNullish } from '
|
|
1
|
+
import { toArray, notNullish } from '@goast/core';
|
|
2
2
|
import { writeKtNode } from './write-kt-node.js';
|
|
3
3
|
export function writeKtParameters(builder, nodes) {
|
|
4
4
|
const filteredNodes = toArray(nodes).filter(notNullish);
|
package/esm/lib/file-builder.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, isAppendValue } from '
|
|
1
|
+
import { SourceBuilder, isAppendValue } from '@goast/core';
|
|
2
2
|
import { KtNode } from './ast/node.js';
|
|
3
3
|
import { defaultKotlinGeneratorConfig } from './config.js';
|
|
4
4
|
import { ImportCollection } from './import-collection.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable unused-imports/no-unused-vars */
|
|
2
2
|
import { dirname } from 'path';
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
|
-
import { appendValueGroup, createOverwriteProxy, getSchemaReference, modify, modifyEach, notNullish, resolveAnyOfAndAllOf, toCasing, } from '
|
|
4
|
+
import { appendValueGroup, createOverwriteProxy, getSchemaReference, modify, modifyEach, notNullish, resolveAnyOfAndAllOf, toCasing, } from '@goast/core';
|
|
5
5
|
import { kt } from '../../ast/index.js';
|
|
6
6
|
import { KotlinFileBuilder } from '../../file-builder.js';
|
|
7
7
|
import { KotlinFileGenerator } from '../file-generator.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Factory, OpenApiSchemasGenerationProviderBase } from '
|
|
1
|
+
import { Factory, OpenApiSchemasGenerationProviderBase } from '@goast/core';
|
|
2
2
|
import { DefaultKotlinModelGenerator } from './model-generator.js';
|
|
3
3
|
import { defaultKotlinModelsGeneratorConfig, } from './models.js';
|
|
4
4
|
export class KotlinModelsGenerator extends OpenApiSchemasGenerationProviderBase {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { writeFileSync } from 'fs';
|
|
3
3
|
import { dirname } from 'path';
|
|
4
4
|
import fs from 'fs-extra';
|
|
5
|
-
import { SourceBuilder, appendValueGroup, builderTemplate as s, createOverwriteProxy, toCasing, resolveAnyOfAndAllOf, } from '
|
|
5
|
+
import { SourceBuilder, appendValueGroup, builderTemplate as s, createOverwriteProxy, toCasing, resolveAnyOfAndAllOf, } from '@goast/core';
|
|
6
6
|
import { kt } from '../../../ast/index.js';
|
|
7
7
|
import { KotlinFileBuilder } from '../../../file-builder.js';
|
|
8
8
|
import { modifyString } from '../../../utils.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { writeFileSync } from 'fs';
|
|
2
2
|
import { dirname, resolve } from 'path';
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
|
-
import { Factory, OpenApiServicesGenerationProviderBase } from '
|
|
4
|
+
import { Factory, OpenApiServicesGenerationProviderBase } from '@goast/core';
|
|
5
5
|
import { defaultKotlinOkHttp3ClientsGeneratorConfig, } from './models.js';
|
|
6
6
|
import { DefaultKotlinOkHttp3Generator } from './okhttp3-client-generator.js';
|
|
7
7
|
import { getReferenceFactories } from './refs.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable unused-imports/no-unused-vars */
|
|
2
2
|
import fs from 'fs-extra';
|
|
3
|
-
import { SourceBuilder, appendValueGroup, builderTemplate as s, createOverwriteProxy, notNullish, toCasing, resolveAnyOfAndAllOf, } from '
|
|
3
|
+
import { SourceBuilder, appendValueGroup, builderTemplate as s, createOverwriteProxy, notNullish, toCasing, resolveAnyOfAndAllOf, } from '@goast/core';
|
|
4
4
|
import { kt } from '../../../ast/index.js';
|
|
5
5
|
import { KotlinFileBuilder } from '../../../file-builder.js';
|
|
6
6
|
import { modifyString } from '../../../utils.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Factory, OpenApiServicesGenerationProviderBase } from '
|
|
1
|
+
import { Factory, OpenApiServicesGenerationProviderBase } from '@goast/core';
|
|
2
2
|
import { defaultKotlinServicesGeneratorConfig, } from './models.js';
|
|
3
3
|
import { DefaultKotlinSpringControllerGenerator } from './spring-controller-generator.js';
|
|
4
4
|
export class KotlinSpringControllersGenerator extends OpenApiServicesGenerationProviderBase {
|
package/package.json
CHANGED
package/types/lib/ast/node.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AstNode, AstNodeOptions, SourceBuilder } from '
|
|
1
|
+
import { AstNode, AstNodeOptions, SourceBuilder } from '@goast/core';
|
|
2
2
|
export declare abstract class KtNode<TBuilder extends SourceBuilder, TInjects extends string = never> extends AstNode<TBuilder, TInjects> {
|
|
3
3
|
constructor(options: AstNodeOptions<typeof AstNode<TBuilder, TInjects>>);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AstNodeOptions, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AstNodeOptions, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtArgument } from './argument';
|
|
3
3
|
import { KtType, KtValue } from './types';
|
|
4
4
|
import { KtNode } from '../node';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AstNodeOptions, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AstNodeOptions, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtValue } from './types';
|
|
3
3
|
import { KtNode } from '../node';
|
|
4
4
|
import { writeKtArguments } from '../utils/write-kt-arguments';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArrayItem, AstNodeOptions, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { ArrayItem, AstNodeOptions, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtArgument } from './argument';
|
|
3
3
|
import { KtType, KtValue } from './types';
|
|
4
4
|
import { KtNode } from '../node';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppendValue, AstNodeOptions, BasicAppendValue, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AppendValue, AstNodeOptions, BasicAppendValue, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtConstructor } from './constructor';
|
|
4
4
|
import { KtDoc } from './doc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppendValue, AstNodeOptions, BasicAppendValue, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AppendValue, AstNodeOptions, BasicAppendValue, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtArgument } from './argument';
|
|
4
4
|
import { KtParameter } from './parameter';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AstNodeOptions, StringSuggestions, ParametersWithOverloads, Prettify, SingleOrMultiple, Nullable, BasicAppendValue } from '
|
|
1
|
+
import { SourceBuilder, AstNodeOptions, StringSuggestions, ParametersWithOverloads, Prettify, SingleOrMultiple, Nullable, BasicAppendValue } from '@goast/core';
|
|
2
2
|
import { KtNode } from '../node';
|
|
3
3
|
import { KtAppendValue } from '../utils/write-kt-node';
|
|
4
4
|
type Injects = never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AstNodeOptions, Prettify, Nullable, BasicAppendValue } from '
|
|
1
|
+
import { SourceBuilder, AstNodeOptions, Prettify, Nullable, BasicAppendValue } from '@goast/core';
|
|
2
2
|
import { KtDocTag } from './doc-tag';
|
|
3
3
|
import { KtGenericParameter } from './generic-parameter';
|
|
4
4
|
import { KtParameter } from './parameter';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppendValue, AstNodeOptions, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AppendValue, AstNodeOptions, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtArgument } from './argument';
|
|
4
4
|
import { KtDoc } from './doc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppendValue, AstNodeOptions, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AppendValue, AstNodeOptions, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtClass } from './class';
|
|
4
4
|
import { KtConstructor } from './constructor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AstNodeOptions, AppendValue, Prettify, Nullable, BasicAppendValue } from '
|
|
1
|
+
import { SourceBuilder, AstNodeOptions, AppendValue, Prettify, Nullable, BasicAppendValue } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtDoc } from './doc';
|
|
4
4
|
import { KtGenericParameter } from './generic-parameter';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AstNodeOptions, BasicAppendValue, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AstNodeOptions, BasicAppendValue, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtType } from './types';
|
|
3
3
|
import { KtNode } from '../node';
|
|
4
4
|
import { writeKtGenericParameters } from '../utils/write-kt-generic-parameters';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppendValue, AstNodeOptions, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AppendValue, AstNodeOptions, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtNode } from '../node';
|
|
3
3
|
import { writeKtNodes } from '../utils/write-kt-node';
|
|
4
4
|
type Injects = never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AppendValue, AstNodeOptions, Prettify, Nullable, BasicAppendValue } from '
|
|
1
|
+
import { SourceBuilder, AppendValue, AstNodeOptions, Prettify, Nullable, BasicAppendValue } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtClass } from './class';
|
|
4
4
|
import { KtDoc } from './doc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AstNodeOptions, Nullable, BasicAppendValue, AppendValue } from '
|
|
1
|
+
import { SourceBuilder, AstNodeOptions, Nullable, BasicAppendValue, AppendValue } from '@goast/core';
|
|
2
2
|
import { KtNode } from '../node';
|
|
3
3
|
import { writeKtNodes } from '../utils/write-kt-node';
|
|
4
4
|
type Injects = 'arguments' | 'body';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AstNodeOptions, Nullable, BasicAppendValue } from '
|
|
1
|
+
import { SourceBuilder, AstNodeOptions, Nullable, BasicAppendValue } from '@goast/core';
|
|
2
2
|
import { KtArgument } from './argument';
|
|
3
3
|
import { KtFunction } from './function';
|
|
4
4
|
import { KtInitBlock } from './init-block';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AstNodeOptions, Prettify, Nullable, BasicAppendValue } from '
|
|
1
|
+
import { SourceBuilder, AstNodeOptions, Prettify, Nullable, BasicAppendValue } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtType, KtValue } from './types';
|
|
4
4
|
import { KtAccessModifier } from '../common';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AppendValue, AstNodeOptions, Prettify, Nullable } from '
|
|
1
|
+
import { SourceBuilder, AppendValue, AstNodeOptions, Prettify, Nullable } from '@goast/core';
|
|
2
2
|
import { KtAnnotation } from './annotation';
|
|
3
3
|
import { KtArgument } from './argument';
|
|
4
4
|
import { KtDoc } from './doc';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SourceBuilder, AstNodeOptions, Nullable, Prettify, TupleWithCount } from '
|
|
1
|
+
import { SourceBuilder, AstNodeOptions, Nullable, Prettify, TupleWithCount } from '@goast/core';
|
|
2
2
|
import { KtType } from './types';
|
|
3
3
|
import { KtNode } from '../node';
|
|
4
4
|
import { writeKtNodes } from '../utils/write-kt-node';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AstNodeOptions, Nullable, Prettify, SourceBuilder } from '
|
|
1
|
+
import { AstNodeOptions, Nullable, Prettify, SourceBuilder } from '@goast/core';
|
|
2
2
|
import { KtNode } from '../node';
|
|
3
3
|
import { writeKtNodes } from '../utils/write-kt-node';
|
|
4
4
|
type Injects = never;
|
|
@@ -5,6 +5,6 @@ import type { KtLambdaType } from './lambda-type';
|
|
|
5
5
|
import type { KtObject } from './object';
|
|
6
6
|
import type { KtReference } from './reference';
|
|
7
7
|
import type { KtString } from './string';
|
|
8
|
-
import type { BasicAppendValue, SourceBuilder } from '
|
|
8
|
+
import type { BasicAppendValue, SourceBuilder } from '@goast/core';
|
|
9
9
|
export type KtType<TBuilder extends SourceBuilder> = KtReference<TBuilder> | KtLambdaType<TBuilder> | BasicAppendValue<TBuilder>;
|
|
10
10
|
export type KtValue<TBuilder extends SourceBuilder> = KtReference<TBuilder> | KtString<TBuilder> | KtCall<TBuilder> | KtObject<TBuilder> | KtLambda<TBuilder> | KtCollectionLiteral<TBuilder> | BasicAppendValue<TBuilder>;
|