/* * var annotation = type.Annotation<TypeReference>(); * if (annotation == null ) * return null; * * IEntity current = null; * if (entity != null) { * var typeInfo = entity.Annotation<TypeReference>(); * current = loader.ReadTypeReference(typeInfo).Resolve(context).GetDefinition(); * } * * return loader.ReadTypeReference(annotation, entity: current).Resolve(context);*/ public ICSharpCode.NRefactory.TypeSystem.IType ResolveType(ICSharpCode.NRefactory.VB.Ast.AstType type, ICSharpCode.NRefactory.VB.Ast.TypeDeclaration entity = null) => SpecialType.UnknownType;
public ICSharpCode.NRefactory.TypeSystem.IType ResolveType(ICSharpCode.NRefactory.VB.Ast.AstType type, ICSharpCode.NRefactory.VB.Ast.TypeDeclaration entity = null) { /* * var annotation = type.Annotation<TypeReference>(); * if (annotation == null ) * return null; * * IEntity current = null; * if (entity != null) { * var typeInfo = entity.Annotation<TypeReference>(); * current = loader.ReadTypeReference(typeInfo).Resolve(context).GetDefinition(); * } * * return loader.ReadTypeReference(annotation, entity: current).Resolve(context);*/ return(SpecialType.UnknownType); }