Beispiel #1
0
 private MidExp SimplifyExpImpl(MidAttributeRef val, SimplifyEnv env)
 {
     if (val.IsLazy)
     {
         return(_exps.AttributeRef(val.Range, val.Decl));
     }
     return(val);
 }
Beispiel #2
0
        public MidAttributeRef CleanupExp(MidAttributeRef exp)
        {
            var oldAttr = exp.Decl;
            var newAttr = MapOldToNew(oldAttr);

            if (newAttr == oldAttr)
            {
                return(exp);
            }

            newAttr.TrySetName(oldAttr.Name, oldAttr.Range);
            return(_exps.AttributeRef(exp.Range, newAttr));
        }
Beispiel #3
0
 private static void DumpExpImpl(
     MidAttributeRef attrRef,
     Span span)
 {
     span.Write("{0}", attrRef.Decl.Name);
 }
Beispiel #4
0
 private MidVal ReplaceImpl(
     MidAttributeRef attrRef)
 {
     throw new NotImplementedException();
 }