blaze_compiler
Advanced tools
Comparing version 0.0.26 to 0.0.27
{ | ||
"name": "blaze_compiler", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"description": "Transpiles extendable, schema orientated definitions into Firebase security rules", | ||
@@ -5,0 +5,0 @@ "author": "Tom Larkworthy", |
@@ -200,4 +200,2 @@ require('source-map-support').install(); | ||
} else if (node.type == "MemberExpression") { | ||
console.log("MemberExpression:", node); | ||
if (node.object.expr_type == "rule") { | ||
@@ -204,0 +202,0 @@ node.expr_type = null; |
@@ -245,3 +245,3 @@ /// <reference path="../types/node.d.ts" /> | ||
}else if(node.type == "MemberExpression"){ | ||
console.log("MemberExpression:", node); | ||
//console.log("MemberExpression:", node); | ||
@@ -248,0 +248,0 @@ //if the object is a type (rules, map or value) it unlocks different valid properties |
@@ -64,2 +64,3 @@ (function (Modifier) { | ||
this._static = false; | ||
this._abstract = false; | ||
this._extends = []; | ||
@@ -80,2 +81,6 @@ this._implements = []; | ||
}; | ||
JClass.prototype.setAbstract = function (_abstract) { | ||
this._abstract = _abstract; | ||
return this; | ||
}; | ||
JClass.prototype.setName = function (_name) { | ||
@@ -122,2 +127,4 @@ this._name = _name; | ||
write("static ", output); | ||
if (this._abstract) | ||
write("abstract ", output); | ||
if (this._isInterface) { | ||
@@ -166,2 +173,3 @@ write("interface ", output); | ||
this._static = false; | ||
this._final = false; | ||
} | ||
@@ -176,2 +184,6 @@ JField.prototype.setModifier = function (_modifier) { | ||
}; | ||
JField.prototype.setFinal = function (_final) { | ||
this._final = _final; | ||
return this; | ||
}; | ||
JField.prototype.setName = function (_name) { | ||
@@ -193,2 +205,4 @@ this._name = _name; | ||
write("static ", output); | ||
if (this._final) | ||
write("final ", output); | ||
write(this._type + " ", output); | ||
@@ -207,2 +221,3 @@ write(this._name + " ", output); | ||
this._static = false; | ||
this._abstract = false; | ||
this._body = null; | ||
@@ -219,2 +234,6 @@ this._params = []; //array of [dec, name] pairs | ||
}; | ||
JMethod.prototype.setAbstract = function (_abstract) { | ||
this._abstract = _abstract; | ||
return this; | ||
}; | ||
JMethod.prototype.setName = function (_name) { | ||
@@ -240,2 +259,4 @@ this._name = _name; | ||
write("static ", output); | ||
if (this._abstract) | ||
write("abstract ", output); | ||
if (this._type) | ||
@@ -242,0 +263,0 @@ write(this._type + " ", output); |
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
571069
137
6671