/// <summary> /// define nodes /// </summary> /// <param name="ctx"></param> /// <returns></returns> public bool BuildXPTNode(OneRulezContext ctx) { // selection Rulez if (ctx.selectionRulez() != null) { ctx.XPTreeNode = ctx.selectionRulez().XPTreeNode; return(true); } if (ctx.typeDeclaration() != null) { ctx.XPTreeNode = null; return(true); } return(false); }
/// <summary> /// define nodes /// </summary> /// <param name="ctx"></param> /// <returns></returns> public bool BuildXPTNode(OneRulezContext ctx) { // selection Rulez if (ctx.selectionRulez() != null) { ctx.XPTreeNode = ctx.selectionRulez().XPTreeNode; return true; } if (ctx.typeDeclaration ()!= null) { ctx.XPTreeNode = null; return true; } return false; }