CreateMethod() public method

Creates the default method definition to wrap around the body of the rule, which has already been generated. Returns Basis with the specified new method body. If Basis is null, a simple default method signature is used, e.g. public void R() {...} where R is the rule name.
public CreateMethod ( VList methodBody ) : LNode
methodBody VList The parsing code that was generated for this rule.
return LNode
示例#1
0
		public virtual LNode CreateRuleMethod(Rule rule, RVList<LNode> methodBody)
		{
			return rule.CreateMethod(methodBody);
		}
示例#2
0
 public virtual LNode CreateRuleMethod(Rule rule, VList <LNode> methodBody)
 {
     return(rule.CreateMethod(methodBody));
 }