/// <summary> /// Add a tag to the current scope. /// </summary> /// <param name="tag"></param> /// <param name="t"></param> /// <param name="definition"></param> public TagEntry AddTag(string tag, TUnqualified type, TypeUserSpec node) { var entry = new TagEntry(tag, type, node); scopes.Peek().AddTag(entry); return(entry); }
public ErrDeclareTagAsDifferentType(Position pos, string tag, Position previous, TUnqualified previoudType) : base(pos, string.Format("declare tag {0} as different type, previous declared at {1} as {2}", tag, previous, previoudType)) { }
public TagEntry(string tag, TUnqualified type, TypeUserSpec node) { this.tag = tag; this.type = type; this.node = node; }