Search in sources :

Example 1 with RSymbolType

use of org.jetbrains.plugins.ruby.ruby.codeInsight.types.RSymbolType in project intellij-plugins by JetBrains.

the class RubyMotionCodeInsightTest method testSelectorChainType.

public void testSelectorChainType() throws Throwable {
    defaultConfigure();
    final RType type = RubyTestUtil.getCoveringReferenceType(findPsiBySignature("UIView.alloc.initWith<caret>Frame"));
    assertInstanceOf(type, RSymbolType.class);
    assertEquals("UIView", ((RSymbolType) type).getSymbol().getName());
}
Also used : RSymbolType(org.jetbrains.plugins.ruby.ruby.codeInsight.types.RSymbolType) RType(org.jetbrains.plugins.ruby.ruby.codeInsight.types.RType)

Example 2 with RSymbolType

use of org.jetbrains.plugins.ruby.ruby.codeInsight.types.RSymbolType in project intellij-plugins by JetBrains.

the class RubyMotionCodeInsightTest method testSelectorType.

public void testSelectorType() throws Throwable {
    defaultConfigure();
    final RType type = RubyTestUtil.getCoveringReferenceType(findPsiBySignature("UIView.al<caret>loc"));
    assertInstanceOf(type, RSymbolType.class);
    assertEquals("UIView", ((RSymbolType) type).getSymbol().getName());
}
Also used : RSymbolType(org.jetbrains.plugins.ruby.ruby.codeInsight.types.RSymbolType) RType(org.jetbrains.plugins.ruby.ruby.codeInsight.types.RType)

Aggregations

RSymbolType (org.jetbrains.plugins.ruby.ruby.codeInsight.types.RSymbolType)2 RType (org.jetbrains.plugins.ruby.ruby.codeInsight.types.RType)2