コード例 #1
0
        private static ForeignContextRef CreateActionContextRef(CilContextRef cilContext)
        {
            ForeignContextRef result;

            if (cilContext == CilContextRef.None)
            {
                result = ForeignContextRef.None;
            }
            else
            {
                result = new ForeignContextRef(cilContext.UniqueName);
            }

            return(result);
        }
コード例 #2
0
 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;
 }
コード例 #3
0
        private static ForeignContextRef CreateActionContextRef(CilContextRef cilContext)
        {
            ForeignContextRef result;

            if (cilContext == CilContextRef.None)
            {
                result = ForeignContextRef.None;
            }
            else
            {
                result = new ForeignContextRef(cilContext.UniqueName);
            }

            return result;
        }