Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 /*
  * var annotation = type.Annotation<TypeReference>();
  * if (annotation is null )
  * return null;
  *
  * IEntity current = null;
  * if (!(entity is 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;