Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public TagEntry(string tag, TUnqualified type, TypeUserSpec node)
 {
     this.tag  = tag;
     this.type = type;
     this.node = node;
 }