Search in sources :

Example 11 with Symbol

use of org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.structure.Symbol in project intellij-plugins by JetBrains.

the class RubyMotionLightFixtureTestCase method checkResolveToObjC.

protected void checkResolveToObjC(final String signature, final String fqn) {
    final PsiReference ref = findReferenceBySignature(signature);
    final Symbol symbol = RubyTestUtil.resolveToSymbol(ref);
    TestCase.assertTrue(symbol instanceof MotionClassSymbol || symbol instanceof FunctionSymbol);
    TestCase.assertEquals(fqn, symbol.getFQNWithNesting().getFullPath());
}
Also used : FunctionSymbol(org.jetbrains.plugins.ruby.motion.symbols.FunctionSymbol) MotionClassSymbol(org.jetbrains.plugins.ruby.motion.symbols.MotionClassSymbol) FunctionSymbol(org.jetbrains.plugins.ruby.motion.symbols.FunctionSymbol) Symbol(org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.structure.Symbol) PsiReference(com.intellij.psi.PsiReference) MotionClassSymbol(org.jetbrains.plugins.ruby.motion.symbols.MotionClassSymbol)

Aggregations

Symbol (org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.structure.Symbol)11 FunctionSymbol (org.jetbrains.plugins.ruby.motion.symbols.FunctionSymbol)5 MotionClassSymbol (org.jetbrains.plugins.ruby.motion.symbols.MotionClassSymbol)4 Nullable (org.jetbrains.annotations.Nullable)3 Function (org.jetbrains.plugins.ruby.motion.bridgesupport.Function)3 RModule (org.jetbrains.plugins.ruby.ruby.lang.psi.controlStructures.modules.RModule)3 Module (com.intellij.openapi.module.Module)2 ConstantSymbol (org.jetbrains.plugins.ruby.motion.symbols.ConstantSymbol)2 RTypedSyntheticSymbol (org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.structure.RTypedSyntheticSymbol)2 ClassModuleSymbol (org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.v2.ClassModuleSymbol)2 RType (org.jetbrains.plugins.ruby.ruby.codeInsight.types.RType)2 ClassMember (com.intellij.codeInsight.generation.ClassMember)1 MemberChooserObjectBase (com.intellij.codeInsight.generation.MemberChooserObjectBase)1 Project (com.intellij.openapi.project.Project)1 PsiElement (com.intellij.psi.PsiElement)1 PsiReference (com.intellij.psi.PsiReference)1 CocoaDocumentationManagerImpl (com.jetbrains.cidr.CocoaDocumentationManagerImpl)1 NotNull (org.jetbrains.annotations.NotNull)1 RubyMotionUtilImpl (org.jetbrains.plugins.ruby.motion.RubyMotionUtilImpl)1 MotionSymbol (org.jetbrains.plugins.ruby.motion.symbols.MotionSymbol)1