public AstType ConvertType(IType type) { if (type == null) throw new ArgumentNullException("type"); AstType astType = ConvertTypeHelper(type); if (AddTypeReferenceAnnotations) astType.AddAnnotation(type); if (AddResolveResultAnnotations) astType.AddAnnotation(new TypeResolveResult(type)); return astType; }
public AstType ConvertType(IType type) { if (type == null) { throw new ArgumentNullException("type"); } AstType astType = ConvertTypeHelper(type); if (AddAnnotations) { astType.AddAnnotation(type); } return(astType); }