modelled-ui-transformer
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -50,6 +50,2 @@ "use strict"; | ||
if (me.property.type === "Identifier") { | ||
var kv = { | ||
type: "Literal", | ||
value: "bindToPath" | ||
}; | ||
object.properties.push(createProperty("object", me.object)); | ||
@@ -60,2 +56,11 @@ object.properties.push(createProperty("path", createLiteral(me.property.name))); | ||
} | ||
if (lv == "bindSelectionTo") { | ||
if (x.value.type == "MemberExpression") { | ||
var me = x.value; | ||
if (me.property.type === "Identifier") { | ||
object.properties.push(createProperty("selectionObject", me.object)); | ||
object.properties.push(createProperty("selectionPath", createLiteral(me.property.name))); | ||
} | ||
} | ||
} | ||
} | ||
@@ -62,0 +67,0 @@ }); |
{ | ||
"name": "modelled-ui-transformer", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -57,6 +57,2 @@ /// <reference path="../typings/main.d.ts" /> | ||
if (me.property.type === "Identifier") { | ||
var kv:ESTree.Literal = { | ||
type: "Literal", | ||
value: "bindToPath" | ||
}; | ||
object.properties.push(createProperty("object", me.object)); | ||
@@ -66,4 +62,12 @@ object.properties.push(createProperty("path", createLiteral((<ESTree.Identifier>me.property).name))) | ||
} | ||
} | ||
if (lv == "bindSelectionTo") { | ||
if (x.value.type == "MemberExpression") { | ||
var me = <ESTree.MemberExpression>x.value; | ||
if (me.property.type === "Identifier") { | ||
object.properties.push(createProperty("selectionObject", me.object)); | ||
object.properties.push(createProperty("selectionPath", createLiteral((<ESTree.Identifier>me.property).name))) | ||
} | ||
} | ||
} | ||
} | ||
@@ -70,0 +74,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
235810
5326