private static ForeignContextRef CreateActionContextRef(CilContextRef cilContext) { ForeignContextRef result; if (cilContext == CilContextRef.None) { result = ForeignContextRef.None; } else { result = new ForeignContextRef(cilContext.UniqueName); } return(result); }
public CilProduction(CilSymbolRef outcome, IEnumerable <CilSymbolRef> pattern, CilContextRef context, Pipe <IActionCode> actionBuilder, Precedence precedence = null) { this.Outcome = outcome; this.Pattern = pattern.ToArray(); this.Context = context; this.ActionBuilder = actionBuilder; this.Precedence = precedence; }
private static ForeignContextRef CreateActionContextRef(CilContextRef cilContext) { ForeignContextRef result; if (cilContext == CilContextRef.None) { result = ForeignContextRef.None; } else { result = new ForeignContextRef(cilContext.UniqueName); } return result; }