public ReferenceEntry[] FindReferences(FileName fileName, int offset) { host.position = offset; host.UpdateFileName(fileName); context.Run(scriptLoader.GetFindReferencesScript()); return(host.ReferencesResult.result); }
public ReferenceEntry[] FindReferences(FileName fileName, int offset) { if (context == null) { return(new ReferenceEntry[0]); } UpdateCompilerSettings(); host.position = offset; host.UpdateFileName(fileName); context.Run(scriptLoader.GetFindReferencesScript()); return(host.ReferencesResult.result); }