-Update to ts-morph 1.2.0 and typescript 3.3.1
-Change imports to ts-simple
This commit is contained in:
Mauro 2019-03-01 20:07:24 +01:00
Родитель 613553ad4e
Коммит 5ceb8aebe3
9 изменённых файлов: 1137 добавлений и 69 удалений

1180
package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -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";