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)); }
/// <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); }