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); }
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); }