Beispiel #1
0
        public SemanticAttr ChangeType(SemanticType other)
        {
            var s = new SemanticAttr(Id, Type);

            s.Self = Self;
            return(s);
        }
Beispiel #2
0
        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);
        }