This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function atomExpression(node){ | |
var name = ''; | |
var atomNames = 'Atom|AtomFormula|List|ListFormula'; | |
if (atomNames.indexOf(node.expression.text) > -1){ | |
var exps = []; | |
var n = node; | |
var ns = []; | |
var isReturn = false; | |
var isThis = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function emitMemberFunctions(node) { | |
ts.forEach(node.members, function (member) { | |
//console.log(member.kind, member); | |
if (member.kind === 126){ | |
writeLine(); | |
emitStart(member); | |
write("Object.defineProperty("); | |
emitStart(member.name); | |
emitNode(node.name); | |
var memberName = member.name.text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = ''; | |
if (node.expression.text === 'Atom'){ | |
var exps = []; | |
var n = node; | |
var ns = []; | |
var isReturn = false; | |
var isThis = false; | |
var ex = false; | |
while (n = n.parent){ | |
if (n.name && n.kind !== 128){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class R<P,S> { | |
state:S; | |
props:P; | |
static instance; | |
refs:{ [ref: string]: React.ReactComponent<any, any>; }; | |
getDOMNode():Element { | |
return null | |
} |
NewerOlder