// public class Funkadelic : IAwesomeSauce, IRockOn { ... // ---------------- ------------- // finds this ^ if you clicked on this ^ internal static IType FindEnclosingClass (ProjectDom ctx, string fileName, int line, int col) { IType klass = null; foreach (IType c in ctx.GetTypes (fileName)) { if (c.BodyRegion.Contains (line, col)) klass = c; } if (klass != null && klass.ClassType != ClassType.Interface) return klass; return null; }
public override IEnumerable <IType> GetTypes(FilePath fileName) { return(decorated.GetTypes(fileName)); }