Search in sources :

Example 6 with FunctionSymbol

use of org.jetbrains.plugins.ruby.motion.symbols.FunctionSymbol 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

FunctionSymbol (org.jetbrains.plugins.ruby.motion.symbols.FunctionSymbol)6 Function (org.jetbrains.plugins.ruby.motion.bridgesupport.Function)5 Symbol (org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.structure.Symbol)4 MotionClassSymbol (org.jetbrains.plugins.ruby.motion.symbols.MotionClassSymbol)3 Nullable (org.jetbrains.annotations.Nullable)2 ConstantSymbol (org.jetbrains.plugins.ruby.motion.symbols.ConstantSymbol)2 ClassModuleSymbol (org.jetbrains.plugins.ruby.ruby.codeInsight.symbols.v2.ClassModuleSymbol)2 PsiReference (com.intellij.psi.PsiReference)1 RubyLookupElement (org.jetbrains.plugins.ruby.ruby.codeInsight.completion.RubyLookupElement)1 RPossibleCall (org.jetbrains.plugins.ruby.ruby.lang.psi.RPossibleCall)1 RPsiElement (org.jetbrains.plugins.ruby.ruby.lang.psi.RPsiElement)1 RArgument (org.jetbrains.plugins.ruby.ruby.lang.psi.controlStructures.methods.RArgument)1 RMethod (org.jetbrains.plugins.ruby.ruby.lang.psi.controlStructures.methods.RMethod)1