Update dependency to ts-morph
-Update to ts-morph 1.2.0 and typescript 3.3.1 -Change imports to ts-simple
This commit is contained in:
Родитель
613553ad4e
Коммит
5ceb8aebe3
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -12,8 +12,8 @@
|
|||
"dependencies": {
|
||||
"@types/yargs": "^10.0.2",
|
||||
"change-case": "^3.0.2",
|
||||
"ts-simple-ast": "^9.5.0",
|
||||
"typescript": "^2.9.2",
|
||||
"ts-morph": "^1.2.0",
|
||||
"typescript": "^3.3.1",
|
||||
"yargs": "^11.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
import * as sast from "ts-simple-ast";
|
||||
import {ts, SyntaxKind, TypeGuards } from 'ts-simple-ast';
|
||||
import * as sast from "ts-morph";
|
||||
import {ts, SyntaxKind, TypeGuards } from 'ts-morph';
|
||||
import {ContextInterface} from "./Context";
|
||||
import * as cc from "change-case";
|
||||
import * as os from "os";
|
||||
|
@ -541,7 +541,7 @@ export function emitComputedPropertyName(node: sast.ComputedPropertyName,
|
|||
return false;
|
||||
}
|
||||
|
||||
// at this time UnionTypeNode is not wrapped by ts-simple-ast
|
||||
// at this time UnionTypeNode is not wrapped by ts-morph
|
||||
export function emitUnionType(node: sast.UnionTypeNode, context: ContextInterface): string {
|
||||
const source: string[] = [];
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import {Node} from "ts-simple-ast";
|
||||
import {Node} from "ts-morph";
|
||||
|
||||
export class Stack<T> {
|
||||
_store: T[] = [];
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
import {Node} from "ts-simple-ast";
|
||||
import {Node} from "ts-morph";
|
||||
|
||||
export interface DiagnosticsInterface
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
import * as sast from "ts-simple-ast";
|
||||
import {ts, SyntaxKind, TypeGuards, Node} from "ts-simple-ast"
|
||||
import * as sast from "ts-morph";
|
||||
import {ts, SyntaxKind, TypeGuards, Node} from "ts-morph"
|
||||
import {ContextInterface} from "./Context";
|
||||
import {Stack} from "./DataStructures";
|
||||
import {emitPropertyName, emitMethodName, emitClassName} from "./CSharpEmitter";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
import * as fs from "fs";
|
||||
import Ast, {ts, ScriptTarget, getCompilerOptionsFromTsConfig, ModuleResolutionKind, ModuleKind} from "ts-simple-ast";
|
||||
import Ast, {ts, ScriptTarget, getCompilerOptionsFromTsConfig, ModuleResolutionKind, ModuleKind} from "ts-morph";
|
||||
import * as path from "path";
|
||||
import * as os from "os";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
import * as sast from "ts-simple-ast"
|
||||
import * as sast from "ts-morph"
|
||||
|
||||
import {SourceFile, SyntaxKind, TypeGuards, ts} from "ts-simple-ast";
|
||||
import {SourceFile, SyntaxKind, TypeGuards, ts} from "ts-morph";
|
||||
|
||||
import * as emitter from "./CSharpEmitter";
|
||||
import {ContextInterface} from "./Context";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as path from "path";
|
||||
import {expect} from "chai";
|
||||
import * as fs from "fs";
|
||||
import Ast, {ts, ScriptTarget, ModuleResolutionKind, ModuleKind} from "ts-simple-ast";
|
||||
import Ast, {ts, ScriptTarget, ModuleResolutionKind, ModuleKind} from "ts-morph";
|
||||
import {TsToCSharpGenerator} from "./TStoCSharpGenerator";
|
||||
import {GenOptions} from "./GenerateOptions";
|
||||
import {Context} from "./Context";
|
||||
|
|
Загрузка…
Ссылка в новой задаче