Пример #1
0
        /// <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);
        }
Пример #2
0
 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))
 {
 }
Пример #3
0
 public TagEntry(string tag, TUnqualified type, TypeUserSpec node)
 {
     this.tag  = tag;
     this.type = type;
     this.node = node;
 }