public override object VisitTypeReference(ICSharpCode.OldNRefactory.Ast.TypeReference typeReference, object data)
 {
     if (!typeReference.StartLocation.IsEmpty)
     {
         int offset = typeReference.StartLocation.Column - 1;
         int len    = typeReference.EndLocation.Column - typeReference.StartLocation.Column;
         int i      = expression.IndexOf('<', offset);
         if (i != -1 && i < offset + len)
         {
             len = i - offset;
         }
         ResolveType(typeReference.Type, typeReference.GenericTypes.Count, offset, len);
     }
     return(base.VisitTypeReference(typeReference, data));
 }
Esempio n. 2
0
 static DomReturnType TranslateTypeReference(ICSharpCode.OldNRefactory.Ast.TypeReference type)
 {
     return(new DomReturnType(type.Type));
 }