Search in sources :

Example 16 with SignatureHelpConfiguration

use of org.eclipse.xtext.testing.SignatureHelpConfiguration in project xtext-core by eclipse.

the class SignatureHelpTest method beforeOperationCall.

@Test
public void beforeOperationCall() {
    StringConcatenation _builder = new StringConcatenation();
    _builder.append("foo(1, 2)");
    final String testMe = _builder.toString();
    final Procedure1<SignatureHelpConfiguration> _function = (SignatureHelpConfiguration it) -> {
        it.setModel(this.getModel(testMe));
        it.setLine(SignatureHelpTest.LINE_NUMBER);
        StringConcatenation _builder_1 = new StringConcatenation();
        _builder_1.append("foo");
        it.setColumn(_builder_1.length());
        it.setExpectedSignatureHelp("<empty>");
    };
    this.testSignatureHelp(_function);
}
Also used : StringConcatenation(org.eclipse.xtend2.lib.StringConcatenation) SignatureHelpConfiguration(org.eclipse.xtext.testing.SignatureHelpConfiguration) Test(org.junit.Test) AbstractTestLangLanguageServerTest(org.eclipse.xtext.ide.tests.server.AbstractTestLangLanguageServerTest)

Aggregations

SignatureHelpConfiguration (org.eclipse.xtext.testing.SignatureHelpConfiguration)16 StringConcatenation (org.eclipse.xtend2.lib.StringConcatenation)15 AbstractTestLangLanguageServerTest (org.eclipse.xtext.ide.tests.server.AbstractTestLangLanguageServerTest)15 Test (org.junit.Test)15 Position (org.eclipse.lsp4j.Position)1 SignatureHelp (org.eclipse.lsp4j.SignatureHelp)1 TextDocumentIdentifier (org.eclipse.lsp4j.TextDocumentIdentifier)1 TextDocumentPositionParams (org.eclipse.lsp4j.TextDocumentPositionParams)1 Extension (org.eclipse.xtext.xbase.lib.Extension)1