-
Notifications
You must be signed in to change notification settings - Fork 10
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 #22 from prakanth97/issue_6540
Fix compile-time error logging for user defined module prefix for xmldata
- Loading branch information
Showing
10 changed files
with
99 additions
and
1 deletion.
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
4 changes: 4 additions & 0 deletions
4
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_11/Ballerina.toml
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,4 @@ | ||
[package] | ||
org = "xmldata_test" | ||
name = "sample_11" | ||
version = "0.1.0" |
8 changes: 8 additions & 0 deletions
8
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_11/main.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import ballerina/data.xmldata as xd; | ||
|
||
type UnionType record {|int a;|}|record {|string b;|}; | ||
|
||
public function main() returns error? { | ||
string str = string `{"a": 1, "b": "str"}`; | ||
UnionType _ = check xd:parseString(str); | ||
} |
4 changes: 4 additions & 0 deletions
4
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/Ballerina.toml
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,4 @@ | ||
[package] | ||
org = "xmldata_test" | ||
name = "sample_12" | ||
version = "0.1.0" |
6 changes: 6 additions & 0 deletions
6
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/file_1.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ballerina/data.xmldata as xd; | ||
|
||
public function testFunc() returns error? { | ||
string str = string `{"a": 1, "b": "str"}`; | ||
UnionType _ = check xd:parseString(str); | ||
} |
6 changes: 6 additions & 0 deletions
6
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/file_2.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ballerina/data.xmldata as xd2; | ||
|
||
public function testFunc2() returns error? { | ||
string str = string `{"a": 1, "b": "str"}`; | ||
UnionType _ = check xd2:parseString(str); | ||
} |
6 changes: 6 additions & 0 deletions
6
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/file_3.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import ballerina/data.xmldata; | ||
|
||
public function testFunc3() returns error? { | ||
string str = string `{"a": 1, "b": "str"}`; | ||
UnionType _ = check xmldata:parseString(str); | ||
} |
1 change: 1 addition & 0 deletions
1
compiler-plugin-test/src/test/resources/ballerina_sources/sample_package_12/types.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
type UnionType record {|int a;|}|record {|string b;|}; |
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