private MidExp SimplifyExpImpl(MidAttributeRef val, SimplifyEnv env) { if (val.IsLazy) { return(_exps.AttributeRef(val.Range, val.Decl)); } return(val); }
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)); }
private static void DumpExpImpl( MidAttributeRef attrRef, Span span) { span.Write("{0}", attrRef.Decl.Name); }
private MidVal ReplaceImpl( MidAttributeRef attrRef) { throw new NotImplementedException(); }