Exemplo n.º 1
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            SimpleType o = other as SimpleType;

            return(o != null && MatchString(this.Identifier, o.Identifier) && this.TypeArguments.DoMatch(o.TypeArguments, match));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets whether this type is a SimpleType "var".
        /// </summary>
        public bool IsVar()
        {
            SimpleType st = this as SimpleType;

            return(st != null && st.Identifier == "var" && st.TypeArguments.Count == 0);
        }