public SemanticAttr ChangeType(SemanticType other) { var s = new SemanticAttr(Id, Type); s.Self = Self; return(s); }
public SemanticAttr GetAttr(string name) { SemanticAttr x = _GetAttr(name); if (x == null) { return(x); } if (x.Type.Name == "SELF_TYPE") { return(x.ChangeType(this)); } return(x); }