Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit c96bc94

Browse files
Build fix. Setting type of FileTypeDeclaration.(min/max)Length to Long.
1 parent b450b54 commit c96bc94

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raml-parser-java-interfaces",
3-
"version": "0.0.5",
3+
"version": "0.0.7",
44
"main": "dist/definitionSystem.js",
55
"scripts": {
66
"compile": "tsc"

src/javaNativeParserWrappersGenerator.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ParserGenerator{
3838

3939
processed:{[name:string]:def.IType}={};
4040

41-
private helperMethods:{[key:string]:helperMethodExtractor.HelperMethod[]}={};
41+
//private helperMethods:{[key:string]:helperMethodExtractor.HelperMethod[]}={};
4242

4343
//private helperSources:any;
4444

@@ -223,7 +223,7 @@ class ParserGenerator{
223223
private addHelperMethods(u:def.IType,decl:td.TSInterface,isImpl:boolean=false){
224224

225225
//this.initHelpers(u);
226-
var methods = this.helperMethods[u.nameId()];
226+
var methods;// = this.helperMethods[u.nameId()];
227227
if(!methods){
228228
return;
229229
}
@@ -1026,6 +1026,11 @@ function initReturnTypesMap(){
10261026
arrMap[def.universesInfo.Universe10.ArrayTypeDeclaration.properties.minItems.name] = "Integer";
10271027
arrMap[def.universesInfo.Universe10.ArrayTypeDeclaration.properties.maxItems.name] = "Integer";
10281028
returnTypesMap[def.universesInfo.Universe10.ArrayTypeDeclaration.name] = arrMap;
1029+
1030+
var fileMap = {};
1031+
fileMap[def.universesInfo.Universe10.FileTypeDeclaration.properties.minLength.name] = "Long";
1032+
fileMap[def.universesInfo.Universe10.FileTypeDeclaration.properties.maxLength.name] = "Long";
1033+
returnTypesMap[def.universesInfo.Universe10.FileTypeDeclaration.name] = fileMap;
10291034
}
10301035

10311036
function mapReturnType(method:td.TSAPIElementDeclaration):string{

0 commit comments

Comments
 (0)