Esempio n. 1
0
        public IReferenceFactory CreateFactory(IPsiSourceFile sourceFile, IFile file, IWordIndex wordIndexForChecks)
        {
            if (sourceFile.PrimaryPsiLanguage.Is <YamlLanguage>() && sourceFile.IsAsset())
            {
                if (wordIndexForChecks == null || (wordIndexForChecks.CanContainAllSubwords(sourceFile, "m_Script") &&
                                                   wordIndexForChecks.CanContainAllSubwords(sourceFile, "11500000")))
                {
                    return(new MonoScriptReferenceFactory());
                }
            }

            return(null);
        }
Esempio n. 2
0
        public IReferenceFactory CreateFactory(IPsiSourceFile sourceFile, IFile file, IWordIndex wordIndexForChecks)
        {
            if (sourceFile.PrimaryPsiLanguage.Is <YamlLanguage>() && sourceFile.IsAsset())
            {
                if (wordIndexForChecks == null || wordIndexForChecks.CanContainAllSubwords(sourceFile, "m_MethodName"))
                {
                    return(new UnityEventTargetReferenceFactory());
                }
            }

            return(null);
        }