예제 #1
0
        public ReferenceEntry[] FindReferences(FileName fileName, int offset)
        {
            host.position = offset;
            host.UpdateFileName(fileName);

            context.Run(scriptLoader.GetFindReferencesScript());

            return(host.ReferencesResult.result);
        }
예제 #2
0
        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);
        }