ts-structure-parser
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -1,2 +0,1 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
export declare function resolve(p1: string, p2: string): string; | ||
@@ -3,0 +2,0 @@ export declare function readFileSync(p: string): string; |
"use strict"; | ||
/// <reference path="../typings/main.d.ts" /> | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var pth = require("path"); | ||
@@ -4,0 +4,0 @@ var fs = require("fs"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -3,0 +4,0 @@ var tsm = require("./tsASTMatchers"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var index = require("./index"); | ||
var helperMethodExtractor = require("./helperMethodExtractor"); | ||
var ns = { 'RamlWrapper': true }; | ||
var HelperMethod = (function () { | ||
var HelperMethod = /** @class */ (function () { | ||
function HelperMethod(originalName, wrapperMethodName, returnType, args, meta) { | ||
@@ -7,0 +8,0 @@ this.originalName = originalName; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.helpers = require("./helpers"); | ||
var tsStructureParser = require("./tsStructureParser"); | ||
var EnumDeclaration = (function () { | ||
var EnumDeclaration = /** @class */ (function () { | ||
function EnumDeclaration() { | ||
@@ -10,2 +11,3 @@ } | ||
exports.EnumDeclaration = EnumDeclaration; | ||
var TypeKind; | ||
(function (TypeKind) { | ||
@@ -15,4 +17,3 @@ TypeKind[TypeKind["BASIC"] = 0] = "BASIC"; | ||
TypeKind[TypeKind["UNION"] = 2] = "UNION"; | ||
})(exports.TypeKind || (exports.TypeKind = {})); | ||
var TypeKind = exports.TypeKind; | ||
})(TypeKind = exports.TypeKind || (exports.TypeKind = {})); | ||
function classDecl(name, isInteface) { | ||
@@ -19,0 +20,0 @@ return { |
@@ -71,3 +71,3 @@ import ts = require('typescript'); | ||
name: string; | ||
arguments: Expression[]; | ||
arguments: ReadonlyArray<Expression>; | ||
_callExpression: ts.CallExpression; | ||
@@ -74,0 +74,0 @@ constructor(name: string, _base: Node); |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var ts = require('typescript'); | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
/*** | ||
@@ -19,3 +25,3 @@ * This module is designed to match simple patterns on Typescript AST Tree | ||
*/ | ||
var BasicMatcher = (function () { | ||
var BasicMatcher = /** @class */ (function () { | ||
function BasicMatcher() { | ||
@@ -40,6 +46,6 @@ } | ||
Matching.BasicMatcher = BasicMatcher; | ||
var ClassDeclarationMatcher = (function (_super) { | ||
var ClassDeclarationMatcher = /** @class */ (function (_super) { | ||
__extends(ClassDeclarationMatcher, _super); | ||
function ClassDeclarationMatcher() { | ||
_super.call(this); | ||
return _super.call(this) || this; | ||
} | ||
@@ -55,6 +61,6 @@ ClassDeclarationMatcher.prototype.match = function (node) { | ||
Matching.ClassDeclarationMatcher = ClassDeclarationMatcher; | ||
var FieldMatcher = (function (_super) { | ||
var FieldMatcher = /** @class */ (function (_super) { | ||
__extends(FieldMatcher, _super); | ||
function FieldMatcher() { | ||
_super.apply(this, arguments); | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
@@ -70,9 +76,10 @@ FieldMatcher.prototype.match = function (node) { | ||
Matching.FieldMatcher = FieldMatcher; | ||
var AssignmentExpressionMatcher = (function (_super) { | ||
var AssignmentExpressionMatcher = /** @class */ (function (_super) { | ||
__extends(AssignmentExpressionMatcher, _super); | ||
function AssignmentExpressionMatcher(left, right, tr) { | ||
_super.call(this); | ||
this.left = left; | ||
this.right = right; | ||
this.tr = tr; | ||
var _this = _super.call(this) || this; | ||
_this.left = left; | ||
_this.right = right; | ||
_this.tr = tr; | ||
return _this; | ||
} | ||
@@ -93,9 +100,10 @@ AssignmentExpressionMatcher.prototype.match = function (node) { | ||
Matching.AssignmentExpressionMatcher = AssignmentExpressionMatcher; | ||
var VariableDeclarationMatcher = (function (_super) { | ||
var VariableDeclarationMatcher = /** @class */ (function (_super) { | ||
__extends(VariableDeclarationMatcher, _super); | ||
function VariableDeclarationMatcher(left, right, tr) { | ||
_super.call(this); | ||
this.left = left; | ||
this.right = right; | ||
this.tr = tr; | ||
var _this = _super.call(this) || this; | ||
_this.left = left; | ||
_this.right = right; | ||
_this.tr = tr; | ||
return _this; | ||
} | ||
@@ -113,8 +121,9 @@ VariableDeclarationMatcher.prototype.match = function (node) { | ||
Matching.VariableDeclarationMatcher = VariableDeclarationMatcher; | ||
var ExpressionStatementMatcher = (function (_super) { | ||
var ExpressionStatementMatcher = /** @class */ (function (_super) { | ||
__extends(ExpressionStatementMatcher, _super); | ||
function ExpressionStatementMatcher(expression, tr) { | ||
_super.call(this); | ||
this.expression = expression; | ||
this.tr = tr; | ||
var _this = _super.call(this) || this; | ||
_this.expression = expression; | ||
_this.tr = tr; | ||
return _this; | ||
} | ||
@@ -137,7 +146,8 @@ ExpressionStatementMatcher.prototype.match = function (node) { | ||
}(BasicMatcher)); | ||
var SimpleIdentMatcher = (function (_super) { | ||
var SimpleIdentMatcher = /** @class */ (function (_super) { | ||
__extends(SimpleIdentMatcher, _super); | ||
function SimpleIdentMatcher(val) { | ||
_super.call(this); | ||
this.val = val; | ||
var _this = _super.call(this) || this; | ||
_this.val = val; | ||
return _this; | ||
} | ||
@@ -155,3 +165,3 @@ SimpleIdentMatcher.prototype.match = function (node) { | ||
}(BasicMatcher)); | ||
var TrueMatcher = (function () { | ||
var TrueMatcher = /** @class */ (function () { | ||
function TrueMatcher() { | ||
@@ -167,8 +177,9 @@ } | ||
}()); | ||
var CallExpressionMatcher = (function (_super) { | ||
var CallExpressionMatcher = /** @class */ (function (_super) { | ||
__extends(CallExpressionMatcher, _super); | ||
function CallExpressionMatcher(calleeMatcher, tr) { | ||
_super.call(this); | ||
this.calleeMatcher = calleeMatcher; | ||
this.tr = tr; | ||
var _this = _super.call(this) || this; | ||
_this.calleeMatcher = calleeMatcher; | ||
_this.tr = tr; | ||
return _this; | ||
} | ||
@@ -204,3 +215,3 @@ CallExpressionMatcher.prototype.match = function (node) { | ||
Matching.visit = visit; | ||
var PathNode = (function () { | ||
var PathNode = /** @class */ (function () { | ||
function PathNode(name, _base) { | ||
@@ -214,3 +225,3 @@ this._base = _base; | ||
Matching.PathNode = PathNode; | ||
var CallPath = (function () { | ||
var CallPath = /** @class */ (function () { | ||
function CallPath(base, _baseNode) { | ||
@@ -243,9 +254,10 @@ this._baseNode = _baseNode; | ||
Matching.CallPath = CallPath; | ||
var MemberExpressionMatcher = (function (_super) { | ||
var MemberExpressionMatcher = /** @class */ (function (_super) { | ||
__extends(MemberExpressionMatcher, _super); | ||
function MemberExpressionMatcher(objectMatcher, propertyMatcher, tr) { | ||
_super.call(this); | ||
this.objectMatcher = objectMatcher; | ||
this.propertyMatcher = propertyMatcher; | ||
this.tr = tr; | ||
var _this = _super.call(this) || this; | ||
_this.objectMatcher = objectMatcher; | ||
_this.propertyMatcher = propertyMatcher; | ||
_this.tr = tr; | ||
return _this; | ||
} | ||
@@ -289,3 +301,3 @@ MemberExpressionMatcher.prototype.match = function (node) { | ||
Matching.memberFromExp = memberFromExp; | ||
var CallBaseMatcher = (function () { | ||
var CallBaseMatcher = /** @class */ (function () { | ||
function CallBaseMatcher(rootMatcher) { | ||
@@ -292,0 +304,0 @@ this.rootMatcher = rootMatcher; |
@@ -0,5 +1,6 @@ | ||
"use strict"; | ||
/** | ||
* Created by kor on 08/05/15. | ||
*/ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -51,2 +52,3 @@ exports.tsm = require("./tsASTMatchers"); | ||
} | ||
//return; | ||
} | ||
@@ -81,2 +83,3 @@ if (x.kind == ts.SyntaxKind.EnumDeclaration) { | ||
clazz.methods.push(method); | ||
//return; | ||
} | ||
@@ -83,0 +86,0 @@ var field = fld.doMatch(x); |
{ | ||
"name": "ts-structure-parser", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"private": false, | ||
@@ -15,3 +15,3 @@ "main": "dist/index.js", | ||
"underscore": "^1.8.3", | ||
"typescript": "1.8.7" | ||
"typescript": "2.5.2" | ||
}, | ||
@@ -34,3 +34,4 @@ "typings": "./dist/index.d.ts", | ||
"devDependencies": { | ||
"typings": "^0.5.1", | ||
"@types/node": "4.2.20", | ||
"@types/underscore": "1.8.3", | ||
"dev-env-installer":"0.0.5", | ||
@@ -37,0 +38,0 @@ "rimraf":"*" |
@@ -1,2 +0,1 @@ | ||
/// <reference path="../typings/main.d.ts" /> | ||
import pth=require("path") | ||
@@ -3,0 +2,0 @@ import fs=require("fs") |
@@ -214,3 +214,3 @@ import ts = require('typescript'); | ||
name:string | ||
arguments:Expression[] = null; | ||
arguments:ReadonlyArray<Expression> = null; | ||
_callExpression:ts.CallExpression | ||
@@ -217,0 +217,0 @@ |
@@ -5,9 +5,7 @@ { | ||
"test" : "gulp test", | ||
"gitUrl" : "https://github.com/raml-org/raml-js-parser-2.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/raml-org/raml-js-parser-2.git" | ||
}, | ||
"raml-definition-system" : { | ||
"build" : "npm run build", | ||
"gitUrl" : "https://github.com/raml-org/raml-definition-system.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/raml-org/raml-definition-system.git" | ||
}, | ||
@@ -17,4 +15,3 @@ "raml-typesystem" : { | ||
"test" : "npm run test-cov", | ||
"gitUrl" : "https://github.com/raml-org/typesystem-ts.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/raml-org/raml-typesystem.git" | ||
}, | ||
@@ -24,4 +21,3 @@ "ts-structure-parser" : { | ||
"gitUrl" : "https://github.com/mulesoft-labs/ts-structure-parser.git", | ||
"gitBranch" : false, | ||
"installTypings" : true | ||
"gitBranch" : false | ||
}, | ||
@@ -34,5 +30,4 @@ "yaml-ast-parser" : { | ||
"build" : "npm run build", | ||
"gitUrl" : "https://github.com/mulesoft-labs/ts-model.git", | ||
"installTypings" : true | ||
"gitUrl" : "https://github.com/mulesoft-labs/ts-model.git" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
603739
16869
4
37
+ Addedtypescript@2.5.2(transitive)
- Removedtypescript@1.8.7(transitive)
Updatedtypescript@2.5.2