This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #740 from Shan1024/fix-multi-level-function-invoca…
…tion-issue Fix multi level function invocation issue
- Loading branch information
Showing
76 changed files
with
2,565 additions
and
1,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/org/ballerinalang/plugins/idea/psi/ReferenceTypeNameNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.ballerinalang.plugins.idea.psi; | ||
|
||
import com.intellij.lang.ASTNode; | ||
import org.antlr.jetbrains.adaptor.psi.ANTLRPsiNode; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class ReferenceTypeNameNode extends ANTLRPsiNode { | ||
|
||
public ReferenceTypeNameNode(@NotNull ASTNode node) { | ||
super(node); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/test/resources/testData/editor/parameterInfo/SDKActionWithMultipleParam.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import ballerina.net.http; | ||
|
||
function main (string[] args) { | ||
http:ClientConnector con = create http:ClientConnector("http://localhost:8080"); | ||
con.get(<caret>) | ||
endpoint<http:HttpClient> httpEndpoint { | ||
create http:HttpClient(<caret>); | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
src/test/resources/testData/editor/parameterInfo/SDKActionWithMultipleParamSecondElement.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import ballerina.net.http; | ||
|
||
function main (string[] args) { | ||
http:ClientConnector con = create http:ClientConnector("http://localhost:8080"); | ||
con.get("",<caret>) | ||
endpoint<http:HttpClient> httpEndpoint { | ||
create http:HttpClient("http://test.com", c<caret>); | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
src/test/resources/testData/editor/parameterInfo/SDKConnectorWithSingleParam.bal
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/test/resources/testData/editor/parameterInfo/SDKFunctionWithMultipleParam.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import ballerina.lang.system; | ||
import ballerina.runtime; | ||
|
||
function main (string[] args) { | ||
system:log(<caret>) | ||
runtime:setProperty(<caret>) | ||
} |
4 changes: 2 additions & 2 deletions
4
...est/resources/testData/editor/parameterInfo/SDKFunctionWithMultipleParamSecondElement.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import ballerina.lang.system; | ||
import ballerina.runtime; | ||
|
||
function main (string[] args) { | ||
system:log(1,<caret>) | ||
runtime:setProperty("hello", <caret>) | ||
} |
4 changes: 2 additions & 2 deletions
4
src/test/resources/testData/editor/parameterInfo/SDKFunctionWithNoParam.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import ballerina.lang.system; | ||
import ballerina.os; | ||
|
||
function main (string[] args) { | ||
system:epochTime(<caret>) | ||
os:getName(<caret>) | ||
} |
4 changes: 2 additions & 2 deletions
4
src/test/resources/testData/editor/parameterInfo/SDKFunctionWithSingleParam.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import ballerina.lang.system; | ||
import ballerina.log; | ||
|
||
function main (string[] args) { | ||
system:println(<caret>) | ||
log:printDebug(<caret>) | ||
} |
49 changes: 0 additions & 49 deletions
49
src/test/resources/testData/mockSdk-0.88/src/ballerina/data/sql/natives.bal
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
src/test/resources/testData/mockSdk-0.88/src/ballerina/data/sql/parameter.bal
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.