Search in sources :

Example 1 with InlayInfo

use of com.intellij.codeInsight.hints.InlayInfo in project intellij-community by JetBrains.

the class CodeInsightTestFixtureImpl method checkResultWithInlays.

@Override
public void checkResultWithInlays(String text) {
    Document checkDocument = new DocumentImpl(text);
    InlayHintsChecker checker = new InlayHintsChecker(this);
    List<InlayInfo> inlayInfos = checker.extractInlays(checkDocument);
    checkResult(checkDocument.getText());
    checker.verifyInlays(inlayInfos, text);
}
Also used : InlayHintsChecker(com.intellij.testFramework.utils.inlays.InlayHintsChecker) InlayInfo(com.intellij.codeInsight.hints.InlayInfo) DocumentImpl(com.intellij.openapi.editor.impl.DocumentImpl)

Aggregations

InlayInfo (com.intellij.codeInsight.hints.InlayInfo)1 DocumentImpl (com.intellij.openapi.editor.impl.DocumentImpl)1 InlayHintsChecker (com.intellij.testFramework.utils.inlays.InlayHintsChecker)1