From e7f9742c4d8acf8e0871e1e9ec90bd4e7194855f Mon Sep 17 00:00:00 2001 From: ushirask Date: Mon, 27 Mar 2023 13:49:16 +0530 Subject: [PATCH 001/122] Check never type for readonly-ness of a record --- .../semantics/analyzer/SemanticAnalyzer.java | 2 +- .../test/record/ReadonlyRecordFieldTest.java | 6 ++- .../record/readonly_record_fields.bal | 37 +++++++++++++++++++ .../readonly_record_fields_negative.bal | 17 +++++++++ 4 files changed, 60 insertions(+), 2 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java index 51c60c80e963..fb136fb26402 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java @@ -934,7 +934,7 @@ public void visit(BLangRecordTypeNode recordTypeNode, AnalyzerData data) { for (BLangSimpleVariable field : recordFields) { if (field.flagSet.contains(Flag.READONLY)) { handleReadOnlyField(isRecordType, fields, field, data); - } else { + } else if (field.getBType().getKind() != TypeKind.NEVER){ allReadOnlyFields = false; } diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java index ba3179bfc5a8..d3806fe90cbc 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java @@ -61,7 +61,8 @@ public Object[][] readonlyRecordFieldTestFunctions() { {"testTypeReadOnlynessNegativeWithNonReadOnlyFieldsViaInclusion"}, {"testTypeReadOnlynessWithReadOnlyFieldsViaInclusion"}, {"testRecordWithFunctionTypeField"}, - {"testDefaultValueFromCETBeingUsedWithReadOnlyFieldsInTheMappingConstructor"} + {"testDefaultValueFromCETBeingUsedWithReadOnlyFieldsInTheMappingConstructor"}, + {"testNeverFieldRecord1"} }; } @@ -117,6 +118,9 @@ public void testReadonlyRecordFieldsNegative() { validateError(result, index++, "incompatible types: expected 'readonly', found 'Unauthorized?'", 273, 18); validateError(result, index++, "missing non-defaultable required record field 'y'", 285, 42); validateError(result, index++, "incompatible types: expected 'RecordWithReadOnlyFields', found 'int'", 286, 53); + validateError(result, index++, "incompatible types: expected 'readonly', found 'openNeverRecord'", 301, 18); + validateError(result, index++, "incompatible types: expected 'readonly', found 'neverRecordWithNotReadonly'", + 302, 18); assertEquals(result.getErrorCount(), index); } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal index b5abb530194c..51d0329acb28 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal @@ -924,6 +924,43 @@ function assertTrue(any|error actual) { assertEquality(true, actual); } +type neverRecord record {| + never x?; +|}; + +type openNeverRecord record { + never x?; +}; + +type neverRecordWithReadonly record {| + never x?; + readonly int y; +|}; + +type neverRecordWithNotReadonly record {| + never x?; + string y; +|}; + +function testNeverFieldRecord() { + record {| + never x?; + never y?; + |} c = {}; + + readonly d = c; + neverRecord e = {}; + openNeverRecord f = {}; + neverRecordWithReadonly g = { y: 1 }; + neverRecordWithNotReadonly h = { y: "abc" }; + + assertTrue(d is record {|never x?; never y?;|} & readonly); + assertTrue(e is record {|never x?;|} & readonly); + assertTrue(f is record {|never x?; anydata...;|}); + assertTrue(g is record {|never x?; int y;|} & readonly); + assertTrue(h is record {|never x?; string y;|}); +} + function assertFalse(any|error actual) { assertEquality(false, actual); } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal index 64f61343827a..2ff7e681ad23 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal @@ -284,3 +284,20 @@ type RecordWithReadOnlyFields record {| RecordWithReadOnlyFields & readonly r1 = {x: []}; readonly & RecordWithReadOnlyFields & readonly r2 = 1; + +type openNeverRecord record { + never x?; +}; + +type neverRecordWithNotReadonly record {| + never x?; + string y; +|}; + +function testNeverFieldRecord() { + openNeverRecord r1 = {}; + neverRecordWithNotReadonly r2 = {y: "hello"}; + + readonly x = r1; + readonly y = r2; +} \ No newline at end of file From 6de50a8efbd416c60cd55bd513cca96fbf14ae9f Mon Sep 17 00:00:00 2001 From: Ushira Karunasena Date: Mon, 27 Mar 2023 13:52:27 +0530 Subject: [PATCH 002/122] Add new line --- .../test-src/record/readonly_record_fields_negative.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal index 2ff7e681ad23..4192c12980ce 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal @@ -300,4 +300,4 @@ function testNeverFieldRecord() { readonly x = r1; readonly y = r2; -} \ No newline at end of file +} From af240664b38ed2ab2e9c3e34d1c93ea3acf0fa83 Mon Sep 17 00:00:00 2001 From: ushirask Date: Mon, 27 Mar 2023 14:15:30 +0530 Subject: [PATCH 003/122] Fix formatting --- .../compiler/semantics/analyzer/SemanticAnalyzer.java | 2 +- .../ballerinalang/test/record/ReadonlyRecordFieldTest.java | 2 +- .../test/types/readonly/SelectivelyImmutableTypeTest.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java index fb136fb26402..2e66e86fe4bd 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java @@ -934,7 +934,7 @@ public void visit(BLangRecordTypeNode recordTypeNode, AnalyzerData data) { for (BLangSimpleVariable field : recordFields) { if (field.flagSet.contains(Flag.READONLY)) { handleReadOnlyField(isRecordType, fields, field, data); - } else if (field.getBType().getKind() != TypeKind.NEVER){ + } else if (field.getBType().getKind() != TypeKind.NEVER) { allReadOnlyFields = false; } diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java index d3806fe90cbc..4ccbf99a1603 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java @@ -62,7 +62,7 @@ public Object[][] readonlyRecordFieldTestFunctions() { {"testTypeReadOnlynessWithReadOnlyFieldsViaInclusion"}, {"testRecordWithFunctionTypeField"}, {"testDefaultValueFromCETBeingUsedWithReadOnlyFieldsInTheMappingConstructor"}, - {"testNeverFieldRecord1"} + {"testNeverFieldRecord"} }; } diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/readonly/SelectivelyImmutableTypeTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/readonly/SelectivelyImmutableTypeTest.java index fb92b3fc599d..5abcc69f55a8 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/readonly/SelectivelyImmutableTypeTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/readonly/SelectivelyImmutableTypeTest.java @@ -162,11 +162,11 @@ public void testImmutableTypesNegative() { 313, 5); validateError(result, index++, "incompatible types: expected 'never?', found 'stream'", 321, 27); - validateError(result, index++, "incompatible types: expected 'record {| never a?; |}', " + + validateError(result, index++, "incompatible types: expected 'record {| never a?; |} & readonly', " + "found '(R1 & readonly)'", 322, 32); validateError(result, index++, "incompatible types: expected 'never', found 'int'", 331, 35); validateError(result, index++, "incompatible types: expected 'never', found 'stream'", 331, 43); - validateError(result, index++, "incompatible types: expected 'record {| never a?; |}', " + + validateError(result, index++, "incompatible types: expected 'record {| never a?; |} & readonly', " + "found '(R2 & readonly)'", 332, 32); validateError(result, index++, "missing non-defaultable required record field 'a'", 333, 23); validateError(result, index++, "incompatible types: expected 'never', found 'int'", 333, 29); From 7b5985dcc5ea170701328f1404e68ade48faf7e9 Mon Sep 17 00:00:00 2001 From: ushirask Date: Mon, 27 Mar 2023 16:15:47 +0530 Subject: [PATCH 004/122] Fix test cases --- .../org/ballerinalang/test/record/ReadonlyRecordFieldTest.java | 2 +- .../test-src/record/readonly_record_fields_negative.bal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java index 4ccbf99a1603..6eb6d7b7b49a 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java @@ -62,7 +62,7 @@ public Object[][] readonlyRecordFieldTestFunctions() { {"testTypeReadOnlynessWithReadOnlyFieldsViaInclusion"}, {"testRecordWithFunctionTypeField"}, {"testDefaultValueFromCETBeingUsedWithReadOnlyFieldsInTheMappingConstructor"}, - {"testNeverFieldRecord"} + {"testNeverFieldRecordReadonly"} }; } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal index 4192c12980ce..4806a861d678 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal @@ -294,7 +294,7 @@ type neverRecordWithNotReadonly record {| string y; |}; -function testNeverFieldRecord() { +function testNeverFieldRecordReadonly() { openNeverRecord r1 = {}; neverRecordWithNotReadonly r2 = {y: "hello"}; From c3505b44b0398315d61f43d1e6f8928bec44ad1b Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 28 Mar 2023 08:35:52 +0530 Subject: [PATCH 005/122] Fix test cases --- .../org/ballerinalang/test/record/ReadonlyRecordFieldTest.java | 2 +- .../test-src/record/readonly_record_fields_negative.bal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java index 6eb6d7b7b49a..4ccbf99a1603 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java @@ -62,7 +62,7 @@ public Object[][] readonlyRecordFieldTestFunctions() { {"testTypeReadOnlynessWithReadOnlyFieldsViaInclusion"}, {"testRecordWithFunctionTypeField"}, {"testDefaultValueFromCETBeingUsedWithReadOnlyFieldsInTheMappingConstructor"}, - {"testNeverFieldRecordReadonly"} + {"testNeverFieldRecord"} }; } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal index 4806a861d678..4192c12980ce 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal @@ -294,7 +294,7 @@ type neverRecordWithNotReadonly record {| string y; |}; -function testNeverFieldRecordReadonly() { +function testNeverFieldRecord() { openNeverRecord r1 = {}; neverRecordWithNotReadonly r2 = {y: "hello"}; From 44b24cfa63784b7baa86b4b1ecbbf33f838bb1c9 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Thu, 30 Mar 2023 12:26:40 +0530 Subject: [PATCH 006/122] Fix CCE issues in xml and string query expressions --- .../compiler/desugar/QueryDesugar.java | 4 +- .../semantics/analyzer/QueryTypeChecker.java | 7 + .../test/query/StringQueryExpressionTest.java | 5 + .../test/query/XMLQueryExpressionTest.java | 5 + .../query/string-query-expression.bal | 80 ++++++++ .../test-src/query/xml-query-expression.bal | 193 +++++++++++++++++- 6 files changed, 289 insertions(+), 5 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java index e321b68e1eeb..ce8ed750702d 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java @@ -297,13 +297,13 @@ BLangStatementExpression desugar(BLangQueryExpr queryExpr, SymbolEnv env, onConflictExpr = null; } else { BType refType = Types.getReferredType(queryExpr.getBType()); - if (isXml(refType)) { + if (isXml(types.getSafeType(refType, true, true))) { if (types.isSubTypeOfReadOnly(refType, env)) { isReadonly.value = true; } result = getStreamFunctionVariableRef(queryBlock, QUERY_TO_XML_FUNCTION, Lists.of(streamRef, isReadonly), pos); - } else if (TypeTags.isStringTypeTag(refType.tag)) { + } else if (TypeTags.isStringTypeTag(types.getSafeType(refType, true, true).tag)) { result = getStreamFunctionVariableRef(queryBlock, QUERY_TO_STRING_FUNCTION, Lists.of(streamRef), pos); } else { BType arrayType = refType; diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java index 52241ec8775b..5f6ad3d8a490 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java @@ -323,12 +323,19 @@ void solveSelectTypeAndResolveType(BLangQueryExpr queryExpr, BLangExpression sel resolvedType = getResolvedType(selectType, type, isReadonly, env); break; case TypeTags.STRING: + selectType = checkExpr(selectExp, env, type, data); + resolvedType = symTable.stringType; + break; case TypeTags.XML: case TypeTags.XML_COMMENT: case TypeTags.XML_ELEMENT: case TypeTags.XML_PI: case TypeTags.XML_TEXT: selectType = checkExpr(selectExp, env, type, data); + if (types.isAssignable(selectType, symTable.xmlType)) { + resolvedType = getResolvedType(new BXMLType(selectType, null), type, isReadonly, env); + break; + } resolvedType = selectType; break; case TypeTags.INTERSECTION: diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java index ff0f4a261288..78e4f8fc9927 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java @@ -48,6 +48,11 @@ public void testSimpleQueryExprForStringResult() { Assert.assertEquals(returnValues.toString(), "Alex Ranjan John "); } + @Test(description = "Test simple query expression with string result") + public void testSimpleQueryExprForStringResult2() { + BRunUtil.invoke(result, "testSimpleQueryExprForStringResult2"); + } + @Test(description = "Test query expression with where giving string result") public void testQueryExprWithWhereForStringResult() { Object returnValues = BRunUtil.invoke(result, "testQueryExprWithWhereForStringResult"); diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java index 2789de45a60a..7fdd7a227ab9 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java @@ -101,6 +101,11 @@ public void testSimpleQueryExprForXML3() { "30.0029.9949.9939.95"); } + @Test(description = "Test simple query expression for XMLs - #4") + public void testSimpleQueryExprForXML4() { + BRunUtil.invoke(result, "testSimpleQueryExprForXML4"); + } + @Test(description = "Test simple query expression with limit clause for XMLs") public void testQueryExprWithLimitForXML() { Object returnValues = BRunUtil.invoke(result, "testQueryExprWithLimitForXML"); diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal index 84e5f74fc216..5359e1ef2500 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal @@ -41,6 +41,64 @@ function testSimpleQueryExprForStringResult() returns string { return outputNameString; } +type Book record {| + string title; + string author; +|}; + +class BookGenerator { + int i = 0; + + public isolated function next() returns record {|Book value;|}|error? { + self.i += 1; + if (self.i < 0) { + return error("Error"); + } else if (self.i >= 3) { + return (); + } + return { + value: { + title: "Title " + self.i.toString(), author: "Author " + self.i.toString() + } + }; + } +} + +function testSimpleQueryExprForStringResult2() { + error? e = trap simpleQueryExprForStringResult(); + assertFalse(e is error); + + e = trap simpleQueryExprForStringResult2(); + assertFalse(e is error); +} + +function simpleQueryExprForStringResult() returns error? { + string:Char chr = "a"; + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + string strValue = check from Book _ in bookStream + select chr; + + string expectedValue = "aa"; + + assertTrue(strValue is string); + assertEquality(strValue, expectedValue); +} + +function simpleQueryExprForStringResult2() returns error? { + stream bookStream = [{ author: "Author 1", title: "Title 1" }, + {author: "Author 2", title: "Title 2" }].toStream(); + + string strValue = check from Book _ in bookStream + select "a"; + + string expectedValue = "aa"; + + assertTrue(strValue is string); + assertEquality(strValue, expectedValue); +} + function testQueryExprWithWhereForStringResult() returns string { Person p1 = {firstName: "Alex", lastName: "George", age: 23}; Person p2 = {firstName: "Ranjan", lastName: "Fonseka", age: 30}; @@ -336,3 +394,25 @@ function testQueryExprWithLimitForStringResultV2() returns string { return outputNameString; } + +function assertEquality(any|error actual, any|error expected) { + if expected is anydata && actual is anydata && expected == actual { + return; + } + + if expected === actual { + return; + } + + string expectedValAsString = expected is error ? expected.toString() : expected.toString(); + string actualValAsString = actual is error ? actual.toString() : actual.toString(); + panic error("expected '" + expectedValAsString + "', found '" + actualValAsString + "'"); +} + +function assertTrue(any|error actual) { + assertEquality(actual, true); +} + +function assertFalse(any|error actual) { + assertEquality(actual, false); +} diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal index f73b5bbe8576..d782871c2e15 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal @@ -87,6 +87,185 @@ function testSimpleQueryExprForXML3() returns xml { return finalOutput; } +type Book record {| + string title; + string author; +|}; + +class BookGenerator { + int i = 0; + + public isolated function next() returns record {|Book value;|}|error? { + self.i += 1; + if (self.i < 0) { + return error("Error"); + } else if (self.i >= 3) { + return (); + } + return { + value: { + title: "Title " + self.i.toString(), author: "Author " + self.i.toString() + } + }; + } +} + +public function testSimpleQueryExprForXML4() { + error? e = trap simpleQueryExprForXML(); + assertFalse(e is error); + + e = trap simpleQueryExprForXML2(); + assertFalse(e is error); + + e = trap simpleQueryExprForXML3(); + assertFalse(e is error); + + e = trap simpleQueryExprForXML4(); + assertFalse(e is error); + + e = trap simpleQueryExprForXML5(); + assertFalse(e is error); + + e = trap simpleQueryExprForXML6(); + assertFalse(e is error); + + e = trap simpleQueryExprForXML7(); + assertFalse(e is error); +} + +function simpleQueryExprForXML() returns error? { + stream bookStream = [{ author: "Author 1", title: "Title 1" }, + {author: "Author 2", title: "Title 2" }].toStream(); + + xml xmlValue = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml expectedValue = xml ` + Author 1 + Title 1 + + Author 2 + Title 2 + `; + + assertTrue(xmlValue is xml); + assertTrue(xmlValue is xml); + assertEquality(xmlValue, expectedValue); +} + +function simpleQueryExprForXML2() returns error? { + stream bookStream = [{ author: "Author 1", title: "Title 1" }, + {author: "Author 2", title: "Title 2" }].toStream(); + + xml xmlValue = from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml expectedValue = xml ` + Author 1 + Title 1 + + Author 2 + Title 2 + `; + + assertTrue(xmlValue is xml); + assertTrue(xmlValue is xml); + assertEquality(xmlValue, expectedValue); +} + +function simpleQueryExprForXML3() returns error? { + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + xml xmlValue = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml expectedValue = xml ` + Author 1 + Title 1 + + Author 2 + Title 2 + `; + + assertTrue(xmlValue is xml); + assertTrue(xmlValue is xml); + assertEquality(xmlValue, expectedValue); +} + +function simpleQueryExprForXML4() returns error? { + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + xml xmlValue = check from Book book in bookStream + select xml `${book.title} - ${book.author}.`; + + xml expectedValue = xml `Title 1 - Author 1.Title 2 - Author 2.`; + + assertTrue(xmlValue is xml); + assertTrue(xmlValue is xml); + assertEquality(xmlValue.toString(), expectedValue.toString()); +} + +function simpleQueryExprForXML5() returns error? { + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + xml xmlValue = check from Book book in bookStream + select xml ``; + + xml expectedValue = xml ``; + + assertTrue(xmlValue is xml); + assertTrue(xmlValue is xml); + assertEquality(xmlValue, expectedValue); +} + +function simpleQueryExprForXML6() returns error? { + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + xml xmlValue = check from Book _ in bookStream + select xml ``; + + xml expectedValue = xml ``; + + assertTrue(xmlValue is xml); + assertTrue(xmlValue is xml); + assertEquality(xmlValue, expectedValue); +} + +function simpleQueryExprForXML7() returns error? { + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + xml & readonly xmlValue = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml expectedValue = xml ` + Author 1 + Title 1 + + Author 2 + Title 2 + `; + + assertTrue(xmlValue is xml & readonly); + assertEquality(xmlValue, expectedValue); +} + function testQueryExprWithLimitForXML() returns xml { xml bookStore = xml ` @@ -603,7 +782,7 @@ function testSimpleQueryExprForXMLWithReadonly1() { any _ = books1; assertEquality(books1.toString(), (xml `Sherlock Holmes`).toString()); - xml:Element & readonly books2 = from var x in book1 + xml & readonly books2 = from var x in book1 where x is xml:Element select x; any _ = books2; @@ -622,7 +801,7 @@ function testSimpleQueryExprForXMLWithReadonly1() { any _ = cmnt1; assertEquality(cmnt1.toString(), (xml ``).toString()); - xml:Comment & readonly cmnt2 = from var x in comments + xml & readonly cmnt2 = from var x in comments select x; any _ = cmnt2; assertEquality(cmnt2.toString(), (xml ``).toString()); @@ -639,7 +818,7 @@ function testSimpleQueryExprForXMLWithReadonly1() { any _ = pi1; assertEquality(pi1.toString(), (xml ``).toString()); - xml:ProcessingInstruction & readonly pi2 = from var x in processingInstructions + xml & readonly pi2 = from var x in processingInstructions select x; any _ = pi2; assertEquality(pi2.toString(), (xml ``).toString()); @@ -1270,3 +1449,11 @@ function assertEquality(any|error actual, any|error expected) { string actualValAsString = actual is error ? actual.toString() : actual.toString(); panic error("expected '" + expectedValAsString + "', found '" + actualValAsString + "'"); } + +function assertTrue(any|error actual) { + assertEquality(actual, true); +} + +function assertFalse(any|error actual) { + assertEquality(actual, false); +} From 35ec75614ab6aa67688f321ffeb8b3c19441b285 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Mon, 3 Apr 2023 12:08:57 +0530 Subject: [PATCH 007/122] Update select type resolver func with if-else stmt --- .../compiler/desugar/QueryDesugar.java | 5 +- .../semantics/analyzer/QueryTypeChecker.java | 4 +- .../test/query/StringQueryExpressionTest.java | 12 ++- .../test/query/XMLQueryExpressionTest.java | 11 ++- .../string-query-expression-negative.bal | 49 ++++++++++++ .../query/string-query-expression.bal | 16 ++++ .../query/xml-query-expression-negative.bal | 51 ++++++++++++ .../test-src/query/xml-query-expression.bal | 77 +++++++++++++++++++ 8 files changed, 219 insertions(+), 6 deletions(-) create mode 100644 tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java index ce8ed750702d..d9dfc97adc62 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/QueryDesugar.java @@ -297,13 +297,14 @@ BLangStatementExpression desugar(BLangQueryExpr queryExpr, SymbolEnv env, onConflictExpr = null; } else { BType refType = Types.getReferredType(queryExpr.getBType()); - if (isXml(types.getSafeType(refType, true, true))) { + BType safeType = types.getSafeType(refType, true, true); + if (isXml(safeType)) { if (types.isSubTypeOfReadOnly(refType, env)) { isReadonly.value = true; } result = getStreamFunctionVariableRef(queryBlock, QUERY_TO_XML_FUNCTION, Lists.of(streamRef, isReadonly), pos); - } else if (TypeTags.isStringTypeTag(types.getSafeType(refType, true, true).tag)) { + } else if (TypeTags.isStringTypeTag(safeType.tag)) { result = getStreamFunctionVariableRef(queryBlock, QUERY_TO_STRING_FUNCTION, Lists.of(streamRef), pos); } else { BType arrayType = refType; diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java index 5f6ad3d8a490..09cf363d5bbd 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java @@ -334,9 +334,9 @@ void solveSelectTypeAndResolveType(BLangQueryExpr queryExpr, BLangExpression sel selectType = checkExpr(selectExp, env, type, data); if (types.isAssignable(selectType, symTable.xmlType)) { resolvedType = getResolvedType(new BXMLType(selectType, null), type, isReadonly, env); - break; + } else { + resolvedType = selectType; } - resolvedType = selectType; break; case TypeTags.INTERSECTION: type = ((BIntersectionType) type).effectiveType; diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java index 78e4f8fc9927..90c601fafe69 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java @@ -33,11 +33,12 @@ */ public class StringQueryExpressionTest { - private CompileResult result; + private CompileResult result, negativeResult; @BeforeClass public void setup() { result = BCompileUtil.compile("test-src/query/string-query-expression.bal"); + negativeResult = BCompileUtil.compile("test-src/query/string-query-expression-negative.bal"); } @Test(description = "Test simple query expression with string result") @@ -177,6 +178,15 @@ public void testQueryExprWithLimitForStringResultV2() { Assert.assertEquals(returnValues.toString(), "Ranjan John "); } + // issue - #40012 + // @Test(description = "Negative Query expr for String tests") + // public void testNegativeQueryExprForXML() { + // int index = 0; + // validateError(negativeResult, index++, "ambiguous type '[string:Char, string:Char]'", 46, 16); + // validateError(negativeResult, index++, "ambiguous type '[string:Char, string:Char, string:Char]'", 48, 16); + // Assert.assertEquals(negativeResult.getErrorCount(), index); + // } + @AfterClass public void tearDown() { result = null; diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java index 7fdd7a227ab9..a56bcbf709c7 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/XMLQueryExpressionTest.java @@ -71,7 +71,16 @@ public void testNegativeQueryExprForXML() { validateError(negativeResult, index++, "incompatible types: expected 'xml<(xml:ProcessingInstruction & readonly)> & readonly', " + "found 'xml:ProcessingInstruction'", 51, 16); - Assert.assertEquals(negativeResult.getErrorCount(), index); + validateError(negativeResult, index++, + "incompatible types: expected '(xml:Element|error)', found '(xml|error)'", 81, 27); + // issue - #40012 + // validateError(negativeResult, index++, + // "ambiguous type '[xml:Element, xml:Element]'", 88, 16); + // validateError(negativeResult, index++, + // "incompatible types: expected 'xml:Text', found 'xml:Element'", 94, 16); + // validateError(negativeResult, index++, + // "ambiguous type '[xml:Element, xml:Element]'", 99, 16); + Assert.assertEquals(negativeResult.getErrorCount(), index + 3); } @Test(description = "Test simple query expression for XMLs - #1") diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal new file mode 100644 index 000000000000..e37110f50de9 --- /dev/null +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal @@ -0,0 +1,49 @@ +// Copyright (c) 2023 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. +// +// WSO2 Inc. licenses this file to you 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. + +type Book record {| + string title; + string author; +|}; + +class BookGenerator { + int i = 0; + + public isolated function next() returns record {|Book value;|}|error? { + self.i += 1; + if (self.i < 0) { + return error("Error"); + } else if (self.i >= 3) { + return (); + } + return { + value: { + title: "Title " + self.i.toString(), author: "Author " + self.i.toString() + } + }; + } +} + +function testSimpleQueryExprForStringNegative() returns error? { + string:Char chr = "a"; + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + string:Char[]|string _ = check from Book _ in bookStream + select chr; + string:Char[]|int|string _ = check from Book _ in bookStream + select chr; +} diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal index 5359e1ef2500..e17cb5964dd3 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal @@ -70,6 +70,9 @@ function testSimpleQueryExprForStringResult2() { e = trap simpleQueryExprForStringResult2(); assertFalse(e is error); + + e = trap simpleQueryExprForStringResult3(); + assertFalse(e is error); } function simpleQueryExprForStringResult() returns error? { @@ -99,6 +102,19 @@ function simpleQueryExprForStringResult2() returns error? { assertEquality(strValue, expectedValue); } +function simpleQueryExprForStringResult3() returns error? { + string:Char chr = "a"; + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + string:Char[] strValue = check from Book _ in bookStream + select chr; + + assertTrue(strValue is string:Char[]); + assertEquality(strValue[0], chr); + assertEquality(strValue[1], chr); +} + function testQueryExprWithWhereForStringResult() returns string { Person p1 = {firstName: "Alex", lastName: "George", age: 23}; Person p2 = {firstName: "Ranjan", lastName: "Fonseka", age: 30}; diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression-negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression-negative.bal index c41fc6bd5dfc..1ce5826dd512 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression-negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression-negative.bal @@ -50,3 +50,54 @@ function testSimpleQueryExprForXMLWithReadonly1() { xml & readonly _ = from xml:ProcessingInstruction x in processingInstructions select x; } + +type Book record {| + string title; + string author; +|}; + +class BookGenerator { + int i = 0; + + public isolated function next() returns record {|Book value;|}|error? { + self.i += 1; + if (self.i < 0) { + return error("Error"); + } else if (self.i >= 3) { + return (); + } + return { + value: { + title: "Title " + self.i.toString(), author: "Author " + self.i.toString() + } + }; + } +} + +BookGenerator bookGenerator = new (); +stream bookStream = new (bookGenerator); + +function testSimpleQueryExprForXML() { + xml:Element _ = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml:Element|xml _ = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml:Text|xml _ = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + xml:Element[]|xml _ = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; +} diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal index d782871c2e15..6d363b621a0e 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal @@ -131,6 +131,16 @@ public function testSimpleQueryExprForXML4() { e = trap simpleQueryExprForXML7(); assertFalse(e is error); + + // issue - #40012 + // e = trap simpleQueryExprForXML8(); + // assertFalse(e is error); + + e = trap simpleQueryExprForXML9(); + assertFalse(e is error); + + e = trap simpleQueryExprForXML10(); + assertFalse(e is error); } function simpleQueryExprForXML() returns error? { @@ -266,6 +276,73 @@ function simpleQueryExprForXML7() returns error? { assertEquality(xmlValue, expectedValue); } +// issue - #40012 +// function simpleQueryExprForXML8() returns error? { +// BookGenerator bookGenerator = new (); +// stream bookStream = new (bookGenerator); + +// xml|int[] xmlValue = check from Book book in bookStream +// select xml ` +// ${book.author} +// ${book.title} +// `; + +// xml expectedValue = xml ` +// Author 1 +// Title 1 +// +// Author 2 +// Title 2 +// `; + +// assertTrue(xmlValue is xml); +// assertEquality(xmlValue, expectedValue); +// } + +function simpleQueryExprForXML9() returns error? { + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + var xmlValue = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml expectedValue = xml ` + Author 1 + Title 1 + `; + + assertTrue(xmlValue is stream); + assertEquality(( (check xmlValue.next())).value, expectedValue); +} + +function simpleQueryExprForXML10() returns error? { + BookGenerator bookGenerator = new (); + stream bookStream = new (bookGenerator); + + xml:Element[] xmlValue = check from Book book in bookStream + select xml ` + ${book.author} + ${book.title} + `; + + xml expectedValueElement1 = xml ` + Author 1 + Title 1 + `; + xml expectedValueElement2 = xml ` + Author 2 + Title 2 + `; + + assertTrue(xmlValue is xml:Element[]); + assertEquality(xmlValue.length(), 2); + assertEquality(xmlValue[0], expectedValueElement1); + assertEquality(xmlValue[1], expectedValueElement2); +} + function testQueryExprWithLimitForXML() returns xml { xml bookStore = xml ` From 33d8472f23a4b08fc4aaaf6310df019784fee05e Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Fri, 12 May 2023 02:00:12 +0530 Subject: [PATCH 008/122] Remove unnecessary newlines in string query tests --- .../test-src/query/string-query-expression.bal | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal index e17cb5964dd3..c2a8cce04547 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal @@ -79,12 +79,9 @@ function simpleQueryExprForStringResult() returns error? { string:Char chr = "a"; BookGenerator bookGenerator = new (); stream bookStream = new (bookGenerator); - string strValue = check from Book _ in bookStream select chr; - string expectedValue = "aa"; - assertTrue(strValue is string); assertEquality(strValue, expectedValue); } @@ -92,12 +89,9 @@ function simpleQueryExprForStringResult() returns error? { function simpleQueryExprForStringResult2() returns error? { stream bookStream = [{ author: "Author 1", title: "Title 1" }, {author: "Author 2", title: "Title 2" }].toStream(); - string strValue = check from Book _ in bookStream select "a"; - string expectedValue = "aa"; - assertTrue(strValue is string); assertEquality(strValue, expectedValue); } @@ -106,10 +100,8 @@ function simpleQueryExprForStringResult3() returns error? { string:Char chr = "a"; BookGenerator bookGenerator = new (); stream bookStream = new (bookGenerator); - string:Char[] strValue = check from Book _ in bookStream select chr; - assertTrue(strValue is string:Char[]); assertEquality(strValue[0], chr); assertEquality(strValue[1], chr); @@ -119,9 +111,7 @@ function testQueryExprWithWhereForStringResult() returns string { Person p1 = {firstName: "Alex", lastName: "George", age: 23}; Person p2 = {firstName: "Ranjan", lastName: "Fonseka", age: 30}; Person p3 = {firstName: "John", lastName: "David", age: 33}; - Person[] personList = [p1, p2, p3]; - string outputNameString = from var person in personList where person.age >= 30 From ae6e8eb94210f90ff83350a11e3048ce214ded76 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Fri, 12 May 2023 10:52:13 +0530 Subject: [PATCH 009/122] Update license header in string query exp test --- .../ballerinalang/test/query/StringQueryExpressionTest.java | 1 + .../test/resources/test-src/query/string-query-expression.bal | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java index 90c601fafe69..29dbf00143d2 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/StringQueryExpressionTest.java @@ -190,5 +190,6 @@ public void testQueryExprWithLimitForStringResultV2() { @AfterClass public void tearDown() { result = null; + negativeResult = null; } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal index c2a8cce04547..23cd05936c4d 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal @@ -1,6 +1,6 @@ -// Copyright (c) 2020 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. +// Copyright (c) 2020 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. // -// WSO2 Inc. licenses this file to you under the Apache License, +// WSO2 LLC. licenses this file to you 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 From 8c67143d4331adfe9df493e246ef8b6b2df2d213 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Fri, 12 May 2023 10:53:47 +0530 Subject: [PATCH 010/122] Update license heaser in string query neg tests --- .../test-src/query/string-query-expression-negative.bal | 4 ++-- .../test/resources/test-src/query/string-query-expression.bal | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal index e37110f50de9..9a3ab267c216 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression-negative.bal @@ -1,6 +1,6 @@ -// Copyright (c) 2023 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. +// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. // -// WSO2 Inc. licenses this file to you under the Apache License, +// WSO2 LLC. licenses this file to you 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 diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal index 23cd05936c4d..c2a8cce04547 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/string-query-expression.bal @@ -1,6 +1,6 @@ -// Copyright (c) 2020 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. +// Copyright (c) 2020 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. // -// WSO2 LLC. licenses this file to you under the Apache License, +// WSO2 Inc. licenses this file to you 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 From 0fd6261bf47042c566affb8f1c7a297a72b09f83 Mon Sep 17 00:00:00 2001 From: Azeem Muzammil Date: Fri, 28 Apr 2023 11:16:00 +0530 Subject: [PATCH 011/122] Fix generation failure for nested obj with same field name --- .../jsonmapper/JsonToRecordMapper.java | 95 ++++++++++++++----- .../diagnostic/DiagnosticMessage.java | 7 ++ 2 files changed, 79 insertions(+), 23 deletions(-) diff --git a/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/JsonToRecordMapper.java b/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/JsonToRecordMapper.java index a36b27f91c2f..00f538ac7484 100644 --- a/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/JsonToRecordMapper.java +++ b/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/JsonToRecordMapper.java @@ -61,6 +61,7 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Optional; import java.util.function.Function; import java.util.stream.Collectors; @@ -176,10 +177,16 @@ public static JsonToRecordResponse convert(String jsonString, String recordName, return NodeFactory.createTypeDefinitionNode(null, null, typeKeyWord, typeName, entry.getValue(), semicolon); }).collect(Collectors.toList()); - TypeDefinitionNode lastTypeDefNode = convertToInlineRecord(typeDefNodes); - NodeList moduleMembers = isRecordTypeDesc ? - AbstractNodeFactory.createNodeList(lastTypeDefNode) : - AbstractNodeFactory.createNodeList(new ArrayList<>(typeDefNodes)); + + NodeList moduleMembers; + if (isRecordTypeDesc) { + Optional lastTypeDefNode = convertToInlineRecord(typeDefNodes, diagnosticMessages); + moduleMembers = lastTypeDefNode + .>map(AbstractNodeFactory::createNodeList) + .orElseGet(AbstractNodeFactory::createEmptyNodeList); + } else { + moduleMembers = AbstractNodeFactory.createNodeList(new ArrayList<>(typeDefNodes)); + } Token eofToken = AbstractNodeFactory.createIdentifierToken(""); ModulePartNode modulePartNode = NodeFactory.createModulePartNode(imports, moduleMembers, eofToken); @@ -235,21 +242,8 @@ private static void generateRecords(JsonObject jsonObject, String recordName, bo } jsonNodes.put(entry.getKey(), entry.getValue()); } - RecordTypeDescriptorNode previousRecordTypeDescriptorNode = - (RecordTypeDescriptorNode) recordToTypeDescNodes.get(recordName); - List previousRecordFields = previousRecordTypeDescriptorNode.fields().stream() - .map(node -> (RecordFieldNode) node).collect(Collectors.toList()); - Map previousRecordFieldToNodes = previousRecordFields.stream() - .collect(Collectors.toMap(node -> node.fieldName().text(), Function.identity(), - (val1, val2) -> val1, LinkedHashMap::new)); - Map newRecordFieldToNodes = jsonObject.entrySet().stream() - .map(entry -> - (RecordFieldNode) getRecordField(entry, existingFieldNames, updatedFieldNames, false)) - .collect(Collectors.toList()).stream() - .collect(Collectors.toMap(node -> node.fieldName().text(), Function.identity(), - (val1, val2) -> val1, LinkedHashMap::new)); - updateRecordFields(jsonObject, jsonNodes, diagnosticMessages, recordFields, existingFieldNames, - updatedFieldNames, previousRecordFieldToNodes, newRecordFieldToNodes); + prepareAndUpdateRecordFields(jsonObject, recordName, jsonNodes, recordToTypeDescNodes, + diagnosticMessages, recordFields, existingFieldNames, updatedFieldNames, false); } else { for (Map.Entry entry : jsonObject.entrySet()) { if (entry.getValue().isJsonObject() || entry.getValue().isJsonArray()) { @@ -260,6 +254,11 @@ private static void generateRecords(JsonObject jsonObject, String recordName, bo Node recordField = getRecordField(entry, existingFieldNames, updatedFieldNames, false); recordFields.add(recordField); } + if (recordToTypeDescNodes.containsKey(recordName)) { + recordFields.clear(); + prepareAndUpdateRecordFields(jsonObject, recordName, jsonNodes, recordToTypeDescNodes, + diagnosticMessages, recordFields, existingFieldNames, updatedFieldNames, true); + } } NodeList fieldNodes = AbstractNodeFactory.createNodeList(recordFields); Token bodyEndDelimiter = AbstractNodeFactory.createToken(isClosed ? SyntaxKind.CLOSE_BRACE_PIPE_TOKEN : @@ -268,7 +267,7 @@ private static void generateRecords(JsonObject jsonObject, String recordName, bo NodeFactory.createRecordTypeDescriptorNode(recordKeyWord, bodyStartDelimiter, fieldNodes, null, bodyEndDelimiter); - if (moveBefore == null) { + if (moveBefore == null || moveBefore.equals(recordName)) { recordToTypeDescNodes.put(recordName, recordTypeDescriptorNode); } else { List> typeDescNodes = new ArrayList<>(recordToTypeDescNodes.entrySet()); @@ -302,6 +301,49 @@ private static void generateRecordForObjAndArray(JsonElement jsonElement, String } } + /** + * This method prepares the existing fields and new fields to generate updated record fields. + * + * @param jsonObject JSON object node that has to be generated as Ballerina record + * @param recordName Name of the generated record + * @param recordToTypeDescNodes The map of recordNames and the TypeDescriptorNodes already generated + * @param jsonNodes The map of JSON field names and the JSON nodes for already created TypeDescriptorNodes + * @param diagnosticMessages The list of diagnostic messages generated by the method + * @param recordFields The list generated record fields + * @param existingFieldNames The list of already existing record names in the ModulePartNode + * @param updatedFieldNames The map of updated record names for already existing record names in the ModulePartNode + * @param prepareForNestedSameField To denote if the fields are being prepared for normal processing or + * for nested JSON with same field + */ + private static void prepareAndUpdateRecordFields(JsonObject jsonObject, String recordName, + Map jsonNodes, + Map recordToTypeDescNodes, + List diagnosticMessages, + List recordFields, List existingFieldNames, + Map updatedFieldNames, + boolean prepareForNestedSameField) { + RecordTypeDescriptorNode previousRecordTypeDescriptorNode = + (RecordTypeDescriptorNode) recordToTypeDescNodes.get(recordName); + List previousRecordFields = previousRecordTypeDescriptorNode.fields().stream() + .map(node -> (RecordFieldNode) node).collect(Collectors.toList()); + Map previousRecordFieldToNodes = previousRecordFields.stream() + .collect(Collectors.toMap(node -> node.fieldName().text(), Function.identity(), + (val1, val2) -> val1, LinkedHashMap::new)); + Map newRecordFieldToNodes = jsonObject.entrySet().stream() + .map(entry -> + (RecordFieldNode) getRecordField(entry, existingFieldNames, updatedFieldNames, false)) + .collect(Collectors.toList()).stream() + .collect(Collectors.toMap(node -> node.fieldName().text(), Function.identity(), + (val1, val2) -> val1, LinkedHashMap::new)); + if (prepareForNestedSameField) { + updateRecordFields(jsonObject, jsonNodes, diagnosticMessages, recordFields, existingFieldNames, + updatedFieldNames, newRecordFieldToNodes, previousRecordFieldToNodes); + } else { + updateRecordFields(jsonObject, jsonNodes, diagnosticMessages, recordFields, existingFieldNames, + updatedFieldNames, previousRecordFieldToNodes, newRecordFieldToNodes); + } + } + /** * This method updates the record fields already generated, if the fields are optional. * @@ -450,9 +492,11 @@ private static Node getRecordField(Map.Entry entry, List typeDefNodes) { + private static Optional convertToInlineRecord(List typeDefNodes, + List diagnosticMessages) { Map visitedRecordTypeDescNodeTypeToNodes = new LinkedHashMap<>(); for (TypeDefinitionNode typeDefNode : typeDefNodes) { RecordTypeDescriptorNode recordTypeDescNode = (RecordTypeDescriptorNode) typeDefNode.typeDescriptor(); @@ -463,6 +507,11 @@ private static TypeDefinitionNode convertToInlineRecord(List TypeDescriptorNode fieldTypeName = (TypeDescriptorNode) recordFieldNode.typeName(); TypeDescriptorNode converted = convertUnionTypeToInline(fieldTypeName, visitedRecordTypeDescNodeTypeToNodes); + if (converted == null) { + DiagnosticMessage message = DiagnosticMessage.jsonToRecordConverter107(null); + diagnosticMessages.add(message); + return Optional.empty(); + } Token semicolonToken = AbstractNodeFactory.createToken(SyntaxKind.SEMICOLON_TOKEN); RecordFieldNode updatedRecordFieldNode = NodeFactory.createRecordFieldNode(null, null, converted, recordFieldNode.fieldName(), @@ -483,8 +532,8 @@ private static TypeDefinitionNode convertToInlineRecord(List IdentifierToken typeName = AbstractNodeFactory.createIdentifierToken(escapeIdentifier(lastRecordTypeDescNode.getKey())); Token semicolon = AbstractNodeFactory.createToken(SyntaxKind.SEMICOLON_TOKEN); - return NodeFactory.createTypeDefinitionNode(null, null, typeKeyWord, typeName, - lastRecordTypeDescNode.getValue(), semicolon); + return Optional.of(NodeFactory.createTypeDefinitionNode(null, null, typeKeyWord, typeName, + lastRecordTypeDescNode.getValue(), semicolon)); } /** diff --git a/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/diagnostic/DiagnosticMessage.java b/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/diagnostic/DiagnosticMessage.java index a790af3eb739..1a5b521a04f8 100644 --- a/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/diagnostic/DiagnosticMessage.java +++ b/misc/json-to-record-converter/src/main/java/io/ballerina/jsonmapper/diagnostic/DiagnosticMessage.java @@ -120,4 +120,11 @@ public static DiagnosticMessage jsonToRecordConverter106(Object[] args) { "Few of the records are renamed. " + "Consider rename it back to a meaningful name.", DiagnosticSeverity.INFO, null); } + + public static DiagnosticMessage jsonToRecordConverter107(Object[] args) { + return new DiagnosticMessage("JSON_TO_RECORD_CONVERTER_107", + "Proper inline record cannot be generated due to the nested structure of the JSON. " + + "This will cause infinite record nesting.", + DiagnosticSeverity.ERROR, args); + } } From 608deb3c5b91ab61e58624f208fe4fb517e8d040 Mon Sep 17 00:00:00 2001 From: Azeem Muzammil Date: Fri, 28 Apr 2023 11:17:01 +0530 Subject: [PATCH 012/122] Add testcases to address the generation failure --- .../jsonmapper/JsonToRecordMapperTests.java | 25 +++++++++ .../test/resources/ballerina/sample_14.bal | 33 ++++++++++++ .../src/test/resources/json/sample_14.json | 54 +++++++++++++++++++ 3 files changed, 112 insertions(+) create mode 100644 misc/json-to-record-converter/src/test/resources/ballerina/sample_14.bal create mode 100644 misc/json-to-record-converter/src/test/resources/json/sample_14.json diff --git a/misc/json-to-record-converter/src/test/java/io/ballerina/jsonmapper/JsonToRecordMapperTests.java b/misc/json-to-record-converter/src/test/java/io/ballerina/jsonmapper/JsonToRecordMapperTests.java index fc77cb56cd4b..8533539d383e 100644 --- a/misc/json-to-record-converter/src/test/java/io/ballerina/jsonmapper/JsonToRecordMapperTests.java +++ b/misc/json-to-record-converter/src/test/java/io/ballerina/jsonmapper/JsonToRecordMapperTests.java @@ -134,6 +134,11 @@ public class JsonToRecordMapperTests { private final Path sample13Json = RES_DIR.resolve(JSON_DIR) .resolve("sample_13.json"); + private final Path sample14Json = RES_DIR.resolve(JSON_DIR) + .resolve("sample_14.json"); + private final Path sample14Bal = RES_DIR.resolve(BAL_DIR) + .resolve("sample_14.bal"); + private final Path singleBalFile = RES_DIR.resolve(PROJECT_DIR).resolve(SOURCE_DIR) .resolve("singleFileProject").resolve("SingleBalFile.bal"); @@ -400,6 +405,26 @@ public void testForUserDefinedRecordNameWithSpecialChars() throws IOException { Assert.assertEquals(generatedCodeBlock, expectedCodeBlock); } + @Test(description = "Test for nested JSON with same recurring field") + public void testForJsonWithRecurringFieldName() throws IOException { + String jsonFileContent = Files.readString(sample14Json); + String generatedCodeBlock = JsonToRecordMapper.convert(jsonFileContent, "", false, false, false, null, null) + .getCodeBlock().replaceAll("\\s+", ""); + String expectedCodeBlock = Files.readString(sample14Bal).replaceAll("\\s+", ""); + Assert.assertEquals(generatedCodeBlock, expectedCodeBlock); + } + + @Test(description = "Test for nested JSON with same recurring field to generate inline record") + public void testForJsonWithRecurringFieldNameToGenerateInlineRecord() throws IOException { + String jsonFileContent = Files.readString(sample14Json); + List diagnostics = + JsonToRecordMapper.convert(jsonFileContent, "", true, false, false, null, null).getDiagnostics(); + String diagnosticMessage = "Proper inline record cannot be generated due to the nested structure " + + "of the JSON. This will cause infinite record nesting."; + Assert.assertEquals(diagnostics.size(), 1); + Assert.assertEquals(diagnostics.get(0).message(), diagnosticMessage); + } + @Test(description = "Test Choreo Transformation and Data Mapping Payloads") public void testChoreoTransPayloads() throws IOException { Map samples = new HashMap<>(); diff --git a/misc/json-to-record-converter/src/test/resources/ballerina/sample_14.bal b/misc/json-to-record-converter/src/test/resources/ballerina/sample_14.bal new file mode 100644 index 000000000000..c32edef3a36e --- /dev/null +++ b/misc/json-to-record-converter/src/test/resources/ballerina/sample_14.bal @@ -0,0 +1,33 @@ +type Items record { + string 'type; + string default?; + string example?; + int minItems?; + Items items?; +}; + +type OneOfItem record { + string 'type; + string example?; + Items items?; + int minItems?; + string default?; +}; + +type Foo record { + (Bar|string) bar; +}; + +type Bar record { + Foo foo; + (int|string) baz; + Bar bar?; +}; + +type NewRecord record { + string description; + string default; + boolean nullable; + OneOfItem[] oneOf; + Foo foo; +}; diff --git a/misc/json-to-record-converter/src/test/resources/json/sample_14.json b/misc/json-to-record-converter/src/test/resources/json/sample_14.json new file mode 100644 index 000000000000..8c35d90c7301 --- /dev/null +++ b/misc/json-to-record-converter/src/test/resources/json/sample_14.json @@ -0,0 +1,54 @@ +{ + "description": "The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.\n\nNote that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.\n", + "default": "<|endoftext|>", + "nullable": true, + "oneOf": [ + { + "type": "string", + "default": "", + "example": "This is a test." + }, + { + "type": "array", + "items": { + "type": "string", + "default": "", + "example": "This is a test." + } + }, + { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + }, + "example": "[1212, 318, 257, 1332, 13]" + }, + { + "type": "array", + "minItems": 1, + "items": { + "type": "array", + "minItems": 1, + "items": { + "type": "integer" + } + }, + "example": "[[1212, 318, 257, 1332, 13]]" + } + ], + "foo": { + "bar": { + "foo": { + "bar": "Bar Text" + }, + "bar": { + "baz": "Baz Text", + "foo": { + "bar": "Bar Text" + } + }, + "baz": 12 + } + } +} From e83864765d485f7bae9c8bcd6807affca12aa786 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Mon, 22 May 2023 13:09:14 +0530 Subject: [PATCH 013/122] Fix invalid diagnostics in regex general category --- .../compiler/internal/parser/RegExpLexer.java | 39 +- .../RegExpConstructorExprTest.java | 8 + .../regexp_constructor_assert_50.json | 40 +- .../regexp_constructor_assert_54.json | 2922 +++++++++++++++++ .../regexp_constructor_assert_55.json | 281 ++ .../regexp_constructor_source_54.bal | 32 + .../regexp_constructor_source_55.bal | 4 + 7 files changed, 3278 insertions(+), 48 deletions(-) create mode 100644 compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_54.json create mode 100644 compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_55.json create mode 100644 compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_54.bal create mode 100644 compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_55.bal diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java index 50072479802a..2b1f59e8de37 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java @@ -286,9 +286,9 @@ private void processAbbrWithLetter() { case 'm': case 'o': this.reader.advance(); - break; + return; default: - break; + checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -298,9 +298,9 @@ private void processAbbrWithMark() { case 'c': case 'e': this.reader.advance(); - break; + return; default: - break; + checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -310,9 +310,9 @@ private void processAbbrWithNumber() { case 'l': case 'o': this.reader.advance(); - break; + return; default: - break; + checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -323,9 +323,9 @@ private void processAbbrWithSymbol() { case 'k': case 'o': this.reader.advance(); - break; + return; default: - break; + checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -339,9 +339,9 @@ private void processAbbrWithPunctuation() { case 'f': case 'o': this.reader.advance(); - break; + return; default: - break; + checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -351,9 +351,9 @@ private void processAbbrWithSeparator() { case 'l': case 'p': this.reader.advance(); - break; + return; default: - break; + checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -364,9 +364,20 @@ private void processAbbrWithOther() { case 'o': case 'n': this.reader.advance(); - break; + return; default: - break; + checkInvalidTokenInUnicodeGeneralCategory(); + } + } + + private void checkInvalidTokenInUnicodeGeneralCategory() { + boolean invalidCharacterFound = false; + while (!isEndOfUnicodePropertyEscape()) { + invalidCharacterFound = true; + this.reader.advance(); + } + if (invalidCharacterFound) { + reportLexerError(DiagnosticErrorCode.ERROR_INVALID_TOKEN_IN_REG_EXP); } } diff --git a/compiler/ballerina-parser/src/test/java/io/ballerinalang/compiler/parser/test/syntax/expressions/RegExpConstructorExprTest.java b/compiler/ballerina-parser/src/test/java/io/ballerinalang/compiler/parser/test/syntax/expressions/RegExpConstructorExprTest.java index 9302e8fb0269..307bed35606d 100644 --- a/compiler/ballerina-parser/src/test/java/io/ballerinalang/compiler/parser/test/syntax/expressions/RegExpConstructorExprTest.java +++ b/compiler/ballerina-parser/src/test/java/io/ballerinalang/compiler/parser/test/syntax/expressions/RegExpConstructorExprTest.java @@ -342,4 +342,12 @@ public void testInvalidRegExpWithBacktick() { testFile("regexp-constructor-expr/regexp_constructor_source_53.bal", "regexp-constructor-expr/regexp_constructor_assert_53.json"); } + + @Test + public void testInvalidRegExpWithGeneralCategory() { + testFile("regexp-constructor-expr/regexp_constructor_source_54.bal", + "regexp-constructor-expr/regexp_constructor_assert_54.json"); + testFile("regexp-constructor-expr/regexp_constructor_source_55.bal", + "regexp-constructor-expr/regexp_constructor_assert_55.json"); + } } diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json index 0f99dc079202..5bdc6fab5f97 100644 --- a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json @@ -1398,6 +1398,7 @@ }, { "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, "children": [ { "kind": "RE_UNICODE_GENERAL_CATEGORY_START", @@ -1405,7 +1406,11 @@ }, { "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", - "value": "L" + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Letter" } ] }, @@ -1420,39 +1425,6 @@ ] } ] - }, - { - "kind": "RE_ATOM_QUANTIFIER", - "hasDiagnostics": true, - "children": [ - { - "kind": "BACK_SLASH_TOKEN", - "isMissing": true, - "hasDiagnostics": true, - "diagnostics": [ - "ERROR_MISSING_BACKSLASH" - ], - "trailingMinutiae": [ - { - "kind": "INVALID_NODE_MINUTIAE", - "invalidNode": { - "kind": "INVALID_TOKEN_MINUTIAE_NODE", - "hasDiagnostics": true, - "children": [ - { - "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", - "hasDiagnostics": true, - "diagnostics": [ - "ERROR_INVALID_TOKEN_IN_REG_EXP" - ], - "value": "etter" - } - ] - } - } - ] - } - ] } ] } diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_54.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_54.json new file mode 100644 index 000000000000..49d91f9aa502 --- /dev/null +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_54.json @@ -0,0 +1,2922 @@ +{ + "kind": "FUNCTION_DEFINITION", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "children": [] + }, + { + "kind": "FUNCTION_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "IDENTIFIER_TOKEN", + "value": "testInvalidRegex" + }, + { + "kind": "LIST", + "children": [] + }, + { + "kind": "FUNCTION_SIGNATURE", + "children": [ + { + "kind": "OPEN_PAREN_TOKEN" + }, + { + "kind": "LIST", + "children": [] + }, + { + "kind": "CLOSE_PAREN_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "FUNCTION_BODY_BLOCK", + "hasDiagnostics": true, + "children": [ + { + "kind": "OPEN_BRACE_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Lz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kLz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "L2z" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + }, + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Mz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kMz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "M2z" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + }, + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Nz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kNz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "N2z" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + }, + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Sz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kSz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "S2z" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + }, + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Pz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kPz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "P2z" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + }, + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Zt" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kZt" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Z2t" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + }, + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Cz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kCz" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "C2z" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + }, + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "L!!" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN", + "isMissing": true, + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_MISSING_CLOSE_BRACE_TOKEN" + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "kLabcd.!;{" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN", + "isMissing": true, + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_MISSING_CLOSE_BRACE_TOKEN" + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + } + ] +} diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_55.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_55.json new file mode 100644 index 000000000000..55cca7e82163 --- /dev/null +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_55.json @@ -0,0 +1,281 @@ +{ + "kind": "FUNCTION_DEFINITION", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "children": [] + }, + { + "kind": "FUNCTION_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "IDENTIFIER_TOKEN", + "value": "testInvalidRegex" + }, + { + "kind": "LIST", + "children": [] + }, + { + "kind": "FUNCTION_SIGNATURE", + "children": [ + { + "kind": "OPEN_PAREN_TOKEN" + }, + { + "kind": "LIST", + "children": [] + }, + { + "kind": "CLOSE_PAREN_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "FUNCTION_BODY_BLOCK", + "hasDiagnostics": true, + "children": [ + { + "kind": "OPEN_BRACE_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "ASSIGNMENT_STATEMENT", + "hasDiagnostics": true, + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "REGEX_TEMPLATE_EXPRESSION", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_KEYWORD", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + }, + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_SEQUENCE", + "hasDiagnostics": true, + "children": [ + { + "kind": "LIST", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_ATOM_QUANTIFIER", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "value": "L" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN", + "isMissing": true, + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_MISSING_CLOSE_BRACE_TOKEN" + ] + } + ] + } + ] + } + ] + } + ] + } + ] + }, + { + "kind": "BACKTICK_TOKEN" + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + }, + { + "kind": "ASSIGNMENT_STATEMENT", + "children": [ + { + "kind": "WILDCARD_BINDING_PATTERN", + "children": [ + { + "kind": "UNDERSCORE_KEYWORD", + "leadingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ], + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "EQUAL_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "BINARY_EXPRESSION", + "children": [ + { + "kind": "NUMERIC_LITERAL", + "children": [ + { + "kind": "DECIMAL_INTEGER_LITERAL_TOKEN", + "value": "1", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + } + ] + }, + { + "kind": "PLUS_TOKEN", + "trailingMinutiae": [ + { + "kind": "WHITESPACE_MINUTIAE", + "value": " " + } + ] + }, + { + "kind": "NUMERIC_LITERAL", + "children": [ + { + "kind": "DECIMAL_INTEGER_LITERAL_TOKEN", + "value": "2" + } + ] + } + ] + }, + { + "kind": "SEMICOLON_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN", + "trailingMinutiae": [ + { + "kind": "END_OF_LINE_MINUTIAE", + "value": "\n" + } + ] + } + ] + } + ] +} diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_54.bal b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_54.bal new file mode 100644 index 000000000000..028494e57867 --- /dev/null +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_54.bal @@ -0,0 +1,32 @@ +function testInvalidRegex() { + _ = re `\p{Lz}`; + _ = re `\p{kLz}`; + _ = re `\p{L2z}`; + + _ = re `\p{Mz}`; + _ = re `\p{kMz}`; + _ = re `\p{M2z}`; + + _ = re `\p{Nz}`; + _ = re `\p{kNz}`; + _ = re `\p{N2z}`; + + _ = re `\p{Sz}`; + _ = re `\p{kSz}`; + _ = re `\p{S2z}`; + + _ = re `\p{Pz}`; + _ = re `\p{kPz}`; + _ = re `\p{P2z}`; + + _ = re `\p{Zt}`; + _ = re `\p{kZt}`; + _ = re `\p{Z2t}`; + + _ = re `\p{Cz}`; + _ = re `\p{kCz}`; + _ = re `\p{C2z}`; + + _ = re `\p{L!!`; + _ = re `\p{kLabcd.!;{`; +} diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_55.bal b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_55.bal new file mode 100644 index 000000000000..d57d9928e2ec --- /dev/null +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_source_55.bal @@ -0,0 +1,4 @@ +function testInvalidRegex() { + _ = re `\p{L`; + _ = 1 + 2; +} From c8c1589058eda1aac070845e086f2bc07784a12c Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Thu, 1 Jun 2023 11:42:08 +0530 Subject: [PATCH 014/122] Update processReUnicodeGeneralCategoryAbbr for err --- .../compiler/internal/parser/RegExpLexer.java | 36 +---- .../regexp_constructor_assert_50.json | 138 +++++++----------- 2 files changed, 59 insertions(+), 115 deletions(-) diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java index 2b1f59e8de37..a999e9ed8ced 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java @@ -268,13 +268,14 @@ private STToken processReUnicodeGeneralCategoryAbbr() { this.reader.advance(); processAbbrWithOther(); break; - default: - while (!isEndOfUnicodePropertyEscape()) { - this.reader.advance(); - } - reportLexerError(DiagnosticErrorCode.ERROR_INVALID_TOKEN_IN_REG_EXP); } + if (!isEndOfUnicodePropertyEscape()) { + while (!isEndOfUnicodePropertyEscape()) { + this.reader.advance(); + } + reportLexerError(DiagnosticErrorCode.ERROR_INVALID_TOKEN_IN_REG_EXP); + } return getRegExpText(SyntaxKind.RE_UNICODE_GENERAL_CATEGORY_NAME); } @@ -287,8 +288,6 @@ private void processAbbrWithLetter() { case 'o': this.reader.advance(); return; - default: - checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -299,8 +298,6 @@ private void processAbbrWithMark() { case 'e': this.reader.advance(); return; - default: - checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -311,8 +308,6 @@ private void processAbbrWithNumber() { case 'o': this.reader.advance(); return; - default: - checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -324,8 +319,6 @@ private void processAbbrWithSymbol() { case 'o': this.reader.advance(); return; - default: - checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -340,8 +333,6 @@ private void processAbbrWithPunctuation() { case 'o': this.reader.advance(); return; - default: - checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -352,8 +343,6 @@ private void processAbbrWithSeparator() { case 'p': this.reader.advance(); return; - default: - checkInvalidTokenInUnicodeGeneralCategory(); } } @@ -365,19 +354,6 @@ private void processAbbrWithOther() { case 'n': this.reader.advance(); return; - default: - checkInvalidTokenInUnicodeGeneralCategory(); - } - } - - private void checkInvalidTokenInUnicodeGeneralCategory() { - boolean invalidCharacterFound = false; - while (!isEndOfUnicodePropertyEscape()) { - invalidCharacterFound = true; - this.reader.advance(); - } - if (invalidCharacterFound) { - reportLexerError(DiagnosticErrorCode.ERROR_INVALID_TOKEN_IN_REG_EXP); } } diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json index 5bdc6fab5f97..9b5fdfe332f7 100644 --- a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_50.json @@ -1761,124 +1761,92 @@ "kind": "OPEN_BRACKET_TOKEN" }, { - "kind": "RE_CHAR_SET_ATOM_WITH_RE_CHAR_SET_NO_DASH", + "kind": "RE_CHAR_SET_RANGE_WITH_RE_CHAR_SET", "hasDiagnostics": true, "children": [ { - "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "kind": "RE_CHAR_SET_RANGE", "hasDiagnostics": true, "children": [ { - "kind": "BACK_SLASH_TOKEN" - }, - { - "kind": "RE_PROPERTY", - "value": "p" + "kind": "RE_UNICODE_PROPERTY_ESCAPE", + "hasDiagnostics": true, + "children": [ + { + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "RE_PROPERTY", + "value": "p" + }, + { + "kind": "OPEN_BRACE_TOKEN" + }, + { + "kind": "RE_UNICODE_GENERAL_CATEGORY", + "hasDiagnostics": true, + "children": [ + { + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Script\u003dHiragana" + } + ] + }, + { + "kind": "CLOSE_BRACE_TOKEN" + } + ] }, { - "kind": "OPEN_BRACE_TOKEN" + "kind": "RE_LITERAL_CHAR", + "value": "-" }, { - "kind": "RE_UNICODE_GENERAL_CATEGORY", + "kind": "RE_QUOTE_ESCAPE", "children": [ { - "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", - "value": "Sc" + "kind": "BACK_SLASH_TOKEN" + }, + { + "kind": "BACK_SLASH_TOKEN" } ] - }, - { - "kind": "CLOSE_BRACE_TOKEN", - "isMissing": true, - "hasDiagnostics": true, - "diagnostics": [ - "ERROR_MISSING_CLOSE_BRACE_TOKEN" - ] } ] }, { - "kind": "RE_CHAR_SET_ATOM_NO_DASH_WITH_RE_CHAR_SET_NO_DASH", + "kind": "RE_CHAR_SET_ATOM_WITH_RE_CHAR_SET_NO_DASH", "hasDiagnostics": true, "children": [ { - "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", - "hasDiagnostics": true, - "diagnostics": [ - "ERROR_INVALID_TOKEN_IN_REG_EXP" - ], - "value": "ript\u003dHiragana" + "kind": "RE_PROPERTY", + "value": "p" }, { - "kind": "RE_CHAR_SET_RANGE_NO_DASH_WITH_RE_CHAR_SET", + "kind": "RE_CHAR_SET_ATOM_NO_DASH_WITH_RE_CHAR_SET_NO_DASH", "hasDiagnostics": true, "children": [ { - "kind": "RE_CHAR_SET_RANGE_NO_DASH", - "children": [ - { - "kind": "CLOSE_BRACE_TOKEN" - }, - { - "kind": "RE_LITERAL_CHAR", - "value": "-" - }, - { - "kind": "RE_QUOTE_ESCAPE", - "children": [ - { - "kind": "BACK_SLASH_TOKEN" - }, - { - "kind": "BACK_SLASH_TOKEN" - } - ] - } - ] + "kind": "OPEN_BRACE_TOKEN" }, { - "kind": "RE_CHAR_SET_ATOM_WITH_RE_CHAR_SET_NO_DASH", + "kind": "RE_CHAR_SET_ATOM_NO_DASH_WITH_RE_CHAR_SET_NO_DASH", "hasDiagnostics": true, "children": [ { - "kind": "RE_PROPERTY", - "value": "p" + "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", + "hasDiagnostics": true, + "diagnostics": [ + "ERROR_INVALID_TOKEN_IN_REG_EXP" + ], + "value": "Script\u003dKatakana" }, { - "kind": "RE_CHAR_SET_ATOM_NO_DASH_WITH_RE_CHAR_SET_NO_DASH", - "hasDiagnostics": true, - "children": [ - { - "kind": "OPEN_BRACE_TOKEN" - }, - { - "kind": "RE_CHAR_SET_ATOM_NO_DASH_WITH_RE_CHAR_SET_NO_DASH", - "hasDiagnostics": true, - "children": [ - { - "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", - "value": "Sc" - }, - { - "kind": "RE_CHAR_SET_ATOM_NO_DASH_WITH_RE_CHAR_SET_NO_DASH", - "hasDiagnostics": true, - "children": [ - { - "kind": "RE_UNICODE_GENERAL_CATEGORY_NAME", - "hasDiagnostics": true, - "diagnostics": [ - "ERROR_INVALID_TOKEN_IN_REG_EXP" - ], - "value": "ript\u003dKatakana" - }, - { - "kind": "CLOSE_BRACE_TOKEN" - } - ] - } - ] - } - ] + "kind": "CLOSE_BRACE_TOKEN" } ] } From 787efac62205ab0048b89c2c541eed209e229cd5 Mon Sep 17 00:00:00 2001 From: Sasindu Alahakoon Date: Thu, 1 Jun 2023 14:50:17 +0530 Subject: [PATCH 015/122] Add default for procesReUnicodeGeneralCategryAbbr --- .../java/io/ballerina/compiler/internal/parser/RegExpLexer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java index a999e9ed8ced..727fbfcac33f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java @@ -268,6 +268,8 @@ private STToken processReUnicodeGeneralCategoryAbbr() { this.reader.advance(); processAbbrWithOther(); break; + default: + break; } if (!isEndOfUnicodePropertyEscape()) { From a5a37ace1708985abfe929702d302fae1546ec99 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Mon, 5 Jun 2023 10:17:09 +0530 Subject: [PATCH 016/122] Add check to filter listener from classes --- .../org/ballerinalang/docgen/Generator.java | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java index 54eeb2ef0f51..c3998c732914 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java @@ -485,13 +485,38 @@ private static BClass getClassModel(ClassDefinitionNode classDefinitionNode, Sem if (containsToken(classDefinitionNode.classTypeQualifiers(), SyntaxKind.CLIENT_KEYWORD)) { return new Client(name, description, isDeprecated, fields, functions, isReadOnly, isIsolated, isService); } else if (containsToken(classDefinitionNode.classTypeQualifiers(), SyntaxKind.LISTENER_KEYWORD) - || name.equals("Listener")) { + || checkListenerModel(functions)) { return new Listener(name, description, isDeprecated, fields, functions, isReadOnly, isIsolated, isService); } else { return new BClass(name, description, isDeprecated, fields, functions, isReadOnly, isIsolated, isService); } } + private static boolean checkListenerModel(List classFunctions) { + boolean isStartIncluded = false; + boolean isAttachIncluded = false; + boolean isDetachIncluded = false; + boolean isGracefulStopIncluded = false; + boolean isImmediateStopIncluded = false; + + for (Function function : classFunctions) { + if (function.name.equals("'start")) { + isStartIncluded = true; + } else if (function.name.equals("attach")) { + isAttachIncluded = true; + } else if (function.name.equals("detach")) { + isDetachIncluded = true; + } else if (function.name.equals("gracefulStop")) { + isGracefulStopIncluded = true; + } else if (function.name.equals("immediateStop")) { + isImmediateStopIncluded = true; + } + } + + return isStartIncluded && isAttachIncluded && isDetachIncluded && isGracefulStopIncluded && + isImmediateStopIncluded; + } + private static BObjectType getObjectTypeModel(ObjectTypeDescriptorNode typeDescriptorNode, String objectName, Optional optionalMetadataNode, SemanticModel semanticModel, Module module) { From 9d459e3c9b317730871b746a847f06084e09c17f Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Mon, 5 Jun 2023 12:18:15 +0530 Subject: [PATCH 017/122] Fix testListenerModel test --- .../documentation/docerina_project/main.bal | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/docerina_project/main.bal b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/docerina_project/main.bal index ae3308a9b0a1..b86a3836dfd2 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/docerina_project/main.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/docerina_project/main.bal @@ -202,7 +202,16 @@ public class Listener { # ``` # # + return - An `error` if an error occurred during the listener stopping process or else `()` - public function __gracefulStop() returns error? { + public function gracefulStop() returns error? { + } + + # Stops the service listener immediately. Already-accepted requests will be served before the connection closure. + # ```ballerina + # error? result = listenerEp.__immediateStop(); + # ``` + # + # + return - An `error` if an error occurred during the listener stopping process or else `()` + public function immediateStop() returns error? { } # Gets called every time a service attaches itself to this endpoint - also happens at module init time. @@ -215,6 +224,17 @@ public class Listener { # + return - An `error` if encounters an error while attaching the service or else `()` public function attach(int s, string? name = ()) returns error? { } + + # Gets called every time detaches a service itself to this endpoint - also happens at module init time. + # ```ballerina + # error? result = listenerEp.__detach(helloService); + # ``` + # + # + s - The type of the service to be registered + # + name - Name of the service + # + return - An `error` if encounters an error while attaching the service or else `()` + public function detach(int s, string? name = ()) returns error? { + } } # Provides the gRPC remote functions for interacting with caller. From 5543cfaa0e921b503a549f16d4c8e79c580b2d3b Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Mon, 5 Jun 2023 14:30:30 +0530 Subject: [PATCH 018/122] Change method name --- .../src/main/java/org/ballerinalang/docgen/Generator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java index c3998c732914..8c680d29c171 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java @@ -485,14 +485,14 @@ private static BClass getClassModel(ClassDefinitionNode classDefinitionNode, Sem if (containsToken(classDefinitionNode.classTypeQualifiers(), SyntaxKind.CLIENT_KEYWORD)) { return new Client(name, description, isDeprecated, fields, functions, isReadOnly, isIsolated, isService); } else if (containsToken(classDefinitionNode.classTypeQualifiers(), SyntaxKind.LISTENER_KEYWORD) - || checkListenerModel(functions)) { + || isListenerModel(functions)) { return new Listener(name, description, isDeprecated, fields, functions, isReadOnly, isIsolated, isService); } else { return new BClass(name, description, isDeprecated, fields, functions, isReadOnly, isIsolated, isService); } } - private static boolean checkListenerModel(List classFunctions) { + private static boolean isListenerModel(List classFunctions) { boolean isStartIncluded = false; boolean isAttachIncluded = false; boolean isDetachIncluded = false; From c33d580a2a4881a6020becdbe1f16c8482ff1a28 Mon Sep 17 00:00:00 2001 From: SasinduDilshara Date: Tue, 6 Jun 2023 14:28:02 +0530 Subject: [PATCH 019/122] Fix NPE in regex parser with single quantifiers --- .../internal/parser/RegExpParser.java | 4 +- .../regexp_constructor_assert_03.json | 4 ++ .../regexp_constructor_assert_04.json | 4 ++ .../regexp_constructor_assert_19.json | 4 ++ .../regexp_constructor_assert_36.json | 4 ++ .../regexp_constructor_assert_37.json | 4 ++ .../raw-template/assert/regex_expressions.bal | 39 +++++++++++++++++++ .../raw-template/source/regex_expressions.bal | 39 +++++++++++++++++++ 8 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal create mode 100644 misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java index b3375f2b555d..3557b4b65216 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java @@ -504,8 +504,8 @@ private STNode parseBaseQuantifier() { openBrace = invalidateNonDigitNodesAndAddToTrailingMinutiae(openBrace, true); } STNode leastDigits = parseDigits(true); - STNode comma = null; - STNode mostDigits = null; + STNode comma = STNodeFactory.createEmptyNode();; + STNode mostDigits = STNodeFactory.createEmptyNodeList(); nextToken = peek(); if (nextToken.kind == SyntaxKind.COMMA_TOKEN) { comma = consume(); diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_03.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_03.json index 5e2cbb958c84..fb86568adbe7 100644 --- a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_03.json +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_03.json @@ -462,6 +462,10 @@ } ] }, + { + "kind": "LIST", + "children": [] + }, { "kind": "CLOSE_BRACE_TOKEN" } diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_04.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_04.json index ed89c9beb0a0..4b501bb75962 100644 --- a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_04.json +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_04.json @@ -471,6 +471,10 @@ } ] }, + { + "kind": "LIST", + "children": [] + }, { "kind": "CLOSE_BRACE_TOKEN" } diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_19.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_19.json index e2a7c1b5f068..0243e0f6f835 100644 --- a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_19.json +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_19.json @@ -693,6 +693,10 @@ } ] }, + { + "kind": "LIST", + "children": [] + }, { "kind": "CLOSE_BRACE_TOKEN" } diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_36.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_36.json index d820105ec1fe..de9d2c85af26 100644 --- a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_36.json +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_36.json @@ -145,6 +145,10 @@ } ] }, + { + "kind": "LIST", + "children": [] + }, { "kind": "CLOSE_BRACE_TOKEN" } diff --git a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_37.json b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_37.json index 1eaadb05ca27..7abdeb21484a 100644 --- a/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_37.json +++ b/compiler/ballerina-parser/src/test/resources/expressions/regexp-constructor-expr/regexp_constructor_assert_37.json @@ -145,6 +145,10 @@ } ] }, + { + "kind": "LIST", + "children": [] + }, { "kind": "CLOSE_BRACE_TOKEN" } diff --git a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal new file mode 100644 index 000000000000..cf91eae31af4 --- /dev/null +++ b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal @@ -0,0 +1,39 @@ +import ballerina/constraint; + +@constraint:String {pattern: re `[A-Z]{1}`} +public type FlightClass string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3}`} +public type Code string; + +@constraint:String {pattern: re `[A-Z]{1,3}`} +public type FlightClass2 string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3,5}`} +public type Code2 string; + +@constraint:String {pattern: re `[A-Z]{1,}`} +public type FlightClass3 string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} +public type Code3 string; + +@constraint:String {pattern: re `[A-Z]{1,}`} +public type FlightClass4 string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} +public type Code4 string; + +public function main() { + Code code = "A380"; + FlightClass flightclass = "A"; + + Code2 code2 = "A380"; + FlightClass2 flightclass2 = "A"; + + Code3 code3 = "A380"; + FlightClass3 flightclass3 = "A"; + + Code4 code4 = "A380"; + FlightClass4 flightclass4 = "A"; +} diff --git a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal new file mode 100644 index 000000000000..cf91eae31af4 --- /dev/null +++ b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal @@ -0,0 +1,39 @@ +import ballerina/constraint; + +@constraint:String {pattern: re `[A-Z]{1}`} +public type FlightClass string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3}`} +public type Code string; + +@constraint:String {pattern: re `[A-Z]{1,3}`} +public type FlightClass2 string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3,5}`} +public type Code2 string; + +@constraint:String {pattern: re `[A-Z]{1,}`} +public type FlightClass3 string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} +public type Code3 string; + +@constraint:String {pattern: re `[A-Z]{1,}`} +public type FlightClass4 string; + +@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} +public type Code4 string; + +public function main() { + Code code = "A380"; + FlightClass flightclass = "A"; + + Code2 code2 = "A380"; + FlightClass2 flightclass2 = "A"; + + Code3 code3 = "A380"; + FlightClass3 flightclass3 = "A"; + + Code4 code4 = "A380"; + FlightClass4 flightclass4 = "A"; +} From 188f9f3d6f2f9b482c59c1d4f0980cba7104e8b4 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 7 Jun 2023 10:00:29 +0530 Subject: [PATCH 020/122] Address review suggestions --- .../java/org/ballerinalang/docgen/Generator.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java index 8c680d29c171..27d964de5f1e 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java @@ -99,6 +99,11 @@ public class Generator { private static final String EMPTY_STRING = ""; private static final String RETURN_PARAM_NAME = "return"; public static final String REST_FIELD_DESCRIPTION = "Rest field"; + public static final String LISTENER_START_METHOD_NAME = "'start"; + public static final String LISTENER_ATTACH_METHOD_NAME = "attach"; + public static final String LISTENER_DETACH_METHOD_NAME = "detach"; + public static final String LISTENER_IMMEDIATE_STOP_METHOD_NAME = "immediateStop"; + public static final String LISTENER_GRACEFUL_STOP_METHOD_NAME = "gracefulStop"; /** * Generate/Set the module constructs model(docerina model) when the syntax tree for the module is given. @@ -500,15 +505,15 @@ private static boolean isListenerModel(List classFunctions) { boolean isImmediateStopIncluded = false; for (Function function : classFunctions) { - if (function.name.equals("'start")) { + if (function.name.equals(LISTENER_START_METHOD_NAME)) { isStartIncluded = true; - } else if (function.name.equals("attach")) { + } else if (function.name.equals(LISTENER_ATTACH_METHOD_NAME)) { isAttachIncluded = true; - } else if (function.name.equals("detach")) { + } else if (function.name.equals(LISTENER_DETACH_METHOD_NAME)) { isDetachIncluded = true; - } else if (function.name.equals("gracefulStop")) { + } else if (function.name.equals(LISTENER_GRACEFUL_STOP_METHOD_NAME)) { isGracefulStopIncluded = true; - } else if (function.name.equals("immediateStop")) { + } else if (function.name.equals(LISTENER_IMMEDIATE_STOP_METHOD_NAME)) { isImmediateStopIncluded = true; } } From 01d34c1a9cded52a1e880a3db1abccbb48c9adc3 Mon Sep 17 00:00:00 2001 From: SasinduDilshara Date: Wed, 7 Jun 2023 14:24:26 +0530 Subject: [PATCH 021/122] format processReUnicodeGeneralCategoryAbbr method --- .../java/io/ballerina/compiler/internal/parser/RegExpLexer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java index 727fbfcac33f..99b6037888f7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpLexer.java @@ -278,6 +278,7 @@ private STToken processReUnicodeGeneralCategoryAbbr() { } reportLexerError(DiagnosticErrorCode.ERROR_INVALID_TOKEN_IN_REG_EXP); } + return getRegExpText(SyntaxKind.RE_UNICODE_GENERAL_CATEGORY_NAME); } From 4344c7685cfadd52b675c1d448226b6453c05c14 Mon Sep 17 00:00:00 2001 From: SasinduDilshara Date: Wed, 7 Jun 2023 16:31:45 +0530 Subject: [PATCH 022/122] Add regex format test without using constraints --- .../raw-template/assert/regex_expressions.bal | 16 ++++++-------- .../raw-template/source/regex_expressions.bal | 22 +++++++++---------- 2 files changed, 17 insertions(+), 21 deletions(-) diff --git a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal index cf91eae31af4..d0a7bc6e5c95 100644 --- a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal +++ b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal @@ -18,13 +18,7 @@ public type FlightClass3 string; @constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} public type Code3 string; -@constraint:String {pattern: re `[A-Z]{1,}`} -public type FlightClass4 string; - -@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} -public type Code4 string; - -public function main() { +public function test1() { Code code = "A380"; FlightClass flightclass = "A"; @@ -33,7 +27,11 @@ public function main() { Code3 code3 = "A380"; FlightClass3 flightclass3 = "A"; +} - Code4 code4 = "A380"; - FlightClass4 flightclass4 = "A"; +public function test2() { + string:RegExp _ = re `[A-Z]{1}`; + string:RegExp _ = re `[A-Z]{1,2}`; + string:RegExp _ = re `[A-Z]{1,}`; + string:RegExp _ = re `[A-Z]{1}`; } diff --git a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal index cf91eae31af4..a08ad49bab0a 100644 --- a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal +++ b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal @@ -18,22 +18,20 @@ public type FlightClass3 string; @constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} public type Code3 string; -@constraint:String {pattern: re `[A-Z]{1,}`} -public type FlightClass4 string; - -@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} -public type Code4 string; - -public function main() { +public function test1() { Code code = "A380"; - FlightClass flightclass = "A"; + FlightClass flightclass="A"; Code2 code2 = "A380"; - FlightClass2 flightclass2 = "A"; + FlightClass2 flightclass2= "A"; Code3 code3 = "A380"; - FlightClass3 flightclass3 = "A"; + FlightClass3 flightclass3 ="A"; +} - Code4 code4 = "A380"; - FlightClass4 flightclass4 = "A"; +public function test2() { + string:RegExp _=re `[A-Z]{1}`; + string:RegExp _=re `[A-Z]{1,2}`; + string:RegExp _=re `[A-Z]{1,}`; + string:RegExp _= re `[A-Z]{1}`; } From 05765dd8b20c8e269c86ac19cdc81d11927061a8 Mon Sep 17 00:00:00 2001 From: ushirask Date: Thu, 8 Jun 2023 10:29:59 +0530 Subject: [PATCH 023/122] Address review suggestions --- .../semantics/analyzer/SemanticAnalyzer.java | 2 +- .../test-src/record/readonly_record_fields.bal | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java index 2e66e86fe4bd..5acec94ebebe 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java @@ -934,7 +934,7 @@ public void visit(BLangRecordTypeNode recordTypeNode, AnalyzerData data) { for (BLangSimpleVariable field : recordFields) { if (field.flagSet.contains(Flag.READONLY)) { handleReadOnlyField(isRecordType, fields, field, data); - } else if (field.getBType().getKind() != TypeKind.NEVER) { + } else if (field.getBType().tag != TypeTags.NEVER) { allReadOnlyFields = false; } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal index 51d0329acb28..39d6cbbd8bb4 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal @@ -924,15 +924,15 @@ function assertTrue(any|error actual) { assertEquality(true, actual); } -type neverRecord record {| +type RecordWithNeverField record {| never x?; |}; -type openNeverRecord record { +type OpenRecordWithNever record { never x?; }; -type neverRecordWithReadonly record {| +type RecordWithNeverAndReadonly record {| never x?; readonly int y; |}; @@ -944,15 +944,15 @@ type neverRecordWithNotReadonly record {| function testNeverFieldRecord() { record {| - never x?; - never y?; + never x?; + never y?; |} c = {}; readonly d = c; neverRecord e = {}; openNeverRecord f = {}; - neverRecordWithReadonly g = { y: 1 }; - neverRecordWithNotReadonly h = { y: "abc" }; + neverRecordWithReadonly g = {y: 1}; + neverRecordWithNotReadonly h = {y: "abc"}; assertTrue(d is record {|never x?; never y?;|} & readonly); assertTrue(e is record {|never x?;|} & readonly); From 3809883d41a3a24d5d0720648098675960ede55b Mon Sep 17 00:00:00 2001 From: SasinduDilshara Date: Thu, 8 Jun 2023 10:43:57 +0530 Subject: [PATCH 024/122] Add negative tests for invalid unicode categories --- .../langlib/test/LangLibRegexpTest.java | 1 + .../test/types/regexp/RegExpValueTest.java | 15 +++++++++------ .../types/regexp/regexp_value_negative_test.bal | 3 +++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java b/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java index 8d699bdf0a74..a41c796e231c 100644 --- a/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java +++ b/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java @@ -213,6 +213,7 @@ private Object[][] negativeRegexpEmptyCharClass() { {"testNegativeInvalidFlags2"}, {"testNegativeInvalidFlags3"}, {"testNegativeInvalidFlags4"}, + {"testInvalidUnicodeGeneralProperty"} }; } diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/regexp/RegExpValueTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/regexp/RegExpValueTest.java index e8a0a4f7281b..af914a8f46dd 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/regexp/RegExpValueTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/regexp/RegExpValueTest.java @@ -104,13 +104,16 @@ public void testRegExpValueNegative() { validateError(negativeResult, index++, "empty character class disallowed", 34, 27); validateError(negativeResult, index++, "empty character class disallowed", 35, 37); validateError(negativeResult, index++, "empty character class disallowed", 36, 31); + validateError(negativeResult, index++, "invalid token in regular expression", 37, 16); + validateError(negativeResult, index++, "invalid token in regular expression", 38, 16); + validateError(negativeResult, index++, "invalid token in regular expression", 39, 16); validateError(negativeResult, index++, "incompatible types: expected 'boolean', found " + - "'regexp:RegExp'", 37, 9); - validateError(negativeResult, index++, "missing backtick token", 39, 1); - validateError(negativeResult, index++, "missing close brace token", 39, 1); - validateError(negativeResult, index++, "missing colon token", 39, 1); - validateError(negativeResult, index++, "missing expression", 39, 1); - validateError(negativeResult, index++, "missing semicolon token", 39, 1); + "'regexp:RegExp'", 40, 9); + validateError(negativeResult, index++, "missing backtick token", 42, 1); + validateError(negativeResult, index++, "missing close brace token", 42, 1); + validateError(negativeResult, index++, "missing colon token", 42, 1); + validateError(negativeResult, index++, "missing expression", 42, 1); + validateError(negativeResult, index++, "missing semicolon token", 42, 1); assertEquals(negativeResult.getErrorCount(), index); } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_negative_test.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_negative_test.bal index 5e4421c1426d..502b081da7de 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_negative_test.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_negative_test.bal @@ -34,5 +34,8 @@ function testRegExpNegative() { string:RegExp _ = re `[]`; string:RegExp _ = re `(([abc])|([]))`; string:RegExp _ = re `(?: [])`; + _ = re `\p{Lz}`; + _ = re `\p{NNz}`; + _ = re `\p{NN}`; _ = re `[AB\p{gc=Lu}]+` ? `; } From 84e873c197244dd88248a07d9ba4efc44c6a4ed0 Mon Sep 17 00:00:00 2001 From: ushirask Date: Thu, 8 Jun 2023 11:32:40 +0530 Subject: [PATCH 025/122] Address review suggestions --- .../semantics/analyzer/SemanticAnalyzer.java | 2 +- .../test/statements/assign/LValueTest.java | 3 +- .../record/readonly_record_fields.bal | 32 +++++++++++++++---- 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java index 5acec94ebebe..345bd1ea880b 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/SemanticAnalyzer.java @@ -934,7 +934,7 @@ public void visit(BLangRecordTypeNode recordTypeNode, AnalyzerData data) { for (BLangSimpleVariable field : recordFields) { if (field.flagSet.contains(Flag.READONLY)) { handleReadOnlyField(isRecordType, fields, field, data); - } else if (field.getBType().tag != TypeTags.NEVER) { + } else if (!types.isAssignable(field.getBType(), symTable.neverType)) { allReadOnlyFields = false; } diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java index 46f07ad6275b..81e61bdaf277 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java @@ -95,7 +95,8 @@ public void testSemanticsNegativeCases() { validateError(semanticsNegativeResult, i++, "cannot update 'readonly' value of type 'record {| |} & " + "readonly'", 110, 5); // https://github.com/ballerina-platform/ballerina-lang/issues/39933 - validateError(semanticsNegativeResult, i++, "incompatible types: expected 'never', found '()'", 113, 14); + validateError(semanticsNegativeResult, i++, + "cannot update 'readonly' value of type 'record {| never a?; never b?; |} & readonly'", 113, 5); validateError(semanticsNegativeResult, i++, "incompatible types: expected 'int', found '()'", 116, 15); Assert.assertEquals(semanticsNegativeResult.getErrorCount(), i); } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal index 39d6cbbd8bb4..470a34720b03 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal @@ -937,11 +937,21 @@ type RecordWithNeverAndReadonly record {| readonly int y; |}; -type neverRecordWithNotReadonly record {| +type RecordWithNeverWithoutReadonly record {| never x?; string y; |}; +type RecordWithNeverFieldRecord record {| + record {| + never a; + |} x?; + |}; + +type RecordWithNeverUnion record {| + never|never x?; +|}; + function testNeverFieldRecord() { record {| never x?; @@ -949,16 +959,24 @@ function testNeverFieldRecord() { |} c = {}; readonly d = c; - neverRecord e = {}; - openNeverRecord f = {}; - neverRecordWithReadonly g = {y: 1}; - neverRecordWithNotReadonly h = {y: "abc"}; + RecordWithNeverField e = {}; + readonly e1 = e; + OpenRecordWithNever f = {}; + RecordWithNeverAndReadonly g = {y: 1}; + readonly g1 = g; + RecordWithNeverWithoutReadonly h = {y: "abc"}; + RecordWithNeverFieldRecord i = {}; + readonly i1 = i; + RecordWithNeverUnion j = {}; + readonly j1 = j; assertTrue(d is record {|never x?; never y?;|} & readonly); - assertTrue(e is record {|never x?;|} & readonly); + assertTrue(e1 is record {|never x?;|} & readonly); assertTrue(f is record {|never x?; anydata...;|}); - assertTrue(g is record {|never x?; int y;|} & readonly); + assertTrue(g1 is record {|never x?; int y;|} & readonly); assertTrue(h is record {|never x?; string y;|}); + assertTrue(i1 is record {|record {|never a;|} x?;|} & readonly); + assertTrue(j1 is record {|never|never x?;|} & readonly); } function assertFalse(any|error actual) { From 3515654c6a0d48684a10b580ce9575b6d31f9e6d Mon Sep 17 00:00:00 2001 From: SasinduDilshara Date: Tue, 13 Jun 2023 14:44:44 +0530 Subject: [PATCH 026/122] Remove formatter tests that use stdlibs --- .../raw-template/assert/regex_expressions.bal | 49 ++++++++++--------- .../raw-template/source/regex_expressions.bal | 49 ++++++++++--------- 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal index d0a7bc6e5c95..fcba34d7bdf4 100644 --- a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal +++ b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/assert/regex_expressions.bal @@ -1,37 +1,38 @@ -import ballerina/constraint; +type AnnotRec record {| + string:RegExp value; +|}; -@constraint:String {pattern: re `[A-Z]{1}`} -public type FlightClass string; +annotation AnnotRec annot on type; -@constraint:String {pattern: re `[a-zA-Z0-9]{3}`} -public type Code string; - -@constraint:String {pattern: re `[A-Z]{1,3}`} -public type FlightClass2 string; - -@constraint:String {pattern: re `[a-zA-Z0-9]{3,5}`} -public type Code2 string; +@annot { + value: re `abc{1}` +} +type Foo record { + string name; +}; -@constraint:String {pattern: re `[A-Z]{1,}`} -public type FlightClass3 string; +@annot { + value: re `abc{1,}` +} +type Foo2 record { + string name; +}; -@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} -public type Code3 string; +@annot { + value: re `abc{1,2}` +} +type Foo3 record { + string name; +}; public function test1() { - Code code = "A380"; - FlightClass flightclass = "A"; - - Code2 code2 = "A380"; - FlightClass2 flightclass2 = "A"; - - Code3 code3 = "A380"; - FlightClass3 flightclass3 = "A"; + Foo _ = {name: "abc"}; + Foo2 _ = {name: "abc"}; + Foo3 _ = {name: "abc"}; } public function test2() { string:RegExp _ = re `[A-Z]{1}`; string:RegExp _ = re `[A-Z]{1,2}`; string:RegExp _ = re `[A-Z]{1,}`; - string:RegExp _ = re `[A-Z]{1}`; } diff --git a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal index a08ad49bab0a..b1282481d7c1 100644 --- a/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal +++ b/misc/formatter/modules/formatter-core/src/test/resources/expressions/raw-template/source/regex_expressions.bal @@ -1,37 +1,38 @@ -import ballerina/constraint; +type AnnotRec record {| + string:RegExp value; +|}; -@constraint:String {pattern: re `[A-Z]{1}`} -public type FlightClass string; +annotation AnnotRec annot on type; -@constraint:String {pattern: re `[a-zA-Z0-9]{3}`} -public type Code string; - -@constraint:String {pattern: re `[A-Z]{1,3}`} -public type FlightClass2 string; - -@constraint:String {pattern: re `[a-zA-Z0-9]{3,5}`} -public type Code2 string; +@annot { + value: re `abc{1}` +} +type Foo record { + string name; +}; -@constraint:String {pattern: re `[A-Z]{1,}`} -public type FlightClass3 string; +@annot { + value: re `abc{1,}` +} +type Foo2 record { + string name; +}; -@constraint:String {pattern: re `[a-zA-Z0-9]{3,}`} -public type Code3 string; +@annot { + value: re `abc{1,2}` +} +type Foo3 record { + string name; +}; public function test1() { - Code code = "A380"; - FlightClass flightclass="A"; - - Code2 code2 = "A380"; - FlightClass2 flightclass2= "A"; - - Code3 code3 = "A380"; - FlightClass3 flightclass3 ="A"; + Foo _={name: "abc"}; + Foo2 _={name: "abc"}; + Foo3 _={name: "abc"}; } public function test2() { string:RegExp _=re `[A-Z]{1}`; string:RegExp _=re `[A-Z]{1,2}`; string:RegExp _=re `[A-Z]{1,}`; - string:RegExp _= re `[A-Z]{1}`; } From e7cfdbcfd1e344c5da2a54dd83da85f2af405c57 Mon Sep 17 00:00:00 2001 From: SasinduDilshara Date: Tue, 13 Jun 2023 15:06:10 +0530 Subject: [PATCH 027/122] remove unnecessary tests in langlibregexptest --- .../java/org/ballerinalang/langlib/test/LangLibRegexpTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java b/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java index a41c796e231c..f3ff32032166 100644 --- a/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java +++ b/langlib/langlib-test/src/test/java/org/ballerinalang/langlib/test/LangLibRegexpTest.java @@ -212,8 +212,7 @@ private Object[][] negativeRegexpEmptyCharClass() { {"testNegativeInvalidFlags1"}, {"testNegativeInvalidFlags2"}, {"testNegativeInvalidFlags3"}, - {"testNegativeInvalidFlags4"}, - {"testInvalidUnicodeGeneralProperty"} + {"testNegativeInvalidFlags4"} }; } From e77b20a865c207c31635c24ba2f2660ed05ff10a Mon Sep 17 00:00:00 2001 From: SasinduDilshara Date: Tue, 13 Jun 2023 15:20:44 +0530 Subject: [PATCH 028/122] refactor xml query expression bal files --- .../src/test/resources/test-src/query/xml-query-expression.bal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal index 6d363b621a0e..9d641e34b018 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/xml-query-expression.bal @@ -99,7 +99,8 @@ class BookGenerator { self.i += 1; if (self.i < 0) { return error("Error"); - } else if (self.i >= 3) { + } + if (self.i >= 3) { return (); } return { From 6866b24678718f562570aebf1adeac733fcdb0a5 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Thu, 15 Jun 2023 10:36:38 +0530 Subject: [PATCH 029/122] Include new type categories --- .../org/ballerinalang/docgen/Generator.java | 86 +++++++++++++++---- .../docgen/generator/model/MapType.java | 13 +++ .../docgen/generator/model/Module.java | 32 +++++++ .../docgen/generator/model/TableType.java | 34 ++++++++ .../docgen/generator/model/Type.java | 18 +++- 5 files changed, 167 insertions(+), 16 deletions(-) create mode 100644 misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java create mode 100644 misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java index 54eeb2ef0f51..11185abf7918 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java @@ -36,6 +36,7 @@ import io.ballerina.compiler.syntax.tree.FunctionSignatureNode; import io.ballerina.compiler.syntax.tree.IncludedRecordParameterNode; import io.ballerina.compiler.syntax.tree.IntersectionTypeDescriptorNode; +import io.ballerina.compiler.syntax.tree.MapTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.MarkdownCodeBlockNode; import io.ballerina.compiler.syntax.tree.MarkdownCodeLineNode; import io.ballerina.compiler.syntax.tree.MarkdownDocumentationLineNode; @@ -59,6 +60,7 @@ import io.ballerina.compiler.syntax.tree.ReturnTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; import io.ballerina.compiler.syntax.tree.SyntaxTree; +import io.ballerina.compiler.syntax.tree.TableTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.Token; import io.ballerina.compiler.syntax.tree.TupleTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.TypeDefinitionNode; @@ -78,8 +80,10 @@ import org.ballerinalang.docgen.generator.model.Function; import org.ballerinalang.docgen.generator.model.FunctionKind; import org.ballerinalang.docgen.generator.model.Listener; +import org.ballerinalang.docgen.generator.model.MapType; import org.ballerinalang.docgen.generator.model.Module; import org.ballerinalang.docgen.generator.model.Record; +import org.ballerinalang.docgen.generator.model.TableType; import org.ballerinalang.docgen.generator.model.Type; import org.ballerinalang.docgen.generator.model.Variable; import org.ballerinalang.docgen.generator.model.types.FunctionType; @@ -193,7 +197,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul module.errors.add(new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), Type.fromNode(typeDefinition.typeDescriptor(), semanticModel, module))); } else { - module.types.add(getUnionTypeModel(typeDefinition.typeDescriptor(), + module.unionTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); } } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.SIMPLE_NAME_REFERENCE || @@ -203,7 +207,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul module.errors.add(new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), refType)); } else { - module.types.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + module.simpleNameReferenceTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); } } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DISTINCT_TYPE_DESC && @@ -269,23 +273,47 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul } module.errors.add(new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), type)); } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.TUPLE_TYPE_DESC) { - module.types.add(getTupleTypeModel((TupleTypeDescriptorNode) typeDefinition.typeDescriptor(), + module.tupleTypes.add(getTupleTypeModel((TupleTypeDescriptorNode) typeDefinition.typeDescriptor(), + typeName, metaDataNode, semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.TABLE_TYPE_DESC) { + module.tableTypes.add(getTableTypeModel((TableTypeDescriptorNode) typeDefinition.typeDescriptor(), + typeName, metaDataNode, semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.MAP_TYPE_DESC) { + module.mapTypes.add(getMapTypeModel((MapTypeDescriptorNode) typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.INTERSECTION_TYPE_DESC) { addIntersectionTypeModel((IntersectionTypeDescriptorNode) typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module); } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.TYPEDESC_TYPE_DESC) { - module.types.add(getTypeDescModel((ParameterizedTypeDescriptorNode) typeDefinition.typeDescriptor(), - typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.INT_TYPE_DESC || - typeDefinition.typeDescriptor().kind() == SyntaxKind.DECIMAL_TYPE_DESC || - typeDefinition.typeDescriptor().kind() == SyntaxKind.XML_TYPE_DESC || - typeDefinition.typeDescriptor().kind() == SyntaxKind.FUNCTION_TYPE_DESC || - typeDefinition.typeDescriptor().kind() == SyntaxKind.ANYDATA_TYPE_DESC || - typeDefinition.typeDescriptor().kind() == SyntaxKind.STRING_TYPE_DESC || - typeDefinition.typeDescriptor().kind() == SyntaxKind.ANY_TYPE_DESC) { - module.types.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, - module)); + module.typeDescriptorTypes.add(getTypeDescModel((ParameterizedTypeDescriptorNode) typeDefinition. + typeDescriptor(), typeName, metaDataNode, semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.INT_TYPE_DESC) { + module.integerTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DECIMAL_TYPE_DESC) { + module.decimalTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.XML_TYPE_DESC) { + module.xmlTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.FUNCTION_TYPE_DESC) { + module.functionTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.ANYDATA_TYPE_DESC) { + module.anyDataTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.STRING_TYPE_DESC) { + module.stringTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.ANY_TYPE_DESC) { + module.anyTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.ARRAY_TYPE_DESC) { + module.arrayTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); + } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.STREAM_TYPE_DESC) { + module.streamTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, + semanticModel, module)); } else { return false; } @@ -403,7 +431,7 @@ private static void addIntersectionTypeModel(IntersectionTypeDescriptorNode type BType bType = new BType(typeName, getDocFromMetadata(optionalMetadataNode), isDeprecated(optionalMetadataNode), memberTypes); bType.isIntersectionType = true; - module.types.add(bType); + module.intersectionTypes.add(bType); } private static BType getTupleTypeModel(TupleTypeDescriptorNode typeDescriptor, String tupleTypeName, @@ -444,6 +472,34 @@ private static BType getUnionTypeModel(Node unionTypeDescriptor, String unionNam return bType; } + private static MapType getMapTypeModel(MapTypeDescriptorNode typeDescriptor, String typeName, + Optional optionalMetadataNode, SemanticModel semanticModel, + Module module) { + Type type = null; + if (!typeDescriptor.mapTypeParamsNode().isMissing()) { + type = Type.fromNode(typeDescriptor, semanticModel, module); + } + + return new MapType(typeName, getDocFromMetadata(optionalMetadataNode), + isDeprecated(optionalMetadataNode), type); + } + + private static TableType getTableTypeModel(TableTypeDescriptorNode typeDescriptor, String typeName, + Optional optionalMetadataNode, SemanticModel semanticModel, + Module module) { + Type rowParameterType = null; + if (!typeDescriptor.rowTypeParameterNode().isMissing()) { + rowParameterType = Type.fromNode(typeDescriptor, semanticModel, module); + } + Type keyConstraintType = null; + if (!typeDescriptor.keyConstraintNode().isEmpty()) { + keyConstraintType = Type.fromNode(typeDescriptor.keyConstraintNode().get(), semanticModel, module); + } + + return new TableType(typeName, getDocFromMetadata(optionalMetadataNode), + isDeprecated(optionalMetadataNode), rowParameterType, keyConstraintType); + } + private static BClass getClassModel(ClassDefinitionNode classDefinitionNode, SemanticModel semanticModel, Module module) { List classFunctions = new ArrayList<>(); diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java new file mode 100644 index 000000000000..c5a3a162179d --- /dev/null +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java @@ -0,0 +1,13 @@ +package org.ballerinalang.docgen.generator.model; + +import com.google.gson.annotations.Expose; + +public class MapType extends Construct { + @Expose + public Type mapParameterType; + + public MapType(String name, String description, boolean isDeprecated, Type mapParameterType) { + super(name, description, isDeprecated); + this.mapParameterType = mapParameterType; + } +} diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Module.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Module.java index 85f92f342070..1f6d4a57619e 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Module.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Module.java @@ -53,6 +53,38 @@ public class Module extends ModuleMetaData { @Expose public List types = new ArrayList<>(); @Expose + public List unionTypes = new ArrayList<>(); + @Expose + public List simpleNameReferenceTypes = new ArrayList<>(); + @Expose + public List tupleTypes = new ArrayList<>(); + @Expose + public List tableTypes = new ArrayList<>(); + @Expose + public List mapTypes = new ArrayList<>(); + @Expose + public List intersectionTypes = new ArrayList<>(); + @Expose + public List typeDescriptorTypes = new ArrayList<>(); + @Expose + public List functionTypes = new ArrayList<>(); + @Expose + public List streamTypes = new ArrayList<>(); + @Expose + public List arrayTypes = new ArrayList<>(); + @Expose + public List anyDataTypes = new ArrayList<>(); + @Expose + public List anyTypes = new ArrayList<>(); + + public List stringTypes = new ArrayList<>(); + @Expose + public List integerTypes = new ArrayList<>(); + @Expose + public List decimalTypes = new ArrayList<>(); + @Expose + public List xmlTypes = new ArrayList<>(); + @Expose public List enums = new ArrayList<>(); @Expose public List variables = new ArrayList<>(); diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java new file mode 100644 index 000000000000..74cdb8b1e505 --- /dev/null +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 LLC. licenses this file to you 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.docgen.generator.model; + +import com.google.gson.annotations.Expose; + +public class TableType extends Construct { + @Expose + public Type rowParameterType; + @Expose + public Type keyConstraint; + + public TableType(String name, String description, boolean isDeprecated, Type rowParameterType, + Type keyConstraint) { + super(name, description, isDeprecated); + this.rowParameterType = rowParameterType; + this.keyConstraint = keyConstraint; + } +} diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java index 98650d5042f0..ac3f54da3268 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java @@ -42,6 +42,7 @@ import io.ballerina.compiler.syntax.tree.FunctionSignatureNode; import io.ballerina.compiler.syntax.tree.FunctionTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.IntersectionTypeDescriptorNode; +import io.ballerina.compiler.syntax.tree.KeyTypeConstraintNode; import io.ballerina.compiler.syntax.tree.MapTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.MemberTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.NilTypeDescriptorNode; @@ -61,7 +62,9 @@ import io.ballerina.compiler.syntax.tree.StreamTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.StreamTypeParamsNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; +import io.ballerina.compiler.syntax.tree.TableTypeDescriptorNode; import io.ballerina.compiler.syntax.tree.TupleTypeDescriptorNode; +import io.ballerina.compiler.syntax.tree.TypeParameterNode; import io.ballerina.compiler.syntax.tree.TypeReferenceNode; import io.ballerina.compiler.syntax.tree.UnionTypeDescriptorNode; import org.ballerinalang.docgen.Generator; @@ -182,6 +185,12 @@ public static Type fromNode(Node node, SemanticModel semanticModel, Module modul } else { type.generateUserDefinedTypeLink = false; } + } else if (node instanceof KeyTypeConstraintNode) { + TypeParameterNode typeParameterNode = (TypeParameterNode) ((KeyTypeConstraintNode) node). + typeParameterNode(); + type.name = "key"; + type.category = "key"; + type.constraint = fromNode(typeParameterNode.typeNode(), semanticModel, module); } else if (node instanceof TypeReferenceNode) { Optional symbol = Optional.empty(); try { @@ -279,6 +288,12 @@ public static Type fromNode(Node node, SemanticModel semanticModel, Module modul type.name = "map"; type.category = "map"; type.constraint = fromNode(mapTypeDesc.mapTypeParamsNode().typeNode(), semanticModel, module); + } else if (node instanceof TableTypeDescriptorNode) { + TableTypeDescriptorNode tableTypeDesc = (TableTypeDescriptorNode) node; + type.name = "table"; + type.category = "table"; + type.constraint = fromNode(((TypeParameterNode) tableTypeDesc.rowTypeParameterNode()).typeNode(), + semanticModel, module); } else if (node instanceof ParameterizedTypeDescriptorNode) { ParameterizedTypeDescriptorNode parameterizedTypeNode = (ParameterizedTypeDescriptorNode) node; SyntaxKind typeKind = node.kind(); @@ -516,7 +531,8 @@ public static void resolveSymbolMetaData(Type type, Symbol symbol, Module module type.version = "UNK_VER"; } - if (!Objects.equals(type.moduleName, module.id) || !Objects.equals(type.orgName, module.orgName)) { + if (!type.orgName.equals("UNK_ORG") && (!Objects.equals(type.moduleName, module.id) || + !Objects.equals(type.orgName, module.orgName))) { type.category = "libs"; } else if (symbol instanceof TypeReferenceTypeSymbol) { TypeReferenceTypeSymbol typeSymbol = (TypeReferenceTypeSymbol) symbol; From d54d9bae62f6295f22fccf18df1497d6683c3cbf Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Thu, 15 Jun 2023 10:38:14 +0530 Subject: [PATCH 030/122] Include license header --- .../docgen/generator/model/MapType.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java index c5a3a162179d..fb081fcd6d1c 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 LLC. licenses this file to you 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.docgen.generator.model; import com.google.gson.annotations.Expose; From 224c87b326abfd7d0f16ae3aa82436b03ceef6a5 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Thu, 15 Jun 2023 13:55:20 +0530 Subject: [PATCH 031/122] Fix checkstyle errors --- .../src/main/java/org/ballerinalang/docgen/Generator.java | 4 ++-- .../org/ballerinalang/docgen/generator/model/MapType.java | 3 +++ .../org/ballerinalang/docgen/generator/model/TableType.java | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java index 11185abf7918..1d93b3cb8708 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java @@ -207,8 +207,8 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul module.errors.add(new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), refType)); } else { - module.simpleNameReferenceTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, - semanticModel, module)); + module.simpleNameReferenceTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, + metaDataNode, semanticModel, module)); } } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DISTINCT_TYPE_DESC && ((DistinctTypeDescriptorNode) (typeDefinition.typeDescriptor())).typeDescriptor().kind() diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java index fb081fcd6d1c..f42207963ad0 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/MapType.java @@ -19,6 +19,9 @@ import com.google.gson.annotations.Expose; +/** + * Represents Ballerina Map Type. + */ public class MapType extends Construct { @Expose public Type mapParameterType; diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java index 74cdb8b1e505..74cbbf1108a5 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/TableType.java @@ -19,6 +19,9 @@ import com.google.gson.annotations.Expose; +/** + * Represents Ballerina Table Type. + */ public class TableType extends Construct { @Expose public Type rowParameterType; From c476e14fe1ea0d0ecea9ce9e21670d0c24f012df Mon Sep 17 00:00:00 2001 From: ushirask Date: Fri, 16 Jun 2023 08:36:11 +0530 Subject: [PATCH 032/122] Address review suggestions --- .../test/record/ReadonlyRecordFieldTest.java | 6 +-- .../record/readonly_record_fields.bal | 50 +++++++++---------- .../readonly_record_fields_negative.bal | 10 ++-- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java index 4ccbf99a1603..69ea29b2f02c 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java @@ -62,7 +62,7 @@ public Object[][] readonlyRecordFieldTestFunctions() { {"testTypeReadOnlynessWithReadOnlyFieldsViaInclusion"}, {"testRecordWithFunctionTypeField"}, {"testDefaultValueFromCETBeingUsedWithReadOnlyFieldsInTheMappingConstructor"}, - {"testNeverFieldRecord"} + {"testRecordReadonlynessWithNeverFields"} }; } @@ -118,8 +118,8 @@ public void testReadonlyRecordFieldsNegative() { validateError(result, index++, "incompatible types: expected 'readonly', found 'Unauthorized?'", 273, 18); validateError(result, index++, "missing non-defaultable required record field 'y'", 285, 42); validateError(result, index++, "incompatible types: expected 'RecordWithReadOnlyFields', found 'int'", 286, 53); - validateError(result, index++, "incompatible types: expected 'readonly', found 'openNeverRecord'", 301, 18); - validateError(result, index++, "incompatible types: expected 'readonly', found 'neverRecordWithNotReadonly'", + validateError(result, index++, "incompatible types: expected 'readonly', found 'R1'", 301, 18); + validateError(result, index++, "incompatible types: expected 'readonly', found 'R2'", 302, 18); assertEquals(result.getErrorCount(), index); } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal index 470a34720b03..0595c286b941 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal @@ -918,67 +918,67 @@ function testDefaultValueFromCETBeingUsedWithReadOnlyFieldsInTheMappingConstruct assertFalse(f is record {|readonly string a; readonly string b; readonly string[] c;|}); } -const ASSERTION_ERROR_REASON = "AssertionError"; - -function assertTrue(any|error actual) { - assertEquality(true, actual); -} - -type RecordWithNeverField record {| +type R1 record {| never x?; |}; -type OpenRecordWithNever record { +type R2 record { never x?; }; -type RecordWithNeverAndReadonly record {| +type R3 record {| never x?; readonly int y; |}; -type RecordWithNeverWithoutReadonly record {| +type R4 record {| never x?; string y; |}; -type RecordWithNeverFieldRecord record {| - record {| - never a; - |} x?; - |}; +type R5 record {| + record {| + never a; + |} x?; +|}; -type RecordWithNeverUnion record {| +type R6 record {| never|never x?; |}; -function testNeverFieldRecord() { +function testRecordReadonlynessWithNeverFields() { record {| never x?; never y?; |} c = {}; readonly d = c; - RecordWithNeverField e = {}; + R1 e = {}; readonly e1 = e; - OpenRecordWithNever f = {}; - RecordWithNeverAndReadonly g = {y: 1}; + R2 f = {}; + R3 g = {y: 1}; readonly g1 = g; - RecordWithNeverWithoutReadonly h = {y: "abc"}; - RecordWithNeverFieldRecord i = {}; + R4 h = {y: "abc"}; + R5 i = {}; readonly i1 = i; - RecordWithNeverUnion j = {}; + R6 j = {}; readonly j1 = j; assertTrue(d is record {|never x?; never y?;|} & readonly); assertTrue(e1 is record {|never x?;|} & readonly); - assertTrue(f is record {|never x?; anydata...;|}); + assertFalse(f is record {|never x?; anydata...;|} & readonly); assertTrue(g1 is record {|never x?; int y;|} & readonly); - assertTrue(h is record {|never x?; string y;|}); + assertFalse(h is record {|never x?; string y;|} & readonly); assertTrue(i1 is record {|record {|never a;|} x?;|} & readonly); assertTrue(j1 is record {|never|never x?;|} & readonly); } +const ASSERTION_ERROR_REASON = "AssertionError"; + +function assertTrue(any|error actual) { + assertEquality(true, actual); +} + function assertFalse(any|error actual) { assertEquality(false, actual); } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal index 4192c12980ce..46e558a35e01 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal @@ -285,18 +285,18 @@ type RecordWithReadOnlyFields record {| RecordWithReadOnlyFields & readonly r1 = {x: []}; readonly & RecordWithReadOnlyFields & readonly r2 = 1; -type openNeverRecord record { +type R1 record { never x?; }; -type neverRecordWithNotReadonly record {| +type R2 record {| never x?; string y; |}; -function testNeverFieldRecord() { - openNeverRecord r1 = {}; - neverRecordWithNotReadonly r2 = {y: "hello"}; +function testRecordReadonlynessWithNeverFields() { + R1 r1 = {}; + R2 r2 = {y: "hello"}; readonly x = r1; readonly y = r2; From 106833f5f3d25457ba5eb49c9f0b9e533887e8b3 Mon Sep 17 00:00:00 2001 From: ushirask Date: Fri, 16 Jun 2023 12:11:53 +0530 Subject: [PATCH 033/122] Address review suggestions --- .../test/record/ReadonlyRecordFieldTest.java | 5 ++++- .../test-src/record/readonly_record_fields.bal | 9 +++++---- .../record/readonly_record_fields_negative.bal | 10 ++++++++-- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java index 69ea29b2f02c..7049b2682d2d 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java @@ -118,9 +118,12 @@ public void testReadonlyRecordFieldsNegative() { validateError(result, index++, "incompatible types: expected 'readonly', found 'Unauthorized?'", 273, 18); validateError(result, index++, "missing non-defaultable required record field 'y'", 285, 42); validateError(result, index++, "incompatible types: expected 'RecordWithReadOnlyFields', found 'int'", 286, 53); - validateError(result, index++, "incompatible types: expected 'readonly', found 'R1'", 301, 18); + validateError(result, index++, "incompatible types: expected 'readonly', found 'R1'", + 299, 18); validateError(result, index++, "incompatible types: expected 'readonly', found 'R2'", 302, 18); + validateError(result, index++, "incompatible types: expected 'readonly'," + + " found 'record {| int x; never y?; anydata...; |}'", 308, 18); assertEquals(result.getErrorCount(), index); } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal index 0595c286b941..ee95ae5fbf28 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal @@ -952,16 +952,17 @@ function testRecordReadonlynessWithNeverFields() { never y?; |} c = {}; - readonly d = c; R1 e = {}; - readonly e1 = e; R2 f = {}; R3 g = {y: 1}; - readonly g1 = g; R4 h = {y: "abc"}; R5 i = {}; - readonly i1 = i; R6 j = {}; + + readonly d = c; + readonly e1 = e; + readonly g1 = g; + readonly i1 = i; readonly j1 = j; assertTrue(d is record {|never x?; never y?;|} & readonly); diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal index 46e558a35e01..1acb7bc1d426 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal @@ -296,8 +296,14 @@ type R2 record {| function testRecordReadonlynessWithNeverFields() { R1 r1 = {}; - R2 r2 = {y: "hello"}; - readonly x = r1; + + R2 r2 = {y: "hello"}; readonly y = r2; + + record { + int x; + never y?; + } r3 = {x: 1}; + readonly z = r3; } From bd2008568f2bcd9bd259c6d99fde2fd679441c0d Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Fri, 16 Jun 2023 14:56:24 +0530 Subject: [PATCH 034/122] Update API docs tests --- .../DeprecatedAnnotationTest.java | 4 +-- .../test/documentation/DocModelTest.java | 12 ++++----- .../test/documentation/ErrorsTest.java | 26 +++++++++---------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DeprecatedAnnotationTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DeprecatedAnnotationTest.java index c77261f46683..83879169c249 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DeprecatedAnnotationTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DeprecatedAnnotationTest.java @@ -61,7 +61,7 @@ public void setup() throws IOException { @Test(description = "Test @deprecated annotation for module-level union type definitions") public void testDeprecatedUnionTypeDef() { - List bTypes = testModule.types; + List bTypes = testModule.unionTypes; BType depBType = null; BType nonDepBType = null; @@ -83,7 +83,7 @@ public void testDeprecatedUnionTypeDef() { @Test(description = "Test @deprecated annotation for module-level finite type definitions") public void testDeprecatedFiniteTypeDef() { - List bTypes = testModule.types; + List bTypes = testModule.unionTypes; BType depFiniteType = null; BType nonDepFiniteType = null; diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java index f1a4507eab08..052829798a0b 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java @@ -56,7 +56,7 @@ public void setup() throws IOException { @Test(description = "Test tuple type doc model") public void testTupleTypes() { - Optional tupleType = testModule.types.stream() + Optional tupleType = testModule.tupleTypes.stream() .filter(bType -> bType.name.equals("TimeDeltaStart")).findAny(); Assert.assertTrue(tupleType.isPresent(), "TimeDeltaStart type not found"); Assert.assertTrue(tupleType.get().isTuple, "isTuple must be true"); @@ -77,7 +77,7 @@ public void testTupleTypes() { @Test(description = "Test intersection type doc model") public void testIntersectionTypes() { - Optional intersectionType = testModule.types.stream() + Optional intersectionType = testModule.intersectionTypes.stream() .filter(bType -> bType.name.equals("Block")).findAny(); Assert.assertTrue(intersectionType.isPresent(), "Block type not found"); Assert.assertTrue(intersectionType.get().isIntersectionType, "isIntersectionType must be true"); @@ -94,7 +94,7 @@ public void testIntersectionTypes() { @Test(description = "Test union type doc model") public void testUnionType() { - Optional unionType = testModule.types.stream() + Optional unionType = testModule.unionTypes.stream() .filter(bType -> bType.name.equals("RequestMessage")).findAny(); Assert.assertTrue(unionType.isPresent(), "RequestMessage type not found"); Assert.assertTrue(unionType.get().isAnonymousUnionType, "isAnonymousUnionType must be true"); @@ -439,7 +439,7 @@ public void testLinksToReadOnlyObjectsRecords() { @Test(description = "Test deciaml type") public void testDecimalType() { - Optional seconds = testModule.types.stream() + Optional seconds = testModule.decimalTypes.stream() .filter(bType -> bType.name.equals("Seconds")).findAny(); Assert.assertTrue(seconds.isPresent(), "Seconds decimal type not found"); Assert.assertEquals(seconds.get().memberTypes.get(0).category, "builtin"); @@ -447,7 +447,7 @@ public void testDecimalType() { @Test(description = "Test function type") public void testFunctionType() { - Optional valuer = testModule.types.stream() + Optional valuer = testModule.functionTypes.stream() .filter(bType -> bType.name.equals("Valuer")).findAny(); Assert.assertTrue(valuer.isPresent(), "Valuer function type not found"); Assert.assertTrue(valuer.get().memberTypes.get(0) instanceof FunctionType); @@ -650,7 +650,7 @@ public void testRecordRestField() { @Test(description = "Test type params and builtin subtype") public void testTypeParamAndBuiltinSubtype() { - Optional typeParam = testModule.types.stream() + Optional typeParam = testModule.anyTypes.stream() .filter(bType -> bType.name.equals("TypeParam")).findAny(); Optional charSubType = testModule.types.stream() .filter(bType -> bType.name.equals("Char")).findAny(); diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/ErrorsTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/ErrorsTest.java index 3d1bae9841f3..4fa4e46aa342 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/ErrorsTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/ErrorsTest.java @@ -116,26 +116,26 @@ public void testErrorAsAType() { @Test(description = "Test type") public void testType() { - Assert.assertEquals(testModule.types.size(), 2, "Two types expected"); + Assert.assertEquals(testModule.unionTypes.size(), 1, "One union type expected"); - Assert.assertEquals(testModule.types.get(0).name, "LinktoYError", "The type should be " + - "LinktoYError. But Found:" + testModule.types.get(0).name); - Assert.assertEquals(testModule.types.get(1).name, "YErrorType", "The type should be " + - "YErrorType. But Found:" + testModule.types.get(1).name); + Assert.assertEquals(testModule.simpleNameReferenceTypes.get(0).name, "LinktoYError", "The type should be " + + "LinktoYError. But Found:" + testModule.simpleNameReferenceTypes.get(0).name); + Assert.assertEquals(testModule.unionTypes.get(0).name, "YErrorType", "The type should be " + + "YErrorType. But Found:" + testModule.unionTypes.get(0).name); - Assert.assertEquals(testModule.types.get(0).memberTypes.get(0).name, "YErrorType", + Assert.assertEquals(testModule.simpleNameReferenceTypes.get(0).memberTypes.get(0).name, "YErrorType", "The name of first membertype, of LinktoYError should be YErrorType. But Found:" + - testModule.types.get(0).memberTypes.get(0).name); - Assert.assertEquals(testModule.types.get(0).memberTypes.get(0).category, "types", + testModule.simpleNameReferenceTypes.get(0).memberTypes.get(0).name); + Assert.assertEquals(testModule.simpleNameReferenceTypes.get(0).memberTypes.get(0).category, "types", "The category of first membertype, of LinktoYError should be types. " + - "But Found:" + testModule.types.get(0).memberTypes.get(0).category); + "But Found:" + testModule.simpleNameReferenceTypes.get(0).memberTypes.get(0).category); - Assert.assertEquals(testModule.types.get(1).memberTypes.get(0).name, "error", + Assert.assertEquals(testModule.unionTypes.get(0).memberTypes.get(0).name, "error", "The name of first membertype, of error detailtype, in YErrorType should be error. But Found:" + - testModule.types.get(1).memberTypes.get(0).name); - Assert.assertEquals(testModule.types.get(1).memberTypes.get(0).category, "builtin", + testModule.unionTypes.get(0).memberTypes.get(0).name); + Assert.assertEquals(testModule.unionTypes.get(0).memberTypes.get(0).category, "builtin", "The category of first membertype, of error detailtype,in YErrorType should be builtin. " + - "But Found:" + testModule.types.get(1).memberTypes.get(0).category); + "But Found:" + testModule.unionTypes.get(0).memberTypes.get(0).category); } } From 96a59496f9dd33999ae66ada4ed455f7cdeadf45 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Fri, 16 Jun 2023 17:13:42 +0530 Subject: [PATCH 035/122] Update API docs tests --- .../org/ballerinalang/test/documentation/DocModelTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java index 052829798a0b..f574b5e1d37e 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/DocModelTest.java @@ -650,12 +650,12 @@ public void testRecordRestField() { @Test(description = "Test type params and builtin subtype") public void testTypeParamAndBuiltinSubtype() { - Optional typeParam = testModule.anyTypes.stream() + Optional typeParam = testModule.unionTypes.stream() .filter(bType -> bType.name.equals("TypeParam")).findAny(); - Optional charSubType = testModule.types.stream() + Optional charSubType = testModule.stringTypes.stream() .filter(bType -> bType.name.equals("Char")).findAny(); - Optional anyDataType = testModule.types.stream() + Optional anyDataType = testModule.anyDataTypes.stream() .filter(bType -> bType.name.equals("AnydataType")).findAny(); Assert.assertTrue(typeParam.isPresent()); From 49fe444db8fa80481e567fe2f1b793edd2c9044b Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Tue, 20 Jun 2023 01:13:45 +0530 Subject: [PATCH 036/122] Add TypeModelTest for API docs generation --- .../test/documentation/TypeModelTest.java | 322 ++++++++++++++++++ .../type_models_project/Ballerina.toml | 4 + .../type_models_project/type_models.bal | 138 ++++++++ 3 files changed, 464 insertions(+) create mode 100644 tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java create mode 100644 tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/Ballerina.toml create mode 100644 tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java new file mode 100644 index 000000000000..2f1c235f3062 --- /dev/null +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java @@ -0,0 +1,322 @@ +/* + * Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 LLC. licenses this file to you 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.test.documentation; + +import org.ballerinalang.docgen.docs.BallerinaDocGenerator; +import org.ballerinalang.docgen.generator.model.BType; +import org.ballerinalang.docgen.generator.model.BObjectType; +import org.ballerinalang.docgen.generator.model.Error; +import org.ballerinalang.docgen.generator.model.MapType; +import org.ballerinalang.docgen.generator.model.Module; +import org.ballerinalang.docgen.generator.model.ModuleDoc; +import org.ballerinalang.docgen.generator.model.Record; +import org.ballerinalang.docgen.generator.model.TableType; +import org.ballerinalang.test.BCompileUtil; +import org.testng.Assert; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import java.io.File; +import java.io.IOException; +import java.util.List; +import java.util.Map; +import java.util.Optional; + +/** + * Test API Doc generation. + */ +public class TypeModelTest { + private Module testModule; + + @BeforeClass + public void setup() throws IOException { + String sourceRoot = "test-src" + File.separator + "documentation" + File.separator + "type_models_project"; + io.ballerina.projects.Project project = BCompileUtil.loadProject(sourceRoot); + Map moduleDocMap = BallerinaDocGenerator.generateModuleDocMap(project); + List modulesList = BallerinaDocGenerator.getDocsGenModel(moduleDocMap, project.currentPackage() + .packageOrg().toString(), project.currentPackage().packageVersion().toString()); + testModule = modulesList.get(0); + } + + @Test(description = "Test type descriptor type doc model") + public void testTypeDescriptorTypes() { + Optional typeDescType = testModule.typeDescriptorTypes.stream() + .filter(bType -> bType.name.equals("TypeDescType")).findAny(); + Assert.assertTrue(typeDescType.isPresent(), "TypeDescriptorType type not found"); + Assert.assertTrue(typeDescType.get().isTypeDesc, "isTypeDesc must be true"); + } + + @Test(description = "Test any type doc model") + public void testAnyTypes() { + Optional anyType = testModule.anyTypes.stream() + .filter(bType -> bType.name.equals("AnyDataType")).findAny(); + Assert.assertTrue(anyType.isPresent(), "AnyType type not found"); + } + + @Test(description = "Test anydata type doc model") + public void testAnyDataTypes() { + Optional anyType = testModule.anyDataTypes.stream() + .filter(bType -> bType.name.equals("AnyDataType")).findAny(); + Assert.assertTrue(anyType.isPresent(), "AnyType type not found"); + } + + @Test(description = "Test error type doc model") + public void testErrorTypes() { + Optional errorType = testModule.errors.stream() + .filter(bType -> bType.name.equals("ErrorName")).findAny(); + Assert.assertTrue(errorType.isPresent(), "ErrorName type not found"); + Assert.assertEquals(errorType.get().detailType.category, "map", "detail type category must be map"); + Assert.assertEquals(errorType.get().detailType.constraint.name, "FileErrorDetail", + "constraint type name must be FileErrorDetail"); + Assert.assertEquals(errorType.get().detailType.constraint.category, "records", + "constraint type category must be record"); + + Optional distinctErrorType = testModule.errors.stream() + .filter(bType -> bType.name.equals("IOError")).findAny(); + Assert.assertTrue(distinctErrorType.isPresent(), "IOError type not found"); + Assert.assertTrue(distinctErrorType.get().isDistinct, "isDistinct must be true"); + } + + @Test(description = "Test table type doc model") + public void testTableTypes() { + Optional tableType = testModule.tableTypes.stream() + .filter(bType -> bType.name.equals("TableType")).findAny(); + Assert.assertTrue(tableType.isPresent(), "TableType type not found"); + Assert.assertNotNull(tableType.get().rowParameterType, "row parameter type not found"); + Assert.assertNull(tableType.get().keyConstraint, "key constraint must be null"); + Assert.assertEquals(tableType.get().rowParameterType.category, "table", "detail type category must be table"); + Assert.assertEquals(tableType.get().rowParameterType.constraint.name, "Student", + "constraint type name must be Student"); + Assert.assertEquals(tableType.get().rowParameterType.constraint.category, "inline_record", + "detail type category must be table"); + + Optional tableTypeWithKey = testModule.tableTypes.stream() + .filter(bType -> bType.name.equals("TableTypeWithKey")).findAny(); + Assert.assertTrue(tableTypeWithKey.isPresent(), "TableType type not found"); + Assert.assertNotNull(tableTypeWithKey.get().rowParameterType, "row parameter type not found"); + Assert.assertNotNull(tableTypeWithKey.get().keyConstraint, "key constraint not found"); + Assert.assertEquals(tableTypeWithKey.get().keyConstraint.category, "key", + "key constraint category must be key"); + Assert.assertEquals(tableTypeWithKey.get().keyConstraint.constraint.name, "firstName", + "key constraint name must be firstName"); + Assert.assertEquals(tableTypeWithKey.get().keyConstraint.constraint.category, "reference", + "key constraint type category must be reference"); + } + + @Test(description = "Test map type doc model") + public void testMapTypes() { + Optional mapType = testModule.mapTypes.stream() + .filter(bType -> bType.name.equals("MapType")).findAny(); + Assert.assertTrue(mapType.isPresent(), "MapType type not found"); + Assert.assertEquals(mapType.get().mapParameterType.category, "map", "detail type category must be map"); + Assert.assertEquals(mapType.get().mapParameterType.constraint.name, "int", + "constraint type name must be int"); + Assert.assertEquals(mapType.get().mapParameterType.constraint.category, "builtin", + "detail type category must be builtin"); + } + + @Test(description = "Test record doc model") + public void testRecordModel() { + Optional recordType = testModule.records.stream() + .filter(record -> record.name.equals("RecordType")).findAny(); + + Assert.assertTrue(recordType.isPresent(), "RecordType record not found"); + Assert.assertTrue(recordType.get().isClosed, "RecordType record should be closed"); + Assert.assertEquals(recordType.get().description, "Record type param" + System.lineSeparator() + "\n"); + Assert.assertEquals(recordType.get().fields.size(), 3, "Expected 3 fields in RecordType Record"); + + Assert.assertEquals(recordType.get().fields.get(0).name, "firstName", + "First field in RecordType record should be firstName"); + Assert.assertEquals(recordType.get().fields.get(0).type.name, "string", + "Type name of first field in RecordType record should be string"); + Assert.assertEquals(recordType.get().fields.get(0).type.category, "builtin", + "Category of first field in RecordType record should be builtin"); + Assert.assertEquals(recordType.get().fields.get(0).description, "first name of the student" + + System.lineSeparator(), + "Description of first field in Human Record should be: first name of the student" + + System.lineSeparator()); + + Assert.assertEquals(recordType.get().fields.get(1).name, "lastName", + "Second field in RecordType record should be lastName"); + Assert.assertEquals(recordType.get().fields.get(1).type.name, "string", + "Type name of second field in RecordType record should be string"); + Assert.assertEquals(recordType.get().fields.get(1).type.category, "builtin", + "Category of second field in RecordType record should be builtin"); + Assert.assertEquals(recordType.get().fields.get(1).description, "last name of the student" + + System.lineSeparator(), + "Description of second field in Human Record should be: last name of the student" + + System.lineSeparator()); + + Assert.assertEquals(recordType.get().fields.get(2).name, "age", + "Third field in RecordType record should be age"); + Assert.assertEquals(recordType.get().fields.get(2).type.name, "int", + "Type name of third field in RecordType record should be int"); + Assert.assertEquals(recordType.get().fields.get(2).type.category, "builtin", + "Category of third field in RecordType record should be builtin"); + Assert.assertEquals(recordType.get().fields.get(2).description, "age of the student" + + System.lineSeparator(), + "Description of third field in Human Record should be: age of the student" + + System.lineSeparator()); + + Optional readonlyRecordType = testModule.records.stream() + .filter(record -> record.name.equals("ReadonlyRecordType")).findAny(); + + Assert.assertTrue(readonlyRecordType.isPresent(), "ReadonlyRecordType record not found"); + Assert.assertTrue(readonlyRecordType.get().isClosed, "ReadonlyRecordType record should be closed"); + Assert.assertTrue(readonlyRecordType.get().isReadOnly, "ReadonlyRecordType record should be readonly"); + Assert.assertEquals(readonlyRecordType.get().description, "Readonly record type param" + + System.lineSeparator() + "\n"); + Assert.assertEquals(readonlyRecordType.get().fields.size(), 3, + "Expected 3 fields in ReadonlyRecordType Record"); + + Optional recordReadonlyType = testModule.records.stream() + .filter(record -> record.name.equals("ReadonlyRecordType")).findAny(); + + Assert.assertTrue(recordReadonlyType.isPresent(), "RecordReadonlyType record not found"); + Assert.assertTrue(recordReadonlyType.get().isClosed, "RecordReadonlyType record should be closed"); + Assert.assertTrue(recordReadonlyType.get().isReadOnly, "RecordReadonlyType record should be readonly"); + Assert.assertEquals(recordReadonlyType.get().description, "Readonly record type param 2" + + System.lineSeparator() + "\n"); + Assert.assertEquals(recordReadonlyType.get().fields.size(), 3, + "Expected 3 fields in RecordReadonlyType Record"); + } + + @Test(description = "Test intersection type doc model") + public void testIntersectionTypes() { + Optional errorIntersectionType = testModule.intersectionTypes.stream() + .filter(bType -> bType.name.equals("FileIOError")).findAny(); + Assert.assertTrue(errorIntersectionType.isPresent(), "FileIOError type not found"); + Assert.assertTrue(errorIntersectionType.get().isIntersectionType, "isIntersectionType must be true"); + Assert.assertEquals(errorIntersectionType.get().memberTypes.size(), 2, "Expected two member types"); + Assert.assertEquals(errorIntersectionType.get().memberTypes.get(0).name, "IOError", + "First membertype should be IOError"); + Assert.assertEquals(errorIntersectionType.get().memberTypes.get(0).category, "errors", + "First membertype category should be errors"); + Assert.assertEquals(errorIntersectionType.get().memberTypes.get(1).name, "error", + "First membertype should be error"); + Assert.assertEquals(errorIntersectionType.get().memberTypes.get(1).category, "builtin", + "First membertype category should be builtin"); + + Optional readonlyIntersectionType = testModule.intersectionTypes.stream() + .filter(bType -> bType.name.equals("ReadonlyIntersectionType")).findAny(); + Assert.assertTrue(readonlyIntersectionType.isPresent(), "FileIOError type not found"); + Assert.assertTrue(readonlyIntersectionType.get().isIntersectionType, "isIntersectionType must be true"); + Assert.assertEquals(readonlyIntersectionType.get().memberTypes.size(), 2, "Expected two member types"); + Assert.assertEquals(readonlyIntersectionType.get().memberTypes.get(0).name, "readonly", + "First membertype should be IOError"); + Assert.assertEquals(readonlyIntersectionType.get().memberTypes.get(0).category, "builtin", + "First membertype category should be builtin"); + Assert.assertEquals(readonlyIntersectionType.get().memberTypes.get(1).name, "string", + "First membertype should be string"); + Assert.assertEquals(readonlyIntersectionType.get().memberTypes.get(1).category, "builtin", + "First membertype category should be builtin"); + } + + @Test(description = "Test array type doc model") + public void testArrayTypes() { + Optional arrayType = testModule.arrayTypes.stream() + .filter(bType -> bType.name.equals("ArrayType")).findAny(); + Assert.assertTrue(arrayType.isPresent(), "ArrayType type not found"); + Assert.assertTrue(arrayType.get().memberTypes.get(0).isArrayType, "isArrayType must be true"); + Assert.assertEquals(arrayType.get().memberTypes.get(0).elementType.name, "int", + "ArrayType array element type must be int"); + Assert.assertEquals(arrayType.get().memberTypes.get(0).elementType.category, "builtin", + "ArrayType array element type category must be builtin"); + } + + @Test(description = "Test union type doc model") + public void testUnionTypes() { + Optional unionType = testModule.unionTypes.stream() + .filter(bType -> bType.name.equals("UnionType")).findAny(); + Assert.assertTrue(unionType.isPresent(), "unionType type not found"); + Assert.assertTrue(unionType.get().isAnonymousUnionType, "isAnonymousUnionType must be true"); + Assert.assertEquals(unionType.get().memberTypes.size(), 2, "Expected two member types"); + Assert.assertEquals(unionType.get().memberTypes.get(0).name, "int", + "First membertype should be int"); + Assert.assertEquals(unionType.get().memberTypes.get(0).category, "builtin", + "First membertype category should be builtin"); + Assert.assertEquals(unionType.get().memberTypes.get(1).name, "error", + "First membertype should be error"); + Assert.assertEquals(unionType.get().memberTypes.get(1).category, "builtin", + "First membertype category should be builtin"); + } + + @Test(description = "Test tuple type doc model") + public void testTupleTypes() { + Optional tupleType = testModule.tupleTypes.stream() + .filter(bType -> bType.name.equals("TupleType")).findAny(); + Assert.assertTrue(tupleType.isPresent(), "TupleType type not found"); + Assert.assertTrue(tupleType.get().isTuple, "isTuple must be true"); + Assert.assertEquals(tupleType.get().memberTypes.size(), 2, "Expected two member types"); + Assert.assertEquals(tupleType.get().memberTypes.get(0).name, "string", + "First membertype should be string"); + Assert.assertEquals(tupleType.get().memberTypes.get(1).name, "int", + "Second membertype should be int"); + Assert.assertEquals(tupleType.get().memberTypes.get(0).category, "builtin", + "First membertype category should be builtin"); + Assert.assertEquals(tupleType.get().memberTypes.get(1).category, "builtin", + "Second membertype category should be builtin"); + } + + @Test(description = "Test object type doc model") + public void testObjectTypes() { + Optional objectType = testModule.objectTypes.stream() + .filter(bType -> bType.name.equals("ObjectType")).findAny(); + Assert.assertTrue(objectType.isPresent(), "ObjectType type not found"); + Assert.assertEquals(objectType.get().methods.size(), 2, "Expected two methods"); + + Assert.assertEquals(objectType.get().methods.get(0).name, "getName", + "First method of ObjectType type should be getName"); + Assert.assertEquals(objectType.get().methods.get(0).description, + "This method will be called to get name of the student" + System.lineSeparator(), + "First method of ObjectType type should has description: This method will be called to " + + "get name of the student" + System.lineSeparator()); + Assert.assertEquals(objectType.get().methods.get(0).parameters.get(0).name, "id", + "First method of ObjectType type should have parameter 'id'"); + Assert.assertEquals(objectType.get().methods.get(0).parameters.get(0).type.name, "int", + "First method of ObjectType type should have parameter type int"); + Assert.assertEquals(objectType.get().methods.get(0).returnParameters.get(0).type.name, "string", + "First method of ObjectType type should have return parameter type string"); + + Assert.assertEquals(objectType.get().methods.get(1).name, "getClassName", + "Second method of ObjectType type should be getName"); + Assert.assertEquals(objectType.get().methods.get(1).description, + "This method will be called to get class name of the student" + System.lineSeparator(), + "Second method of ObjectType type should has description: This method will be called to " + + "get class name of the student" + System.lineSeparator()); + Assert.assertEquals(objectType.get().methods.get(1).parameters.get(0).name, "id", + "Second method of ObjectType type should have parameter 'id'"); + Assert.assertEquals(objectType.get().methods.get(1).parameters.get(0).type.name, "int", + "Second method of ObjectType type should have parameter type int"); + Assert.assertEquals(objectType.get().methods.get(1).returnParameters.get(0).type.name, "string", + "Second method of ObjectType type should have return parameter type string"); + + Optional distinctObjectType = testModule.objectTypes.stream() + .filter(bType -> bType.name.equals("DistinctObjectType")).findAny(); + Assert.assertTrue(distinctObjectType.isPresent(), "DistinctObjectType type not found"); + Assert.assertTrue(distinctObjectType.get().isDistinct, "isDistinct must be true"); + + Optional clientObjectType = testModule.objectTypes.stream() + .filter(bType -> bType.name.equals("ClientObjectType")).findAny(); + Assert.assertTrue(clientObjectType.isPresent(), "ClientObjectType type not found"); + + Optional serviceObjectType = testModule.serviceTypes.stream() + .filter(bType -> bType.name.equals("ServiceObjectType")).findAny(); + Assert.assertTrue(serviceObjectType.isPresent(), "ServiceObjectType type not found"); + } +} diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/Ballerina.toml b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/Ballerina.toml new file mode 100644 index 000000000000..2ca453b8f9e5 --- /dev/null +++ b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/Ballerina.toml @@ -0,0 +1,4 @@ +[package] +org = "test_org" +name = "type_models_project" +version = "1.0.0" diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal new file mode 100644 index 000000000000..e70222ad1d6c --- /dev/null +++ b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal @@ -0,0 +1,138 @@ +# Type descriptor type param +public type TypeDescType typedesc; + +# Any type param +public type AnyType any; + +# Any data type param +public type AnyDataType anydata; + +# Distinct error type param +public type IOError distinct error; + +# Open record type param +# # +# + fileName - file name +public type FileErrorDetail record { + string fileName; +}; + +# Error type param +public type ErrorName error>; + +# Closed record type param +# +# + firstName - first name +# + lastName - last name +# + age - age +type Student record {| + readonly string firstName; + string lastName; + int age; +|}; + + +# Table type param +public type TableType table; + +# Table type param with key +public type TableTypeWithKey table key; + +# Map type param +public type MapType map; + +# Record type param +# +# + firstName - first name +# + lastName - last name +# + age - age +public type RecordType record {| + readonly string firstName; + string lastName; + int age; +|}; + +# Readonly record type param +# +# + firstName - first name +# + lastName - last name +# + age - age +public type ReadonlyRecordType readonly & record {| + string firstName; + string lastName; + int age; +|}; + +# Readonly record type param 2 +# +# + firstName - first name +# + lastName - last name +# + age - age +public type ReadonlyRecordType2 record {| + string firstName; + string lastName; + int age; +|} & readonly; + +# Optional record type param +# +# + firstName - first name +# + lastName - last name +# + age - age +public type RecordTypeOptional record {| + string firstName; + string lastName; + int age; +|} ?; + +# Error intersection type param +public type FileIOError IOError & error; + +# Readonly intersection type param +public type ReadonlyIntersectionType readonly & string; + +# Array type param +public type ArrayType int[]; + +# Union type param +public type UnionType int|error; + +# Tuple type param +public type TupleType [string, int]; + +# Object type param +public type ObjectType object { + # This method will be called to get name of the student + # + id - student id + # + return - name of the student + public function getName(int id) returns string; + + # This method will be called to get class name of the student + # + id - student id + # + return - class name of the student + public function getClassName(int id) returns string; +}; + +# Distinct object type param +public type DistinctObjectType distinct object {}; + +# Client object type param +public type ClientObjectType client object {}; + +# Service object type param +public type ServiceObjectType service object {}; + +# Integer type param +public type IntegerType int; + +# Stream type param +public type StreamType stream; + +# Function type param +public type FunctionType function; + +# Deprecated union string type param +# # Deprecated +# This type is deprecated +@deprecated +public type DeprecatedType "on"|"off"; From 80a55dfa12bca1653699592cdfc940906f5d9f91 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Tue, 20 Jun 2023 09:11:49 +0530 Subject: [PATCH 037/122] Fix checkstyle error --- .../org/ballerinalang/test/documentation/TypeModelTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java index 2f1c235f3062..f8b12c0e96fd 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java @@ -18,8 +18,8 @@ package org.ballerinalang.test.documentation; import org.ballerinalang.docgen.docs.BallerinaDocGenerator; -import org.ballerinalang.docgen.generator.model.BType; import org.ballerinalang.docgen.generator.model.BObjectType; +import org.ballerinalang.docgen.generator.model.BType; import org.ballerinalang.docgen.generator.model.Error; import org.ballerinalang.docgen.generator.model.MapType; import org.ballerinalang.docgen.generator.model.Module; From 146169fe38032fc8ca356ddb64f749dff7765b3f Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Tue, 20 Jun 2023 11:15:11 +0530 Subject: [PATCH 038/122] Fix test failures --- .../test/documentation/TypeModelTest.java | 10 +++--- .../type_models_project/type_models.bal | 32 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java index f8b12c0e96fd..a03133bd067a 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java @@ -64,7 +64,7 @@ public void testTypeDescriptorTypes() { @Test(description = "Test any type doc model") public void testAnyTypes() { Optional anyType = testModule.anyTypes.stream() - .filter(bType -> bType.name.equals("AnyDataType")).findAny(); + .filter(bType -> bType.name.equals("AnyType")).findAny(); Assert.assertTrue(anyType.isPresent(), "AnyType type not found"); } @@ -148,7 +148,7 @@ public void testRecordModel() { "Category of first field in RecordType record should be builtin"); Assert.assertEquals(recordType.get().fields.get(0).description, "first name of the student" + System.lineSeparator(), - "Description of first field in Human Record should be: first name of the student" + + "Description of first field in RecordType record should be: first name of the student" + System.lineSeparator()); Assert.assertEquals(recordType.get().fields.get(1).name, "lastName", @@ -159,7 +159,7 @@ public void testRecordModel() { "Category of second field in RecordType record should be builtin"); Assert.assertEquals(recordType.get().fields.get(1).description, "last name of the student" + System.lineSeparator(), - "Description of second field in Human Record should be: last name of the student" + + "Description of second field in RecordType record should be: last name of the student" + System.lineSeparator()); Assert.assertEquals(recordType.get().fields.get(2).name, "age", @@ -170,7 +170,7 @@ public void testRecordModel() { "Category of third field in RecordType record should be builtin"); Assert.assertEquals(recordType.get().fields.get(2).description, "age of the student" + System.lineSeparator(), - "Description of third field in Human Record should be: age of the student" + + "Description of third field in RecordType Record should be: age of the student" + System.lineSeparator()); Optional readonlyRecordType = testModule.records.stream() @@ -185,7 +185,7 @@ public void testRecordModel() { "Expected 3 fields in ReadonlyRecordType Record"); Optional recordReadonlyType = testModule.records.stream() - .filter(record -> record.name.equals("ReadonlyRecordType")).findAny(); + .filter(record -> record.name.equals("RecordReadonlyType")).findAny(); Assert.assertTrue(recordReadonlyType.isPresent(), "RecordReadonlyType record not found"); Assert.assertTrue(recordReadonlyType.get().isClosed, "RecordReadonlyType record should be closed"); diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal index e70222ad1d6c..cad42f11e565 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal @@ -22,9 +22,9 @@ public type ErrorName error>; # Closed record type param # -# + firstName - first name -# + lastName - last name -# + age - age +# + firstName - first name of the student +# + lastName - last name of the student +# + age - age of the student type Student record {| readonly string firstName; string lastName; @@ -43,9 +43,9 @@ public type MapType map; # Record type param # -# + firstName - first name -# + lastName - last name -# + age - age +# + firstName - first name of the student +# + lastName - last name of the student +# + age - age of the student public type RecordType record {| readonly string firstName; string lastName; @@ -54,9 +54,9 @@ public type RecordType record {| # Readonly record type param # -# + firstName - first name -# + lastName - last name -# + age - age +# + firstName - first name of the student +# + lastName - last name of the student +# + age - age of the student public type ReadonlyRecordType readonly & record {| string firstName; string lastName; @@ -65,10 +65,10 @@ public type ReadonlyRecordType readonly & record {| # Readonly record type param 2 # -# + firstName - first name -# + lastName - last name -# + age - age -public type ReadonlyRecordType2 record {| +# + firstName - first name of the student +# + lastName - last name of the student +# + age - age of the student +public type RecordReadonlyType record {| string firstName; string lastName; int age; @@ -76,9 +76,9 @@ public type ReadonlyRecordType2 record {| # Optional record type param # -# + firstName - first name -# + lastName - last name -# + age - age +# + firstName - first name of the student +# + lastName - last name of the student +# + age - age of the student public type RecordTypeOptional record {| string firstName; string lastName; From 95f13b7ac8a2de4fee0534c16412041df88a5f94 Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 20 Jun 2023 13:09:25 +0530 Subject: [PATCH 039/122] Address review suggestions --- .../record/readonly_record_fields.bal | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal index ee95ae5fbf28..2912906e6806 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields.bal @@ -951,26 +951,29 @@ function testRecordReadonlynessWithNeverFields() { never x?; never y?; |} c = {}; + readonly c1 = c; + assertTrue(c1 is record {|never x?; never y?;|} & readonly); R1 e = {}; - R2 f = {}; - R3 g = {y: 1}; - R4 h = {y: "abc"}; - R5 i = {}; - R6 j = {}; - - readonly d = c; readonly e1 = e; - readonly g1 = g; - readonly i1 = i; - readonly j1 = j; - - assertTrue(d is record {|never x?; never y?;|} & readonly); assertTrue(e1 is record {|never x?;|} & readonly); + + R2 f = {}; assertFalse(f is record {|never x?; anydata...;|} & readonly); + + R3 g = {y: 1}; + readonly g1 = g; assertTrue(g1 is record {|never x?; int y;|} & readonly); + + R4 h = {y: "abc"}; assertFalse(h is record {|never x?; string y;|} & readonly); + + R5 i = {}; + readonly i1 = i; assertTrue(i1 is record {|record {|never a;|} x?;|} & readonly); + + R6 j = {}; + readonly j1 = j; assertTrue(j1 is record {|never|never x?;|} & readonly); } From 0b0d24eaae80b1b625c9da425dd19037f799a911 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Tue, 20 Jun 2023 17:50:27 +0530 Subject: [PATCH 040/122] Add type model tests --- .../test/documentation/TypeModelTest.java | 65 ++++++++++++++++++- .../type_models_project/type_models.bal | 6 ++ 2 files changed, 69 insertions(+), 2 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java index a03133bd067a..d4061a5ac9c1 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/documentation/TypeModelTest.java @@ -66,13 +66,20 @@ public void testAnyTypes() { Optional anyType = testModule.anyTypes.stream() .filter(bType -> bType.name.equals("AnyType")).findAny(); Assert.assertTrue(anyType.isPresent(), "AnyType type not found"); + Assert.assertEquals(anyType.get().memberTypes.get(0).name, "any", "Member type name should be any"); + Assert.assertEquals(anyType.get().memberTypes.get(0).category, "builtin", + "Member type name should be builtin"); } @Test(description = "Test anydata type doc model") public void testAnyDataTypes() { - Optional anyType = testModule.anyDataTypes.stream() + Optional anyDataType = testModule.anyDataTypes.stream() .filter(bType -> bType.name.equals("AnyDataType")).findAny(); - Assert.assertTrue(anyType.isPresent(), "AnyType type not found"); + Assert.assertTrue(anyDataType.isPresent(), "AnyDataType type not found"); + Assert.assertEquals(anyDataType.get().memberTypes.get(0).name, "anydata", + "Member type name should be anydata"); + Assert.assertEquals(anyDataType.get().memberTypes.get(0).category, "builtin", + "Member type name should be builtin"); } @Test(description = "Test error type doc model") @@ -319,4 +326,58 @@ public void testObjectTypes() { .filter(bType -> bType.name.equals("ServiceObjectType")).findAny(); Assert.assertTrue(serviceObjectType.isPresent(), "ServiceObjectType type not found"); } + + @Test(description = "Test integer type doc model") + public void testIntegerTypes() { + Optional integerType = testModule.integerTypes.stream() + .filter(bType -> bType.name.equals("IntegerType")).findAny(); + Assert.assertTrue(integerType.isPresent(), "IntegerType type not found"); + + Assert.assertEquals(integerType.get().memberTypes.get(0).name, "int", "Member type name should be int"); + Assert.assertEquals(integerType.get().memberTypes.get(0).category, "builtin", + "Member type name should be builtin"); + } + + @Test(description = "Test string type doc model") + public void testStringTypes() { + Optional stringType = testModule.stringTypes.stream() + .filter(bType -> bType.name.equals("StringType")).findAny(); + Assert.assertTrue(stringType.isPresent(), "StringType type not found"); + + Assert.assertEquals(stringType.get().memberTypes.get(0).name, "string", + "Member type name should be string"); + Assert.assertEquals(stringType.get().memberTypes.get(0).category, "builtin", + "Member type name should be builtin"); + } + + @Test(description = "Test decimal type doc model") + public void testDecimalTypes() { + Optional decimalType = testModule.decimalTypes.stream() + .filter(bType -> bType.name.equals("DecimalType")).findAny(); + Assert.assertTrue(decimalType.isPresent(), "DecimalType type not found"); + + Assert.assertEquals(decimalType.get().memberTypes.get(0).name, "decimal", + "Member type name should be decimal"); + Assert.assertEquals(decimalType.get().memberTypes.get(0).category, "builtin", + "Member type name should be builtin"); + } + + @Test(description = "Test stream type doc model") + public void testStreamTypes() { + Optional streamType = testModule.streamTypes.stream() + .filter(bType -> bType.name.equals("StreamType")).findAny(); + Assert.assertTrue(streamType.isPresent(), "StreamType type not found"); + + Assert.assertEquals(streamType.get().memberTypes.get(0).name, "stream", + "Member type name should be stream"); + Assert.assertEquals(streamType.get().memberTypes.get(0).category, "stream", + "Member type name should be stream"); + } + + @Test(description = "Test stream type doc model") + public void testFunctionTypes() { + Optional functionType = testModule.functionTypes.stream() + .filter(bType -> bType.name.equals("FunctionType")).findAny(); + Assert.assertTrue(functionType.isPresent(), "FunctionType type not found"); + } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal index cad42f11e565..2581accc17bc 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/documentation/type_models_project/type_models.bal @@ -125,6 +125,12 @@ public type ServiceObjectType service object {}; # Integer type param public type IntegerType int; +# String type param +public type StringType string; + +# Decimal type param +public type DecimalType decimal; + # Stream type param public type StreamType stream; From ed94789d8638a0115b4ac7bd4c37d0ab36884ef7 Mon Sep 17 00:00:00 2001 From: malinthar Date: Tue, 28 Mar 2023 12:07:04 +0530 Subject: [PATCH 041/122] Initial commit --- .../projects/CompilerPluginManager.java | 11 +++++ .../ballerina/projects/CompletionManager.java | 10 +++++ .../CompilerPluginCompletionExtension.java | 41 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java create mode 100644 language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java index 2fba27fb000c..01771c06f139 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java @@ -42,6 +42,8 @@ class CompilerPluginManager { private CodeModifierManager codeModifierManager; private CompilerLifecycleManager compilerLifecycleListenerManager; private CodeActionManager codeActionManager; + + private CompletionManager completionManager; private CompilerPluginManager(PackageCompilation compilation, List compilerPluginContexts) { @@ -138,6 +140,15 @@ int engagedCodeModifierCount() { } return count; } + + CompletionManager getCompletionManager() { + if (completionManager != null) { + return completionManager; + } + + completionManager = CompletionManager.from(compilerPluginContexts); + return completionManager; + } private static List loadEngagedCompilerPlugins(List dependencies) { List compilerPlugins = new ArrayList<>(); diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java new file mode 100644 index 000000000000..e3539da483e8 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -0,0 +1,10 @@ +package io.ballerina.projects; + +import java.util.List; + +public class CompletionManager { + + public static CompletionManager from(List compilerPluginContexts) { + return null; + } +} diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java new file mode 100644 index 000000000000..d1241d76ae2c --- /dev/null +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java @@ -0,0 +1,41 @@ +package org.ballerinalang.langserver.completions; + +import org.ballerinalang.langserver.common.utils.CommonUtil; +import org.ballerinalang.langserver.commons.CompletionContext; +import org.ballerinalang.langserver.commons.CompletionExtension; +import org.ballerinalang.langserver.commons.LanguageServerContext; +import org.eclipse.lsp4j.CompletionItem; +import org.eclipse.lsp4j.CompletionParams; +import org.eclipse.lsp4j.jsonrpc.CancelChecker; + +import java.util.Collections; +import java.util.List; + +public class CompilerPluginCompletionExtension implements CompletionExtension { + + @Override + public boolean validate(CompletionParams inputParams) { + return inputParams.getTextDocument().getUri().endsWith(".bal"); + } + + @Override + public List execute(CompletionParams inputParams, CompletionContext context, + LanguageServerContext serverContext) throws Throwable { + + return Collections.emptyList(); + } + + @Override + public List execute(CompletionParams inputParams, CompletionContext context, + LanguageServerContext serverContext, + CancelChecker cancelChecker) throws Throwable { + return CompletionExtension.super.execute(inputParams, context, serverContext, cancelChecker); + } + + @Override + public List handledCustomURISchemes(CompletionParams inputParams, + CompletionContext context, + LanguageServerContext serverContext) { + return Collections.singletonList(CommonUtil.URI_SCHEME_EXPR); + } +} From 92e53b9eb8f0150390f9ae9244c933d43a9e4918 Mon Sep 17 00:00:00 2001 From: malinthar Date: Tue, 4 Apr 2023 00:14:40 +0530 Subject: [PATCH 042/122] Improve the initial implementation --- .../projects/CompilerPluginContextIml.java | 12 + .../ballerina/projects/CompletionManager.java | 186 ++++++++++++- .../ballerina/projects/CompletionResult.java | 44 +++ .../projects/PackageCompilation.java | 4 + .../plugins/CompilerPluginContext.java | 8 + .../AbstractCompletionProvider.java | 29 ++ .../plugins/completion/CompletionContext.java | 27 ++ .../completion/CompletionContextImpl.java | 53 ++++ .../completion/CompletionException.java | 18 ++ .../plugins/completion/CompletionItem.java | 115 ++++++++ .../completion/CompletionProvider.java | 38 +++ .../plugins/completion/CompletionUtil.java | 20 ++ .../src/main/java/module-info.java | 1 + .../compiler/linter/impl/CompilerLinter.java | 1 - .../CompilerPluginCompletions.md | 252 ++++++++++++++++++ .../images/compiler-plugin-completions-1.png | Bin 0 -> 45328 bytes .../CompilerPluginCompletionExtension.java | 98 ++++++- .../completions/util/CompletionUtil.java | 1 + project-api/project-api-test/build.gradle | 4 + .../plugins/LanguageServerExtensionTests.java | 47 +++- .../Ballerina.toml | 4 + .../CompilerPlugin.toml | 5 + .../Package.md | 1 + .../main.bal | 40 +++ .../Ballerina.toml | 4 + .../main.bal | 7 + .../src/test/resources/testng.xml | 2 +- .../build.gradle | 37 +++ ...CompilerPluginWithCompletionProviders.java | 18 ++ .../ServiceBodyContextProvider.java | 49 ++++ .../src/main/java/module-info.java | 7 + settings.gradle | 2 + 32 files changed, 1125 insertions(+), 9 deletions(-) create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java create mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java create mode 100644 docs/language-server/CompilerPluginCompletions.md create mode 100644 docs/language-server/images/compiler-plugin-completions-1.png create mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml create mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml create mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md create mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal create mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/Ballerina.toml create mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/main.bal create mode 100644 project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle create mode 100644 project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java create mode 100644 project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java create mode 100644 project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/module-info.java diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginContextIml.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginContextIml.java index b26d1353195d..aae3a6cae37f 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginContextIml.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginContextIml.java @@ -23,6 +23,7 @@ import io.ballerina.projects.plugins.CompilerLifecycleListener; import io.ballerina.projects.plugins.CompilerPluginContext; import io.ballerina.projects.plugins.codeaction.CodeAction; +import io.ballerina.projects.plugins.completion.CompletionProvider; import java.util.ArrayList; import java.util.List; @@ -41,6 +42,8 @@ class CompilerPluginContextIml implements CompilerPluginContext { private final List lifecycleListeners = new ArrayList<>(); private final List codeActions = new ArrayList<>(); + private final List completionProviders = new ArrayList<>(); + CompilerPluginContextIml(CompilerPluginInfo compilerPluginInfo) { this.compilerPluginInfo = compilerPluginInfo; } @@ -68,6 +71,11 @@ public void addCodeAction(CodeAction codeAction) { codeActions.add(codeAction); } + @Override + public void addCompletionProvider(CompletionProvider completionProvider) { + completionProviders.add(completionProvider); + } + List codeAnalyzers() { return codeAnalyzers; } @@ -88,6 +96,10 @@ public List codeActions() { return codeActions; } + public List completionProviders() { + return completionProviders; + } + public CompilerPluginInfo compilerPluginInfo() { return compilerPluginInfo; } diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java index e3539da483e8..1f0e05638430 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -1,10 +1,194 @@ package io.ballerina.projects; +import io.ballerina.compiler.api.symbols.ModuleSymbol; +import io.ballerina.compiler.api.symbols.ServiceDeclarationSymbol; +import io.ballerina.compiler.api.symbols.Symbol; +import io.ballerina.compiler.api.symbols.TypeSymbol; +import io.ballerina.compiler.syntax.tree.Node; +import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; +import io.ballerina.compiler.syntax.tree.SyntaxKind; +import io.ballerina.projects.plugins.completion.CompletionContext; +import io.ballerina.projects.plugins.completion.CompletionException; +import io.ballerina.projects.plugins.completion.CompletionProvider; +import io.ballerina.tools.text.LinePosition; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.stream.Collectors; +/** + * Manages interaction with completion providers via compiler plugins. + * + * @since 2201.7.0 + */ public class CompletionManager { + Map, List> completionProviders; + + private CompletionManager(List compilerPluginContexts) { + completionProviders = new HashMap<>(); + compilerPluginContexts.forEach(compilerPluginContextIml -> { + for (CompletionProvider completionProvider : compilerPluginContextIml.completionProviders()) { + for (Class attachmentPoint : completionProvider.getAttachmentPoints()) { + List completionProviderList = + completionProviders.computeIfAbsent(attachmentPoint, k -> new ArrayList<>()); + completionProviderList.add(new CompletionProviderDescriptor(completionProvider, + compilerPluginContextIml.compilerPluginInfo())); + } + } + }); + } + /** + * Create a CompletionManager instance from the provided compiler plugin contexts. + * + * @param compilerPluginContexts compiler plugin contexts. + * @return CompletionManager instance. + */ public static CompletionManager from(List compilerPluginContexts) { - return null; + return new CompletionManager(compilerPluginContexts); + } + + /** + * Get completions for the provided context from all available compiler plugins. + * + * @param context completion context. + * @return Result object containing completion items and errors occurred while processing completion providers + */ + public CompletionResult completions(CompletionContext context) { + CompletionResult result = new CompletionResult(); + + //If there are no completion items for the referenceNode resolve completion items for the parent node + List completionProviderDescriptors = new ArrayList<>(); + Node referenceNode = context.nodeAtCursor(); + List resolverChain = new ArrayList<>(); + while ((referenceNode != null)) { + completionProviderDescriptors = + completionProviders.getOrDefault(referenceNode.getClass(), Collections.emptyList()); + if (!completionProviderDescriptors.isEmpty() && !resolverChain.contains(referenceNode)) { + break; + } + resolverChain.add(referenceNode); + referenceNode = referenceNode.parent(); + } + + //Atm, we allow completions only inside service declarations + if (referenceNode == null || !isInServiceBodyNodeContext(context, referenceNode)) { + return result; + } + + ServiceDeclarationNode serviceDeclarationNode = (ServiceDeclarationNode) referenceNode; + List moduleSymbols = getModulesOfActiveListeners(context, serviceDeclarationNode); + completionProviderDescriptors.stream().filter(descriptor -> { + if (descriptor.compilerPluginInfo.kind() == CompilerPluginKind.PACKAGE_PROVIDED) { + PackageProvidedCompilerPluginInfo compilerPluginInfo = + (PackageProvidedCompilerPluginInfo) descriptor.compilerPluginInfo(); + return moduleSymbols.stream().anyMatch(moduleSymbol -> + moduleSymbol.id().orgName().equals(compilerPluginInfo.packageDesc().org().value()) + && moduleSymbol.id().packageName() + .equals(compilerPluginInfo.packageDesc().name().value())); + } + return moduleSymbols.stream().anyMatch(moduleSymbol -> + moduleSymbol.id().orgName() + .equals(context.currentDocument().module().descriptor().org().value()) + && moduleSymbol.id().packageName() + .equals(context.currentDocument().module().descriptor().packageName().value())); + }) + .forEach(descriptor -> { + try { + result.addCompletionItems(descriptor.completionProvider() + .getCompletions(context, serviceDeclarationNode)); + } catch (Throwable t) { + String name; + if (descriptor.compilerPluginInfo.kind() == CompilerPluginKind.PACKAGE_PROVIDED) { + PackageProvidedCompilerPluginInfo compilerPluginInfo = + (PackageProvidedCompilerPluginInfo) descriptor.compilerPluginInfo(); + name = compilerPluginInfo.packageDesc().org().value() + "/" + + compilerPluginInfo.packageDesc().name().value() + ":" + + compilerPluginInfo.packageDesc().version().value() + + ":" + descriptor.completionProvider().name(); + } else { + name = descriptor.completionProvider().name(); + } + CompletionException ex = new CompletionException(t, name); + result.addError(ex); + } + }); + return result; + } + + private List getModulesOfActiveListeners(CompletionContext context, ServiceDeclarationNode node) { + Optional serviceSymbol = context.currentSemanticModel().symbol(node); + Optional linePosition = context.cursorPosition(); + if (serviceSymbol.isEmpty() && linePosition.isEmpty()) { + return Collections.emptyList(); + } + List listenerTypes = ((ServiceDeclarationSymbol) serviceSymbol.get()).listenerTypes(); + return listenerTypes.stream().filter(listenerType -> listenerType.getModule().isPresent()) + .map(listenerType -> listenerType.getModule().get()).collect(Collectors.toList()); + } + + private boolean isInServiceBodyNodeContext(CompletionContext context, Node referenceNode) { + Optional cursorPosition = context.cursorPosition(); + if (referenceNode.kind() != SyntaxKind.SERVICE_DECLARATION || cursorPosition.isEmpty()) { + return false; + } + + ServiceDeclarationNode serviceDeclarationNode = (ServiceDeclarationNode) referenceNode; + LinePosition openBrace = serviceDeclarationNode.openBraceToken().lineRange().endLine(); + LinePosition closeBrace = serviceDeclarationNode.closeBraceToken().lineRange().startLine(); + int cursorLine = cursorPosition.get().line(); + int cursorOffset = cursorPosition.get().offset(); + + //Ensure that the cursor is within braces (in service body) + if (cursorLine < openBrace.line() || cursorLine > closeBrace.line() + || cursorLine == openBrace.line() && cursorOffset < openBrace.offset() + || cursorLine == closeBrace.line() && cursorOffset > closeBrace.offset()) { + return false; + } + + /* Covers + service on new http:Listener(9090) { + + r + + resource function get test(http:Caller caller, http:Request req) { + + } + } + */ + return serviceDeclarationNode.members().stream() + .filter(member -> member.kind() == SyntaxKind.RESOURCE_ACCESSOR_DEFINITION + || member.kind() == SyntaxKind.FUNCTION_DEFINITION) + .noneMatch(member -> member.lineRange().startLine().line() <= cursorLine + && cursorLine <= member.lineRange().endLine().line()); + } + + /** + * Descriptor for a completion provider. + */ + static class CompletionProviderDescriptor { + + private final CompletionProvider completionProvider; + private final CompilerPluginInfo compilerPluginInfo; + + public CompletionProviderDescriptor(CompletionProvider completionProvider, + CompilerPluginInfo compilerPluginInfo) { + this.completionProvider = completionProvider; + this.compilerPluginInfo = compilerPluginInfo; + } + + public CompletionProvider completionProvider() { + return completionProvider; + } + + public CompilerPluginInfo compilerPluginInfo() { + return compilerPluginInfo; + } + } + } diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java new file mode 100644 index 000000000000..64b59cbfd150 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java @@ -0,0 +1,44 @@ +package io.ballerina.projects; + +import io.ballerina.projects.plugins.completion.CompletionException; +import io.ballerina.projects.plugins.completion.CompletionItem; + +import java.util.ArrayList; +import java.util.List; + +/** + * The result of the completion operation. + * + * @since 2201.7.0 + */ +public class CompletionResult { + + private final List completionItems = new ArrayList<>(); + private final List errors = new ArrayList<>(); + + public void addCompletionItems(List completionItems) { + this.completionItems.addAll(completionItems); + } + + public void addError(CompletionException ex) { + errors.add(ex); + } + + /** + * Get completion items provided by compiler plugins. + * + * @return List of completion items + */ + public List getCompletionItems() { + return completionItems; + } + + /** + * Get errors catch while processing compiler plugin completion providers. + * + * @return List of errors + */ + public List getErrors() { + return errors; + } +} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/PackageCompilation.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/PackageCompilation.java index 469797e0bd56..c160bb9df7ec 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/PackageCompilation.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/PackageCompilation.java @@ -156,6 +156,10 @@ public SemanticModel getSemanticModel(ModuleId moduleId) { public CodeActionManager getCodeActionManager() { return compilerPluginManager.getCodeActionManager(); } + + public CompletionManager getCompletionManager() { + return compilerPluginManager.getCompletionManager(); + } CompilerPluginManager compilerPluginManager() { return compilerPluginManager; diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/CompilerPluginContext.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/CompilerPluginContext.java index 08ffe4a966dc..f3dfa6ae8bbf 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/CompilerPluginContext.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/CompilerPluginContext.java @@ -18,6 +18,7 @@ package io.ballerina.projects.plugins; import io.ballerina.projects.plugins.codeaction.CodeAction; +import io.ballerina.projects.plugins.completion.CompletionProvider; /** * This class can be used to add various compiler plugin tasks to the current compilation. @@ -60,4 +61,11 @@ public interface CompilerPluginContext { * @param codeAction the {@link CodeAction} instance */ void addCodeAction(CodeAction codeAction); + + /** + * Add a {@link CompletionProvider} to the current compilation. + * + * @param completionProvider the {@link CompletionProvider} instance + */ + void addCompletionProvider(CompletionProvider completionProvider); } diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java new file mode 100644 index 000000000000..f6d48f51470b --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java @@ -0,0 +1,29 @@ +package io.ballerina.projects.plugins.completion; + +import io.ballerina.compiler.syntax.tree.Node; + +import java.util.List; + +/** + * Interface for completion item providers. + * + * @param Provider's node type + * @since 2201.6.0 + */ +public abstract class AbstractCompletionProvider implements CompletionProvider { + + private final List> attachmentPoints; + + public AbstractCompletionProvider(List> attachmentPoints) { + this.attachmentPoints = attachmentPoints; + } + + public AbstractCompletionProvider(Class attachmentPoint) { + this.attachmentPoints = List.of(attachmentPoint); + } + + @Override + public List> getAttachmentPoints() { + return this.attachmentPoints; + } +} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java new file mode 100644 index 000000000000..a684ffdc1a39 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java @@ -0,0 +1,27 @@ +package io.ballerina.projects.plugins.completion; + +import io.ballerina.compiler.syntax.tree.Node; +import io.ballerina.projects.plugins.codeaction.PositionedActionContext; + +/** + * Code action context. + * + * @since 2201.6.0 + */ +public interface CompletionContext extends PositionedActionContext { + + /** + * Returns the node at the current cursor position. + * + * @return {@link CompletionItem} + */ + Node nodeAtCursor(); + + /** + * Returns the cursor position in the syntax tree. + * + * @return {@link CompletionItem} + */ + int cursorPosInTree(); + +} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java new file mode 100644 index 000000000000..35832be797e8 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java @@ -0,0 +1,53 @@ +package io.ballerina.projects.plugins.completion; + +import io.ballerina.compiler.api.SemanticModel; +import io.ballerina.compiler.syntax.tree.Node; +import io.ballerina.projects.Document; +import io.ballerina.projects.plugins.codeaction.PositionedActionContextImpl; +import io.ballerina.tools.text.LinePosition; + +import java.nio.file.Path; + +/** + * Implementation of completion plugin context. + * + * @since 2201.6.0 + */ +public class CompletionContextImpl extends PositionedActionContextImpl implements CompletionContext { + + private final Node nodeAtCursor; + private final int cursorPosInTree; + + protected CompletionContextImpl(String fileUri, + Path filePath, + Node nodeAtCursor, + int cursorPosInTree, + LinePosition cursorPosition, + Document document, + SemanticModel semanticModel) { + super(fileUri, filePath, cursorPosition, document, semanticModel); + this.nodeAtCursor = nodeAtCursor; + this.cursorPosInTree = cursorPosInTree; + } + + @Override + public Node nodeAtCursor() { + return nodeAtCursor; + } + + @Override + public int cursorPosInTree() { + return this.cursorPosInTree; + } + + public static CompletionContextImpl from(String fileUri, + Path filePath, + LinePosition cursorPosition, + int cursorPosInTree, + Node nodeAtCursor, + Document document, + SemanticModel semanticModel) { + return new CompletionContextImpl(fileUri, filePath, nodeAtCursor, cursorPosInTree, + cursorPosition, document, semanticModel); + } +} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java new file mode 100644 index 000000000000..f2559cee96b9 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java @@ -0,0 +1,18 @@ +package io.ballerina.projects.plugins.completion; + +/** + * A runtime exception thrown to capture exceptions captured while executing compiler plugins. + * + * @since 2.0.0 + */ +public class CompletionException extends RuntimeException { + private String providerName; + public CompletionException(Throwable cause, String providerName) { + super(cause); + this.providerName = providerName; + } + + public String getProviderName() { + return providerName; + } +} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java new file mode 100644 index 000000000000..14f7d7644be0 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java @@ -0,0 +1,115 @@ +package io.ballerina.projects.plugins.completion; + +import io.ballerina.tools.text.LinePosition; + +import java.util.List; + +/** + * Represents a completion item. + * + * @since 2201.6.0 + */ +public class CompletionItem { + /** + * The label of this completion item. By default, also the text that is inserted when selecting + * this completion. + */ + private String label; + + /** + * Indicates the priority(sorted position) of the completion item. + */ + private Priority priority; + + /** + * An optional array of additional text edits that are applied when selecting this completion. + * Edits must not overlap (including the same insert position) with the main edit nor with themselves. + * Additional text edits should be used to change text unrelated to the + * current cursor position (for example adding an import statement at the top of the file if the completion + * item will insert a qualified type). + */ + private List additionalTextEdits; + + /** + * A string that should be inserted a document when selecting this completion. + * When omitted or empty, the label is used as the insert text for this item. + */ + private String insertText; + + /** + * A string that should be used when filtering a set of completion items. + * When omitted or empty, the label is used as the filter text for this item. + */ + private String filterText; + + public CompletionItem(String label, String insertText, Priority priority) { + this.label = label; + this.insertText = insertText; + this.priority = priority; + } + + public String getInsertText() { + return insertText; + } + + public String getLabel() { + return label; + } + + public String getFilterText() { + return filterText; + } + + public void setFilterText(String filterText) { + this.filterText = filterText; + } + + public Priority getPriority() { + return priority; + } + + public void setAdditionalTextEdits(List additionalTextEdits) { + this.additionalTextEdits = additionalTextEdits; + } + + public List getAdditionalTextEdits() { + return additionalTextEdits; + } + + /** + * Represents the priority of the completion item. If priority is high the completion item + * will be sorted to the top of the completion item list. If low a default priority based on + * the completion item kind (Snippet) will be assigned. + */ + public enum Priority { + HIGH, + LOW + } + /** + * Represents a text edit that is applied along with the completion item. + */ + static class TextEdit { + private String newText; + private LinePosition start; + private LinePosition end; + + public TextEdit(String newText, LinePosition start, LinePosition end) { + this.newText = newText; + this.start = start; + this.end = end; + } + + public String getNewText() { + return newText; + } + + public LinePosition getStart() { + return start; + } + + public LinePosition getEnd() { + return end; + } + } + +} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java new file mode 100644 index 000000000000..998b47f85089 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java @@ -0,0 +1,38 @@ +package io.ballerina.projects.plugins.completion; + +import io.ballerina.compiler.syntax.tree.Node; + +import java.util.List; + +/** + * Interface for completion item providers. + * + * @param generic syntax tree node. + * @since 2201.6.0 + */ +public interface CompletionProvider { + + /** + * Get the name of the completion provider. + * + * @return {@link String} Name of the completion provider + */ + String name(); + + /** + * Get Completion items for the scope/ context. + * + * @param context completion operation Context + * @param node Node instance for the parser context + * @return {@link List} List of calculated Completion Items + * @throws CompletionException when completion fails + */ + List getCompletions(CompletionContext context, T node) throws CompletionException; + + /** + * Get the attachment points where the current provider attached to. + * + * @return {@link List} List of attachment points + */ + List> getAttachmentPoints(); +} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java new file mode 100644 index 000000000000..dca017b975f1 --- /dev/null +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java @@ -0,0 +1,20 @@ +package io.ballerina.projects.plugins.completion; + +/** + * Util class for completion providers. + * + * @since 2201.7.0 + */ +public class CompletionUtil { + + public static final String LINE_BREAK = System.lineSeparator(); + public static final String PADDING = "\t"; + + public static String getPlaceHolderText(int index, String defaultValue) { + return "${" + index + ":" + defaultValue + "}"; + } + + public static String getPlaceHolderText(int index) { + return "${" + index + "}"; + } +} diff --git a/compiler/ballerina-lang/src/main/java/module-info.java b/compiler/ballerina-lang/src/main/java/module-info.java index b9a7ebc5bb6a..79dda2298a19 100644 --- a/compiler/ballerina-lang/src/main/java/module-info.java +++ b/compiler/ballerina-lang/src/main/java/module-info.java @@ -83,4 +83,5 @@ exports io.ballerina.projects.internal.bala; exports io.ballerina.projects.internal.configschema to org.ballerinalang.config.schema.generator, io.ballerina.language.server.core; + exports io.ballerina.projects.plugins.completion; } diff --git a/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java b/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java index eda0a4e3bbe5..96ff78d9f423 100644 --- a/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java +++ b/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java @@ -32,7 +32,6 @@ public class CompilerLinter extends CompilerPlugin { @Override public void init(CompilerPluginContext pluginContext) { - registerCodeActions(pluginContext); } diff --git a/docs/language-server/CompilerPluginCompletions.md b/docs/language-server/CompilerPluginCompletions.md new file mode 100644 index 000000000000..ca8bde63e9c1 --- /dev/null +++ b/docs/language-server/CompilerPluginCompletions.md @@ -0,0 +1,252 @@ +# Compiler Plugin Completions + +## Overview + +The main goal of this feature is to allow ballerina packages to provide contextual completion items. With this introduction, compiler plugins of standard libraries will have the capability to show a set of completion items +in a completion context and apply code snippets when a Ballerina developer selects those completion items. + +### Introduction to interfaces + +#### `CompletionProvider` + +The `CompletionProvider` interface defined in `io.ballerina.projects.plugins.completion` package is the main interface that represents a completion item provider. Each completion item provider will be attached to a set of specific syntax nodes. + +```java +/** + * Interface for completion item providers. + * + * @param generic syntax tree node. + * @since 2201.7.0 + */ +public interface CompletionProvider { + + /** + * Get the name of the completion provider. + * + * @return Name of the completion provider + */ + String name(); + + /** + * Calculates and return completion items for the given completion context. + * + * @param context completion operation Context + * @param node Node instance for the parser context + * @return List of calculated Completion Items + */ + List getCompletions(CompletionContext context, T node) throws CompletionException; + + /** + * Get the attachment points where the current provider attached to. + * + * @return List of attachment points + */ + List> getAttachmentPoints(); +} + +``` +1. `name()`: The name of the completion provider. + +2. `getCompletions()`: The method that returns the list of completion items for a given completion context. + +3. `getAttachmentPoints()`: The method that returns the list of classes of syntax nodes that the completion provider is attached to. This is used to filter out the completion providers that are not relevant to the current completion context. + +#### `AbstractCompletionProvider` + +The `AbstractCompletionProvider` defined in `io.ballerina.projects.plugins.completion` package is an abstract class that implements the `CompletionProvider` interface. This class has the `getAttachmentPoints()` method implemented. A compiler plugin developer can extend this class to develop a completion provider. + +```java +/** + * Interface for completion item providers. + * + * @param Provider's node type + * @since 2201.7.0 + */ +public abstract class AbstractCompletionProvider implements CompletionProvider { + + private final List> attachmentPoints; + + public AbstractCompletionProvider(List> attachmentPoints) { + this.attachmentPoints = attachmentPoints; + } + + public AbstractCompletionProvider(Class attachmentPoint) { + this.attachmentPoints = List.of(attachmentPoint); + } + + @Override + public List> getAttachmentPoints() { + return this.attachmentPoints; + } +} + +``` + +#### `CompletionItem` + +A completion item has several properties. As a compiler plugin developer, you can define the following properties of a completion item: + +- `label`: The label of the completion item. This is the text displayed in the list of completion items. + +- `insertText`: A string that should be inserted a document when the completion item is selected. + +- `priority`: The priority of this item defines the order in which the items are shown to the user. If the priority is high the item will be shown before the item will be grouped at the top of the completion item list. + + +## Example +We are going to develop a package called `lstest/package_comp_plugin_with_completions`. We will develop a compiler plugin called `SampleCompilerPluginWithCompletionProvider` with this package. +Let's consider a scenario where the compiler plugin developer wants to provide a completion item for a `resource function snippet` if one is already not present inside a service which is using a listener defined in the `lstest/package_comp_plugin_with_completions` module. + +Step 1: Develop the `lstest/package_comp_plugin_with_completions` package + +#### `main.bal` + +```Ballerina +public class Listener { + + private int port = 0; + + public function 'start() returns error? { + return self.startEndpoint(); + } + + public function gracefulStop() returns error? { + return (); + } + + public function immediateStop() returns error? { + error err = error("not implemented"); + return err; + } + + public function attach(service object {} s, string[]|string? name = ()) returns error? { + return self.register(s, name); + } + + public function detach(service object {} s) returns error? { + return (); + } + + public function init(int port) { + } + + public function initEndpoint() returns error? { + return (); + } + + function register(service object {} s, string[]|string? name) returns error? { + return (); + } + + function startEndpoint() returns error? { + return (); + } +} +``` + +#### `CompilerPlugin.toml` + +```toml +[plugin] +class = "io.ballerina.plugins.completions.CompilerPluginWithCompletionProviders" + +[[dependency]] +path = "compiler-plugin-with-completion-provider-1.0.0.jar" +``` + +Step 2: Implement the CompletionProvider + +You can write a completion provider extending the `AbstractCompletionProvider` class as follows: + +```java +/** + * An example of a completion provider that adds a resource function to a service declaration. + * + * @since 2201.7.0 + */ +public class ServiceBodyContextProvider extends AbstractCompletionProvider { + public ServiceBodyContextProvider(Class attachmentPoint) { + super(attachmentPoint); + } + + @Override + public String name() { + return "ServiceBodyContextProvider"; + } + + @Override + public List getCompletions(CompletionContext context, ServiceDeclarationNode node) throws CompletionException { + //Adds a resource function if one is not present + if (node.members().stream().anyMatch(member -> member.kind() == SyntaxKind.RESOURCE_ACCESSOR_DEFINITION)) { + return Collections.emptyList(); + } + + String insertText = "resource function " + CompletionUtil.getPlaceHolderText(1, "get") + " " + + CompletionUtil.getPlaceHolderText(2, "foo") + "(" + CompletionUtil.getPlaceHolderText(3) + ")" + + " returns " + CompletionUtil.getPlaceHolderText(4, "string") + " {" + CompletionUtil.LINE_BREAK + + CompletionUtil.PADDING + "return " + CompletionUtil.getPlaceHolderText(5, "\"\"") + ";" + + CompletionUtil.LINE_BREAK + "}"; + String label = "resource function get foo() returns string"; + + CompletionItem completionItem = new CompletionItem(label, insertText, CompletionItem.Priority.HIGH); + return List.of(completionItem); + } +} +``` + +Step 3: Develop the compiler plugin called `CompilerPluginWithCompletionProvider` and add the `CompletionProvider` to the `CompilerPluginContext`. + +```java +/** + * Compiler plugin for testing completion providers. + * + * @since 2201.7.0 + */ +public class CompilerPluginWithCompletionProvider extends CompilerPlugin { + + @Override + public void init(CompilerPluginContext pluginContext) { + pluginContext.addCompletionProvider(new ServiceBodyContextProvider(ServiceDeclarationNode.class)); + } +} +``` + +Step 4: Manual testing +1. Publish the ballerina package(with compiler plugin) to local repository +2. Create a new ballerina package with the following source code and in `Ballerina.toml` add a dependency to the `lstest/package_comp_plugin_with_completions` package with `repository = "local"` + +#### `main.bal` + +```Ballerina +import lstest/package_comp_plugin_with_completions as foo; + +public listener listener1 = new foo:Listener(9090); + +service on listener1 { +function name() { + re +} +``` + +#### `Ballerina.toml` +```toml +[package] +org = "test" +name = "completion_test" +version = "0.1.0" + +[[dependency]] +org="lstest" +name="package_comp_plugin_with_completions +repository="local" +version="0.1.0" +``` + +3. Check if you get the following completion item when you trigger for completion items in the depicted cursor position. + +[completions](images/compiler-plugin-completions.png) + +Step 4: Unit testing + +In unit testing, we have to test list of completion items given the cursor position on a source file. + diff --git a/docs/language-server/images/compiler-plugin-completions-1.png b/docs/language-server/images/compiler-plugin-completions-1.png new file mode 100644 index 0000000000000000000000000000000000000000..386af66f04ea262aba4414f8f71ba45873130235 GIT binary patch literal 45328 zcmb@tV|1m>);5}S?2esuY}*~%wrwY!tk~?1ZQHhO+qRuA&-3iP&ptoSc;9b~v&O=W zS#{T%HEYhA*HslNCnE|6jRg$^1Oz88CZqra1d;~?1Y8UW{&gj#qOTnX~) zttC=ek1DTt5MQ|BqGdTj{nVzxBZ24ighO=kQk~1X z!7@SP)FgGa#-cnWFz!1^pbvx)Wx4a!IPag!kOXN0ND6-m{3Rtr09E`i5y-;d0ZMqiwa}UMb5gIOqHDMt;q#_^B?!bkm5sV~uFd>Gy1$-jPjxcyI>_O8 za5ceo`PYZubRtdCMpRgMy$GYV0Cqcau%L>!u2I()qWa;FIQ8x2IlS^%%O&s!*IIj{ zY#Z2m_Yl6hn{g~%XX-4$J5H9-@MuSw?rA^5w{&z|pb;?zv2#cNyuPWf#tZiqpxHV#Z?U(FOje!tKCt{}%}WcFn|>PgqtbV?b9Tn-6O8I~L2Jv^9K`MC zX^$wE#;ez+e(2b&z{P^q-TJy|d2Wsr!u>)=^fol<3DpQWQ?gA@hYjlH*2zU6)t2j| z;FETnCh*d)1wTgWK+zb#D}`bpm;`WS=NBXg$I+rr0tVM@k-Pkfm$JWmvZ;?I<2UO~ zbdQ3m=rkA@@?~?duzy_I-2QEAY(fT~GHTD>;fxwLjW4-3Dw=;(S~*?qO+5}Q8|{|N z@`Sgb;AsA%Hv4>!d)I5wxpJU{^Yin`S;wyt2S-~ql*AeZ0DIy|YF*=pw6BR7ijEDI z04LRCGbjT!Lui*u5!Y{FV?#FS;@wM2op6FgP-mR3T{6hJ%fh5AqZyO8&y$oe^da}R1N!Taz>=01d)?QMx2txt zZ|m_z8YvWf&T*TbD&5&K;cn17gP%THwk#jz(kQBNH9J2^1~q^$?LHplm<`wC^%(54 z@_ujP@QP|jM_6;lO{^Q{Tsf>+F?bDE_Xwu3P+YgY;^hnkY!%=IfZIjGX5DNhmol66Thtij zXPne%N%-}M-P{X{v#7)cknjp9G(pFYc=5t8)zEoZa~8tS=0w5}iIsnoWFc8rM^VuP z))mPoX5bWyOoXOZ20L3bCafr@^W|jx6SrhHN9m!kET_t^ufl4455#YVFHWp*9vDXT zx=d1WRC^!wD3tfkGc6}7tWUfA5LCHltBm<8mX4p_Yl)4Hh>ZySon~JDZx`0Ga0-3= zaK7q(THa{q+9-?kdew`7$!H`-r)j@ygO4i8_Zfo8LT_-yt`iBfJ$uHDS6+?C?Sx}_ zi91}T=>FCV9h8zwy{;}5ugvdRmca5DxwY$!a=T1o-LiFf4yWusM$YVK`n@xqIfYLM z)9uLakR+ugg{bUfj~fmI{JQjY;M$@rG!EpjnpNd?CwN{-+h=QPy6u-YwX8Cr?~`k_ zHWzyfxm(e-)sUWbr}Fx2K3QH`O-du!s4lmAcGk_tl63UO#%X>Z{=)00aKLNh+&n;V zbRQw}Gl-K3HX8Him_Cy*i+26)sM)#M+&re$s(PgGe)xz1SX_X);?#?BY(10zFJm>KQS6n*W0Vh=eljZoXwXt`&vpJ7DW>Vs}||4=a2~v( zAu>>bBqhP}X9cBhg|oyJcR&dDYZ%2PNo}Ev8%W@+i1D<-yUv)?Ue=z-=jBC!i}ERf znTyXA{5Gq3^nG|o(^CjSPK^;FCNVNLQk4B(O(AZ!8U<~?^@rPbdpjn$3y-WaP+ zf&Qr7qyEU=j({+$w>xSJ9*lz%wUrA?yswRD( zR0hNki=Zm69TVQM5mx*{5B3Y@jrr zf{0B;#;;f?#rFDkif~ja%DL{2qAG)u%1(>^8H0Mi6$HL|K;}KEM-DC~Wv)txk`-if7 zW@erCu!@^7V&iQAG+M18l2n3uwubZn~vvpWp4#No5ZmnhJ0hoi>Cg zQ*AsI4_<283BvmIVOP`oiRX)9#T^lh01!D*=k{T*))wISTv?dECP-`Wzmy5ahlaL3 zUN23jbA;14ouRA9ia9tqzRclfCD*Ke+6RU*@nJQgVbzt<#0+*+1i>Jn@SCJ173HFc z5|3F!w-tzYBA&ISnbiPe7aSk@)otij=Oylln=PACd3lx}2v3`kRNwDQ`_95-S;P$yx$CC2)QoI=MKZrK z?Z7z@iF`VKdyTqTAX(HBi*loc$owJB9u z4V_9S^mQxjJ$^Wi^7_a6y_EGx)Xums38=Bd-#SiYV$Y%gOJTdgzu_DI8LiIk5@LsA z$-QUGwZN~Q3bL}YJ3Bie;o*k!CCW!mEtb)FrTrQ_z3T3j__}}_DA_bd!)v^O2~2?Z zapZSf1SRwdh53{5m{$=8S7lnJjmq3G-#7h*cWotgx`QYIVm!!3@n#w}T*9cW8A7CSoP_xGHnp0FZ^&XQ6j2WHfqRJv=7lTqe zYkWKFbw7<()>9CT!N3lx)Hpw40=)VAoQ&`m!Oq0Qwx(?=D(!l1>CLV8B{CilwHcTwPr?y~I{1?^39sKi_WddUqX$(oPxl zPd%{&>F9jSjLrsEf4JTxBUQ29&a1=JUPu$HqEed>K}a|}Pxd}21K0pweyxMDdZu+q z%92!YD##wRo*-UjZ z6fdPn3yWjs#?}!>m6$AU3ozCwneEn%g*cX#Xr+%oYPc5u3**F=&9nDJ$)n{MH7*;qKM!cIGeiBmI@x+BFd| zGuN5sbFBoQc|C0hx7{yj0&&0J%@Pw6YkmIKo<3BfWLsOS03?;#wn4~_$z?t9A(y(c zdjZ=iUoG8&T)nm=r(ddZtnUh~F2@xCl=W)#_ycwG68hMO09?B#!#N6}3b-;eurwoU zjmyd|9!81d;|ZrH_&_%PB6g1Z2__gbQ zIdJ>a)&gjAeSQ7aPG?SBC@3fZ+V3O2liO4`g3lT*O{=%vKu!8tx!_#sX{0$9?O}@% z#+qMB&9F1PJrUcKSd`F1P0}&b9Wz=UDB9=K4XdV-4oBPbfBr!}jo6-t@10h1X%?HAf|Hyp7ET{iJK`8$lgvQR<1!!lWS}o=4osJuHG??f8cP*V2#xA9tyXOu4>}os0G#RHvi&0um1H{oxmOGLtEM zt?4AV-e43ikaeSKxkjK&Ve5wW8aK4-nzhMTJ0OKL38$CD^G+AE0X#HIe=q4%y` z?)WnQKd{nux|0X|vNQhZ?r35xR{7CBa;~`chhzcV={K!-sJL|SlKG8T0O=#z3= z$ZfyLOxwF-H*0J7ZU@Vr&vcK+OcRnog)Rrgb>rGX}hEZhzPhL&5C68^@w3LrsOcK1)-ao?d%$_%K;?B zjb!nWwR$sp$;~Z+yMA=6!s3?h_2^zP?2`lLXZ>yT9##tNdRBcxZt!R7W@l@Z#AoL1 z=&<5-GqC;NQ%FdHmIX4XVwu9+s;aB7R~Q(WFCPr34%cCnd-EdApICBEv^rv9yLq@a zJD@w!RkwkB#TII}oqwCDWpUo}pa0r-e_SgZ*NY0TYK2u zF8$edCIb^G5P~ZhbZTp@&1<$MouS-J)?%?}MUo^+|I z)^Aqelr@|C=T-o^7y)eM>NH>LaXE0Xi%6U^{uZFZeaLOKSdOye&o@ z>Pi)ZCj$aZ9(ayBZ+$jl+_`{zB~>4SKw z7yq;yiG$!_+B9~x`TlPb(_^2zlz6jehx2UEMV|$?4OYr5Zai<7)b481{eus;4(3d? zZlu-m2#fEbjV^%hX+;){F;)+U_dUScpUz~}S-$)cssxH*L7YRnG!N6r!IuwCo%Iaq z>1wPFR?5(i4|?_+uzi!C$i0H0Iyj$KiX+-0^b8A;yUYC;SEe_z=t!2Yey$rEGA3S# zqOyy6HbMHul1a!~;~tf^2k!>Ry?AN-5u=DV_w5*`t5#Weav(&e;|599A%@y%7}5NS zq4w_)(b3-B+q~`Y1-o3qb55l_WUG4cY_fGyp8x03qMl+ zgc6%aRlDz^J?!HTq9u>TAxh)0s|CWDaXO~uoJsMHQ4Jb8F%EB=F6mlrrTSiTGfxMe zIiHGs*2NW65#vR)brpJhr=GutnL|r%bx+fx?4O!nJkOxo85`S{3SH&aq&$vHJ*$fG`cgtPB5L>yf_WMdA{OQS+;Ocu`irHltf`UXIl z$>|N~RgrmrFff2(AY9qFpqkYFnQ4D5mV+hYEISWPiUc1sVFJ&^gcW7?66vkNc6>vf~3Lp7E?vNC&^*=xpZ$b2-sp$px;9l(XhfDQX) zU{)eL>d(sb^hpou6)F+nOeTh?&Ci3?6k{0o;DhJTkdQx;GTPAo8J=qyFGfQ)gQFcs zPMq94JfY#?Uqkfbh4$6JGA9&1G`JkfGI;glx;T#%o~WzWJ~-zzyBt?NQu=$@&+hp{ zy_86BIkzof@*X5{0DFc$FkaLKtyW&%Xb6050sFNRb#U%@>~=q(KZPDDgmq z^G%a5c#uBFKmrCq4Y_YF;;%i-uDX1#Z*mG-!6OCuuioO{WCveMncaR)($((bNuSIP zlh?4`x|rJr*R7bDgK3^R!vkvG+Kt<;X+F<@tr;{b@t%?U25r03}UWj1a6Zw%J9M4}O(7HkojD@ry>HA_LO= z+go;V7^$DQj5P7q)9TxH{B9DIp~;HCFGm8Trlbg!KOGFUw_yjyDJfRuEO=AGCnwqR zGjnru$A&JfB{#FnNtIoEyzzkupCQ4eIy+s>q*ltW?#JowL?Wqhf-lfBtwZURC5DU|p7%u_UJN*36+b0qSmgS2e zJhkPK5SdIH$LM%B!I^EMzlutaAk}jcwCl#YA;>+FaEL7m$&@4 zOWU2KzCOWUv-IV+{D@a~KCTG$+Jq{Hj&D}1V*?7D&0407C@Fe9z3~s*e?*8(OHz`a zu5PI_p;&8u!`^Lg8>Ku*=ug`{{Y)ngpW~rXSg~1C{}5vPMDD(Zv$I*E6<-f7CvA$a z&+}yL>9@;@Orqe5HXrHlY_5uZ7(*0JMUZf8_=iPm!y<#BbR)a7vtW4#eoGw}Q=V=; zn+GwfeYOTGMwm1hHgf%{dSJ#?JyB;(dVWd7-iBfp4}akL{aM>ewf{ABRz8oE$$Quc zWr;qa;8x)mMgB3i8y`#jUZA9yb6HNC_bru?3$9mcRbD9hgYCij4qnBu$A|9Q^SYtg z;Afht$@t!A4BQ!cX}g;W#?~#+>>%A<2Jqn1(XFXldr5;S>I}S9|K+Wh5#_LC0+S*z zYie>qSdLD^H;jt?e|zf%S5Y&wqsGP6p?;1$+{5q<@6UH?owlc!gWu3y>H1&Io5Txx zOeiCKH3-THIW#>zV6wXu`FPSPCZ=8gdMJp;&9VBZdLkrBWFh7joGzNRUT_6yY%K`N z-@a*wt3>vTC4S)p1J33%7`fVpH5=RR?cq7{Xd9{cSHKYYZ@&2MI7j3kuLemVBrE=Z z#~%N0Qy&)zfq@NCslFec?{h^`ByEq6bnLrlRsT-K*682!1Wx=)XC&6I1>jYZ(r_dG zX{ta-YF4I_7+u!nCoInvmmc*K2N&Ky6W)ODY#MyU{~@)XD*pTrBslc@Gu6M>0ti6< zzXCfE@Xxa-iPk?#9UvURwX{|rkjFoezf}=eXb9Mp%R-5pK9)UUnLVO zV)4;Ava--;c7*Py%}r#;Nx@ChyUyxq$Ic}klBeKf0pU~g``bf)Ap3LtC7I_G_pN14 z<41D!>c`ksCak^7&o5or*vI^K={Dh&(0`VXD4&SR z2M#o)Swsz#+(GkdwM0g2|L|MGmM3mkA5e76{Z&;C@ksYc_NnE?hsVZ9yln(n4EE^L z5P$x_k=cj+iwSf}$884OjzJe^D4+MMncn-5BLb&MV0Bs!}uK zjckkYKRaKXvNAjn_|?;3d{|-zqvy#t+~?I2ef5ZaxZ_ve4P@365{)mp^aIYq68@d5|G5Fim-Ylzs0pa~D*mAQLHp5@8Zs$=K! zeUs*}HnDning0%%_Jg;HS$XCuf7snS^UF=Hsk{gal-x!BD5_8C%|tg~uHV5!90fee z3Ytrk)xPyeM+zg}5qoEN;bZwE_`h9OdgoM~S61L7jK6`zYDD{9+Hs%ME-RyVpB2fC zy|Af2UwfT21(QVc`G1C5S@G{;?o@PXdHcB5Z0^A*uIgYQJtJp?vfAMjA3Lhpd*7dW7DZ*%AkdWZ{G_1B9&!!gYa?e!k;N zK{{Ez?m?8fA$9dsE9X9&KJ3p^g6-lZcV`)Ds>{1v^Lh`o)n$q=tmE9KbzRBPX<<8~ zRA>vR_;z2{VGQJ#>%A>OGV|)#HQ)diuv|J)+{G168QtJxGqlHssu7#?yNX7QHdBn_ z=5^dJw7}_zozETJOlb5+OF7i8Oo!Iyr6i)d>89{iOMP2*&d=0qgGw6GpP2RvPm?%# zz~R8}T3u$-YQ9g>AiG;OX7dE)PcpDlg0jKRoo$Xy)K|){mY%I5j@Chef|r;TQylh1 z#h9#JpoU)Pz%5dp+n!UMb(-#o2hU$nu$#TrbJ(_q}{ znhd6t&pps9`^FwK}8EqfkU8LXDkTf3Pj?i1ZwP!qb2a_B)5 zvOgN8*vlC3YV*)FA_oG8PL$d67sQR?XGlKgTF4%D!`xkRhefy#PQiJo(CEp&Da9|f zSn+sssEF!(v%^euC5m3Yybd=Pwt5?uIN4peeoHZT`=-Vup80@cY<2!uu4%r-! zsaDpjXBIy1Do?Lct-bM?(QHiyZ&;M-+g%Wa_#O$N#O0sd1stV0UT{aB4x@7L@QVoz z5VxTocQDz%lc-R$=*l&lf&?`nfPvW#vf2n`%3Z#_^byCz+4%Nu`*DI~x zTf!$betMiXudCznpr_{p!JNLUrMUUd^A%&J`R>CBS{H5rZlu&qpv1SoE$FCRjAv02#@bIFtUJ(8 z#s^!yCS*Tb(p<+LukQR6p&YnNAYY(5#c=|gk7VBl7xv$pQ93f8VDN6+J;zFsK8Hk` zAJ;s}JS`bytpI;;3nxML-;7VAlUui4&$vy6GZP2a;P^}~f-)b>8KIHI#5~|T6)m4e z*Fwv@U7%hasLbV8@U7QhF{omD)Y>V769%LjNQ0{xDI(&nhsm2F)VuxmWAz^yKNww+ zuosPXQfi`>XK7{X?g)35(UZ4gztAVL>p?J>rRw~Ug9hMWccTybhUq7HTuHE**v3a zW~BAKE0pF^&XH=o<|_@Dwl@o3|%+>xUio3hT5gCN_HD26tYPT~hOgFOc2~JZ4&UW%XSy z&FF0$wEs3j9u#~~Wq4txqgE9$l1(KBaOj!OTr|`XqShXq%Z}g6lh%K~Id3AB?Uh~D zM_zUL$UqqwF&|~uKQF;W)kn@H*W?XFFBmu4T!xYYILJinAct2#=E|ZFfY5mh32%i! zrZ~GlJSui0=}15u?%znIR9XezY(|?HD-dfk!q%bC8A`{zzq@^zferE@qWg<+1Mf42 zM_4;X>s_-BT%&8K<~Z``;g(8UPmIWMtu9>&z#tanmg<8)*Gt=^)d;_BuQqt%q zH&!J#jj!_t%-yNLh{xrzgt~I(K{_Kh&BNxE*Lw@4r-}8Rwq>2T3hl0!W+w5?>8`8& z)G3joqvgY}z!g=pFY}7&JS#bKYPy(@M)kmtnyohNHv8CIGggAv7Q0D%m_&^>FHQaf z8muzD7wuSBWqhtuQr3=bcfM1+*OLv0^Et|dqxH!pGY?1Rxq;M1_W^vLF5Wjcz2uVF{ja-i~ef%yhRd*|I8801{h{Ld~kgGld1SNG`Sip?|Jq9n8_%1OATbC+ls%9VB0a=QW*4j z!u^#yH?iD@2i!?WXlZTx4X+^tgQ^$v0+M1)qwH_|;!hMmMemc5O3F7ti&q;to>s6s8$~iIy~UfOmi@uSmi77_ zaueu(`5m`Y5XRnqJmK4Zb*o=cSw)9e!ZSj~myYmc>t;1VATZ;VmY z1EQY0{1s`qfH6QExP)J89P`?PB>{6&R7q3Vv1ROViw%jxlzlFWco`Q6Ys|)#Sef0{ zw&umV@q`KyrIUiu8Z@yxU2kqiD=q>|N#Sv?iZe8k{ourLIO{h`u1by_X8f?48PxNm7;);abm# z@Ty`Pv~Not_H=ID6-|PQkPOSRS!8s8ae821XbakKWZd1MQ`v$&3J)(DU(~NtQOM90 zvi3rZ7k+11u2%A2Zq(k#!v^B&P6?W7t<=}EUMLeE8nIJDuOmCBe z{^FWofAu@+R^xzYE; zK=~t#Ku~!O=iEL2>_o}VfXZWIIPbv;FSy~XKm=1*&rCM+a&oA7_KI4kH%hfp(YYn< zc0U=%O&@Nb6^JfKMzX8?iRIyJD7!;N^cj0}hzGT2$Q<2UtV&Mxx8V6S4&|gq5!Fzh zPNJxEE?iWyMx|=5*iSAl(Dzfxq4Duu&+@2PE|nM$!T^S0p5)*SWF8I`ABiZd z=A~d)$D$>Ht&pOINz_LE4?C5?&~LcX_4{*ZRwS;jI+cXxyme8t5S>}o4M?lchI5yz zg1M`ZZErZ(Ztx=e8j`)CNYv8xY8IVcc0USZ@mVVbr+A*=EVtHDKlj=`s2AvNIo>C8 zzw;p4!ga}cUg8FjFr_o~n^vi0W_`>@GkC1|Z!UQ;s7Zbeme{+|&TkpL2BAtSj$2ol zrol55nx$}6`qsdfR6cN;RODK;UdW9KrX`l%e$^?Qq{w;lKGV@ZBK>abbsamb{W)bY zQj-|2Xxlgzw!NqhPe+cYX2y+2xAhWy=kj0ONI4MRLkUM7Z3@fU3Wp6qyR#{|ciF0` z_iKVJ1g=0+iuU?0xRDYncF|MArcRyGsF!5yD=HrOMBF?xMe*;pwy5y6V)~ZV&B}_c zDu1m~7W2U9`xE&{{0Ja$RQ=6u{msi)=iD~J0M+JaY_3Lsak-ObfJ)H!)P`@W`M!pt zqjcEtg*}?Be#J1P$VeyAtNoN|EQ8gZ-@(EB>|KKm`7~wL)x!ah9F%W_0(NlPLpf!E ziRWs;h3^46+IlEn5+E--RFgh!Yv zq1Cd%l!FmaVFqsCtr~a@R5GAAZ6mE0A?e#+Y*BG z^^H%X?nuBlZHcOFE@*2{WoDi7gGR`Q{>ALZ6t*Q-v^qTxiRAtEO_}+`2^Wv9uwcN? zR1cK$>^-}G1;}mMAP}t-%nHq8)4Wtl_x$}AsxJfRiyLB+N>^B&B)&z(ap`eF)X}fk8&2Tr}2B8Y64z}@bxc7#UHx6$;(X{j#e*UR4NBcJbi%q zedZzZgCh^6ZnX3QeUPEF+DS{FXXv^$z-zV^$dllT~T(h z^-^%J^{>KH4vWJ_+AZ0BWDKm#uHQ|=QW`AL_TJtR(zbUMj3_rlL=jw%4Ca|GA2g%N z?#t)!Ae1~Yy2Q@D=>4U5hLRod;p1M#!C-=P-V^ilR=QohGf9ni!UIQmyHovPH(Q5E z?VeaPtKR(s`5bAsHCs9BLMt~LaFdo4Is++(jSs!kAgZLy6}ZT_`MaGu^4bqA#lMzC zOvP2aHN6*pMphtoW-~lxg!@LE&k2*zlaGXViQqP~Ohi?(yLg zd)&E>;6WHg-latsotHrH?QTdPw6@NmFhi6(0{qTWXM_C0F*xO#fZ@ujk`M#=l;5=z zM^=xm6lg_D`QF}16?+igOW-eUh4WGl4H?NJ(4H2q?FEUuWsbD9nuxR%jF?%phVxlt zGZf#i*=(bcL&xw3jT{qUUN0|YaXGMb@V4iZ(AFYr@SK3QJBb!eP-*eByy-oekrjF` zekvscYsnS%wEc$_iZ3r(#6C}vOuhUz`gC?BY-CTgL`b}Fw`d)rMx&upO}YNJT-^oguqFrX+%Bq7vOHHiEIi$!7vq{`RyW8$x4&$?iEEmWN zv8aNbLYg`AErdzk`)8v)2%JssHPmshrL%H+f5}}pPuY6~S5J?ehO|}@_?T%mYxC{{ zPv!$0GXd<>Qq{?%&O(x(FEB9dT~qcV(qD;|>|JVr66W{GxIHnc%uB-Bw*<;amk~Y( zyl6Q1ep#ll!Mfe+iq{C)NFY}DV|YXOlwoA~UMPjl{-bKXZGJwG!2H2q&55^4soi{U zctMn?xIwUwA{@$v)S#raMnhZQxxrr=$prCYr+E`a_L9iC!GpF+(?#mz)&(|fOS^SVlYp^p!etN27?rE_dHtbR^9JPCNj44O>s!2r~6!H zVGt(r4%&sW$0>&b%*;swNWZhnffZfJXz>etMLPD(>SSaolamr=LPEkTJQTscGt>y| z>0wnzO~htPRz>vqfwSd@ys~?x=67!4;pz7S`qqJpoB5ANgtD~?HO4Wmr7>O2r%5r~z?=MtPf^MKE*H#$ z=%?K9CdxZ(0I-!N@-_%EdYfZ|9xO-pq|MoprgT!0NMdW04S%xOyFF%ZStExcHkg*3 z{wpx5kcf~j*D-^FiKrZ#&xcWPYnRzz%djGISOQKCaP*%nI~)Vi=U2a$9oU;XeSbHX zVlokayA0tVo=mr!4UVcixhc9$9$S*bHEwZ`K`F&ZMd44cC~^&jLyIV+(l`6o3-PLZ z&D-n+9@SQxDl+KtYibL!jR*VSs5eBbU9N4Q$*QN)NuW(VivlwPE9@o%fb~rO)FZfhj7TE?* zxU5;kXGxjNuQJC9}9N=SR~r_?jKK^kc%Hc zvYY(m+yYlvuRu0)GfIoWsG}z!X*?JGU72G&Tw@UXUns`g5hVHgq&ra;)CpguFbhY# zPc<;Pf6&hBp1&Jwyqv1%a@n~rLd?TK>Kn`X>*BM2=~v9sw|t?C3-pVX?-{zh&uBm|ZOk9JO@-cV&;;KXE>vu{iF>c#}v#L_LuUO zD6X68zWjR*JgU7T=xBfPx-Y7~$)%0kpD;%B)0(}I&n>W58?PmB;JvkYw!&n(mY{BK z?@!~2DvrZm<)JH$;baJUa!bBX@d7xOb1O$xXN)**ZMWme?S!^kM))~_9K-$>9bHr*o1rAw3R^pL}6 z&JqFBmuli0{e!yRVd*3DQW_t4vE13$Lhv35pJ6wozvN>Y?FfkwI!!;jYkeud+Pqx- zw%>r7%f1>OP>=t;$STX^lW}J8Pb-JAxYQ&jt_OSgh#A5OTUPJg#loS$h_^DrB*@abX;UucOsxYtIw|2bTIs&#$% zCh_VpjXo{dc=f7$2NezR*|m^K@qDT{SzGH}VND+JJqO`F9NOIQ8lDx6iwoM`Qh{FV z8Ff|XxhdS}4lOt7r&Ac8^RxRL%P+(RJp%m&oSAUjY@<6BWQIulY;YNrQ#0bQC9qg~ z8lB_5L+tF`Upg;hwF0Y$FT~>f+mT~ zUnJt1&3|u@eLtw7`!^BVq50o;{y(fjz3H%W^?km2|=Zcyi?B z@&qrfHT*Y+XfJpd9T2B7R)}!x{s%D@b;=Fd+tvB>>B zbk`=pKmex|-Y)oS&$UEhAj!Wd)186iU`H|SD_Bh709%;*c@a|xqJQ54KgLH@0Ah|v zPakpP1A?g+#;xz75(1QK;y7MVdA%W#z zf+4H&ome%N*31gJpDZss0M7zdL=IkPSyPDrv?Az873vsOE3POF*Z<#)Eq0FX7{NX6 zJy5Pz$@C&7gQm6|M5KXd0N0_@uak7#uN3L;^&%l(a>RLPv0#t()oW}vKo=Ey4A{lI zZHbe&lk8l~|Ivh4r^cMvKPybWOh@!HLy)rX)AVvYAYDB9b}B*{0KJxmZM-X5&_ zyR4bZ)s$Z;ZN9O_u}ywLyt>BgUPD5wY;fz@#>Lvm$jnT;Vl6d|inRMo5%-=tG>Su9 zF2hcj4->s8-~$NpJ0gm4&FTBEXUc=e^vlbacay2+gBQGiDOQ!{|JgU~1o?k|yt)pD zk?|3e(XM>RQ9)?dlL(vfi0Xd`==b5WF{@_loHHi=bY~88iLT{a&wMN4je6o;L0b_) zdYDSo@-{ST6}>)Xh+9=TWU_TU&*Uo%%;+q3L3;G651$6isnT+9qjHkGWh@0&{(d^f zCI-CF`yRepX63@QMV}_h5_M_rTAKc$AX}>6B8I}n9dZ{ch;w)L{OXIo{k*dyATJLs zB~J%zE;&TzZ6;WBvvZ2&$YqtWVwY$`1kuk!1RRn-7qT5BtDToN0{3lrjGF^oKUJD@irbR~aLg4S+Sqm|nY^f5+ z`1FVCX*bJEpiWLbZS=sE&vaIHp|-GD4*%yh8?aT1)<9Xd2Hr^AW#||C`_|yL+3DG$ zlehl0L&zIzpdJ@D9No^SGt}M^t&od344RUyQ{Yc^j$rQ7yq)n)Z@4!>Yf&ypbA;!c zJZGd)rB;`0ATDl1V-vXa5B7)8h*<^y!k2I2`l2J764$GmlcYMT)l>Rp;`i5v&lfV0 zc&hL%{>O@NO8IoV_z3M|nxC3MAF_}3mp`PnVc-CG9nq~jBkGTD-*jFM;VoWdj1K0G zUThs&Kiw%G;r!OWV&sLOZMDNDON6Hh5}RxOJOF6xM&G@_FMHPt{Vhh}FF1O|O+AqL z_i3ow$$`7sVfT&~vH&1SheB{Sa!8jYwbE~pMDcMDe(U5ZNV$0WGE6u1f*4{Zb-bqt7@=tpG z_B)UTk)Mf%V5~nfk_OT3to5{4HPM-#RDj6#OD~A&8ZW%a4WMwDVu##7zA64dpd7Te1@cXd;7KX*d$tTKia&J@c@wYLjL{%(&6@wE5!=L(ylvf5OE9A5HpgMC&ny8#7C1hoTwRbuV1$&YR!jO+i}o= zckJ2F-!gHvF7qmAdqDLi!_ypXd;A6YsHdTq$7f6?1*vlH3Gx(PcK* z0bRb~!aeFBQ)A*euQ*fH>CSsEae7wP9~le)$NetGToSmQR4A`vTHEV1CDaO5 z&6k&w6QSFeSy|7U?-%}hV1kbV%Y5QrDGNA1B#{AOn@iAw;THkcvgdE?)%I+iXJ$5? zudyK>AIxh2uSjE6tnN;joVZcRrydpZ4F{5WZlRMYtf4Q4B5`T+9??GDd7IVDZ%`!O z<5{&0fM1-PH7p%GXE`KQEG!5!(T#h*I$nmqxc7$M5^J~Ikhs#QbptQf-yUO!KefuJ zz6f9f?MuuobDOZUY@+r#WvO(5zp!FQU195t3@F8wbOt&}G73n@s!%Oa6j!;psr^ei zX~I=0E(#hKXzOu@*MR!ncJ&SyEdYU=3z@C{6ZwQGGkNapb3n=JslHSjE61xo5zw81 zi+8_ggrwy24|jp+?X$B0cr2at6}jH{oh@l52?j7N62?}y9iTVU%lfq=q@FtG42RWQcd+*LmM7?&5y_&IYx)rAgPbnN z919|c1Bqu4&o}F7Jk1g3mdF&b*K;(SN6uO~!p-JUuv`P~olmT_s`<{O^?0@N`AmI0 z6sgqwFxr#3GzH=v!{{}xyZg8-^$M{-*{g*(f2P2*>lU7QeKkUg3T}D6(Dvo@=BVZu zcd7QKk5E!qHYN?7sWctTVTKeGAKZ_v@bb`j}+QD4UYA@19SX-;$$07~tAZAio@T2t<@X>M@Y$CoA=K zf2<5ItCxmiAGiYER>q(2Hq|ERNRV6NCD? z`~3@5xBr+&?2y}w+>;K+70^jF16_DU&+U5}>RziXd|QN7ZQ*vx3&r3KcIJ4JcWaE_z1^1n}>4SmyMB#~1`D$f?p3>JJNZmZr7h77>(TJkLl*#AAi-Pw=GI zdi3T?@f_9>9yDZR<`ZO{-uE?dX*50CZL;58>!I8eHmFb0yJh+|JEj}MCYs~m-|nfk zUCcpN!r3G}-v)n0{VR{AQ(ikRnu0&JnJFg~e*xonh{Va1s`P$kP80R-T7X)B%hBfa zAf(>L?6ZtlId=TDg4W;kX{>Nf6j60l5O1nIt!Q$ul|pyWod)Y7{+vv>9(%2-FlLqK@g6MS zIpF6>lE5)l%RYT%{JIo<*iAtQ?qNNj?YQduiBW`f5Wd;VfAI;G9E%ViRYUcv{#pu} zjbVO~kUsl~qb6gy>5)7M6XA6kt%&epyFxXcBkh!zs$HL4uav+GGq>}^pB_XN1uoZaX=k1tkdzLW`A&%yKCtj0XO6FN=*1fXmmTU0p|l{O|Llv7w;I{dEaafc z9J(59k};yA^6{enra;n=Lv8|^GcyLhiM`-UsMx+M7t>GP3u+(5!9V>hnI02TTrN_j zeO7lY9RFCP8AZ>Lk$V?p3mS=5N+#i&I2DigdVQk@1rSNfR8o9>L!r0-W?i)1FCR}c$w6RTxbhtlH?K9sER#B|)+3V`HU#JwjIc`8bjfE-yd z(cG+b3jHh(ILVj()D%Lb*=KXeOyM&i2HS{@rf7-fEQ2KVQuV8bNPXwz`BoCW{YVcdt+rho#^L?N16Xw~OazjgA(fT+;*=T1BRK@24uxZg->%j^^fw;_|Y2 zjGZWCSRGTc1}lvbrlIAa=#MG;!wun)+}MiU7ahTO6DNNrR)yKV4En3nlbEZQ$t4@d#y&S4b5IS~(OkgrzhawpT_+V;}8 z{A@pB2)*lnJ4(n5c-FY+#H5UJD78|XJmFIXjSx#qe4vXNT+~Jh`33({-yNcJ zg<&2;%gdJ&M>{NhRB@AWw_Z7SsKqH~`!8s>VgyYhbO|Y|RYHP%rotTK)whGBiUBW& zI}r7CyL0hMc}FE8-FlozNROU%B>0 z@DEo$G9`E&xf`+&^q-7qn98MtTXQ31b535MJOWwR>^Z^Ej88(SH4{so1@O{f+}-7h zy{Dk&_&iOF$4E_ucd0oI-+BG~=hUReC%-XD@LjM8@PHvgAjmZxRgHv*+8CKn7Y>Gv+PJQnKe9FPK;(Lt|X&E?5j8lKE9 zypYF1xbJ2&tUVo>{ZSfGbsZ=#EI96W34tyKX&LOV>UnH!hx?A&foNeGm3F(IqOK2J zS7LQQyD zl&LKxhf`A`87>h>2IWGX6c#C{A~H1xu{+bzWuMmy(p=etzh2+g#*^OhC(VUr$BP|_ z=uA!*CCM$Hmg@!?WR-|3w(LATD?xuOT`17o9i+1Dde~Z=A>vws2 z?e@<3_5g0tFdI{dtx6R+7cr&96*B|l z0)z;01529~$KX)Vpkmf4h?}E+;yyUu_B&BO1SRQ-qTPz-B?(Cz1Fu&! z%=#M$njer>q+}k{o>6j9rjX6Y979q%yccDFlz7f$@BSC8?|bm1HWLd~@Sii8z?61f zan$_KuR+c2b{c-gcIe`%ey4q#O>iEXtJ@?4Ws^dq)g!Bn-Hz(+h9aL9w0twQm0X_k z@9t_Zn#eady2|mQ!5&5sPsoH;EJj;k3MGcoI{ZOpkZx!$*|K#PTbDm1>wWL04T2LUBHZDx951j8ez; z7w7Sxvf^u!LEW~Ps{jc?bKeczDpH;no8I!vF{K*B(hOq%_BBI~QO;?MxHy3=%ix1F zp22@91O;m9R4%A*ck>V!wlSik>%9cMS5z#=uWDN%I3!dM8&&*NhZ)p%Ry+42!VelM zl(;KeIE&cpEMS1-#wx5jULYx-@s{tMOwqV9_xdxnUXY@(lNQpio0oS^7nbPIW_4Bp z%ES=$d>ZmGkLgxu^M?-*zU&FC;O$8m_sLp8W$J!O_M<3ubMyEso4k9BPDJ`?4*(8j zVdjgy7|RyjMR!7HTB;Q}*pCRsga!q~rr#rvNKSxF6s8tP?i{V@b&i;+3nR+Sy+vlW zd(eHCcd&IYNZ@tft0ygbITTmE`v)nCI0~!eH#~`?iR}lz@hmB%4Y_qXUdE<`UX^m1i-VwA8FzwINA5Hxd{uY+;=EvTn90T!Oh**Zd27%jPD+ z=B2K?=c1o?bzCqW_G}A=CM2CD{WgaqR!pyJHawhgh7A`1g7oeRGYw6){;U;RObGnM zTN+*byH`udyNAK?Mk9hjR&$g_%h#%_o3<4iILc-B2fvIBC+V$&Q~v3P_7Jz(9y+fF zu4Uuv?uvG?_Bex^bqrKj2*mZ32> zf!n=o6Ls7p9n29=F^I?&OEN-Io)Ys#Z;cm6OAJhK+3NlNq0(VR)#=Iy$y1~94{o$rK=77?GbBFlM36mcA;dq2HN==+3;)s z0x1MH2F|4@I+#Z~-@UUrNPn%TliOR>ori_g?922f2bot2fLci)E%ct!HaeCS6QS(V z2jj6}_Rf*luTH8)%GMiC8e&+f3*Yw~(s8mxiH#O!|HMDNz!}U8U9pre+*sH$0Gu|% z0xf-T-ekQ3K`J$Qz}{wE;Su$ILRX_?>&@OumDXnRVkJ9MFE__;Ym|ka_fR8&s~w8@ zH~kh&jT6rPtLWVFoepE$w@&Jv&z5etd^%Pco#FXg3_O#1X7tfFoRwVne68Q(lgiKl zaB0&}pt)5z%szu+hUE6sKj$ki*YKnPI{niRBuFlcj63+n>jU}v+Z;HfY$*M zBcHg#b%CD4YKKMFE?!*8Ia&!5D?;qIW%x{s!LGOH7%Zw}c`}Py0INGuTb6QSQ zMEzOP6%^^;c@#W-2-@J-l-q{4PoM?Ym?D}mJ!SO@Nj^j(@vV2qfgE2&!fYj(OkLO6 zR(}^0LNYK@1p}=mM;+AMKTR%cc3ziffC8v@XM+H`V{IS3?eV|%UX<>suk*~;>T{#cYs(Q>j?{cGd_4yoeNsaFug?x7 zZ|jJJ3Y>x<=XJJnt)Z|Nf(O`qlstesL$t+*r~<+p@C6C_Pw&wkiroaXnMfkEf4oYY zQ%X~D+Sq4{0|XQ za~5|>o!s~M-KzfP9qHDFejL-|Uo zx;8KG-)s-2vk3pmYk=R2*YA(%*E?ubpSYtejQ$3FqS)BKW~_blgA$D%)pk8+yvJ^E z+_<=*|Ij0&JrXGLxO_flYfPjC?Eh{yc_l^-_R^_Q>>SCp)Yp)_1FtAD#rpyTXnmzW=29+0LJQjvkMeynkpLsH@f8f?xl( zoz*=5_v4_Z3I6x%_S`zb2VBvzhV~bwJf$Bit+TGcT#z#?njXu~)(k?dAuPAV`FXp= zc~gPe2v@l;e@LpnN`K;fmH5b}y`Qka=d0$A#io)HAtsyB*igr8{+@KHqYGYCT)joy z-RmL7H4fm1Qq>Mfx7e|~8rFI2dXzGfG6b(Xeiq7oR89=sY4MDC=XL2kXr**Y80BxARd(&pfO0yY00BEKB8{4mK9| z@B59yC7%8AbC;jz^*RfSGkPtrhkst*ju`>8slb=-SOo!~KayhQK-k-Tu!SRbt@h== z8rE_3o59oziyb%gyVs5T3Kx-*um#A?>Q8?F`inB#Fra!vj$(e{D0Yw5bz%3-cFG9JZ4}wa(@rM44xv76ljZNS& z$nc(s0pfra?+62~hOHWBn{PRsvL4yH-L*|dY~CxPiiYq@#f;D`=^_sqoB%pc6dNx{ z8}jR}(L%*?&~Iv$`Mz-dX9XX7xfSy9jh+=awPY^DRsON;@2<{RdC&b*LZFVL&~}aP zV_tUZNcFveh?9Z>J)E+=?_eGSdX@dbXb{g8u-+v1n;ldA|(8~u9 z_+T`~FoENtat+d(JAcQgTJaUjDFQTAhtt~g`JwF=7Pz;`NQ~UJ$}XxH8DPE$eo4Tm z(GP>>hmbb94u-N9XZgCTJ+o+$Gd0Z`SbO-G7=7iXr>W_uQ;o8!+GYYn;=ss~Ul46^ zuW->o-O6{vxS||a;3(?ZmjDHV#Z3YXqm!J zdW3zTYFjwWcE^-)o;~y-{^H{)wq(9 z5H`73VC`Dd&4151M4xiPar)l!bU*7fO!woM%?j%cgwZC3X@a2+3F$}@v#oUwO1w%L zLe}J5#3J0cj1wU=*yMJBzr)g0vvhUDC&BtEi^#IctAVpdLLPI5BR$+;5D1(Onyx9r zoXlht}2OH;JS*8rU zH+v$FG`7grM0>JqT(l$l@W{CPvoc<0rs-NnB7e7r`S48#f774tNlKtJn~SH9_VjWM zEjk#}yC{RiK+^ket|5IY&)6Cuo(A`8yYY-_Iy=h5DAG`4iBfesdx6(kAEd?i++u{m zpp>(xkweO!PH?eE_8z5qFNNYa<9_s&7H~^u$dSewr+20YVU@*dS4EGw1v3nD>&wiJ zW$}f!qVme6O*p8?S>J6qAFzE$h&RY?z+pVy)A8E`KNnvccM(AzG$_ zmc#0L6BEG^XuLCy5rxJTh#SRtvL!rDg2+;uF@fx7{$avgUtxHU?u71mhq&xuj7e2& zy&?Xf1+(N!gB~$R@4iNy_gi)cSN?VY|~B9gx(vI7C>jn>XFN0uyEU}J859Z07K+*&3tJ( zL?(Zc(vSFyS!0GJdVXh3hG`pg7K16@(YbcD94znp^#^d4i?YR+JXj<8ug3G9zjLN@ zl^pek>Y8DHTN{#UQu}+ z#hAEWFsG6mW4kMO*`YZaf+iwY4%Iz#@)E0(` zA0&7&WxKQuB!-h9Wpmq-or;K(+6Pc)kax-E`*nvkTpfM#ge_35bjD*dfQj>^NGvVr z!6mM3S`)yIQpMl}0;3(nBFmyS^jn90JRj{zbc%UPf{g@2fo~G~=VV6fSF4&Ome)+) z|JZILc1qFzYy{8jv0m1XG?)uELG}LKSit-@wJ@U8_0vwpo`%RqFmpyoEIa1RSb$}SiI!eJB#7mvlLN=DlpBGwUbgh;glgqzCHD5&-zk|UTSJ5_ak z=IBQvD8n0PXDVv<1^ObxVz?nsmQ0omC@3b~mp4`fu8b>)8K|9m%Qr#!PYhNeEKgt= z6Om4(w&wl;^=zpzQjrd45sWJ{l7(kbSL2v9lRk2v;&fcq3XOdYR2w*VA>f+(EecM8 zCGM9I=DI8#1I*n$ZzNusyt_lMC8VGez65CW$Vg}oMRIL zquIvNWklMA%4tM{=EnH2fVgei4$?a*`H>+)S2a2#~oK2*m)*AoV~5D@r|8w~0( zhO0pnIEI(7yNlh7==edcS`$#*%0De{)HvwYxqR#TIF%P5G5II`X&LqOBwwhg&Bg!G z0-OeaTIMa6xm!}HnR5$qSfPII4!OON{mI=TrL{i+e_kkPqjWofH#Z z^<%%FHi`)A)=rfgIFXPP{_E4B0{0&)gd@b7;+TKJNcjJl+y(!?T_@d0XbE3uiR2v} z@lvDra^kJ0PqvLejjgt2V&|!wlxFm`>zwP`Po=FnLr6t&f&NK z##H%_MY8PYJ({x*S1z9S0hV(6Psv4fp5Nuy3Q13Ay3Z)QsqL@AVoh);<0iP%zhW*O zf<11wS;0++^uN|F!Pe_oe?^hW7}K>fj)6?T!ml&pM=*%oTYEvu7_bP>^rO?At9kEL zdBJ%E>)40hoae6@Ac4qSM)U;hxw7(+=ToFOZ~9d8nYAANT(`_QPnB{dm=ZtRfa_;M zEFW%Oo1j~G-U&N207S+zLLOPE*qfx)lU6kw+Wxqg*jL;kEb|dM<6eGRAKH^_jRHtA zN1w>R;9#CIyKNS$;PJpBtFr9$2rG>w5}nV5!2mMOC(%zx`LelxbimaFB#UGRFt&H9 z%tA~22A&g0vMj`MpG(b=S-~Ady^q&kC1S`>M$HC zmOCQm>jr~f$I-H=9(adNi+oolBIF#vCDiRuuohFi9-!3<#yd`rpx0l|y9>fU6Z=#8 zHnqEbCK<4aBe)+)qzHbVV(+yj1}GSOqaFK_Ovdr4e+T3g-gHfx4~N zma^~+MUH_frKB7^qp2C1Hnkk2?YHPe@47${Q?=7s<8}y=x^c1YdtD)D{ZS;#{-Vr`YY|&$I@|Pi z=VHIimZek)=*pGQoeED%W-Lk$xS2VPW0$g{SUJ4d^*T_>$-1XgFrFlQc}c<0%06O< zddb8d33)iI*>fYhIJyc?zaeo-9k>GA20B>V;^J{Xm}Sx~zCqkK7i;824|gc$AA^^Fr9PWYBN!QIb~@MO1Y%ASW9DZ?foD zL{I0ckWS?d=JLzx(3D{UA_?ul<2}kp1wl(m#vagUf!JMWG0QziL~~#Zx$Cmhe1Ibm zZB5)|{ze=SO-(Yw%`x-LOZ4A(S}AkfgfP~)$wu;t8`-`h#33tB?Ibx3rE>Qq-#1Xv zqb%QpAcWJnLxrbPvWn6X<&XFfOOr1vyv1$uz2!&3|K|9SrI zSbWTZ4L9H&_w3N>j7T+irT@7Ez?5Pt?RY70m~V5`=c$4}^$rqq=FBX4B~pcdh<{E7p7`)Y1oO>n;PH`Uw1(xg_j@ zjm#>fic0aqNBMm`BZta1GmBjiA<+*m@Uf+soQ_W(wc|_GBA4fg8T$)Xb4L0AWPgIY zaWnmLZF6`?ZRf#s495^p8^Z3u{2tb*`m#?db)abcv_f)+i+G#?+mXEuNt%69QU)%F zd3jF+R(TW_Eh196aMCN@uaBwxuo+P-dtlb8gFQxR+0~eC!^5l!g((4ru!Ji-eJU}!_c6X7Qcjd(~Yczs}=eJS4ir9^bT$CerAPrvZ!8y zmZcHoGC`}O8Fsg{@w##{aE8c*ED*cM=I~MMEQ>4k4pN;5b)nsh`X)=$6I#ccmCVD7 z5m4TCNv~*ixSzIcs%VN)#M$p$TUAOyc^H=xoV~g3)s&l?sV|F=@=UsF}e~NFJ)E=<*4VhA1I4?Xo z=>&b!>Ac?BQS8KcAKVDKO_uhn$T6|7(yBWl7!0tRC@IOS?3*<|;l4kqSG3=dw+!^< zehKcQu>#p{Ct9VFp3H%zg#G3!`Nb31mC+UfB@Wg9oL9J2C?i4)@ZEo_Fv;qWkyg z2fDNvP{CN?dV4rlZmwT|%fIA?3;dX^CLPz?$=eMHrbnDICu;{hkvgq0G~F%w@~8{w z+_ob_T>=+O@CsIT9Odz^PKi*7kTxA%|2=xDc&orJ-=V&VdX8JdVt8^TT8jL>I-iI> zZMC8I!XB)&p)6WwufTjpeWvRstKK17pO{v{pQC~WW2L8~_B)D+qm#_=MNq~`BvL$I z_G^_gX7_)x0Y~z?OMi9M*ez$9Bk!AZ39Su#;hyMni2~hEPFx$EM)uZ^r146eH7G>n zwgs*hx5*sJwKouc={FtiYT^vOFu>btA@%Ln7M#CGqO)p;9o=hUzPdXtO<{e>8f%h* z3&5|sd_SbiBhg=2lx#2O%K+SILI9n4Wj@JxdiSaYa9EHva@vuuXu}!u=`Q?E2xIs34; z)ai=yuRxsmS98*F1zb8_us0Dh5OjET%$4gP_T09#u) z?cDzjn$mBTZxs96sFlwI2Ds(xA!;#0QGgA7BrYgwA93Fnb45U1+wXq`W{q5tF zfpt@I)VBIW&PkV+e{v9Lh<}M4*oKhDRy#O)Cx?T5Zkwry$9$ zSjQ9_a(Rz`Ga59o*(l=aS!V|Ddhq_xmq$sX|Ki8y$MizMhbxlXExwTGfm6Fod%hYN z0|kp@*{S~bogRsPo^E^o4;W;-`JB@Q`;qY{D*3~helS}a)iL&vne9bU>ZOlqI2N)1 zI$YDbI4y;o<~KZte^3xT&?%E?idNd6E1H3GjWu!Qa$RhuwSSLU&NO18X?A-xi^=@z z`ZxtG7?ds&lhihI!4W;@rD`<{-u`vN`4Liux?*@%jj=#l48wXuh%;8xF?Z7%7A$O2 z2w4+*FleG^)8V3Yx*Ijg=?rM9t#E0r@#6q$y;jQpKQqk#5iO3O_3%=*iUGlCjZC;N zd3ePwv&NX0b(+8ob%`#`B6}{oo8M?y&)3soHT3;0$AVB{P^ zDmc@dWPc`l4;6WhV>#ARBu6$|76_h*4cvz~3QN@u-V(^wqYL~;`Cm?C+cKYj1$MGJ zV^8%t#$r`s!KEa6CHUuz@EwUPsG|h18_QXrKV(CGoP!G111Bd~!D{5ZKJg&D;svpR zHCWy!&IAS5bgnFYR=)!rX?Wge{{S_Ee50zygU;li39V<+)02F^h*XcTT&wo9qF%G$ z9_qM8HXtP-6oeZ_=NF}HJiJlxrzycY3DVQk(?uNY|I8}HPA>YNDu4eI4Em3);s3b) zR4bSSh~RtF_3v7DzTKmR3jWu3f=h!wi|f_Rq)BX8++U?A7;A5f{@Fj9*oUJ3%~Ij= zBhTDSZ}5&~C4Ige71+#1EI+>aX(T3@4F19u&vxHF^62zP7 zJ-|i5c)#<~YsugE)BeZv>rl3QE$faXTj<4fw`{_&`7Db;_kJSz9C%n?6g5TV%(NwE zG?}jjIz|rmsM>^y9Ikx^oUimk<9IxMhv3X#`wOx^49|r~W4TXs-8F?Bm0h0P{_qJ< zG>2%=zg-?&l@H0VIFX0$h`eN+El-;E6V>#60k{q$H;u;D0#!*I$@5?uKHGWR;W8a8lQr#sD}1`Bn3nmfTP); z+)#j8%aqaRJfyOe-Fr!w>3^)^>qE-I796e_LqTNY%*ML0sn0x`p(3FiaT`%~>vii= z_0)W5MOtn6mAl#%tHah=Ix6_=1@j1a*xZ% z`l&6*!~Lj(J~=sBs8@G#%x(+3E&`wDE(C!GM0m`8EYxybGo-^5CLV^Ow1>eDQZFmp zeGDp7djnK2;Arg>`*QL_k(n!iG_LKC;Zu9feb?1YV4^@PnHmnrVR!OjEc*P?)v)mZ^E}`DOBzUsE5ec#AOC< z{k_-W{PnuXa_sZs=e6P2!yPhrFEoY@9{6dovE*MolPT{(q_dMGStn8Rp_;ITW1MX|2&?uZxi+mLJ(`}J6r0lP+|OrJi!Hf*HrQO z@Y8<#-{$WUq|uqalZb})r~u!$49ciU&9T^Wutgw*GI#t)-zS|^hAFp7C%d}({i23F zo>6OkII(BbV{fcNK|Pnr6*7BV@==MxLfv(2?-%vuNW9Vnt$P@u<_bYdS`$l`O zZ&th0TYBUe=T~N&e%UtYENc!&)B+B>@tWJX-N@4-NNtfu>K-!p3Y9rmi{8(VcP?Kl zuct;56}rB(!WmcL;nr2@#zg9(sh(TnSD24wh?h)vJpzC1y*DX#tkg@#{*@fgx z^O1X;=TQl;_Q#_Xn$xUyTTRgBawlJF3W*qqs}Cdp-GYp}kjSMK^{Wc8=NY4E>f371 zHDS7^Yp%MhN+}Vvf*N^ATN9I`mKBi>?hgEn(iVr=q?tb5hn*@bTfi8aY8IBZ zxu&D(Md?#&LaUH(e^)T9>s*3XhcL{H$Cw`-O;#Gt{|^!>%h?RdgU4%QHZG$t+bHOW zrC^64l;SK#j8;a^{;#-KeH$I&d{|hPFFQ#s;eFk3iMJ`wO6MRvPu5kZo2OSx^t99n zxi86(O&1}$Rp@f{FNWb7tJd53FtxQ;cTvZ8Yv+`&lxRis(%TQKPbW4iu`5$yr(MQl zo;iV-59e>$%2Zc6BgF9(TP5EA*xYalNFJ83V#=q zYz2G!+v7-h5TLBg@b}sAM+=Sq6~E4n{cu6ZS+1_uMvTYTQ{&}56T2~M5NlZMuENT! z10Ja;t**Q%?vc;%0*n{!nS~pG->Q42%f9B-{)!Cbv8FOAsOG}=> zb!=x2jR#!LV<|2M14B$>?B~p})r*Y|Ee&Ij^#}99VdGd*Jm}hP>XQI$Z)RM1k}NV_&t*T9!+Ih4b0O9&%2n;qy34>uW?p0A~TQ&%}Bv7I)U1Ce7m`4%qqouRZB;&qC z8Pbpqm*-0l4EAGk;x|hpzFgyz%I=LuE7Dv zM`ybmLR4d{hfxA$ly(pTMS3wo|km^iZAr*W;e{_AqWI?(%R&uMrFQ8 zDx9O+^7}h%Vn_U_&*j(f@Q_#gnep2rJwId~w?>-7UXj8YLmB4)R>*eJ@x5#OmLp_@ z&->xGJei&d}r_+g{Hh+8rEbbrcOIH zOI4Twz#zX+MG}Tjk!+)l}HMzi~gNkU2aI?bo2IdTYSf#O5zw3O>2a65lp&3Cf8z0Y*~F!&b11B6Tx#~92L}4s z<|$c};mwhhDzH97_nE6xzPL3u0q^w{h`OS#6^JKu-^JMv2!c5XC1^d+6a<(@yAj)Z z9XHuAT^iDHw(pzw=3)2w70V-EPv3TxPv!k13o;aPAME)d)Qr^Wrr+1dQa#cig8}8P z1`{|H_VORK!CN>LFR2_Ry{0f8R=`<7oQ+Z0<3f?6U59Y`E0)O+U~k)oOmK9ztQk4K z*1UDUO&tIX!d8Rx%Yh30$|yO2qtJUVy1udlUn+g98n6#fI3lupV70N_@(E5UV@oHY zxS0^(;j`jysa+J7gAND`z6j!9eIq2ad#w-S#d1<+H}1DK?&ipf)A{oFG4W+mrkRv0 z<0rG~`)H#BY^;|%sR#O`?mJv_JaNm>ERlUPN*rB=?Q9LXr!B?Jg7a_D*1((xp22yJ zO8stRnrNZ>H>a6?h6I<{YgSZiQbX^s(8m=^r}jJWig!KlHIa&)Q9^7k60Uw3FBX)J z-%ynbZggtBjC9a*FkpqIx)>0SX$X}Z=w3jQX=3LNhF{g-K|2=(GHHMU;ac0Je^^r2 zq;KzMeoKbelt!Q6-TPJbda+Mwi_Kb7Qw@nV3CcJods%Y+^rf-fC^-wsEXY*fd412- zH+jOMCIjBR!v+wh*PF241N(g0!nN(V^4s+Hq0#D}Jcjq4T z)o$S*$)At4+3Jlu?2ZbV-S64I4GLlsmNhPgJ)=gKX7DDZiQ;Abxe6tl!KThdf>dA6 zuhuQ1dSCrb%%Vl+Wd(NWs!>6o?h_?Cx(SLRk_h8A6~r(M~l?SA8!)*X#1LmS&kR>#*}Mff~D zaGIONq{JXsE`+^mQ&R5;ZWc{}ps0(jb*Cf+=&Bnh_e)RsPMlPMp4eub;M%w~%=>qS zqzsNX?M?Yyxc#(n z#1`&abqA1n>*-?PY`@MYc0v~RhJfO`I3&8Xd7e>YlXRs18luGtoM6WnDLu3~V(Nv0 zgPbhoa-MU?m5R&W^jpQg;DZN)f*5xNG^QY4x?Vy0@*;N9ObvJi5v>YKSi;q_)UEA0 zF5RyTkBeZthJO4PZYhs~A;(`;I3wj<}`{|C!+=igO8~;I*bJ7n32l z#p^HlmO^ z)DMiagM?;BvK3cjYVi!t8nzWT%~b!VR!Dny4YST_O3rqvk8l7+4oBkxoE6-vQF5{{ zkXOb)s?qwTWv>+jl(YINv;{ZnqDHA)6~bo~7l~slZq|Br<5T|aF%=%5K(`*yy8UFq zg@pyiizgUsE>3*bO6^$ajI11`(kQXF2JHGDb91H)a3E6tDbF0R2v1zO2X(hxwAHJY z7=;mMQ%iH|z}D@lsoXT*a(^`)F!6BfC?M6iP84=-FvI#faK8X`@FFJtNV7;o=;Wy@ zZ}1?FvCMmFP);&JymeE5Mr`?}HIRy=C4jT?~zc7YDVvl6v6Ul%gQorl6#+uTjvSC=utjg>AbtE1h@hFhS4HXwivl? z)q5~TIJ*6vX2+#F#wxF%L3t5tI0|?Cjci6;qj$Bk^@E5t%a0qu1^9D|`@y)l;x!U= z{I5Q%H7SJw68$)4(j4PS?%Yz~e0s9@c!fKlzM1tHqNU#{tEk|*zLo+eHvU;pzfLs- z46tKvqf6*~HN$BJXLi*@zQ|$QGO!NeOS-|SFU`6jF8H+$!&>`pBRLy64vP%6&#T90@t~#*X@l^IVhF6 zif*N`THh9-Jh3X;tCu%f;CfTuSU;^o#fjf$dH5?@w=0MT(c*O-4GAeGxGs!0H9dOj zvH#jG_%!(1MB&xK(*Qb%x+&|_sxz>*l}(hLCar^ovwzZR=u3HQbnkbk4H*C|DRj{) z+ion~?FDTA#tGg$XUF4^ND|U)^B$yhY>VN|n~qGro0wHQ7pBo8|4h}k{R*8Q9QAc7 zjE^3$*Ede|sXkgs$uzFI4E9mb!q3R>Yl}~aY43&oc3tD!NyUCFKZFuxd%4WO3(AnI(_+cP375FZ6iCu?UqsEC*%Io>ZkU4Xz(o1x&mJ^Mr^tPK#@# z;d*X5bJd3EEtEGh@qRPWt>qBdWYRcVGc}bqhY@02Y6uPvt`lm-sA;u)V}}1}% zaP#Y?+mV3fwT=|Bq0|3R5wCL9cLYu$odL#;B-t~P(oHr-2|i8!1I%oRuA zM?GBK>2RgPQ}?bDH9SaI*1*IifU1F&abVZ_`Nh#CImM(*glwgajqfWD?Z^6fRHH#{ zabdn_=rC&6)ZBr{uOd`Xl7vxN7ln(tFFJ&cJ7@m=uMHE^ z1=lo?ek!OtZ)X0@!!e~1U8fQiiSgt9+81yoAbEg%RS1>JJJah$bI!d3jY%4Z zio&M)yfo2|T&JTJSS!7PL2d7R7DFb@{TXn18dQG_1=N3O^l@nAv|e@}O_yexrYISr zH4LXydggWE$wToF!nk$YjN<%}kdVlNJWn5fsSuYdRBbAEuS)}$DK*)lgQZ`SH{n$4%NQg=PX5`BEQEyrB;MtAaTv!?tMbaB# zS1KIogOI>L851Izl%aBCX*uM5uI+ryZHir&g8bS5t6t*L$#Cz-3)KiJ`1+Zp1_;-I znZghbyXy}3DDBwP>dnv2hy>kMmbHXX4o`}rT$u~iH#PwaGth|1kx|*eV51e@#WHSE z6RV5xBKYbV8_V}f6#fDO!5%Z+U&68)x901iO?ZwAH7O|q&}BgV)JWBdn<#OTmzg=1Xfv9korwn;Tzwq;CP+bKNk zQU?8?wpn>a;6^wgv@?qHjA`MEoYjrgPd(0N$b(!PB z>WzsuJFxfjv@2I{(S$1>XJv2_phS%H=~Q(rBQKz{@90+RqoeWaIy{Jd*ETpemh-MB z<~|^pu)g@{l){Z4isSObmXWUv$ZJq?8JIgkq>SG^`{7ZM{w=@#B2#E^pv(@DjHCk5 zk*t%*<6}*0v$lO>0*mnErJVJ-3lR;?VTG)mkvOlSuRHW0WciFN1+5ego$2T-vvmc= z-&j}^G)kM(p~iM!>J>$$z?#WR;J)boWmNa}0GZ=n z_sg>sFI*2KaOGKwZS{38t9*sA?&JL}0U=3+&e4W0WYmaJk&^$DY5d)#ZsONE<%+hYq zdO4#w5Vo4=u11Xs^cd2KMc1}s!DOXE4`jyP0#zziIoZp$}f~7JG!WB5PV0|urhdbyNW;~ zV(|*5TGr=X9SOSdPLSjfJ;dtdVmE;nTJbsNtbP2e$+3GMKWA#kxi#&)Hp$OWJTd(u z6JfaVg|b@_=xlN@;oP?{=C`HohYefKK74u1H^SB!&kr?^hNNQGH_^LJ@5m?DM|rNi zwX`baKBa^wu-!%OFT>apMbf&JKwY+8Xy`6vP_?zSp^=z^NPZYAobz{lZ_}P7-VSmJMZ7VWn`HjlVNtDs_wlKT^4wh!b3vCy?uuK9NNP5x!`navdtT`6L&DE2H z=f<7&acSDXA>%~ZNhoW&k`%>bhK2t6NoSMG%1TnVTiQ_f!dP&AOws}`YlT-r@oH!K zYGC~?`vysT`8hHssNRjjo&@TA_g!e(cSKA0R?J$Q`dep-@Qq84Xx#*};(B=Q!3Oje zdDNO2;doagO?sk1)15CX${#{q1E~qI`*tzXNbwc<;yeV7?|Q^nH;(zeW!$k`Pbj>7 z%b*OJPoVOQ4OHFOU%?4Y_m1c%Pvm7OMhT0MZY(LbkNzWW*lTV2t{_i8tZrq)6)pvHi{I zLbuRf0cf8Ta2-iz&=>!O$LYABnKy9g7xm$sN5~lV>S?@&JsK#3bsbv`1t(Uc>!w7EkJCNiCf#DM)ZxzN2|VCUX1yy`{+lWPjfO9^T{Uw zSebpCWZO&TP7Kdzs&}Dd^pX`8yQ%N$IB<9nb>Z96ZtGPa2J1;UX_-rKvscYaux;C} zN>5n5c3doDwbti@=)Cd++P`>l$=r~5;Vn-!?KfvmZL%HwgB(lW{5%q#C`1=VmeK%s z7GAs}meW>J!X+yEA&Cy7Ja|LvP2bzw{A2y&<&DZK`Q+Z1eI-FCQG>S{0xcKswLA|w z+5OsQjX1PfeRE4QP&_Vmmyf0aqVoB+b=dOjuDnwt{lq(-5UAhzQCIe@JMw0mJDSva zUR0ncxi?XB(ogvQ7t}ou1QMngNn5~*=)eg`9&&uc3o+=?fq6sxQhI)VV(8z4pXWa& zi>io51PgFDxrs!>blbBud86^H69v;qo&j3Fv|as3s8`@q*!vV*9?{Pt{Hr|nMsM9o z2Ip4G!Nk$1QRs5>_y?XXQ*VNw%M@_xhktz0@^R9Kw#F2{Ic_L5EfsawPn)GLRbzXfH zv5nrOn?`+AUN9uSU`tZ6aCBp{hsoQmAt4d|_Nhv_7COf9&iQuiV+-&E|JZyapA%1` z|Ad}M5FaOQFi*w(&SN^KYbvJIwCvvfN1t7bz9}wz{uSpF6&&@1;#g$`OHYDwzyMCu zB>f4&6-qkuO2*f(Xnw3ca`=?X1Abtvu5UkjAm=(%ulk5YNGRnvV25o+Cvof)7@mZx zKTS;3LW?L?RxLenV}LnP6)>NaMdwJF4S0MA{gnNU(kzK9&WUlX8;>N{2jsnGpEf~}! zRfTP&bw=5HlL%ztt;a+J@My&=P7X9H<7AoQ2**6*j^8cR)6f`5=lHnNCZZN+v*t&9 z?Pk+sY)w&-R5jbcY*6m+$8yHZJ9Dc%h1z-C%}cIvbm6c5ayAIdn=2Gp(rdP348rr0 z{_y@?=?UI4vvH zPTv*tc$p3tXk!H(KLYtS6Gt9bg764b1uItjv*CscD*P?9jb<;d+?Pu*lGcPZ#7Z&y zbt$QW|KJ3CHCRs!$r`v8I_l*-I zbEfO*Ndbu976YGNmugTo3O1a37|Au#^`l`hrbKSZx3b6vs5RUqQ=961^#@SM(N9^)=Y9nqKjr5*&9F|eeYN` zX!p#R9CYm8puRNeKs4M*<;Mk9RX%dRlx!6Ib+S!8#`1RUm_BV>5x8?3#H$q*NeKxApAyMr zQ@+nWO|xR6O$|@@l6lST8sjkjcnS{a<>w7u<9hsux*By>&0aw_I0=9|yWS=%gN93_ zs*hQg)VRN=7A=1qNaj>;_H0WWCXJ2p&b}1;>`y##nG3lIc2Ab8P~=D&Fd(Tb;;3QM@7Z=`1Hx|Lp*pZSpgnm z<_FcEf(foa_Kf3i%5>&Y_`6u1*_=I@?@hWjmA3V8d+TbFGc3pwCMI5DI?+|fOYxpj z1V%b?&0b(mAmvFRMb7%?M6;MC!CSuG^`q~I3fV^!F3tcaliLDr?i1;I9WmtVR~xw; z-+HRnPUY#1yT0%D7R**vM)-mB<&+n#+>r}EvA2^xOD%fOIjyoZaF#1Vl#Ujws?=vE zDh#cpOH%lfmAzEA_Fngak8TY|lMg8k9sBAul-{uuo>iF0*ENyp>-TYHz4yR#)OnX@J{ zvspk?XP{U<9ruM$L?{1TLHk`F*aPMIkH{!)ed>&CS<4c=tA2jqHXm=pHL8($AfwT6 z$@igCa1&tt)}V>s*WFiuG(ha;#nbspEdx5``_y8T8ZGc4OTFwp0?DICOmMWj#F#sn5L)773SK7wHvVyER(+ z8xCHW&a$$`#xx_SRw!?G-t0<(g!0VWeU^|=kiXhfp2>c{=-G7FD{M_-8Xb8B=$qnr zk0e&9v#_}+XY-?&Qx5!gAkGMU#9nS13qn3!TyN6j)GciVq}Y)L^pE3Z>JX@3S6A|) zLdewZ%b;tmk4PK;0n%=SoWH7CO%lm*1I6o!_|LtUyVLMmk4ZkWa7bVB^$OqL!pJ$O zJ|5CA?qqsSTelHJ!3kF|>G#4cTO8c@LhfF&xrwukQ%7Qttl-)Zx?{eJHsUGz3diun z^?+J@@Dp;KWUg`LiZPd8-8wWjcqI&LSoo^*ip9uff-eX5F(o&wF5;7{>Bff$M}yKC z=R#`t^2@=|O>2g$}9e{{ATLz}mVRYGHXmb)}NU7XEE`c~(YVEn|<+%wXFSHZ8={jh;M=0u^QK7O& zF9JWy$rV=AJ+}aPAou%wq6HfLj*=QGP2Pl*f;)c6_-j-3=HD z&LW1E+CNoW^IO2yQK29GS>$Jvo(YHkp`l9o&E$^11SrA2Mnd2vizKLP4mmx8z@%E>P=}qfE9of(W6l_Y0LLTqBrm zb96+dB3Z`7QPJ!J#Vg@i)SI@&#rQ$cywfnCa8PWj*Smk0Mugu*R_l1r^(HJin?$Yu zFg&?B(gw?;N`m-p)r`2C4xf$I*nZig)xq}ny>y(ky?pMN1( zPd+hmP2tu_3%c(2_47tVxZNfgq`G1kVs`iSne@bVhf)DH5)TULSK*8DlO;?y=TKPH z-|$tM=<5B2#*_$=yNe5A`iIwHr0b`#LCB|I{`B$R>A|EI5lKU&rJ>G-ez-U?kRR|D z!in?v7y2U&5{FoIN%+hAKn$N?KO_ObQw1S@mWt1sT57L1@JNxe8Y8K-c6a z8;!arS5xJ@D?d(`sP8X+Tb0!MudSH~rIubS-rpKzWM(Gu9q|l^z^L`=z%8i&;KgBE zgjUTD8g=z__>;l3`xm|Ow-7AWt~USxq!f0SoSU}K?0`T+d&wy)A*SY?3=xE3d8LY; znnDS0ZwrGIwm++H2^Ta?%XC=91PbV4HV5L{48oSy6AW^)va)gp za47{oy6kGP*1Zb}rxa9CI^;e<44RMTd_nEnuv=^ry4s{gi%m%21(+bg@<#p(a%z@# z1)q^B>-rMw!Hbh)?u%YX0_>#cLZI(J3k9 z!;$lOdG9*IDSPK?9hu%;B%cfjMg#}Hm?*goHMl!Yz$X3ZqbPj&#HYy%;Dl!=W^LrxaU9)m>947T( zW`n5!W`m}NjoayI--~`bvoavkmdayOtTVJWDmTqr;4jXkj1h>-uT4@XPxtICN~|)j zu>JE$-w>S=5C|M^q}WBL8Hj%R^awh~k%~#kFlPPO@OZ5|D>s)NcbGXQAZ@&l#wKt3)VBTJh)R99oMPdQNm&p0G6sO2k->M{x z2j-74Pj&ZK&Xi)e7@=d3Pi$Up3!oKX{SSwg-q;{+gsH_6LckOl!mg~guyJBauQ-r< zU;)SvNNc=;7D#m}mtka-?}kJ#;9IX`(M4O5)?h@A@D=SOK^^o!F`MfAM9yd^x)g>krywV{nh{b_gR1OI*Ey4;NlHpeXYY+0u{M$!t?)G*yW^I+ z#lPqDtEty~>DWD(fAbwzc^w1&;<%S>x@_41&GY66t_!+#276y^?aox~4EuRJ8VRj~7w^b-UYlv;1mRG?9<2 zrz^6%Cq=Hl({q{&2U{egN=*(&9VG1L17IE-K^5V&Qif0-F6${`UHcAVu=_?*I~@M_ z%$L(=(cs#uy~P(pR$jj7^7>Gd8lUsf3^fJ6%>#qp<$KT0YM^vOVJLmL#!4Y z4h`RBxonTg{(LYaYjl~SGvQ<|g4KT_gd*;gpXN21Qn*=d|iyJ<7T#IXN*NG=f>bM{*cB zFACdaB6ntW&T@rNeRcKQDckpI8|{&6U*uR^>=nH8g;yrtbH-^lKgHeV>_D zT4}NuYL=#FWMuTuqEs6r>weev=6pTsP~J1*G|-)Uzm*FR%43sR;42%uC^wFwsC0== z(RBLC2;|A8jL?@K4`*R{POZCslQmMK0s%e{?=}$$5m$; zj1{!+NEYBlp2wjYxQ*&_*vqdAj^M~e+1jpr$p|kCsJwiPF-O9YgwkdA2Q|tPITCZkN9l9HzYs*rZVn z+y`-^sn@%VjggR(%cTi>p~)yJB7#4ZGnS6^Q9sn^qErJsWM-M#Hk!?z99}Ap1Z5Uq zdH~`|Lm4d(O9S^^&?O|5t4afV6b*dassM?8etr!{ohdiR34}5V3TE)|8;=ODp!WUw z`pZe!T}P66YWMlxY((DN+?+0J%^Tmv+kJbKfw+T0CtPuHan=hB ze#9R%B9lEd+OI`!iUSgbJ0#LTPn9VN@@Ecmjn=988opsF|NeA9eRnABeY+zV6dvAr zfUI;oGC~;(9Xr860FuHOzR(rR6eBAm^9JQHT%M4iO3e=s^*GyBue3eO{C0PP(7fz5 zxcfAgTFL}ke}yt{;-~zN^WM+Ptrw8w-@q0NUH>7BhzM1cb^$Yl$x2wWI#lew#9l(y z*#nEWX!hpoc?Dh8CV_kF2?+a>{#DuqDV<5^2`ihz_74vlmt)TcXo6r>+27+2SIgo?RVry*HGH9Y<90m zw{~RP0flr_h{TjE{vIEQ(nM$%qiOmK0s_e*cSm?Eceghu@QouT>Cs-cLF3cS;Xa69 zf?mCgj$ZhKH`v7_DejUj`vqtE!BZSW?Z}r{YtKY|3Nhym>=l$fA4UVdWQeA^c^|Hg!W6~xS92iq^0 z>TYjKO)5NVxfQ&eX-tlQ%}8bwuT$J5p8;Lk$Z}(z=bHStYRo?|(?KypdYz3;?(`~q zAJ1*4YEr8Lb&?wi-fG4EQT(`?hVnBXXX1aa5D1=|k$eL<0oyt;qw=N(#1+u2-+Bw6 zG8bv=dB{8q)^F1|QKt+^Agcb4BK}L%zTeN-qV&YvY-%dn+OpOTn$axpEs#G;nPeLx zsTtE0z>?hm9k~xR^8DEu>#uIaaz)xR(HpYcAI>|^b2~=aJCl=pZcp4=7L$e(m`yI% z@rK8fIsPr5gu>Uol^iM41$9r)2_;r?Z$gDX8K+h}w)gR43rgR*^}^l^@T6i^&o|t4 z+cZ?T;z7e;ZONbh`(Ks4w~?PP1vOy3AMOJYf8E{*YDwjyXa0yIb{xtGRw1a1(mLip zIG7i&{r|jWN96qLI8zECEh&2Qp~CB}*!`R2MvZZT#}usPmIwcq;VomM%ZPY#=;|+9 zrG}W>I0#>FoGeU1@Y1?=Fc}f~=%_sX`Z`|wFX$haqGI$=tM<}Sij4y%;uEe`0h*lj ztTy2$FW#mK+wXj8X8wF%%q#0ZBg3Uo_X4M{mg}vn>ad%KfmCc~GT&UgpXpB@VxlBQ z=HJxT=*ATuSzH^csV&WOq_*fR6=ZR`)mSNZy0ETZ-LPmRpepnzau~5N;N`BE3JfD> zH#VwyzlBZ3H#!jZRL9+ZQbB)ff-p0qb^G|g%zD2~Q*69CZC;t-fObSod{bp0;*b6M ziRiNHBD>|SM{0SE@PDTxtM>Kl*SK-X|14}*zO=ZD execute(CompletionParams inputParams, CompletionContext context, + public List execute(CompletionParams inputParams, CompletionContext context, LanguageServerContext serverContext) throws Throwable { - + return Collections.emptyList(); } @Override - public List execute(CompletionParams inputParams, CompletionContext context, - LanguageServerContext serverContext, + public List execute(CompletionParams inputParams, + CompletionContext context, + LanguageServerContext serverContext, CancelChecker cancelChecker) throws Throwable { - return CompletionExtension.super.execute(inputParams, context, serverContext, cancelChecker); + Optional packageCompilation = + context.workspace().waitAndGetPackageCompilation(context.filePath()); + if (packageCompilation.isEmpty() || context.currentDocument().isEmpty() || + context.currentSemanticModel().isEmpty()) { + return Collections.emptyList(); + } + + LSClientLogger clientLogger = LSClientLogger.getInstance(context.languageServercontext()); + + CompletionManager completionManager = packageCompilation.get().getCompletionManager(); + CompletionContextImpl completionContextImp = getCompletionContext(context); + + CompletionResult result = completionManager.completions(completionContextImp); + if (!result.getErrors().isEmpty()) { + result.getErrors().forEach(ex -> clientLogger.logError(LSContextOperation.TXT_COMPLETION, + "Exception thrown while getting completion items from: " + ex.getProviderName(), + ex.getCause(), new TextDocumentIdentifier(context.fileUri()))); + } + + return result.getCompletionItems().stream().map(completionItem -> { + CompletionItem item = new CompletionItem(); + item.setLabel(completionItem.getLabel()); + item.setDetail(ItemResolverConstants.SNIPPET_TYPE); + item.setInsertText(completionItem.getInsertText()); + item.setKind(CompletionItemKind.Snippet); + item.setInsertTextFormat(InsertTextFormat.Snippet); + if (completionItem.getPriority() == io.ballerina.projects.plugins.completion.CompletionItem.Priority.HIGH) { + item.setSortText(SortingUtil.genSortText(1) + SortingUtil.genSortText(16)); + } else { + item.setSortText(SortingUtil.genSortText(16)); + } + return item; + }).collect(Collectors.toList()); } @Override @@ -38,4 +101,29 @@ public List handledCustomURISchemes(CompletionParams inputParams, LanguageServerContext serverContext) { return Collections.singletonList(CommonUtil.URI_SCHEME_EXPR); } + + /** + * Find the token at cursor. + */ + public static CompletionContextImpl getCompletionContext(CompletionContext context) { + Optional document = context.currentDocument(); + if (document.isEmpty()) { + throw new RuntimeException("Could not find a valid document/token"); + } + TextDocument textDocument = document.get().textDocument(); + + Position position = context.getCursorPosition(); + int txtPos = textDocument.textPositionFrom(LinePosition.from(position.getLine(), position.getCharacter())); + context.setCursorPositionInTree(txtPos); + TextRange range = TextRange.from(txtPos, 0); + NonTerminalNode nodeAtCursor = ((ModulePartNode) document.get().syntaxTree().rootNode()).findNode(range); + + Position cursorPos = context.getCursorPosition(); + int cursorPosInTree = context.getCursorPositionInTree(); + LinePosition linePosition = LinePosition.from(cursorPos.getLine(), cursorPos.getCharacter()); + SemanticModel semanticModel = context.currentSemanticModel().get(); + + return CompletionContextImpl.from(context.fileUri(), context.filePath(), + linePosition, cursorPosInTree, nodeAtCursor, document.get(), semanticModel); + } } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java index 2d6875f58927..cbe45fbaa0c8 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java @@ -27,6 +27,7 @@ import io.ballerina.tools.text.TextRange; import org.ballerinalang.langserver.common.utils.PositionUtil; import org.ballerinalang.langserver.commons.BallerinaCompletionContext; +import org.ballerinalang.langserver.commons.DocumentServiceContext; import org.ballerinalang.langserver.commons.completion.LSCompletionException; import org.ballerinalang.langserver.commons.completion.LSCompletionItem; import org.ballerinalang.langserver.commons.completion.spi.BallerinaCompletionProvider; diff --git a/project-api/project-api-test/build.gradle b/project-api/project-api-test/build.gradle index 6f349868c651..367916f98003 100644 --- a/project-api/project-api-test/build.gradle +++ b/project-api/project-api-test/build.gradle @@ -39,9 +39,12 @@ dependencies { testCompile 'org.slf4j:slf4j-jdk14' testImplementation 'org.powermock:powermock-mockito-release-full' testImplementation 'org.powermock:powermock-module-testng-common' + testImplementation 'com.google.code.gson:gson' testCompile project(':ballerina-test-utils') testCompile project(':ballerina-lang') + testCompile project(':ballerina-tools-api') + testCompile project(':ballerina-parser') testRuntime project(':ballerina-runtime') testRuntime project(':project-api-test-artifact:logging-file-appender-plugin') testRuntime project(':compiler-plugins:package-semantic-analyzer') @@ -50,6 +53,7 @@ dependencies { compilerPluginJar project(':project-api-test-artifact:compiler-plugin-with-one-dependency') compilerPluginJar project(':project-api-test-artifact:compiler-plugin-with-two-dependencies') compilerPluginJar project(':project-api-test-artifact:compiler-plugin-with-codeactions') + compilerPluginJar project(':project-api-test-artifact:compiler-plugin-with-completion-providers') compilerPluginJar project(':project-api-test-artifact:string-utils-lib') compilerPluginJar project(':project-api-test-artifact:diagnostic-utils-lib') compilerPluginJar project(':project-api-test-artifact:function-node-analyzer-compiler-plugin') diff --git a/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java b/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java index e2230d335c6b..af9c72348c22 100644 --- a/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java +++ b/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java @@ -17,9 +17,13 @@ import com.google.gson.Gson; import io.ballerina.compiler.api.symbols.TypeSymbol; +import io.ballerina.compiler.syntax.tree.ModulePartNode; +import io.ballerina.compiler.syntax.tree.Node; import io.ballerina.compiler.syntax.tree.SyntaxTree; import io.ballerina.projects.CodeActionManager; import io.ballerina.projects.CodeActionResult; +import io.ballerina.projects.CompletionManager; +import io.ballerina.projects.CompletionResult; import io.ballerina.projects.Document; import io.ballerina.projects.DocumentId; import io.ballerina.projects.Module; @@ -32,6 +36,10 @@ import io.ballerina.projects.plugins.codeaction.CodeActionExecutionContextImpl; import io.ballerina.projects.plugins.codeaction.CodeActionInfo; import io.ballerina.projects.plugins.codeaction.DocumentEdit; +import io.ballerina.projects.plugins.completion.CompletionContext; +import io.ballerina.projects.plugins.completion.CompletionContextImpl; +import io.ballerina.projects.plugins.completion.CompletionItem; +import io.ballerina.projects.plugins.completion.CompletionUtil; import io.ballerina.tools.diagnostics.Diagnostic; import io.ballerina.tools.diagnostics.DiagnosticInfo; import io.ballerina.tools.diagnostics.DiagnosticSeverity; @@ -56,7 +64,7 @@ import java.util.stream.Collectors; /** - * Tests for language server's code action extension. + * Tests for language server's extensions. */ @Test public class LanguageServerExtensionTests { @@ -67,6 +75,7 @@ public class LanguageServerExtensionTests { @BeforeSuite public void init() { BCompileUtil.compileAndCacheBala("compiler_plugin_tests/package_comp_plugin_with_codeactions"); + BCompileUtil.compileAndCacheBala("compiler_plugin_tests/package_comp_plugin_with_completions"); } @Test @@ -138,4 +147,40 @@ public void testOneCompilerPluginWithOneCodeAction() { })); } + @Test + public void testOneCompilerPluginWithOneCompletionProvider() { + String path = RESOURCE_DIRECTORY.resolve("package_plugin_user_with_completions").toString(); + CompileResult result = BCompileUtil.compileAndCacheBala(path); + Project project = result.project(); + PackageCompilation packageCompilation = project.currentPackage().getCompilation(); + CompletionManager completionManager = packageCompilation.getCompletionManager(); + Path filePath = Paths.get(path, "main.bal"); + DocumentId documentId = project.documentId(filePath); + Module module = project.currentPackage().module(documentId.moduleId()); + Document document = module.document(documentId); + + //Get the service declaration node + Node nodeAtCursor = ((ModulePartNode) document.syntaxTree().rootNode()).members().get(1); + + LinePosition cursorPos = LinePosition.from(5, 5); + int cursorPositionInTree = document.textDocument().textPositionFrom(cursorPos); + CompletionContext completionContext = CompletionContextImpl.from(filePath.toUri().toString(), + filePath, cursorPos, cursorPositionInTree, nodeAtCursor, document, + module.getCompilation().getSemanticModel()); + + String insertText = "resource function " + CompletionUtil.getPlaceHolderText(1, "get") + " " + + CompletionUtil.getPlaceHolderText(2, "foo") + "(" + CompletionUtil.getPlaceHolderText(3) + ")" + + " returns " + CompletionUtil.getPlaceHolderText(4, "string") + " {" + CompletionUtil.LINE_BREAK + + CompletionUtil.PADDING + "return " + CompletionUtil.getPlaceHolderText(5, "\"\"") + ";" + + CompletionUtil.LINE_BREAK + "}"; + String label = "resource function get foo() returns string"; + + CompletionResult completionResult = completionManager.completions(completionContext); + Assert.assertFalse(completionResult.getCompletionItems().isEmpty()); + + CompletionItem completionItem = completionResult.getCompletionItems().get(0); + Assert.assertEquals(completionItem.getInsertText(), insertText); + Assert.assertEquals(completionItem.getLabel(), label); + Assert.assertEquals(completionItem.getPriority(), CompletionItem.Priority.HIGH); + } } diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml new file mode 100644 index 000000000000..ce309055598b --- /dev/null +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml @@ -0,0 +1,4 @@ +[package] +org = "lstest" +name = "package_comp_plugin_with_completions" +version = "0.1.0" diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml new file mode 100644 index 000000000000..19510b4352b2 --- /dev/null +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml @@ -0,0 +1,5 @@ +[plugin] +class = "io.ballerina.plugins.completions.CompilerPluginWithCompletionProviders" + +[[dependency]] +path = "../../../../../build/compiler-plugin-jars/compiler-plugin-with-completion-providers-1.0.0.jar" \ No newline at end of file diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md new file mode 100644 index 000000000000..40b979d1731a --- /dev/null +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md @@ -0,0 +1 @@ +# Sample Compiler Plugin with Completion Providers diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal new file mode 100644 index 000000000000..7b80c7ec703f --- /dev/null +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal @@ -0,0 +1,40 @@ +public class Listener { + + private int port = 0; + + public function 'start() returns error? { + return self.startEndpoint(); + } + + public function gracefulStop() returns error? { + return (); + } + + public function immediateStop() returns error? { + error err = error("not implemented"); + return err; + } + + public function attach(service object {} s, string[]|string? name = ()) returns error? { + return self.register(s, name); + } + + public function detach(service object {} s) returns error? { + return (); + } + + public function init(int port) { + } + + public function initEndpoint() returns error? { + return (); + } + + function register(service object {} s, string[]|string? name) returns error? { + return (); + } + + function startEndpoint() returns error? { + return (); + } +} diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/Ballerina.toml b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/Ballerina.toml new file mode 100644 index 000000000000..1bbd3b74c3bf --- /dev/null +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/Ballerina.toml @@ -0,0 +1,4 @@ +[package] +org = "lstest" +name = "package_plugin_user_with_completions" +version = "0.1.0" diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/main.bal b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/main.bal new file mode 100644 index 000000000000..0eb89c48dedf --- /dev/null +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_plugin_user_with_completions/main.bal @@ -0,0 +1,7 @@ +import lstest/package_comp_plugin_with_completions as foo; + +public listener listener1 = new foo:Listener(9090); + +service on listener1 { + r +} diff --git a/project-api/project-api-test/src/test/resources/testng.xml b/project-api/project-api-test/src/test/resources/testng.xml index 17787aa1f2a9..1c74a76b2b82 100644 --- a/project-api/project-api-test/src/test/resources/testng.xml +++ b/project-api/project-api-test/src/test/resources/testng.xml @@ -22,7 +22,7 @@ under the License. - + diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle b/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle new file mode 100644 index 000000000000..cc536744d44f --- /dev/null +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2021, WSO2 Inc. (http://wso2.com) 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. + */ + +apply from: "$rootDir/gradle/javaProject.gradle" + +description = 'Compiler Plugin Tests - Plugin with Completion Providers' +version = '1.0.0' + +dependencies { + implementation project(':ballerina-lang') + implementation project(':ballerina-parser') + implementation project(':ballerina-tools-api') +} + +ext.moduleName = 'compiler.plugin.test.plugin.with.completion.providers' + +compileJava { + doFirst { + options.compilerArgs = [ + '--module-path', classpath.asPath, + ] + classpath = files() + } +} diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java new file mode 100644 index 000000000000..019686908cf4 --- /dev/null +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java @@ -0,0 +1,18 @@ +package io.ballerina.plugins.completions; + +import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; +import io.ballerina.projects.plugins.CompilerPlugin; +import io.ballerina.projects.plugins.CompilerPluginContext; + +/** + * Compiler plugin for testing completion providers. + * + * @since 2201.7.0 + */ +public class CompilerPluginWithCompletionProviders extends CompilerPlugin { + + @Override + public void init(CompilerPluginContext pluginContext) { + pluginContext.addCompletionProvider(new ServiceBodyContextProvider(ServiceDeclarationNode.class)); + } +} diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java new file mode 100644 index 000000000000..f75eb423f421 --- /dev/null +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java @@ -0,0 +1,49 @@ +package io.ballerina.plugins.completions; + +import io.ballerina.compiler.syntax.tree.FunctionDefinitionNode; +import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; +import io.ballerina.compiler.syntax.tree.SyntaxKind; +import io.ballerina.projects.plugins.completion.AbstractCompletionProvider; +import io.ballerina.projects.plugins.completion.CompletionContext; +import io.ballerina.projects.plugins.completion.CompletionException; +import io.ballerina.projects.plugins.completion.CompletionItem; +import io.ballerina.projects.plugins.completion.CompletionUtil; + +import java.util.Collections; +import java.util.List; + +/** + * An example of a completion provider that adds a resource function to a service declaration. + * + * @since 2201.7.0 + */ +public class ServiceBodyContextProvider extends AbstractCompletionProvider { + public ServiceBodyContextProvider(Class attachmentPoint) { + super(attachmentPoint); + } + + @Override + public String name() { + return "ServiceBodyContextProvider"; + } + + @Override + public List getCompletions(CompletionContext context, ServiceDeclarationNode node) throws CompletionException { + //Adds a resource function if one is not present with path foo + if (node.members().stream().anyMatch(member -> member.kind() == SyntaxKind.RESOURCE_ACCESSOR_DEFINITION && + ((FunctionDefinitionNode) member).relativeResourcePath() + .stream().anyMatch(path -> "foo".equals(path.toSourceCode())))) { + return Collections.emptyList(); + } + + String insertText = "resource function " + CompletionUtil.getPlaceHolderText(1, "get") + " " + + CompletionUtil.getPlaceHolderText(2, "foo") + "(" + CompletionUtil.getPlaceHolderText(3) + ")" + + " returns " + CompletionUtil.getPlaceHolderText(4, "string") + " {" + CompletionUtil.LINE_BREAK + + CompletionUtil.PADDING + "return " + CompletionUtil.getPlaceHolderText(5, "\"\"") + ";" + + CompletionUtil.LINE_BREAK + "}"; + String label = "resource function get foo() returns string"; + + CompletionItem completionItem = new CompletionItem(label, insertText, CompletionItem.Priority.HIGH); + return List.of(completionItem); + } +} diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/module-info.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/module-info.java new file mode 100644 index 000000000000..bd8b56a31adb --- /dev/null +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/module-info.java @@ -0,0 +1,7 @@ +module compiler.plugin.test.with.completion.providers { + requires io.ballerina.lang; + requires io.ballerina.parser; + requires io.ballerina.tools.api; + + exports io.ballerina.plugins.completions; +} diff --git a/settings.gradle b/settings.gradle index e93fe3f475c9..b68373d3d4dc 100644 --- a/settings.gradle +++ b/settings.gradle @@ -117,6 +117,7 @@ include(':ls-extensions:bal-shell-service') include(':project-api-test-artifact:event-logger-compiler-plugin') include(':project-api-test-artifact:compiler-plugin-with-one-dependency') include(':project-api-test-artifact:compiler-plugin-with-codeactions') +include(':project-api-test-artifact:compiler-plugin-with-completion-providers') include(':project-api-test-artifact:compiler-plugin-with-two-dependencies') include(':project-api-test-artifact:string-utils-lib') include(':project-api-test-artifact:diagnostic-utils-lib') @@ -142,6 +143,7 @@ project(':project-api-test').projectDir = file('project-api/project-api-test') project(':project-api-test-artifact:event-logger-compiler-plugin').projectDir = file('project-api/test-artifacts/event-logger-compiler-plugin') project(':project-api-test-artifact:compiler-plugin-with-one-dependency').projectDir = file('project-api/test-artifacts/compiler-plugin-with-one-dependency') project(':project-api-test-artifact:compiler-plugin-with-codeactions').projectDir = file('project-api/test-artifacts/compiler-plugin-with-codeactions') +project(':project-api-test-artifact:compiler-plugin-with-completion-providers').projectDir = file('project-api/test-artifacts/compiler-plugin-with-completion-providers') project(':project-api-test-artifact:compiler-plugin-with-two-dependencies').projectDir = file('project-api/test-artifacts/compiler-plugin-with-two-dependencies') project(':project-api-test-artifact:string-utils-lib').projectDir = file('project-api/test-artifacts/string-utils-lib') project(':project-api-test-artifact:diagnostic-utils-lib').projectDir = file('project-api/test-artifacts/diagnostic-utils-lib') From e5695bfff116a61c04c453e80d69d0187c5331cd Mon Sep 17 00:00:00 2001 From: Malintha Ranasinghe Date: Mon, 24 Apr 2023 16:13:36 +0530 Subject: [PATCH 043/122] Add ls integration tests and improve docs --- .../plugins/completion/CompletionItem.java | 16 +- .../CompilerPluginCodeActions.md | 2 +- .../CompilerPluginCompletions.md | 174 +++++- .../CompilerPluginCompletionExtension.java | 2 - .../build.gradle | 1 + .../CompilerPluginCompletionTests.java | 45 ++ .../Ballerina.toml | 4 + .../CompilerPlugin.toml | 5 + .../Package.md | 1 + .../main.bal | 40 ++ ...plugin_completion_single_file_config1.json | 579 ++++++++++++++++++ ...piler_plugin_with_completions_config1.json | 579 ++++++++++++++++++ ...piler_plugin_with_completions_config2.json | 571 +++++++++++++++++ .../Ballerina.toml | 4 + .../main.bal | 16 + .../compiler-plugins/source/source1.bal | 7 + .../src/test/resources/testng.xml | 1 + 17 files changed, 2027 insertions(+), 20 deletions(-) create mode 100644 tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java create mode 100644 tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml create mode 100644 tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml create mode 100644 tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md create mode 100644 tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal create mode 100644 tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json create mode 100644 tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json create mode 100644 tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config2.json create mode 100644 tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/Ballerina.toml create mode 100644 tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal create mode 100644 tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java index 14f7d7644be0..54f8657a337c 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java @@ -7,7 +7,7 @@ /** * Represents a completion item. * - * @since 2201.6.0 + * @since 2201.7.0 */ public class CompletionItem { /** @@ -35,12 +35,6 @@ public class CompletionItem { * When omitted or empty, the label is used as the insert text for this item. */ private String insertText; - - /** - * A string that should be used when filtering a set of completion items. - * When omitted or empty, the label is used as the filter text for this item. - */ - private String filterText; public CompletionItem(String label, String insertText, Priority priority) { this.label = label; @@ -55,14 +49,6 @@ public String getInsertText() { public String getLabel() { return label; } - - public String getFilterText() { - return filterText; - } - - public void setFilterText(String filterText) { - this.filterText = filterText; - } public Priority getPriority() { return priority; diff --git a/docs/language-server/CompilerPluginCodeActions.md b/docs/language-server/CompilerPluginCodeActions.md index 4fdf0bf96e98..df3362171c3b 100644 --- a/docs/language-server/CompilerPluginCodeActions.md +++ b/docs/language-server/CompilerPluginCodeActions.md @@ -327,7 +327,7 @@ public class CodeActionUtils { ``` This method accepts the source file path, cursor position and the project as arguments. You can get rid of the `project` -agument and use `ProjectLoader.loadProject()` with the source file path as a parameter to load the project. +argument and use `ProjectLoader.loadProject()` with the source file path as a parameter to load the project. Once you have the list of codeactions, you can simply check for the _title_ and _arguments_. Note that the `CodeActionInfo` object has another attribute named `providerName`. This is for internal usage and formed in the diff --git a/docs/language-server/CompilerPluginCompletions.md b/docs/language-server/CompilerPluginCompletions.md index ca8bde63e9c1..4fbe41ee772b 100644 --- a/docs/language-server/CompilerPluginCompletions.md +++ b/docs/language-server/CompilerPluginCompletions.md @@ -84,6 +84,112 @@ public abstract class AbstractCompletionProvider implements Comp #### `CompletionItem` +```java +/** + * Represents a completion item. + * + * @since 2201.7.0 + */ +public class CompletionItem { + /** + * The label of this completion item. By default, also the text that is inserted when selecting + * this completion. + */ + private String label; + + /** + * Indicates the priority(sorted position) of the completion item. + */ + private Priority priority; + + /** + * An optional array of additional text edits that are applied when selecting this completion. + * Edits must not overlap (including the same insert position) with the main edit nor with themselves. + * Additional text edits should be used to change text unrelated to the + * current cursor position (for example adding an import statement at the top of the file if the completion + * item will insert a qualified type). + */ + private List additionalTextEdits; + + /** + * A string that should be inserted a document when selecting this completion. + * When omitted or empty, the label is used as the insert text for this item. + */ + private String insertText; + + public CompletionItem(String label, String insertText, Priority priority) { + this.label = label; + this.insertText = insertText; + this.priority = priority; + } + + public String getInsertText() { + return insertText; + } + + public String getLabel() { + return label; + } + + public String getFilterText() { + return filterText; + } + + public void setFilterText(String filterText) { + this.filterText = filterText; + } + + public Priority getPriority() { + return priority; + } + + public void setAdditionalTextEdits(List additionalTextEdits) { + this.additionalTextEdits = additionalTextEdits; + } + + public List getAdditionalTextEdits() { + return additionalTextEdits; + } + + /** + * Represents the priority of the completion item. If priority is high the completion item + * will be sorted to the top of the completion item list. If low a default priority based on + * the completion item kind (Snippet) will be assigned. + */ + public enum Priority { + HIGH, + LOW + } + /** + * Represents a text edit that is applied along with the completion item. + */ + static class TextEdit { + private String newText; + private LinePosition start; + private LinePosition end; + + public TextEdit(String newText, LinePosition start, LinePosition end) { + this.newText = newText; + this.start = start; + this.end = end; + } + + public String getNewText() { + return newText; + } + + public LinePosition getStart() { + return start; + } + + public LinePosition getEnd() { + return end; + } + } + +} +``` + A completion item has several properties. As a compiler plugin developer, you can define the following properties of a completion item: - `label`: The label of the completion item. This is the text displayed in the list of completion items. @@ -92,6 +198,7 @@ A completion item has several properties. As a compiler plugin developer, you ca - `priority`: The priority of this item defines the order in which the items are shown to the user. If the priority is high the item will be shown before the item will be grouped at the top of the completion item list. +- `additionalTextEdits`: An optional array of additional text edits that are applied when selecting this completion. ## Example We are going to develop a package called `lstest/package_comp_plugin_with_completions`. We will develop a compiler plugin called `SampleCompilerPluginWithCompletionProvider` with this package. @@ -244,9 +351,72 @@ version="0.1.0" 3. Check if you get the following completion item when you trigger for completion items in the depicted cursor position. -[completions](images/compiler-plugin-completions.png) +[completions](./images/compiler-plugin-completions-1.png) Step 4: Unit testing -In unit testing, we have to test list of completion items given the cursor position on a source file. +In unit testing, we have to test the list of completion items given the cursor position on a source file. + +While you can decide how exactly is to perform the checks, we suggest using the following methods. + +```java +public class CompletionTestUtils { + + + /** + * Get completions for the provided cursor position in the provided source file. + * + * @param filePath Source file path + * @param cursorPos Cursor position + * @param project Project + * @return List of CompletionItem for the cursor position + */ + public static List getCompletions(Path filePath, LinePosition cursorPos, Project project) { + Package currentPackage = project.currentPackage(); + PackageCompilation compilation = currentPackage.getCompilation(); + // Completion manager is our interface to obtaining completions and executing them + CompletionManager completionManager = compilation.getCompletionManager(); + + + DocumentId documentId = project.documentId(filePath); + Document document = currentPackage.getDefaultModule().document(documentId); + SemanticModel semanticModel = compilation.getSemanticModel(documentId.moduleId()); + //Position information + TextDocument textDocument = document.textDocument(); + int cursorPositionInTree = textDocument.textPositionFrom(LinePosition.from(cursorPos.line(), cursorPos.offset())); + TextRange range = TextRange.from(cursorPositionInTree, 0); + NonTerminalNode nodeAtCursor = ((ModulePartNode) document.syntaxTree().rootNode()).findNode(range); + + //Create the completion context + CompletionContextImpl completionContext = CompletionContextImpl.from(filePath.toUri().toString(), + filePath, cursorPos, cursorPositionInTree, nodeAtCursor, document, semanticModel); + CompletionResult result = completionManager.completions(completionContext); + + return result.getCompletionItems(); + } +} +``` + +This method accepts the source file path, cursor position and the project as arguments. You can get rid of the `project` +argument and use `ProjectLoader.loadProject()` with the source file path as a parameter to load the project. + +Once you have the list of completion items, you can simply check for the _label_, _insertText_, and _priority_. + +Here's an example: +```jshelllanguage + + List expectedList = getExpectedList(); + // Get completions for cursor position and assert + List completionItems = CompletionUtils.getCodeActions(filePath, cursorPos, project); + Assert.assertTrue(completionItems.size() > 0, "Expect at least 1 completion item"); + + // Compare expected completion item list and received completion item list + for (int i = 0; i < expectedList.size(); i++) { + io.ballerina.projects.plugins.completion.CompletionItem expectedItem = expectedList.get(i); + io.ballerina.projects.plugins.completion.CompletionItem actualItem = completionItems.get(i); + Assert.assertEquals(actualItem.label(), expectedItem.label(), "Label mismatch"); + Assert.assertEquals(actualItem.insertText(), expectedItem.insertText(), "Insert text mismatch"); + Assert.assertEquals(actualItem.priority(), expectedItem.priority(), "Priority mismatch"); + } +``` diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java index d39dbe2f79a9..710d6ba3bf46 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java @@ -3,7 +3,6 @@ import io.ballerina.compiler.api.SemanticModel; import io.ballerina.compiler.syntax.tree.ModulePartNode; import io.ballerina.compiler.syntax.tree.NonTerminalNode; -import io.ballerina.compiler.syntax.tree.Token; import io.ballerina.projects.CompletionManager; import io.ballerina.projects.CompletionResult; import io.ballerina.projects.Document; @@ -16,7 +15,6 @@ import org.ballerinalang.langserver.LSClientLogger; import org.ballerinalang.langserver.LSContextOperation; import org.ballerinalang.langserver.common.utils.CommonUtil; -import org.ballerinalang.langserver.common.utils.PositionUtil; import org.ballerinalang.langserver.commons.CompletionContext; import org.ballerinalang.langserver.commons.CompletionExtension; import org.ballerinalang.langserver.commons.LanguageServerContext; diff --git a/tests/language-server-integration-tests/build.gradle b/tests/language-server-integration-tests/build.gradle index 5e2971999616..d106297420d2 100644 --- a/tests/language-server-integration-tests/build.gradle +++ b/tests/language-server-integration-tests/build.gradle @@ -48,6 +48,7 @@ dependencies { testImplementation 'org.powermock:powermock-module-testng-common' compilerPluginJar project(':project-api-test-artifact:compiler-plugin-with-codeactions') + compilerPluginJar project(':project-api-test-artifact:compiler-plugin-with-completion-providers') } description = 'Ballerina - Language Server Integration Tests' diff --git a/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java b/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java new file mode 100644 index 000000000000..e9d5c4856ad8 --- /dev/null +++ b/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java @@ -0,0 +1,45 @@ +package org.ballerinalang.langserver.test.completion; + +import org.ballerinalang.langserver.codeaction.AbstractCodeActionTest; +import org.ballerinalang.langserver.commons.workspace.WorkspaceDocumentException; +import org.ballerinalang.langserver.completion.CompletionTest; +import org.ballerinalang.test.BCompileUtil; +import org.testng.annotations.BeforeSuite; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.io.IOException; + +/** + * Completion tests for compiler plugin based completion providers. + */ +public class CompilerPluginCompletionTests extends CompletionTest { + + @BeforeSuite + public void compilePlugins() { + BCompileUtil.compileAndCacheBala("compiler_plugin_tests/package_comp_plugin_with_completions"); + } + + @Override + @Test(dataProvider = "completion-data-provider") + public void test(String config, String configPath) throws WorkspaceDocumentException, IOException { + super.test(config, configPath); + } + + @DataProvider(name = "completion-data-provider") + @Override + public Object[][] dataProvider() { + return new Object[][]{ + {"compiler_plugin_with_completions_config1.json", getTestResourceDir()}, + {"compiler_plugin_with_completions_config2.json", getTestResourceDir()}, + {"compiler_plugin_completion_single_file_config1.json", getTestResourceDir()} + }; + } + + @Override + public String getTestResourceDir() { + return "compiler-plugins"; + } + +} + diff --git a/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml new file mode 100644 index 000000000000..ce309055598b --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Ballerina.toml @@ -0,0 +1,4 @@ +[package] +org = "lstest" +name = "package_comp_plugin_with_completions" +version = "0.1.0" diff --git a/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml new file mode 100644 index 000000000000..19510b4352b2 --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml @@ -0,0 +1,5 @@ +[plugin] +class = "io.ballerina.plugins.completions.CompilerPluginWithCompletionProviders" + +[[dependency]] +path = "../../../../../build/compiler-plugin-jars/compiler-plugin-with-completion-providers-1.0.0.jar" \ No newline at end of file diff --git a/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md new file mode 100644 index 000000000000..40b979d1731a --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Package.md @@ -0,0 +1 @@ +# Sample Compiler Plugin with Completion Providers diff --git a/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal new file mode 100644 index 000000000000..7b80c7ec703f --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal @@ -0,0 +1,40 @@ +public class Listener { + + private int port = 0; + + public function 'start() returns error? { + return self.startEndpoint(); + } + + public function gracefulStop() returns error? { + return (); + } + + public function immediateStop() returns error? { + error err = error("not implemented"); + return err; + } + + public function attach(service object {} s, string[]|string? name = ()) returns error? { + return self.register(s, name); + } + + public function detach(service object {} s) returns error? { + return (); + } + + public function init(int port) { + } + + public function initEndpoint() returns error? { + return (); + } + + function register(service object {} s, string[]|string? name) returns error? { + return (); + } + + function startEndpoint() returns error? { + return (); + } +} diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json new file mode 100644 index 000000000000..a4e01ca382db --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json @@ -0,0 +1,579 @@ +{ + "position": { + "line": 5, + "character": 5 + }, + "source": "compiler-plugins/source/source1.bal", + "description": "Test compiler plugin completion providers", + "items": [ + { + "label": "resource function get foo() returns string", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "AP", + "insertText": "resource function ${1:get} ${2:foo}(${3}) returns ${4:string} {\n\treturn ${5:\"\"};\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "StrandData", + "kind": "Struct", + "detail": "Record", + "documentation": { + "left": "Describes Strand execution details for the runtime.\n" + }, + "sortText": "B", + "insertText": "StrandData", + "insertTextFormat": "Snippet" + }, + { + "label": "Thread", + "kind": "TypeParameter", + "detail": "Union", + "sortText": "B", + "insertText": "Thread", + "insertTextFormat": "Snippet" + }, + { + "label": "readonly", + "kind": "TypeParameter", + "detail": "Readonly", + "sortText": "B", + "insertText": "readonly", + "insertTextFormat": "Snippet" + }, + { + "label": "handle", + "kind": "TypeParameter", + "detail": "Handle", + "sortText": "B", + "insertText": "handle", + "insertTextFormat": "Snippet" + }, + { + "label": "never", + "kind": "TypeParameter", + "detail": "Never", + "sortText": "B", + "insertText": "never", + "insertTextFormat": "Snippet" + }, + { + "label": "json", + "kind": "TypeParameter", + "detail": "Json", + "sortText": "B", + "insertText": "json", + "insertTextFormat": "Snippet" + }, + { + "label": "anydata", + "kind": "TypeParameter", + "detail": "Anydata", + "sortText": "B", + "insertText": "anydata", + "insertTextFormat": "Snippet" + }, + { + "label": "any", + "kind": "TypeParameter", + "detail": "Any", + "sortText": "B", + "insertText": "any", + "insertTextFormat": "Snippet" + }, + { + "label": "byte", + "kind": "TypeParameter", + "detail": "Byte", + "sortText": "B", + "insertText": "byte", + "insertTextFormat": "Snippet" + }, + { + "label": "service", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "service", + "insertText": "service", + "insertTextFormat": "Snippet" + }, + { + "label": "record", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "record", + "insertText": "record ", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "function", + "insertText": "function ", + "insertTextFormat": "Snippet" + }, + { + "label": "record {}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "record", + "insertText": "record {${1}}", + "insertTextFormat": "Snippet" + }, + { + "label": "record {||}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "record", + "insertText": "record {|${1}|}", + "insertTextFormat": "Snippet" + }, + { + "label": "distinct", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "distinct", + "insertText": "distinct", + "insertTextFormat": "Snippet" + }, + { + "label": "object {}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "object", + "insertText": "object {${1}}", + "insertTextFormat": "Snippet" + }, + { + "label": "true", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "true", + "insertText": "true", + "insertTextFormat": "Snippet" + }, + { + "label": "false", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "false", + "insertText": "false", + "insertTextFormat": "Snippet" + }, + { + "label": "null", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "null", + "insertText": "null", + "insertTextFormat": "Snippet" + }, + { + "label": "foo", + "kind": "Module", + "detail": "Module", + "sortText": "CD", + "filterText": "foo", + "insertText": "foo", + "insertTextFormat": "Snippet" + }, + { + "label": "ballerina/lang.regexp", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "regexp", + "insertText": "regexp", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.regexp;\n" + } + ] + }, + { + "label": "ballerina/lang.test", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "test", + "insertText": "test", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.test;\n" + } + ] + }, + { + "label": "ballerina/lang.value", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "value", + "insertText": "value", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.value;\n" + } + ] + }, + { + "label": "ballerina/jballerina.java", + "kind": "Module", + "detail": "Module", + "sortText": "CF", + "filterText": "java", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/jballerina.java;\n" + } + ] + }, + { + "label": "ballerina/lang.runtime", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "runtime", + "insertText": "runtime", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.runtime;\n" + } + ] + }, + { + "label": "ballerina/lang.array", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "array", + "insertText": "array", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.array;\n" + } + ] + }, + { + "label": "lstest/package_comp_plugin_with_codeactions", + "kind": "Module", + "detail": "Module", + "sortText": "CG", + "filterText": "package_comp_plugin_with_codeactions", + "insertText": "package_comp_plugin_with_codeactions", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import lstest/package_comp_plugin_with_codeactions;\n" + } + ] + }, + { + "label": "decimal", + "kind": "TypeParameter", + "detail": "Decimal", + "sortText": "B", + "insertText": "decimal", + "insertTextFormat": "Snippet" + }, + { + "label": "error", + "kind": "Event", + "detail": "Error", + "sortText": "B", + "insertText": "error", + "insertTextFormat": "Snippet" + }, + { + "label": "object", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "object", + "insertTextFormat": "Snippet" + }, + { + "label": "transaction", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "transaction", + "insertTextFormat": "Snippet" + }, + { + "label": "xml", + "kind": "TypeParameter", + "detail": "Xml", + "sortText": "B", + "insertText": "xml", + "insertTextFormat": "Snippet" + }, + { + "label": "table", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "table", + "insertTextFormat": "Snippet" + }, + { + "label": "map", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "map", + "insertTextFormat": "Snippet" + }, + { + "label": "stream", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "stream", + "insertTextFormat": "Snippet" + }, + { + "label": "boolean", + "kind": "TypeParameter", + "detail": "Boolean", + "sortText": "B", + "insertText": "boolean", + "insertTextFormat": "Snippet" + }, + { + "label": "future", + "kind": "TypeParameter", + "detail": "Future", + "sortText": "B", + "insertText": "future", + "insertTextFormat": "Snippet" + }, + { + "label": "int", + "kind": "TypeParameter", + "detail": "Int", + "sortText": "B", + "insertText": "int", + "insertTextFormat": "Snippet" + }, + { + "label": "float", + "kind": "TypeParameter", + "detail": "Float", + "sortText": "B", + "insertText": "float", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "TypeParameter", + "detail": "Function", + "sortText": "B", + "insertText": "function", + "insertTextFormat": "Snippet" + }, + { + "label": "string", + "kind": "TypeParameter", + "detail": "String", + "sortText": "B", + "insertText": "string", + "insertTextFormat": "Snippet" + }, + { + "label": "typedesc", + "kind": "TypeParameter", + "detail": "Typedesc", + "sortText": "B", + "insertText": "typedesc", + "insertTextFormat": "Snippet" + }, + { + "label": "private", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "private", + "insertText": "private ", + "insertTextFormat": "Snippet" + }, + { + "label": "public", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "public", + "insertText": "public ", + "insertTextFormat": "Snippet" + }, + { + "label": "final", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "final", + "insertText": "final ", + "insertTextFormat": "Snippet" + }, + { + "label": "remote", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "remote", + "insertText": "remote", + "insertTextFormat": "Snippet" + }, + { + "label": "resource", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "resource", + "insertText": "resource ", + "insertTextFormat": "Snippet" + }, + { + "label": "remote function ();", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "remote_function", + "insertText": "remote function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "resource function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "resource_function", + "insertText": "resource function ${1:accessor} ${2:path}(${3})${4} {\n\t${5}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "isolated", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "isolated", + "insertText": "isolated ", + "insertTextFormat": "Snippet" + }, + { + "label": "transactional", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "transactional", + "insertText": "transactional", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json new file mode 100644 index 000000000000..e59fbc62f611 --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json @@ -0,0 +1,579 @@ +{ + "position": { + "line": 5, + "character": 5 + }, + "source": "compiler-plugins/source/package_plugin_user_with_completions/main.bal", + "description": "Test compiler plugin completion providers", + "items": [ + { + "label": "resource function get foo() returns string", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "AP", + "insertText": "resource function ${1:get} ${2:foo}(${3}) returns ${4:string} {\n\treturn ${5:\"\"};\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "StrandData", + "kind": "Struct", + "detail": "Record", + "documentation": { + "left": "Describes Strand execution details for the runtime.\n" + }, + "sortText": "B", + "insertText": "StrandData", + "insertTextFormat": "Snippet" + }, + { + "label": "Thread", + "kind": "TypeParameter", + "detail": "Union", + "sortText": "B", + "insertText": "Thread", + "insertTextFormat": "Snippet" + }, + { + "label": "readonly", + "kind": "TypeParameter", + "detail": "Readonly", + "sortText": "B", + "insertText": "readonly", + "insertTextFormat": "Snippet" + }, + { + "label": "handle", + "kind": "TypeParameter", + "detail": "Handle", + "sortText": "B", + "insertText": "handle", + "insertTextFormat": "Snippet" + }, + { + "label": "never", + "kind": "TypeParameter", + "detail": "Never", + "sortText": "B", + "insertText": "never", + "insertTextFormat": "Snippet" + }, + { + "label": "json", + "kind": "TypeParameter", + "detail": "Json", + "sortText": "B", + "insertText": "json", + "insertTextFormat": "Snippet" + }, + { + "label": "anydata", + "kind": "TypeParameter", + "detail": "Anydata", + "sortText": "B", + "insertText": "anydata", + "insertTextFormat": "Snippet" + }, + { + "label": "any", + "kind": "TypeParameter", + "detail": "Any", + "sortText": "B", + "insertText": "any", + "insertTextFormat": "Snippet" + }, + { + "label": "byte", + "kind": "TypeParameter", + "detail": "Byte", + "sortText": "B", + "insertText": "byte", + "insertTextFormat": "Snippet" + }, + { + "label": "service", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "service", + "insertText": "service", + "insertTextFormat": "Snippet" + }, + { + "label": "record", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "record", + "insertText": "record ", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "function", + "insertText": "function ", + "insertTextFormat": "Snippet" + }, + { + "label": "record {}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "record", + "insertText": "record {${1}}", + "insertTextFormat": "Snippet" + }, + { + "label": "record {||}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "record", + "insertText": "record {|${1}|}", + "insertTextFormat": "Snippet" + }, + { + "label": "distinct", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "distinct", + "insertText": "distinct", + "insertTextFormat": "Snippet" + }, + { + "label": "object {}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "object", + "insertText": "object {${1}}", + "insertTextFormat": "Snippet" + }, + { + "label": "true", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "true", + "insertText": "true", + "insertTextFormat": "Snippet" + }, + { + "label": "false", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "false", + "insertText": "false", + "insertTextFormat": "Snippet" + }, + { + "label": "null", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "null", + "insertText": "null", + "insertTextFormat": "Snippet" + }, + { + "label": "foo", + "kind": "Module", + "detail": "Module", + "sortText": "CD", + "filterText": "foo", + "insertText": "foo", + "insertTextFormat": "Snippet" + }, + { + "label": "ballerina/lang.regexp", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "regexp", + "insertText": "regexp", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.regexp;\n" + } + ] + }, + { + "label": "ballerina/lang.test", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "test", + "insertText": "test", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.test;\n" + } + ] + }, + { + "label": "ballerina/lang.value", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "value", + "insertText": "value", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.value;\n" + } + ] + }, + { + "label": "ballerina/jballerina.java", + "kind": "Module", + "detail": "Module", + "sortText": "CF", + "filterText": "java", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/jballerina.java;\n" + } + ] + }, + { + "label": "ballerina/lang.runtime", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "runtime", + "insertText": "runtime", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.runtime;\n" + } + ] + }, + { + "label": "ballerina/lang.array", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "array", + "insertText": "array", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.array;\n" + } + ] + }, + { + "label": "lstest/package_comp_plugin_with_codeactions", + "kind": "Module", + "detail": "Module", + "sortText": "CG", + "filterText": "package_comp_plugin_with_codeactions", + "insertText": "package_comp_plugin_with_codeactions", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import lstest/package_comp_plugin_with_codeactions;\n" + } + ] + }, + { + "label": "decimal", + "kind": "TypeParameter", + "detail": "Decimal", + "sortText": "B", + "insertText": "decimal", + "insertTextFormat": "Snippet" + }, + { + "label": "error", + "kind": "Event", + "detail": "Error", + "sortText": "B", + "insertText": "error", + "insertTextFormat": "Snippet" + }, + { + "label": "object", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "object", + "insertTextFormat": "Snippet" + }, + { + "label": "transaction", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "transaction", + "insertTextFormat": "Snippet" + }, + { + "label": "xml", + "kind": "TypeParameter", + "detail": "Xml", + "sortText": "B", + "insertText": "xml", + "insertTextFormat": "Snippet" + }, + { + "label": "table", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "table", + "insertTextFormat": "Snippet" + }, + { + "label": "map", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "map", + "insertTextFormat": "Snippet" + }, + { + "label": "stream", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "stream", + "insertTextFormat": "Snippet" + }, + { + "label": "boolean", + "kind": "TypeParameter", + "detail": "Boolean", + "sortText": "B", + "insertText": "boolean", + "insertTextFormat": "Snippet" + }, + { + "label": "future", + "kind": "TypeParameter", + "detail": "Future", + "sortText": "B", + "insertText": "future", + "insertTextFormat": "Snippet" + }, + { + "label": "int", + "kind": "TypeParameter", + "detail": "Int", + "sortText": "B", + "insertText": "int", + "insertTextFormat": "Snippet" + }, + { + "label": "float", + "kind": "TypeParameter", + "detail": "Float", + "sortText": "B", + "insertText": "float", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "TypeParameter", + "detail": "Function", + "sortText": "B", + "insertText": "function", + "insertTextFormat": "Snippet" + }, + { + "label": "string", + "kind": "TypeParameter", + "detail": "String", + "sortText": "B", + "insertText": "string", + "insertTextFormat": "Snippet" + }, + { + "label": "typedesc", + "kind": "TypeParameter", + "detail": "Typedesc", + "sortText": "B", + "insertText": "typedesc", + "insertTextFormat": "Snippet" + }, + { + "label": "private", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "private", + "insertText": "private ", + "insertTextFormat": "Snippet" + }, + { + "label": "public", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "public", + "insertText": "public ", + "insertTextFormat": "Snippet" + }, + { + "label": "final", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "final", + "insertText": "final ", + "insertTextFormat": "Snippet" + }, + { + "label": "remote", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "remote", + "insertText": "remote", + "insertTextFormat": "Snippet" + }, + { + "label": "resource", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "resource", + "insertText": "resource ", + "insertTextFormat": "Snippet" + }, + { + "label": "remote function ();", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "remote_function", + "insertText": "remote function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "resource function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "resource_function", + "insertText": "resource function ${1:accessor} ${2:path}(${3})${4} {\n\t${5}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "isolated", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "isolated", + "insertText": "isolated ", + "insertTextFormat": "Snippet" + }, + { + "label": "transactional", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "transactional", + "insertText": "transactional", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config2.json b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config2.json new file mode 100644 index 000000000000..a6e7ac535e4a --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config2.json @@ -0,0 +1,571 @@ +{ + "position": { + "line": 10, + "character": 5 + }, + "source": "compiler-plugins/source/package_plugin_user_with_completions/main.bal", + "description": "Test compiler plugin completion providers", + "items": [ + { + "label": "StrandData", + "kind": "Struct", + "detail": "Record", + "documentation": { + "left": "Describes Strand execution details for the runtime.\n" + }, + "sortText": "B", + "insertText": "StrandData", + "insertTextFormat": "Snippet" + }, + { + "label": "Thread", + "kind": "TypeParameter", + "detail": "Union", + "sortText": "B", + "insertText": "Thread", + "insertTextFormat": "Snippet" + }, + { + "label": "readonly", + "kind": "TypeParameter", + "detail": "Readonly", + "sortText": "B", + "insertText": "readonly", + "insertTextFormat": "Snippet" + }, + { + "label": "handle", + "kind": "TypeParameter", + "detail": "Handle", + "sortText": "B", + "insertText": "handle", + "insertTextFormat": "Snippet" + }, + { + "label": "never", + "kind": "TypeParameter", + "detail": "Never", + "sortText": "B", + "insertText": "never", + "insertTextFormat": "Snippet" + }, + { + "label": "json", + "kind": "TypeParameter", + "detail": "Json", + "sortText": "B", + "insertText": "json", + "insertTextFormat": "Snippet" + }, + { + "label": "anydata", + "kind": "TypeParameter", + "detail": "Anydata", + "sortText": "B", + "insertText": "anydata", + "insertTextFormat": "Snippet" + }, + { + "label": "any", + "kind": "TypeParameter", + "detail": "Any", + "sortText": "B", + "insertText": "any", + "insertTextFormat": "Snippet" + }, + { + "label": "byte", + "kind": "TypeParameter", + "detail": "Byte", + "sortText": "B", + "insertText": "byte", + "insertTextFormat": "Snippet" + }, + { + "label": "service", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "service", + "insertText": "service", + "insertTextFormat": "Snippet" + }, + { + "label": "record", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "record", + "insertText": "record ", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "function", + "insertText": "function ", + "insertTextFormat": "Snippet" + }, + { + "label": "record {}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "record", + "insertText": "record {${1}}", + "insertTextFormat": "Snippet" + }, + { + "label": "record {||}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "record", + "insertText": "record {|${1}|}", + "insertTextFormat": "Snippet" + }, + { + "label": "distinct", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "distinct", + "insertText": "distinct", + "insertTextFormat": "Snippet" + }, + { + "label": "object {}", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "D", + "filterText": "object", + "insertText": "object {${1}}", + "insertTextFormat": "Snippet" + }, + { + "label": "true", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "true", + "insertText": "true", + "insertTextFormat": "Snippet" + }, + { + "label": "false", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "false", + "insertText": "false", + "insertTextFormat": "Snippet" + }, + { + "label": "null", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "null", + "insertText": "null", + "insertTextFormat": "Snippet" + }, + { + "label": "foo", + "kind": "Module", + "detail": "Module", + "sortText": "CD", + "filterText": "foo", + "insertText": "foo", + "insertTextFormat": "Snippet" + }, + { + "label": "ballerina/lang.regexp", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "regexp", + "insertText": "regexp", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.regexp;\n" + } + ] + }, + { + "label": "ballerina/lang.test", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "test", + "insertText": "test", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.test;\n" + } + ] + }, + { + "label": "ballerina/lang.value", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "value", + "insertText": "value", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.value;\n" + } + ] + }, + { + "label": "ballerina/jballerina.java", + "kind": "Module", + "detail": "Module", + "sortText": "CF", + "filterText": "java", + "insertText": "java", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/jballerina.java;\n" + } + ] + }, + { + "label": "ballerina/lang.runtime", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "runtime", + "insertText": "runtime", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.runtime;\n" + } + ] + }, + { + "label": "ballerina/lang.array", + "kind": "Module", + "detail": "Module", + "sortText": "CE", + "filterText": "array", + "insertText": "array", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import ballerina/lang.array;\n" + } + ] + }, + { + "label": "lstest/package_comp_plugin_with_codeactions", + "kind": "Module", + "detail": "Module", + "sortText": "CG", + "filterText": "package_comp_plugin_with_codeactions", + "insertText": "package_comp_plugin_with_codeactions", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 0, + "character": 0 + }, + "end": { + "line": 0, + "character": 0 + } + }, + "newText": "import lstest/package_comp_plugin_with_codeactions;\n" + } + ] + }, + { + "label": "decimal", + "kind": "TypeParameter", + "detail": "Decimal", + "sortText": "B", + "insertText": "decimal", + "insertTextFormat": "Snippet" + }, + { + "label": "error", + "kind": "Event", + "detail": "Error", + "sortText": "B", + "insertText": "error", + "insertTextFormat": "Snippet" + }, + { + "label": "object", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "object", + "insertTextFormat": "Snippet" + }, + { + "label": "transaction", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "transaction", + "insertTextFormat": "Snippet" + }, + { + "label": "xml", + "kind": "TypeParameter", + "detail": "Xml", + "sortText": "B", + "insertText": "xml", + "insertTextFormat": "Snippet" + }, + { + "label": "table", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "table", + "insertTextFormat": "Snippet" + }, + { + "label": "map", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "map", + "insertTextFormat": "Snippet" + }, + { + "label": "stream", + "kind": "Unit", + "detail": "type", + "sortText": "D", + "insertText": "stream", + "insertTextFormat": "Snippet" + }, + { + "label": "boolean", + "kind": "TypeParameter", + "detail": "Boolean", + "sortText": "B", + "insertText": "boolean", + "insertTextFormat": "Snippet" + }, + { + "label": "future", + "kind": "TypeParameter", + "detail": "Future", + "sortText": "B", + "insertText": "future", + "insertTextFormat": "Snippet" + }, + { + "label": "int", + "kind": "TypeParameter", + "detail": "Int", + "sortText": "B", + "insertText": "int", + "insertTextFormat": "Snippet" + }, + { + "label": "float", + "kind": "TypeParameter", + "detail": "Float", + "sortText": "B", + "insertText": "float", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "TypeParameter", + "detail": "Function", + "sortText": "B", + "insertText": "function", + "insertTextFormat": "Snippet" + }, + { + "label": "string", + "kind": "TypeParameter", + "detail": "String", + "sortText": "B", + "insertText": "string", + "insertTextFormat": "Snippet" + }, + { + "label": "typedesc", + "kind": "TypeParameter", + "detail": "Typedesc", + "sortText": "B", + "insertText": "typedesc", + "insertTextFormat": "Snippet" + }, + { + "label": "private", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "private", + "insertText": "private ", + "insertTextFormat": "Snippet" + }, + { + "label": "public", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "public", + "insertText": "public ", + "insertTextFormat": "Snippet" + }, + { + "label": "final", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "final", + "insertText": "final ", + "insertTextFormat": "Snippet" + }, + { + "label": "remote", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "remote", + "insertText": "remote", + "insertTextFormat": "Snippet" + }, + { + "label": "resource", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "resource", + "insertText": "resource ", + "insertTextFormat": "Snippet" + }, + { + "label": "remote function ();", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "remote_function", + "insertText": "remote function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "resource function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "resource_function", + "insertText": "resource function ${1:accessor} ${2:path}(${3})${4} {\n\t${5}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "A", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + }, + { + "label": "isolated", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "isolated", + "insertText": "isolated ", + "insertTextFormat": "Snippet" + }, + { + "label": "transactional", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "D", + "filterText": "transactional", + "insertText": "transactional", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/Ballerina.toml b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/Ballerina.toml new file mode 100644 index 000000000000..1bbd3b74c3bf --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/Ballerina.toml @@ -0,0 +1,4 @@ +[package] +org = "lstest" +name = "package_plugin_user_with_completions" +version = "0.1.0" diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal new file mode 100644 index 000000000000..3d2d3779a9d3 --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal @@ -0,0 +1,16 @@ +import lstest/package_comp_plugin_with_completions as foo; + +public listener listener1 = new foo:Listener(9090); + +service on listener1 { + r +} + +service on listener1 { + + r + + resource function get foo() returns string { + return "foo"; + } +} \ No newline at end of file diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal new file mode 100644 index 000000000000..0eb89c48dedf --- /dev/null +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal @@ -0,0 +1,7 @@ +import lstest/package_comp_plugin_with_completions as foo; + +public listener listener1 = new foo:Listener(9090); + +service on listener1 { + r +} diff --git a/tests/language-server-integration-tests/src/test/resources/testng.xml b/tests/language-server-integration-tests/src/test/resources/testng.xml index 3f5e52192364..3e5adde8672d 100644 --- a/tests/language-server-integration-tests/src/test/resources/testng.xml +++ b/tests/language-server-integration-tests/src/test/resources/testng.xml @@ -28,6 +28,7 @@ under the License. + From 7b4db7b034050ff3d6805f48cf14f9ea718df71c Mon Sep 17 00:00:00 2001 From: Malintha Ranasinghe Date: Mon, 24 Apr 2023 21:07:00 +0530 Subject: [PATCH 044/122] Add additional text edit support --- .../plugins/completion/CompletionItem.java | 29 +----------- .../compiler/linter/impl/CompilerLinter.java | 1 + .../CompilerPluginCompletions.md | 47 +++++++------------ .../CompilerPluginCompletionExtension.java | 14 ++++++ .../plugins/LanguageServerExtensionTests.java | 6 +++ .../ServiceBodyContextProvider.java | 10 ++++ ...plugin_completion_single_file_config1.json | 17 ++++++- ...piler_plugin_with_completions_config1.json | 17 ++++++- 8 files changed, 81 insertions(+), 60 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java index 54f8657a337c..34531c1122b9 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java @@ -1,6 +1,6 @@ package io.ballerina.projects.plugins.completion; -import io.ballerina.tools.text.LinePosition; +import io.ballerina.tools.text.TextEdit; import java.util.List; @@ -71,31 +71,4 @@ public enum Priority { HIGH, LOW } - /** - * Represents a text edit that is applied along with the completion item. - */ - static class TextEdit { - private String newText; - private LinePosition start; - private LinePosition end; - - public TextEdit(String newText, LinePosition start, LinePosition end) { - this.newText = newText; - this.start = start; - this.end = end; - } - - public String getNewText() { - return newText; - } - - public LinePosition getStart() { - return start; - } - - public LinePosition getEnd() { - return end; - } - } - } diff --git a/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java b/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java index 96ff78d9f423..eda0a4e3bbe5 100644 --- a/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java +++ b/compiler/linter-plugin/src/main/java/io/ballerina/compiler/linter/impl/CompilerLinter.java @@ -32,6 +32,7 @@ public class CompilerLinter extends CompilerPlugin { @Override public void init(CompilerPluginContext pluginContext) { + registerCodeActions(pluginContext); } diff --git a/docs/language-server/CompilerPluginCompletions.md b/docs/language-server/CompilerPluginCompletions.md index 4fbe41ee772b..f6d18c14d4ef 100644 --- a/docs/language-server/CompilerPluginCompletions.md +++ b/docs/language-server/CompilerPluginCompletions.md @@ -160,33 +160,6 @@ public class CompletionItem { HIGH, LOW } - /** - * Represents a text edit that is applied along with the completion item. - */ - static class TextEdit { - private String newText; - private LinePosition start; - private LinePosition end; - - public TextEdit(String newText, LinePosition start, LinePosition end) { - this.newText = newText; - this.start = start; - this.end = end; - } - - public String getNewText() { - return newText; - } - - public LinePosition getStart() { - return start; - } - - public LinePosition getEnd() { - return end; - } - } - } ``` @@ -198,7 +171,7 @@ A completion item has several properties. As a compiler plugin developer, you ca - `priority`: The priority of this item defines the order in which the items are shown to the user. If the priority is high the item will be shown before the item will be grouped at the top of the completion item list. -- `additionalTextEdits`: An optional array of additional text edits that are applied when selecting this completion. +- `additionalTextEdits`: An optional array of additional text edits that are applied when selecting this completion.Edits must not overlap (including the same insert position) with the main edit nor with themselves. Additional text edits should be used to change text unrelated to the current cursor position (for example adding an import statement at the top of the file if the completion item will insert a qualified type). ## Example We are going to develop a package called `lstest/package_comp_plugin_with_completions`. We will develop a compiler plugin called `SampleCompilerPluginWithCompletionProvider` with this package. @@ -404,11 +377,12 @@ argument and use `ProjectLoader.loadProject()` with the source file path as a pa Once you have the list of completion items, you can simply check for the _label_, _insertText_, and _priority_. Here's an example: + ```jshelllanguage - List expectedList = getExpectedList(); +import java.awt.*;List < io.ballerina.projects.plugins.completion.CompletionItem > expectedList = getExpectedList(); // Get completions for cursor position and assert - List completionItems = CompletionUtils.getCodeActions(filePath, cursorPos, project); + List < io.ballerina.projects.plugins.completion.CompletionItem > completionItems = CompletionUtils.getCodeActions(filePath, cursorPos, project); Assert.assertTrue(completionItems.size() > 0, "Expect at least 1 completion item"); // Compare expected completion item list and received completion item list @@ -418,5 +392,18 @@ Here's an example: Assert.assertEquals(actualItem.label(), expectedItem.label(), "Label mismatch"); Assert.assertEquals(actualItem.insertText(), expectedItem.insertText(), "Insert text mismatch"); Assert.assertEquals(actualItem.priority(), expectedItem.priority(), "Priority mismatch"); + + // Check additional text edits if present + if (!expectedItem.additionalTextEdits().isEmpty()) { + Assert.assertTrue(actualItem.additionalTextEdits().size() == expectedItem.additionalTextEdits().size(), + "Additional text edits size size should mactch"); + for (int i = 0; i < actualItem.additionalTextEdits().size(); i++) { + TextEdit actualEdit = actualItem.additionalTextEdits().get(i); + TextEdit expectedEdit = expectedItem.additionalTextEdits().get(i); + Assert.assertTrue(edit.text().equals(expectedEdit.text()) + && actualEdit.range().startOffset() == expectedEdit.range().startOffset() + && actualEdit.range().length() == expectedEdit.range().length()); + } + } } ``` diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java index 710d6ba3bf46..776acde67d17 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java @@ -15,6 +15,7 @@ import org.ballerinalang.langserver.LSClientLogger; import org.ballerinalang.langserver.LSContextOperation; import org.ballerinalang.langserver.common.utils.CommonUtil; +import org.ballerinalang.langserver.common.utils.PositionUtil; import org.ballerinalang.langserver.commons.CompletionContext; import org.ballerinalang.langserver.commons.CompletionExtension; import org.ballerinalang.langserver.commons.LanguageServerContext; @@ -25,6 +26,7 @@ import org.eclipse.lsp4j.CompletionParams; import org.eclipse.lsp4j.InsertTextFormat; import org.eclipse.lsp4j.Position; +import org.eclipse.lsp4j.Range; import org.eclipse.lsp4j.TextDocumentIdentifier; import org.eclipse.lsp4j.jsonrpc.CancelChecker; @@ -89,6 +91,18 @@ public List execute(CompletionParams inputParams, } else { item.setSortText(SortingUtil.genSortText(16)); } + if (completionItem.getAdditionalTextEdits() != null) { + item.setAdditionalTextEdits(completionItem.getAdditionalTextEdits().stream().map( + textEdit -> { + TextRange textRange = textEdit.range(); + Range range = PositionUtil.toRange(textRange.startOffset(), textRange.endOffset(), + context.currentDocument().get().textDocument()); + org.eclipse.lsp4j.TextEdit lsp4jTextEdit = new org.eclipse.lsp4j.TextEdit(); + lsp4jTextEdit.setNewText(textEdit.text()); + lsp4jTextEdit.setRange(range); + return lsp4jTextEdit; + }).collect(Collectors.toList())); + } return item; }).collect(Collectors.toList()); } diff --git a/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java b/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java index af9c72348c22..f23fd711151c 100644 --- a/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java +++ b/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java @@ -46,6 +46,7 @@ import io.ballerina.tools.diagnostics.Location; import io.ballerina.tools.text.LinePosition; import io.ballerina.tools.text.LineRange; +import io.ballerina.tools.text.TextEdit; import org.ballerinalang.test.BCompileUtil; import org.ballerinalang.test.CompileResult; import org.ballerinalang.util.diagnostic.DiagnosticErrorCode; @@ -182,5 +183,10 @@ public void testOneCompilerPluginWithOneCompletionProvider() { Assert.assertEquals(completionItem.getInsertText(), insertText); Assert.assertEquals(completionItem.getLabel(), label); Assert.assertEquals(completionItem.getPriority(), CompletionItem.Priority.HIGH); + + Assert.assertFalse(completionItem.getAdditionalTextEdits().isEmpty()); + TextEdit edit = completionItem.getAdditionalTextEdits().get(0); + Assert.assertTrue(edit.text().equals("#Sample service with foo resource" + + CompletionUtil.LINE_BREAK) && edit.range().startOffset() == 113 && edit.range().length() == 0); } } diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java index f75eb423f421..4a78c3fe9d48 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java @@ -8,6 +8,8 @@ import io.ballerina.projects.plugins.completion.CompletionException; import io.ballerina.projects.plugins.completion.CompletionItem; import io.ballerina.projects.plugins.completion.CompletionUtil; +import io.ballerina.tools.text.TextEdit; +import io.ballerina.tools.text.TextRange; import java.util.Collections; import java.util.List; @@ -44,6 +46,14 @@ public List getCompletions(CompletionContext context, ServiceDec String label = "resource function get foo() returns string"; CompletionItem completionItem = new CompletionItem(label, insertText, CompletionItem.Priority.HIGH); + + //Additional text edit to add documentation for service if not present + if (node.metadata().isEmpty() || node.metadata().get().documentationString().isEmpty()) { + String documentation = "#Sample service with foo resource" + CompletionUtil.LINE_BREAK; + TextRange textRange = TextRange.from(node.textRange().startOffset(), 0); + TextEdit textEdit = TextEdit.from(textRange, documentation); + completionItem.setAdditionalTextEdits(List.of(textEdit)); + } return List.of(completionItem); } } diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json index a4e01ca382db..ef541c71935d 100644 --- a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json @@ -12,7 +12,22 @@ "detail": "Snippet", "sortText": "AP", "insertText": "resource function ${1:get} ${2:foo}(${3}) returns ${4:string} {\n\treturn ${5:\"\"};\n}", - "insertTextFormat": "Snippet" + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 4, + "character": 0 + }, + "end": { + "line": 4, + "character": 0 + } + }, + "newText": "#Sample service with foo resource\n" + } + ] }, { "label": "StrandData", diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json index e59fbc62f611..fedbf45dc0fb 100644 --- a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_with_completions_config1.json @@ -12,7 +12,22 @@ "detail": "Snippet", "sortText": "AP", "insertText": "resource function ${1:get} ${2:foo}(${3}) returns ${4:string} {\n\treturn ${5:\"\"};\n}", - "insertTextFormat": "Snippet" + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 4, + "character": 0 + }, + "end": { + "line": 4, + "character": 0 + } + }, + "newText": "#Sample service with foo resource\n" + } + ] }, { "label": "StrandData", From 380a65af45fd13da5625e666522b0757e02c8be4 Mon Sep 17 00:00:00 2001 From: Malintha Ranasinghe Date: Thu, 27 Apr 2023 23:18:50 +0530 Subject: [PATCH 045/122] Fix checkstyle issues --- .../ballerina/projects/CompletionManager.java | 16 +++++++++++++++- .../ballerina/projects/CompletionResult.java | 15 +++++++++++++++ .../AbstractCompletionProvider.java | 17 ++++++++++++++++- .../plugins/completion/CompletionContext.java | 17 ++++++++++++++++- .../completion/CompletionContextImpl.java | 17 ++++++++++++++++- .../completion/CompletionException.java | 17 ++++++++++++++++- .../plugins/completion/CompletionItem.java | 15 +++++++++++++++ .../completion/CompletionProvider.java | 17 ++++++++++++++++- .../plugins/completion/CompletionUtil.java | 15 +++++++++++++++ .../CompilerPluginCompletionExtension.java | 17 ++++++++++++++++- .../completions/util/CompletionUtil.java | 1 - .../CompilerPlugin.toml | 2 +- .../src/test/resources/testng.xml | 2 +- .../build.gradle | 2 +- ...CompilerPluginWithCompletionProviders.java | 15 +++++++++++++++ .../ServiceBodyContextProvider.java | 19 +++++++++++++++++-- .../CompilerPluginCompletionTests.java | 16 +++++++++++++++- .../CompilerPlugin.toml | 2 +- 18 files changed, 207 insertions(+), 15 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java index 1f0e05638430..ce3effb977e5 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -1,5 +1,19 @@ package io.ballerina.projects; - +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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. + */ import io.ballerina.compiler.api.symbols.ModuleSymbol; import io.ballerina.compiler.api.symbols.ServiceDeclarationSymbol; import io.ballerina.compiler.api.symbols.Symbol; diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java index 64b59cbfd150..1c1e3bc31798 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionResult.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects; import io.ballerina.projects.plugins.completion.CompletionException; diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java index f6d48f51470b..6cbd387d3017 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; import io.ballerina.compiler.syntax.tree.Node; @@ -8,7 +23,7 @@ * Interface for completion item providers. * * @param Provider's node type - * @since 2201.6.0 + * @since 2201.7.0 */ public abstract class AbstractCompletionProvider implements CompletionProvider { diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java index a684ffdc1a39..fd78dd560cac 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; import io.ballerina.compiler.syntax.tree.Node; @@ -6,7 +21,7 @@ /** * Code action context. * - * @since 2201.6.0 + * @since 2201.7.0 */ public interface CompletionContext extends PositionedActionContext { diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java index 35832be797e8..4c3e567d8471 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContextImpl.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; import io.ballerina.compiler.api.SemanticModel; @@ -11,7 +26,7 @@ /** * Implementation of completion plugin context. * - * @since 2201.6.0 + * @since 2201.7.0 */ public class CompletionContextImpl extends PositionedActionContextImpl implements CompletionContext { diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java index f2559cee96b9..e51ab491d8a9 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java @@ -1,9 +1,24 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; /** * A runtime exception thrown to capture exceptions captured while executing compiler plugins. * - * @since 2.0.0 + * @since 2201.7.0 */ public class CompletionException extends RuntimeException { private String providerName; diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java index 34531c1122b9..888f3f4222f3 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionItem.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; import io.ballerina.tools.text.TextEdit; diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java index 998b47f85089..4fae7e53d80d 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; import io.ballerina.compiler.syntax.tree.Node; @@ -8,7 +23,7 @@ * Interface for completion item providers. * * @param generic syntax tree node. - * @since 2201.6.0 + * @since 2201.7.0 */ public interface CompletionProvider { diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java index dca017b975f1..fd7cacb6c8a4 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; /** diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java index 776acde67d17..3d4f0f8ea05d 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/CompilerPluginCompletionExtension.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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.langserver.completions; import io.ballerina.compiler.api.SemanticModel; @@ -38,7 +53,7 @@ /** * Completion extension implementation for ballerina compiler plugins. * - * @since 2.0.0 + * @since 2201.7.0 */ @JavaSPIService("org.ballerinalang.langserver.commons.LanguageExtension") public class CompilerPluginCompletionExtension implements CompletionExtension { diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java index cbe45fbaa0c8..2d6875f58927 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/util/CompletionUtil.java @@ -27,7 +27,6 @@ import io.ballerina.tools.text.TextRange; import org.ballerinalang.langserver.common.utils.PositionUtil; import org.ballerinalang.langserver.commons.BallerinaCompletionContext; -import org.ballerinalang.langserver.commons.DocumentServiceContext; import org.ballerinalang.langserver.commons.completion.LSCompletionException; import org.ballerinalang.langserver.commons.completion.LSCompletionItem; import org.ballerinalang.langserver.commons.completion.spi.BallerinaCompletionProvider; diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml index 19510b4352b2..59ecee215500 100644 --- a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml @@ -2,4 +2,4 @@ class = "io.ballerina.plugins.completions.CompilerPluginWithCompletionProviders" [[dependency]] -path = "../../../../../build/compiler-plugin-jars/compiler-plugin-with-completion-providers-1.0.0.jar" \ No newline at end of file +path = "../../../../../build/compiler-plugin-jars/compiler-plugin-with-completion-providers-1.0.0.jar" diff --git a/project-api/project-api-test/src/test/resources/testng.xml b/project-api/project-api-test/src/test/resources/testng.xml index 1c74a76b2b82..17787aa1f2a9 100644 --- a/project-api/project-api-test/src/test/resources/testng.xml +++ b/project-api/project-api-test/src/test/resources/testng.xml @@ -22,7 +22,7 @@ under the License. - + diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle b/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle index cc536744d44f..fca3ea35a7bb 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021, WSO2 Inc. (http://wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 Inc. (http://wso2.com) 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. diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java index 019686908cf4..b98cc0e884ed 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.plugins.completions; import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java index 4a78c3fe9d48..d02f7fe0e6e2 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java @@ -1,5 +1,19 @@ package io.ballerina.plugins.completions; - +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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. + */ import io.ballerina.compiler.syntax.tree.FunctionDefinitionNode; import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; @@ -30,7 +44,8 @@ public String name() { } @Override - public List getCompletions(CompletionContext context, ServiceDeclarationNode node) throws CompletionException { + public List getCompletions(CompletionContext context, ServiceDeclarationNode node) + throws CompletionException { //Adds a resource function if one is not present with path foo if (node.members().stream().anyMatch(member -> member.kind() == SyntaxKind.RESOURCE_ACCESSOR_DEFINITION && ((FunctionDefinitionNode) member).relativeResourcePath() diff --git a/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java b/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java index e9d5c4856ad8..b22526d15a57 100644 --- a/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java +++ b/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java @@ -1,6 +1,20 @@ package org.ballerinalang.langserver.test.completion; +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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. + */ -import org.ballerinalang.langserver.codeaction.AbstractCodeActionTest; import org.ballerinalang.langserver.commons.workspace.WorkspaceDocumentException; import org.ballerinalang.langserver.completion.CompletionTest; import org.ballerinalang.test.BCompileUtil; diff --git a/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml index 19510b4352b2..59ecee215500 100644 --- a/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml +++ b/tests/language-server-integration-tests/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/CompilerPlugin.toml @@ -2,4 +2,4 @@ class = "io.ballerina.plugins.completions.CompilerPluginWithCompletionProviders" [[dependency]] -path = "../../../../../build/compiler-plugin-jars/compiler-plugin-with-completion-providers-1.0.0.jar" \ No newline at end of file +path = "../../../../../build/compiler-plugin-jars/compiler-plugin-with-completion-providers-1.0.0.jar" From bc7f7285d2a153f26dfda0a715574bf26c0b3dcf Mon Sep 17 00:00:00 2001 From: malinthar Date: Wed, 17 May 2023 19:14:53 +0530 Subject: [PATCH 046/122] Fix faling windows test case --- .../projects/test/plugins/LanguageServerExtensionTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java b/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java index f23fd711151c..55ad658fb2d3 100644 --- a/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java +++ b/project-api/project-api-test/src/test/java/io/ballerina/projects/test/plugins/LanguageServerExtensionTests.java @@ -187,6 +187,7 @@ public void testOneCompilerPluginWithOneCompletionProvider() { Assert.assertFalse(completionItem.getAdditionalTextEdits().isEmpty()); TextEdit edit = completionItem.getAdditionalTextEdits().get(0); Assert.assertTrue(edit.text().equals("#Sample service with foo resource" + - CompletionUtil.LINE_BREAK) && edit.range().startOffset() == 113 && edit.range().length() == 0); + CompletionUtil.LINE_BREAK) && edit.range().startOffset() == nodeAtCursor.textRange().startOffset() + && edit.range().length() == 0); } } From e1c29f40825e77cd607265dcf5a7498d4969f21c Mon Sep 17 00:00:00 2001 From: malinthar Date: Thu, 8 Jun 2023 23:30:26 +0530 Subject: [PATCH 047/122] Address review suggestions --- .../projects/CompilerPluginManager.java | 18 +++---- .../ballerina/projects/CompletionManager.java | 2 +- .../AbstractCompletionProvider.java | 44 ---------------- .../completion/CompletionException.java | 1 + .../completion/CompletionProvider.java | 2 +- .../CompilerPluginCompletions.md | 52 +++++-------------- ...CompilerPluginWithCompletionProviders.java | 3 +- .../ServiceBodyContextProvider.java | 13 +++-- 8 files changed, 33 insertions(+), 102 deletions(-) delete mode 100644 compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java index 01771c06f139..97a17fdec2ca 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java @@ -125,6 +125,15 @@ CodeActionManager getCodeActionManager() { return codeActionManager; } + CompletionManager getCompletionManager() { + if (completionManager != null) { + return completionManager; + } + + completionManager = CompletionManager.from(compilerPluginContexts); + return completionManager; + } + int engagedCodeGeneratorCount() { int count = 0; for (CompilerPluginContextIml compilerPluginContext : compilerPluginContexts) { @@ -140,15 +149,6 @@ int engagedCodeModifierCount() { } return count; } - - CompletionManager getCompletionManager() { - if (completionManager != null) { - return completionManager; - } - - completionManager = CompletionManager.from(compilerPluginContexts); - return completionManager; - } private static List loadEngagedCompilerPlugins(List dependencies) { List compilerPlugins = new ArrayList<>(); diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java index ce3effb977e5..9ca11615215b 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -46,7 +46,7 @@ private CompletionManager(List compilerPluginContexts) completionProviders = new HashMap<>(); compilerPluginContexts.forEach(compilerPluginContextIml -> { for (CompletionProvider completionProvider : compilerPluginContextIml.completionProviders()) { - for (Class attachmentPoint : completionProvider.getAttachmentPoints()) { + for (Class attachmentPoint : completionProvider.getSupportedNodes()) { List completionProviderList = completionProviders.computeIfAbsent(attachmentPoint, k -> new ArrayList<>()); completionProviderList.add(new CompletionProviderDescriptor(completionProvider, diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java deleted file mode 100644 index 6cbd387d3017..000000000000 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/AbstractCompletionProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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 io.ballerina.projects.plugins.completion; - -import io.ballerina.compiler.syntax.tree.Node; - -import java.util.List; - -/** - * Interface for completion item providers. - * - * @param Provider's node type - * @since 2201.7.0 - */ -public abstract class AbstractCompletionProvider implements CompletionProvider { - - private final List> attachmentPoints; - - public AbstractCompletionProvider(List> attachmentPoints) { - this.attachmentPoints = attachmentPoints; - } - - public AbstractCompletionProvider(Class attachmentPoint) { - this.attachmentPoints = List.of(attachmentPoint); - } - - @Override - public List> getAttachmentPoints() { - return this.attachmentPoints; - } -} diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java index e51ab491d8a9..85a5a654db53 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionException.java @@ -22,6 +22,7 @@ */ public class CompletionException extends RuntimeException { private String providerName; + public CompletionException(Throwable cause, String providerName) { super(cause); this.providerName = providerName; diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java index 4fae7e53d80d..f36cacbc8e32 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionProvider.java @@ -49,5 +49,5 @@ public interface CompletionProvider { * * @return {@link List} List of attachment points */ - List> getAttachmentPoints(); + List> getSupportedNodes(); } diff --git a/docs/language-server/CompilerPluginCompletions.md b/docs/language-server/CompilerPluginCompletions.md index f6d18c14d4ef..2f2c10cbc25d 100644 --- a/docs/language-server/CompilerPluginCompletions.md +++ b/docs/language-server/CompilerPluginCompletions.md @@ -41,7 +41,7 @@ public interface CompletionProvider { * * @return List of attachment points */ - List> getAttachmentPoints(); + List> getSupportedNodes(); } ``` @@ -49,38 +49,8 @@ public interface CompletionProvider { 2. `getCompletions()`: The method that returns the list of completion items for a given completion context. -3. `getAttachmentPoints()`: The method that returns the list of classes of syntax nodes that the completion provider is attached to. This is used to filter out the completion providers that are not relevant to the current completion context. +3. `getSupportedNodes()`: The method that returns the list of classes of syntax nodes that the completion provider supports. This is used to filter out the completion providers that are not relevant to the current completion context. -#### `AbstractCompletionProvider` - -The `AbstractCompletionProvider` defined in `io.ballerina.projects.plugins.completion` package is an abstract class that implements the `CompletionProvider` interface. This class has the `getAttachmentPoints()` method implemented. A compiler plugin developer can extend this class to develop a completion provider. - -```java -/** - * Interface for completion item providers. - * - * @param Provider's node type - * @since 2201.7.0 - */ -public abstract class AbstractCompletionProvider implements CompletionProvider { - - private final List> attachmentPoints; - - public AbstractCompletionProvider(List> attachmentPoints) { - this.attachmentPoints = attachmentPoints; - } - - public AbstractCompletionProvider(Class attachmentPoint) { - this.attachmentPoints = List.of(attachmentPoint); - } - - @Override - public List> getAttachmentPoints() { - return this.attachmentPoints; - } -} - -``` #### `CompletionItem` @@ -236,7 +206,7 @@ path = "compiler-plugin-with-completion-provider-1.0.0.jar" Step 2: Implement the CompletionProvider -You can write a completion provider extending the `AbstractCompletionProvider` class as follows: +You can write a completion provider implementing the `CompletionProvider` interface as follows: ```java /** @@ -244,10 +214,7 @@ You can write a completion provider extending the `AbstractCompletionProvider` c * * @since 2201.7.0 */ -public class ServiceBodyContextProvider extends AbstractCompletionProvider { - public ServiceBodyContextProvider(Class attachmentPoint) { - super(attachmentPoint); - } +public class ServiceBodyContextProvider implements CompletionProvider { @Override public String name() { @@ -271,6 +238,11 @@ public class ServiceBodyContextProvider extends AbstractCompletionProvider> getSupportedNodes() { + return List.of(ServiceDeclarationNode.class); + } } ``` @@ -286,7 +258,7 @@ public class CompilerPluginWithCompletionProvider extends CompilerPlugin { @Override public void init(CompilerPluginContext pluginContext) { - pluginContext.addCompletionProvider(new ServiceBodyContextProvider(ServiceDeclarationNode.class)); + pluginContext.addCompletionProvider(new ServiceBodyContextProvider()); } } ``` @@ -380,9 +352,9 @@ Here's an example: ```jshelllanguage -import java.awt.*;List < io.ballerina.projects.plugins.completion.CompletionItem > expectedList = getExpectedList(); + List expectedList = getExpectedList(); // Get completions for cursor position and assert - List < io.ballerina.projects.plugins.completion.CompletionItem > completionItems = CompletionUtils.getCodeActions(filePath, cursorPos, project); + List completionItems = CompletionUtils.getCodeActions(filePath, cursorPos, project); Assert.assertTrue(completionItems.size() > 0, "Expect at least 1 completion item"); // Compare expected completion item list and received completion item list diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java index b98cc0e884ed..922615bf4635 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/CompilerPluginWithCompletionProviders.java @@ -15,7 +15,6 @@ */ package io.ballerina.plugins.completions; -import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; import io.ballerina.projects.plugins.CompilerPlugin; import io.ballerina.projects.plugins.CompilerPluginContext; @@ -28,6 +27,6 @@ public class CompilerPluginWithCompletionProviders extends CompilerPlugin { @Override public void init(CompilerPluginContext pluginContext) { - pluginContext.addCompletionProvider(new ServiceBodyContextProvider(ServiceDeclarationNode.class)); + pluginContext.addCompletionProvider(new ServiceBodyContextProvider()); } } diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java index d02f7fe0e6e2..ebf56ecbc529 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java @@ -14,13 +14,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import io.ballerina.compiler.syntax.tree.FunctionDefinitionNode; import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; -import io.ballerina.projects.plugins.completion.AbstractCompletionProvider; import io.ballerina.projects.plugins.completion.CompletionContext; import io.ballerina.projects.plugins.completion.CompletionException; import io.ballerina.projects.plugins.completion.CompletionItem; +import io.ballerina.projects.plugins.completion.CompletionProvider; import io.ballerina.projects.plugins.completion.CompletionUtil; import io.ballerina.tools.text.TextEdit; import io.ballerina.tools.text.TextRange; @@ -33,10 +34,7 @@ * * @since 2201.7.0 */ -public class ServiceBodyContextProvider extends AbstractCompletionProvider { - public ServiceBodyContextProvider(Class attachmentPoint) { - super(attachmentPoint); - } +public class ServiceBodyContextProvider implements CompletionProvider { @Override public String name() { @@ -71,4 +69,9 @@ public List getCompletions(CompletionContext context, ServiceDec } return List.of(completionItem); } + + @Override + public List> getSupportedNodes() { + return List.of(ServiceDeclarationNode.class); + } } From aa367fc83f08e83aec1de28f9724f19582f4c9d4 Mon Sep 17 00:00:00 2001 From: malinthar Date: Fri, 9 Jun 2023 15:04:15 +0530 Subject: [PATCH 048/122] Address review suggestions --- .../main/java/io/ballerina/projects/CompilerPluginManager.java | 1 - .../source/package_plugin_user_with_completions/main.bal | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java index 97a17fdec2ca..e864cdf9b2de 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompilerPluginManager.java @@ -42,7 +42,6 @@ class CompilerPluginManager { private CodeModifierManager codeModifierManager; private CompilerLifecycleManager compilerLifecycleListenerManager; private CodeActionManager codeActionManager; - private CompletionManager completionManager; private CompilerPluginManager(PackageCompilation compilation, diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal index 3d2d3779a9d3..fea796656749 100644 --- a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/package_plugin_user_with_completions/main.bal @@ -13,4 +13,4 @@ service on listener1 { resource function get foo() returns string { return "foo"; } -} \ No newline at end of file +} From efebe674d41b78162d92a2e78381a2104837e913 Mon Sep 17 00:00:00 2001 From: malinthar Date: Wed, 14 Jun 2023 09:54:28 +0530 Subject: [PATCH 049/122] Address review suggestions --- .../src/main/java/io/ballerina/projects/CompletionManager.java | 3 ++- .../projects/plugins/completion/CompletionContext.java | 2 +- .../compiler-plugin-with-completion-providers/build.gradle | 2 +- .../plugins/completions/ServiceBodyContextProvider.java | 2 +- .../test/completion/CompilerPluginCompletionTests.java | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java index 9ca11615215b..13d6fa4e6e17 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -1,4 +1,3 @@ -package io.ballerina.projects; /* * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) All Rights Reserved. * @@ -14,6 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package io.ballerina.projects; + import io.ballerina.compiler.api.symbols.ModuleSymbol; import io.ballerina.compiler.api.symbols.ServiceDeclarationSymbol; import io.ballerina.compiler.api.symbols.Symbol; diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java index fd78dd560cac..bb0c32c94570 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionContext.java @@ -19,7 +19,7 @@ import io.ballerina.projects.plugins.codeaction.PositionedActionContext; /** - * Code action context. + * Completion context. * * @since 2201.7.0 */ diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle b/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle index fca3ea35a7bb..0e31d23b5a6f 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/build.gradle @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 Inc. (http://wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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. diff --git a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java index ebf56ecbc529..64aa02a0a08f 100644 --- a/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java +++ b/project-api/test-artifacts/compiler-plugin-with-completion-providers/src/main/java/io/ballerina/plugins/completions/ServiceBodyContextProvider.java @@ -1,4 +1,3 @@ -package io.ballerina.plugins.completions; /* * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) All Rights Reserved. * @@ -14,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package io.ballerina.plugins.completions; import io.ballerina.compiler.syntax.tree.FunctionDefinitionNode; import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; diff --git a/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java b/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java index b22526d15a57..1de5d25c681d 100644 --- a/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java +++ b/tests/language-server-integration-tests/src/test/java/org/ballerinalang/langserver/test/completion/CompilerPluginCompletionTests.java @@ -1,4 +1,3 @@ -package org.ballerinalang.langserver.test.completion; /* * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) All Rights Reserved. * @@ -14,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +package org.ballerinalang.langserver.test.completion; import org.ballerinalang.langserver.commons.workspace.WorkspaceDocumentException; import org.ballerinalang.langserver.completion.CompletionTest; From 282fd67405ca90c85d290950eeef996c8d8b8f10 Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 21 Jun 2023 11:36:36 +0530 Subject: [PATCH 050/122] Address review suggestions --- .../org/ballerinalang/docgen/Generator.java | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java index 1d93b3cb8708..c43c186cb62b 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java @@ -475,10 +475,8 @@ private static BType getUnionTypeModel(Node unionTypeDescriptor, String unionNam private static MapType getMapTypeModel(MapTypeDescriptorNode typeDescriptor, String typeName, Optional optionalMetadataNode, SemanticModel semanticModel, Module module) { - Type type = null; - if (!typeDescriptor.mapTypeParamsNode().isMissing()) { - type = Type.fromNode(typeDescriptor, semanticModel, module); - } + Type type = typeDescriptor.mapTypeParamsNode().isMissing() + ? null : Type.fromNode(typeDescriptor, semanticModel, module); return new MapType(typeName, getDocFromMetadata(optionalMetadataNode), isDeprecated(optionalMetadataNode), type); @@ -487,14 +485,10 @@ private static MapType getMapTypeModel(MapTypeDescriptorNode typeDescriptor, Str private static TableType getTableTypeModel(TableTypeDescriptorNode typeDescriptor, String typeName, Optional optionalMetadataNode, SemanticModel semanticModel, Module module) { - Type rowParameterType = null; - if (!typeDescriptor.rowTypeParameterNode().isMissing()) { - rowParameterType = Type.fromNode(typeDescriptor, semanticModel, module); - } - Type keyConstraintType = null; - if (!typeDescriptor.keyConstraintNode().isEmpty()) { - keyConstraintType = Type.fromNode(typeDescriptor.keyConstraintNode().get(), semanticModel, module); - } + Type rowParameterType = typeDescriptor.rowTypeParameterNode().isMissing() + ? null : Type.fromNode(typeDescriptor, semanticModel, module); + Type keyConstraintType = typeDescriptor.keyConstraintNode().isEmpty() + ? null : Type.fromNode(typeDescriptor.keyConstraintNode().get(), semanticModel, module); return new TableType(typeName, getDocFromMetadata(optionalMetadataNode), isDeprecated(optionalMetadataNode), rowParameterType, keyConstraintType); From 367ee17b28601a8bad69a52aab9bff9ffb24b073 Mon Sep 17 00:00:00 2001 From: Fathima Dilhasha Date: Wed, 21 Jun 2023 13:26:32 +0530 Subject: [PATCH 051/122] Use UTF-8 charset instead of default --- .../main/java/io/ballerina/projects/internal/ProjectFiles.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/internal/ProjectFiles.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/internal/ProjectFiles.java index 275134c60c72..a384a4b5c8e0 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/internal/ProjectFiles.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/internal/ProjectFiles.java @@ -28,6 +28,7 @@ import java.io.File; import java.io.IOException; import java.nio.charset.Charset; +import java.nio.charset.StandardCharsets; import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; @@ -276,7 +277,7 @@ public static DocumentData loadDocument(Path documentFilePath) { String content; try { - content = Files.readString(documentFilePath, Charset.defaultCharset()); + content = Files.readString(documentFilePath, StandardCharsets.UTF_8); } catch (IOException e) { throw new ProjectException(e); } From b7a9ba47d8182abb724bc1217e6671db49d33102 Mon Sep 17 00:00:00 2001 From: kavindu Date: Mon, 19 Jun 2023 20:48:03 +0530 Subject: [PATCH 052/122] Handle check-expr within group-by clause --- .../semantics/analyzer/CodeAnalyzer.java | 4 +-- .../test/query/GroupByClauseTest.java | 10 +++++++ .../group_by_clause_negative_semantic.bal | 30 +++++++++++++++++++ 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java index 02a55c584ded..f682743bac30 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java @@ -3335,12 +3335,12 @@ public void visit(BLangOrderByClause orderByClause, AnalyzerData data) { @Override public void visit(BLangGroupByClause node, AnalyzerData data) { - + node.groupingKeyList.forEach(value -> analyzeNode(value, data)); } @Override public void visit(BLangGroupingKey node, AnalyzerData data) { - + analyzeNode((BLangNode) node.getGroupingKey(), data); } @Override diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java index c728555c593a..cec932f1fe5a 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java @@ -35,12 +35,14 @@ public class GroupByClauseTest { private CompileResult resultWithListCtr; private CompileResult resultWithInvocation; private CompileResult negativeResult; + private CompileResult negativeSemanticResult; @BeforeClass public void setup() { resultWithListCtr = BCompileUtil.compile("test-src/query/group_by_clause_with_list_ctr.bal"); resultWithInvocation = BCompileUtil.compile("test-src/query/group_by_clause_with_invocation.bal"); negativeResult = BCompileUtil.compile("test-src/query/group_by_clause_negative.bal"); + negativeSemanticResult = BCompileUtil.compile("test-src/query/group_by_clause_negative_semantic.bal"); } @Test(dataProvider = "dataToTestGroupByClauseWithListCtr") @@ -303,4 +305,12 @@ public void testNegativeCases() { "'anydata'", 178, 26); Assert.assertEquals(negativeResult.getErrorCount(), i); } + + @Test + public void testNegativeSemanticCases() { + int i = 0; + BAssertUtil.validateError(negativeSemanticResult, i++, "invalid usage of the 'check' expression operator: " + + "no matching error return type(s) in the enclosing invokable", 24, 37); + Assert.assertEquals(negativeSemanticResult.getErrorCount(), i); + } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal new file mode 100644 index 000000000000..433f8a397370 --- /dev/null +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal @@ -0,0 +1,30 @@ +// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. +// +// WSO2 LLC. licenses this file to you 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. + +type Foo record { + int id; + string name; +}; + +function testErrorReturn(stream f) { + var _ = from int _ in [1, 2, 3] + group by var item = check bar() // error + select item; +} + +function bar() returns error? { + return error("error"); +} From 7054a7d180d4694906995a0ed1c0c619c2d5b124 Mon Sep 17 00:00:00 2001 From: kavindu Date: Tue, 20 Jun 2023 11:37:34 +0530 Subject: [PATCH 053/122] Fix issues in join clause with group by --- .../semantics/analyzer/QueryTypeChecker.java | 3 +++ .../test/query/GroupByClauseTest.java | 7 +++++- .../query/group_by_clause_negative.bal | 22 +++++++++++++++++++ .../group_by_clause_negative_semantic.bal | 2 +- .../query/group_by_clause_with_list_ctr.bal | 15 +++++++++++++ 5 files changed, 47 insertions(+), 2 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java index cc932443d772..2486554cf0b8 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/QueryTypeChecker.java @@ -687,6 +687,9 @@ public void visit(BLangJoinClause joinClause, TypeChecker.AnalyzerData data) { if (joinClause.onClause != null) { joinClause.onClause.accept(this, data); } + for (Name variable : joinEnv.scope.entries.keySet()) { + data.queryVariables.add(variable.value); + } commonAnalyzerData.breakToParallelQueryEnv = prevBreakEnv; } diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java index cec932f1fe5a..e6cb778128a3 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/query/GroupByClauseTest.java @@ -173,7 +173,8 @@ public Object[] dataToTestGroupByClauseWithListCtr() { "testGroupByExpressionAndSelectWithGroupingKeys13", "testGroupbyVarDefsAndSelectWithGroupingKeysFromClause1", "testGroupByVarDefsAndSelectWithGroupingKeysWithJoinClause1", - "testGroupByVarDefsAndSelectWithGroupingKeysWithJoinClause2" + "testGroupByVarDefsAndSelectWithGroupingKeysWithJoinClause2", + "testGroupByVarAndSelectWithNonGroupingKeysWithJoinClause1" }; } @@ -303,6 +304,10 @@ public void testNegativeCases() { "'anydata'", 175, 26); BAssertUtil.validateError(negativeResult, i++, "invalid grouping key type 'error', expected a subtype of " + "'anydata'", 178, 26); + BAssertUtil.validateError(negativeResult, i++, "incompatible types: expected 'string', found 'seq string'", + 200, 24); + BAssertUtil.validateError(negativeResult, i++, "sequence variable can be used in a single element " + + "list constructor or function invocation", 200, 24); Assert.assertEquals(negativeResult.getErrorCount(), i); } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative.bal index 53b0a7238f18..ab9a29a0059f 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative.bal @@ -178,3 +178,25 @@ function testInvalidGroupingKeys() { group by err // error select [name]; } + +type Foo record { + int id; + string[] name; + map a?; +}; + +type Bar record { + int id2; + string name2; +}; + +function testSeqVarInInvalidPositions5() { + Foo[] f = []; + Bar[] b = []; + var r = from var {id: id1, name: name1} in f + join var {id2, name2} in b + on id1 equals id2 + group by id1, id2 + let string _ = name2 // error + select count(name1); +} diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal index 433f8a397370..2e1cd25b843c 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_negative_semantic.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. +// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org). // // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_with_list_ctr.bal b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_with_list_ctr.bal index 0abfb0472f7e..7746f588cd7d 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_with_list_ctr.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/query/group_by_clause_with_list_ctr.bal @@ -920,6 +920,21 @@ function testGroupByVarDefsAndSelectWithGroupingKeysWithJoinClause5() { assertEquality([{id: 1, lname: "George", deptName: "HR"}, {id: 2, lname: "Fonseka", deptName: "Operations"}], res); } +type Foo record { + int id; + string name; +}; + +function testGroupByVarAndSelectWithNonGroupingKeysWithJoinClause1() { + Foo[] f = [{id: 1, name: "a"}, {id: 1, name: "b"}]; + var r = from var {id: id1, name: name1} in f + join var {id: id2, name: name2} in f + on id1 equals id2 + group by id1, id2 + select [name2]; + assertEquality([["a", "b", "a", "b"]], r); +} + function testGroupByVarDefsAndSelectWithGroupingKeysWithOrderbyClause1() { var personList = [{id: 1, fname: "Alex", lname: "George"}, {id: 3, fname: "Ranjan", lname: "Fonseka"}, From af1eedbd48687058ad60f8f52f6502425b9c312e Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 21 Jun 2023 16:44:03 +0530 Subject: [PATCH 054/122] Address review suggestions --- .../org/ballerinalang/docgen/Generator.java | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java index c43c186cb62b..3876f895532d 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/Generator.java @@ -175,10 +175,12 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul String typeName = typeDefinition.typeName().text(); Optional metaDataNode = typeDefinition.metadata(); - if (typeDefinition.typeDescriptor().kind().equals(SyntaxKind.RECORD_TYPE_DESC)) { + SyntaxKind syntaxKind = typeDefinition.typeDescriptor().kind(); + + if (syntaxKind.equals(SyntaxKind.RECORD_TYPE_DESC)) { module.records.add(getRecordTypeModel((RecordTypeDescriptorNode) typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.OBJECT_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.OBJECT_TYPE_DESC)) { ObjectTypeDescriptorNode objectTypeDescriptorNode = (ObjectTypeDescriptorNode) typeDefinition.typeDescriptor(); BObjectType bObj = getObjectTypeModel(objectTypeDescriptorNode, @@ -188,7 +190,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul } else { module.objectTypes.add(bObj); } - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.UNION_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.UNION_TYPE_DESC)) { Type unionType = Type.fromNode(typeDefinition.typeDescriptor(), semanticModel, module); if (unionType.memberTypes.stream().allMatch(type -> (type.category != null && type.category.equals("errors")) || @@ -200,8 +202,8 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul module.unionTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); } - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.SIMPLE_NAME_REFERENCE || - typeDefinition.typeDescriptor().kind() == SyntaxKind.QUALIFIED_NAME_REFERENCE) { + } else if (syntaxKind.equals(SyntaxKind.SIMPLE_NAME_REFERENCE) || + syntaxKind.equals(SyntaxKind.QUALIFIED_NAME_REFERENCE)) { Type refType = Type.fromNode(typeDefinition.typeDescriptor(), semanticModel, module); if (refType.category.equals("errors")) { module.errors.add(new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), @@ -210,7 +212,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul module.simpleNameReferenceTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); } - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DISTINCT_TYPE_DESC && + } else if (syntaxKind.equals(SyntaxKind.DISTINCT_TYPE_DESC) && ((DistinctTypeDescriptorNode) (typeDefinition.typeDescriptor())).typeDescriptor().kind() == SyntaxKind.ERROR_TYPE_DESC) { Type detailType = null; @@ -223,7 +225,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul Error err = new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), detailType); err.isDistinct = true; module.errors.add(err); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DISTINCT_TYPE_DESC && + } else if (syntaxKind.equals(SyntaxKind.DISTINCT_TYPE_DESC) && ((DistinctTypeDescriptorNode) (typeDefinition.typeDescriptor())).typeDescriptor().kind() == SyntaxKind.OBJECT_TYPE_DESC) { ObjectTypeDescriptorNode objectTypeDescriptorNode = (ObjectTypeDescriptorNode) @@ -237,7 +239,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul } else { module.objectTypes.add(bObj); } - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DISTINCT_TYPE_DESC && + } else if (syntaxKind.equals(SyntaxKind.DISTINCT_TYPE_DESC) && ((DistinctTypeDescriptorNode) (typeDefinition.typeDescriptor())).typeDescriptor().kind() == SyntaxKind.PARENTHESISED_TYPE_DESC) { ParenthesisedTypeDescriptorNode parenthesisedTypeDescriptorNode = (ParenthesisedTypeDescriptorNode) @@ -246,7 +248,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul Error err = new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), detailType); err.isDistinct = true; module.errors.add(err); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DISTINCT_TYPE_DESC && + } else if (syntaxKind.equals(SyntaxKind.DISTINCT_TYPE_DESC) && ((DistinctTypeDescriptorNode) (typeDefinition.typeDescriptor())).typeDescriptor().kind() == SyntaxKind.SIMPLE_NAME_REFERENCE) { Type refType = Type.fromNode(((DistinctTypeDescriptorNode) (typeDefinition.typeDescriptor())) @@ -263,7 +265,7 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul bType.isAnonymousUnionType = true; module.types.add(bType); } - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.ERROR_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.ERROR_TYPE_DESC)) { ParameterizedTypeDescriptorNode parameterizedTypeDescNode = (ParameterizedTypeDescriptorNode) typeDefinition.typeDescriptor(); Type type = null; @@ -272,46 +274,46 @@ public static boolean addTypeDefinition(TypeDefinitionNode typeDefinition, Modul semanticModel, module); } module.errors.add(new Error(typeName, getDocFromMetadata(metaDataNode), isDeprecated(metaDataNode), type)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.TUPLE_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.TUPLE_TYPE_DESC)) { module.tupleTypes.add(getTupleTypeModel((TupleTypeDescriptorNode) typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.TABLE_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.TABLE_TYPE_DESC)) { module.tableTypes.add(getTableTypeModel((TableTypeDescriptorNode) typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.MAP_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.MAP_TYPE_DESC)) { module.mapTypes.add(getMapTypeModel((MapTypeDescriptorNode) typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.INTERSECTION_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.INTERSECTION_TYPE_DESC)) { addIntersectionTypeModel((IntersectionTypeDescriptorNode) typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.TYPEDESC_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.TYPEDESC_TYPE_DESC)) { module.typeDescriptorTypes.add(getTypeDescModel((ParameterizedTypeDescriptorNode) typeDefinition. typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.INT_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.INT_TYPE_DESC)) { module.integerTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.DECIMAL_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.DECIMAL_TYPE_DESC)) { module.decimalTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.XML_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.XML_TYPE_DESC)) { module.xmlTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.FUNCTION_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.FUNCTION_TYPE_DESC)) { module.functionTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.ANYDATA_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.ANYDATA_TYPE_DESC)) { module.anyDataTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.STRING_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.STRING_TYPE_DESC)) { module.stringTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.ANY_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.ANY_TYPE_DESC)) { module.anyTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.ARRAY_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.ARRAY_TYPE_DESC)) { module.arrayTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); - } else if (typeDefinition.typeDescriptor().kind() == SyntaxKind.STREAM_TYPE_DESC) { + } else if (syntaxKind.equals(SyntaxKind.STREAM_TYPE_DESC)) { module.streamTypes.add(getUnionTypeModel(typeDefinition.typeDescriptor(), typeName, metaDataNode, semanticModel, module)); } else { From 3372fdf1accc10bc97db89533cf7590f8a6d68b3 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 21 Jun 2023 12:39:22 +0530 Subject: [PATCH 055/122] Remove unused rename popup command --- .../capability/InitializationOptions.java | 12 ----- .../langserver/LSClientCapabilitiesImpl.java | 14 ------ .../createvar/CreateVariableCodeAction.java | 49 ++----------------- .../ErrorHandleInsideCodeAction.java | 3 +- .../ErrorHandleOutsideCodeAction.java | 5 +- .../common/constants/CommandConstants.java | 2 - 6 files changed, 6 insertions(+), 79 deletions(-) diff --git a/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java b/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java index c3da9437be9b..1603024a2253 100644 --- a/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java +++ b/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java @@ -32,11 +32,6 @@ public interface InitializationOptions { */ String KEY_ENABLE_SEMANTIC_TOKENS = "enableSemanticHighlighting"; - /** - * Whether the client supports rename popup. - */ - String KEY_RENAME_SUPPORT = "supportRenamePopup"; - /** * Whether the client supports {@link org.eclipse.lsp4j.Position} based rename popup. */ @@ -66,13 +61,6 @@ public interface InitializationOptions { */ boolean isEnableSemanticTokens(); - /** - * Returns if the client supports rename popup. - * - * @return True if supported, false otherwise - */ - boolean isRefactorRenameSupported(); - /** * Returns if the client supports {@link org.eclipse.lsp4j.Position} based rename. * @return True if supported, false otherwise diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java index 3516e737ff04..0dcb6f2a86c7 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java @@ -142,11 +142,6 @@ private InitializationOptions parseInitializationOptions(Map ini Boolean.parseBoolean(String.valueOf(semanticTokensSupport)); initializationOptions.setEnableSemanticTokens(enableSemanticTokens); - Object renameSupport = initOptions.get(InitializationOptions.KEY_RENAME_SUPPORT); - boolean enableRenameSupport = renameSupport != null && - Boolean.parseBoolean(String.valueOf(renameSupport)); - initializationOptions.setSupportRenamePopup(enableRenameSupport); - Object quickPickSupport = initOptions.get(InitializationOptions.KEY_QUICKPICK_SUPPORT); boolean enableQuickPickSupport = quickPickSupport != null && Boolean.parseBoolean(String.valueOf(quickPickSupport)); @@ -232,11 +227,6 @@ public void setEnableSemanticTokens(boolean enableSemanticTokens) { this.enableSemanticTokens = enableSemanticTokens; } - @Override - public boolean isRefactorRenameSupported() { - return supportRenamePopup; - } - @Override public boolean isPositionalRefactorRenameSupported() { return supportPositionalRenamePopup; @@ -246,10 +236,6 @@ public void setSupportPositionalRenamePopup(boolean supportPositionalRenamePopup this.supportPositionalRenamePopup = supportPositionalRenamePopup; } - public void setSupportRenamePopup(boolean supportRenamePopup) { - this.supportRenamePopup = supportRenamePopup; - } - @Override public boolean isQuickPickSupported() { return supportQuickPick; diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/CreateVariableCodeAction.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/CreateVariableCodeAction.java index 9fad09bab99a..e165aea7d668 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/CreateVariableCodeAction.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/CreateVariableCodeAction.java @@ -21,14 +21,12 @@ import io.ballerina.compiler.api.symbols.TypeSymbol; import io.ballerina.compiler.api.symbols.UnionTypeSymbol; import io.ballerina.compiler.api.symbols.WorkerSymbol; -import io.ballerina.compiler.syntax.tree.SyntaxTree; import io.ballerina.tools.diagnostics.Diagnostic; import org.ballerinalang.annotation.JavaSPIService; import org.ballerinalang.langserver.codeaction.CodeActionNodeValidator; import org.ballerinalang.langserver.codeaction.CodeActionUtil; import org.ballerinalang.langserver.common.ImportsAcceptor; import org.ballerinalang.langserver.common.constants.CommandConstants; -import org.ballerinalang.langserver.common.utils.CommonUtil; import org.ballerinalang.langserver.common.utils.NameUtil; import org.ballerinalang.langserver.common.utils.PositionUtil; import org.ballerinalang.langserver.commons.CodeActionContext; @@ -58,7 +56,6 @@ public class CreateVariableCodeAction implements DiagnosticBasedCodeActionProvider { public static final String NAME = "Create Variable"; - private static final String RENAME_COMMAND = "Rename Variable"; /** * {@inheritDoc} @@ -110,8 +107,8 @@ public List getCodeActions(Diagnostic diagnostic, } CodeAction codeAction = CodeActionUtil.createCodeAction(commandTitle, edits, uri, CodeActionKind.QuickFix); - addRenamePopup(context, edits, variableEdit, codeAction, createVarTextEdits.renamePositions.get(i), - createVarTextEdits.varRenamePosition.get(i), createVarTextEdits.imports.size()); + addRenamePopup(context, codeAction, createVarTextEdits.varRenamePosition.get(i), + createVarTextEdits.imports.size()); actions.add(codeAction); } return actions; @@ -215,8 +212,7 @@ public CreateVariableOut(String name, List types, List edits, } } - public void addRenamePopup(CodeActionContext context, List textEdits, TextEdit variableEdit, - CodeAction codeAction, int renameOffset, + public void addRenamePopup(CodeActionContext context, CodeAction codeAction, Position varRenamePosition, int newImportsCount) { LSClientCapabilities lsClientCapabilities = context.languageServercontext().get(LSClientCapabilities.class); if (lsClientCapabilities.getInitializationOptions().isPositionalRefactorRenameSupported()) { @@ -225,45 +221,6 @@ public void addRenamePopup(CodeActionContext context, List textEdits, List.of(context.fileUri(), new Position(varRenamePosition.getLine() + newImportsCount, varRenamePosition.getCharacter())))); - return; } - - Optional syntaxTree = context.currentSyntaxTree(); - if (!lsClientCapabilities.getInitializationOptions().isRefactorRenameSupported() || syntaxTree.isEmpty()) { - return; - } - /* - Ex: class Test { - function testFunc() returns error? { - int testResult = check test(); - } - } - 1. startPos gives the start position of the variable type "int". - 2. If any text edits are applied before the variable creation edit, the length of those edits is added to the - "sum". In the above example, the length of "error?" will be added. - 3. renameOffset gives the length of the variable type and the white space between the variable type and the - variable. In the example, the renameOffset will be the length of "int ". - */ - - int startPos = CommonUtil.getTextEdit(syntaxTree.get(), variableEdit).range().startOffset(); - int sum = 0; - for (TextEdit textEdit : textEdits) { - io.ballerina.tools.text.TextEdit edits = CommonUtil.getTextEdit(syntaxTree.get(), textEdit); - int startOffset = edits.range().startOffset(); - int endOffset = edits.range().endOffset(); - if (startOffset < startPos) { - sum = sum + edits.text().length(); - if (startOffset < endOffset) { - int returnTypeLength = endOffset - startOffset; - sum = sum - returnTypeLength; - } - } - } - - startPos = startPos + sum + renameOffset; - - codeAction.setCommand( - new Command(CommandConstants.RENAME_COMMAND_TITLE_FOR_VARIABLE, CommandConstants.RENAME_COMMAND, - List.of(context.fileUri(), startPos))); } } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleInsideCodeAction.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleInsideCodeAction.java index e0a64377cd91..debd9a8fba0d 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleInsideCodeAction.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleInsideCodeAction.java @@ -92,8 +92,7 @@ public List getCodeActions(Diagnostic diagnostic, createVarTextEdits.imports.stream().filter(edit -> !edits.contains(edit)).forEach(edits::add); CodeAction codeAction = CodeActionUtil.createCodeAction(commandTitle, edits, uri, CodeActionKind.QuickFix); - addRenamePopup(context, edits, createVarTextEdits.edits.get(0), codeAction, - createVarTextEdits.renamePositions.get(0), createVarTextEdits.varRenamePosition.get(0), + addRenamePopup(context, codeAction, createVarTextEdits.varRenamePosition.get(0), createVarTextEdits.imports.size()); return Collections.singletonList(codeAction); } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleOutsideCodeAction.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleOutsideCodeAction.java index 49c79f1a672c..3e1fc03c3545 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleOutsideCodeAction.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/codeaction/providers/createvar/ErrorHandleOutsideCodeAction.java @@ -102,11 +102,10 @@ public List getCodeActions(Diagnostic diagnostic, positionDetails.matchedNode(), context)); edits.addAll(importsAcceptor.getNewImportTextEdits()); - int renamePosition = modifiedTextEdits.renamePositions.get(0); CodeAction codeAction = CodeActionUtil.createCodeAction(CommandConstants.CREATE_VAR_ADD_CHECK_TITLE, edits, uri, CodeActionKind.QuickFix); - addRenamePopup(context, edits, modifiedTextEdits.edits.get(0), codeAction, renamePosition, - modifiedTextEdits.varRenamePosition.get(0), modifiedTextEdits.imports.size()); + addRenamePopup(context, codeAction, modifiedTextEdits.varRenamePosition.get(0), + modifiedTextEdits.imports.size()); return Collections.singletonList(codeAction); } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/constants/CommandConstants.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/constants/CommandConstants.java index 1a068aa5d73a..a5854e2b18d5 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/constants/CommandConstants.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/constants/CommandConstants.java @@ -187,8 +187,6 @@ public class CommandConstants { public static final String CHANGE_TO_SUBTYPE_OF_RAW_TEMPLATE_TITLE = "Convert to '%s' template"; - public static final String RENAME_COMMAND = "ballerina.action.rename"; - public static final String POSITIONAL_RENAME_COMMAND = "ballerina.action.positional.rename"; public static final String EXTRACT_COMMAND = "ballerina.action.extract"; From f765b5bde823b454a9e4bc33e2d09403298ebadf Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 22 Jun 2023 14:42:46 +0530 Subject: [PATCH 056/122] Refactor AbstractCodeActionTest class --- .../langserver/LSClientCapabilitiesImpl.java | 1 - .../codeaction/AbstractCodeActionTest.java | 40 +++---------------- 2 files changed, 6 insertions(+), 35 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java index 0dcb6f2a86c7..428ac88e003e 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java @@ -205,7 +205,6 @@ public static class InitializationOptionsImpl implements InitializationOptions { private boolean supportBalaScheme = false; private boolean enableSemanticTokens = false; - private boolean supportRenamePopup = false; private boolean supportQuickPick = false; private boolean enableLSLightWeightMode = false; private boolean supportPositionalRenamePopup = false; diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/AbstractCodeActionTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/AbstractCodeActionTest.java index 4b601c769d9a..ec7cc806984f 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/AbstractCodeActionTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/AbstractCodeActionTest.java @@ -404,40 +404,6 @@ protected boolean validateAndModifyArguments(JsonObject actualCommand, List actualEdits, TestConfig testConfig) { //Validate the args of rename command - if (CommandConstants.RENAME_COMMAND.equals(actualCommand.get("command").getAsString())) { - if (actualArgs.size() == 2) { - Optional actualFilePath = - PathUtil.getPathFromURI(actualArgs.get(0).getAsString()) - .map(path -> path.toUri().toString().replace(sourceRoot.toUri().toString(), "")); - int actualRenamePosition = actualArgs.get(1).getAsInt(); - String expectedFilePath = expArgs.get(0).getAsString(); - int expectedRenamePosition = expArgs.get(1).getAsInt(); - if (actualFilePath.isPresent()) { - String actualPath = actualFilePath.get(); - if (actualFilePath.get().startsWith("/") || actualFilePath.get().startsWith("\\")) { - actualPath = actualFilePath.get().substring(1); - } - if (sourceRoot.resolve(actualPath).equals(sourceRoot.resolve(expectedFilePath)) && - actualRenamePosition == expectedRenamePosition) { - return true; - } - JsonArray newArgs = new JsonArray(); - newArgs.add(actualArgs.get(0).getAsString()); - newArgs.add(actualRenamePosition); - - //Replace the args of the actual command to update the test config - actualCommand.add("arguments", newArgs); - } - } - return false; - } else if ("ballerina.action.extract".equals(actualCommand.get("command").getAsString())) { - if (actualArgs.size() == 3 && validateExtractCmd(actualCommand, actualArgs, expArgs, sourceRoot)) { - return true; - } - return actualArgs.size() == 4 && validateExtractCmd(actualCommand, actualArgs, expArgs, sourceRoot) - && actualArgs.get(3).getAsJsonObject().equals(expArgs.get(3).getAsJsonObject()); - } - if (CommandConstants.POSITIONAL_RENAME_COMMAND.equals(actualCommand.get("command").getAsString())) { if (actualArgs.size() == 2) { Optional actualFilePath = @@ -465,6 +431,12 @@ protected boolean validateAndModifyArguments(JsonObject actualCommand, } } return false; + } else if ("ballerina.action.extract".equals(actualCommand.get("command").getAsString())) { + if (actualArgs.size() == 3 && validateExtractCmd(actualCommand, actualArgs, expArgs, sourceRoot)) { + return true; + } + return actualArgs.size() == 4 && validateExtractCmd(actualCommand, actualArgs, expArgs, sourceRoot) + && actualArgs.get(3).getAsJsonObject().equals(expArgs.get(3).getAsJsonObject()); } for (JsonElement actualArg : actualArgs) { From 11b1e378efc58e9de07100bbc1e329234ec452fe Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 22 Jun 2023 14:43:40 +0530 Subject: [PATCH 057/122] Remove unused CreateVariableTest class and config files --- .../codeaction/CreateVariableTest.java | 212 ------------------ .../config/createVarInSendAction1.json | 78 ------- ...createVariableForOptionalFieldAccess1.json | 37 --- ...createVariableForOptionalFieldAccess2.json | 37 --- .../config/createVariableInClassMethod.json | 132 ----------- .../config/createVariableInServiceMethod.json | 132 ----------- .../createVariableInServiceRemoteMethod.json | 132 ----------- .../config/createVariableNegative1.json | 12 - .../config/createVariableNegative2.json | 12 - .../config/createVariableNegative3.json | 12 - .../config/createVariableNegative4.json | 12 - .../config/createVariableNegative5.json | 13 -- .../config/createVariableNegative6.json | 13 -- .../config/createVariableNegative7.json | 13 -- .../config/createVariableWithCheck1.json | 64 ------ .../config/createVariableWithCheck2.json | 64 ------ .../config/createVariableWithCheck3.json | 51 ----- .../config/createVariableWithCheck4.json | 51 ----- .../config/createVariableWithCheck5.json | 64 ------ .../config/createVariableWithCheck6.json | 64 ------ .../config/createVariableWithCheck7.json | 64 ------ .../createVariableWithFunctionCall1.json | 65 ------ .../createVariableWithFunctionCall2.json | 93 -------- .../createVariableWithFunctionType1.json | 37 --- .../createVariableWithFunctionType2.json | 37 --- .../createVariableWithIntersectionType.json | 37 --- .../createVariableWithIntersectionType2.json | 37 --- ...ateVariableWithRemoteMethodInvocation.json | 132 ----------- .../config/createVariableWithTuple1.json | 132 ----------- .../config/createVariableWithTypeDesc.json | 37 --- .../config/createVariableWithUnionType.json | 37 --- .../config/ignoreReturnValueCodeAction.json | 28 --- ...VariableAssignmentRequiredCodeAction1.json | 70 ------ ...VariableAssignmentRequiredCodeAction2.json | 171 -------------- ...VariableAssignmentRequiredCodeAction3.json | 57 ----- ...variableAssignmentRequiredCodeAction1.json | 37 --- ...ariableAssignmentRequiredCodeAction10.json | 37 --- ...ariableAssignmentRequiredCodeAction11.json | 37 --- ...ariableAssignmentRequiredCodeAction12.json | 37 --- ...ariableAssignmentRequiredCodeAction13.json | 37 --- ...ariableAssignmentRequiredCodeAction14.json | 37 --- ...ariableAssignmentRequiredCodeAction15.json | 37 --- ...ariableAssignmentRequiredCodeAction16.json | 37 --- ...ariableAssignmentRequiredCodeAction17.json | 37 --- ...ariableAssignmentRequiredCodeAction18.json | 37 --- ...ariableAssignmentRequiredCodeAction19.json | 37 --- ...variableAssignmentRequiredCodeAction2.json | 37 --- ...ariableAssignmentRequiredCodeAction20.json | 37 --- ...ariableAssignmentRequiredCodeAction21.json | 37 --- ...ariableAssignmentRequiredCodeAction22.json | 37 --- ...ariableAssignmentRequiredCodeAction23.json | 37 --- ...ariableAssignmentRequiredCodeAction24.json | 37 --- ...ariableAssignmentRequiredCodeAction25.json | 37 --- ...ariableAssignmentRequiredCodeAction26.json | 37 --- ...ariableAssignmentRequiredCodeAction27.json | 37 --- ...ariableAssignmentRequiredCodeAction28.json | 37 --- ...ariableAssignmentRequiredCodeAction29.json | 37 --- ...variableAssignmentRequiredCodeAction3.json | 37 --- ...ariableAssignmentRequiredCodeAction30.json | 37 --- ...ariableAssignmentRequiredCodeAction31.json | 37 --- ...ariableAssignmentRequiredCodeAction32.json | 37 --- ...ariableAssignmentRequiredCodeAction33.json | 37 --- ...ariableAssignmentRequiredCodeAction34.json | 37 --- ...ariableAssignmentRequiredCodeAction35.json | 37 --- ...ariableAssignmentRequiredCodeAction36.json | 37 --- ...ariableAssignmentRequiredCodeAction37.json | 37 --- ...ariableAssignmentRequiredCodeAction38.json | 37 --- ...ariableAssignmentRequiredCodeAction39.json | 37 --- ...variableAssignmentRequiredCodeAction4.json | 37 --- ...ariableAssignmentRequiredCodeAction40.json | 37 --- ...ariableAssignmentRequiredCodeAction41.json | 37 --- ...ariableAssignmentRequiredCodeAction42.json | 37 --- ...ariableAssignmentRequiredCodeAction43.json | 37 --- ...ariableAssignmentRequiredCodeAction44.json | 37 --- ...ariableAssignmentRequiredCodeAction45.json | 37 --- ...ariableAssignmentRequiredCodeAction46.json | 38 ---- ...variableAssignmentRequiredCodeAction5.json | 37 --- ...variableAssignmentRequiredCodeAction6.json | 37 --- ...variableAssignmentRequiredCodeAction7.json | 37 --- ...variableAssignmentRequiredCodeAction8.json | 37 --- ...variableAssignmentRequiredCodeAction9.json | 37 --- 81 files changed, 3942 deletions(-) delete mode 100644 language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CreateVariableTest.java delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVarInSendAction1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInClassMethod.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceMethod.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceRemoteMethod.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative3.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative4.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative5.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative6.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative7.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck3.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck4.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck5.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck6.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck7.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithRemoteMethodInvocation.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTuple1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTypeDesc.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithUnionType.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/ignoreReturnValueCodeAction.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction3.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction1.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction10.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction11.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction12.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction13.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction14.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction15.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction16.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction17.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction18.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction19.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction2.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction20.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction21.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction22.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction23.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction24.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction25.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction26.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction27.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction28.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction29.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction3.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction30.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction31.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction32.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction33.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction34.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction35.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction36.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction37.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction38.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction39.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction4.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction40.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction41.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction42.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction43.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction44.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction45.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction46.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction5.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction6.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction7.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction8.json delete mode 100644 language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction9.json diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CreateVariableTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CreateVariableTest.java deleted file mode 100644 index d7181b0d2bb5..000000000000 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CreateVariableTest.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you 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.langserver.codeaction; - -import com.google.gson.JsonArray; -import com.google.gson.JsonObject; -import org.ballerinalang.langserver.common.constants.CommandConstants; -import org.ballerinalang.langserver.common.utils.PathUtil; -import org.ballerinalang.langserver.commons.capability.InitializationOptions; -import org.ballerinalang.langserver.commons.workspace.WorkspaceDocumentException; -import org.ballerinalang.langserver.util.TestUtil; -import org.eclipse.lsp4j.TextEdit; -import org.testng.annotations.DataProvider; -import org.testng.annotations.Test; - -import java.io.IOException; -import java.nio.file.Path; -import java.util.List; -import java.util.Optional; - -/** - * Test Cases for CodeActions. - * - * @since 2.0.0 - */ -public class CreateVariableTest extends AbstractCodeActionTest { - - @Override - protected void setupLanguageServer(TestUtil.LanguageServerBuilder builder) { - builder.withInitOption(InitializationOptions.KEY_RENAME_SUPPORT, true); - } - - @Override - public String getResourceDir() { - return "create-variable"; - } - - @Override - @Test(dataProvider = "codeaction-data-provider") - public void test(String config) throws IOException, WorkspaceDocumentException { - super.test(config); - } - - @Override - @Test(dataProvider = "negative-test-data-provider") - public void negativeTest(String config) throws IOException, WorkspaceDocumentException { - super.negativeTest(config); - } - - @Override - protected boolean validateAndModifyArguments(JsonObject actualCommand, - JsonArray actualArgs, - JsonArray expArgs, - Path sourceRoot, - Path sourcePath, - List actualEdits, - TestConfig testConfig) { - if (CommandConstants.RENAME_COMMAND.equals(actualCommand.get("command").getAsString())) { - if (actualArgs.size() == 2) { - Optional actualFilePath = - PathUtil.getPathFromURI(actualArgs.get(0).getAsString()) - .map(path -> path.toUri().toString().replace(sourceRoot.toUri().toString(), "")); - int actualRenamePosition = actualArgs.get(1).getAsInt(); - String expectedFilePath = expArgs.get(0).getAsString(); - int expectedRenamePosition = expArgs.get(1).getAsInt(); - if (actualFilePath.isPresent()) { - String actualPath = actualFilePath.get(); - if (actualFilePath.get().startsWith("/") || actualFilePath.get().startsWith("\\")) { - actualPath = actualFilePath.get().substring(1); - } - if (sourceRoot.resolve(actualPath).equals(sourceRoot.resolve(expectedFilePath))) { - if (System.lineSeparator().equals("\r\n")) { - int newImportCount = (int) actualEdits.stream() - .filter(edit -> edit.getNewText().startsWith("import ")).count(); - int noOfNewLinesBeforeCursorPos = testConfig.position.getLine() + newImportCount; - if (actualRenamePosition == expectedRenamePosition + noOfNewLinesBeforeCursorPos) { - return true; - } - } else if (actualRenamePosition == expectedRenamePosition) { - return true; - } - } - - JsonArray newArgs = new JsonArray(); - newArgs.add(actualPath); - newArgs.add(actualRenamePosition); - - //Replace the args of the actual command to update the test config - actualCommand.add("arguments", newArgs); - } - } - } - return false; - } - - @DataProvider(name = "codeaction-data-provider") - @Override - public Object[][] dataProvider() { - return new Object[][]{ - {"variableAssignmentRequiredCodeAction1.json"}, - {"variableAssignmentRequiredCodeAction2.json"}, - {"variableAssignmentRequiredCodeAction3.json"}, - {"variableAssignmentRequiredCodeAction4.json"}, - {"variableAssignmentRequiredCodeAction5.json"}, - {"variableAssignmentRequiredCodeAction6.json"}, - {"variableAssignmentRequiredCodeAction7.json"}, - {"variableAssignmentRequiredCodeAction8.json"}, - {"variableAssignmentRequiredCodeAction9.json"}, - {"variableAssignmentRequiredCodeAction10.json"}, - {"variableAssignmentRequiredCodeAction11.json"}, - {"variableAssignmentRequiredCodeAction12.json"}, - {"variableAssignmentRequiredCodeAction13.json"}, - {"variableAssignmentRequiredCodeAction14.json"}, - {"variableAssignmentRequiredCodeAction15.json"}, - {"variableAssignmentRequiredCodeAction16.json"}, - {"variableAssignmentRequiredCodeAction17.json"}, - {"variableAssignmentRequiredCodeAction18.json"}, - {"variableAssignmentRequiredCodeAction19.json"}, - {"variableAssignmentRequiredCodeAction20.json"}, - {"variableAssignmentRequiredCodeAction21.json"}, - {"variableAssignmentRequiredCodeAction22.json"}, - {"variableAssignmentRequiredCodeAction23.json"}, - {"variableAssignmentRequiredCodeAction24.json"}, - {"variableAssignmentRequiredCodeAction25.json"}, - {"variableAssignmentRequiredCodeAction26.json"}, - {"variableAssignmentRequiredCodeAction27.json"}, - {"variableAssignmentRequiredCodeAction28.json"}, - {"variableAssignmentRequiredCodeAction29.json"}, - {"variableAssignmentRequiredCodeAction30.json"}, - {"variableAssignmentRequiredCodeAction31.json"}, - {"variableAssignmentRequiredCodeAction32.json"}, - {"variableAssignmentRequiredCodeAction33.json"}, - {"variableAssignmentRequiredCodeAction34.json"}, - {"variableAssignmentRequiredCodeAction35.json"}, - {"variableAssignmentRequiredCodeAction36.json"}, - {"variableAssignmentRequiredCodeAction37.json"}, - {"variableAssignmentRequiredCodeAction38.json"}, - {"variableAssignmentRequiredCodeAction39.json"}, - {"variableAssignmentRequiredCodeAction40.json"}, - {"variableAssignmentRequiredCodeAction41.json"}, - {"variableAssignmentRequiredCodeAction42.json"}, - {"variableAssignmentRequiredCodeAction43.json"}, - {"variableAssignmentRequiredCodeAction44.json"}, - {"variableAssignmentRequiredCodeAction45.json"}, - {"variableAssignmentRequiredCodeAction46.json"}, - {"ignoreReturnValueCodeAction.json"}, - {"projectVariableAssignmentRequiredCodeAction1.json"}, - {"projectVariableAssignmentRequiredCodeAction2.json"}, - {"projectVariableAssignmentRequiredCodeAction3.json"}, - {"createVariableInClassMethod.json"}, - {"createVariableInServiceMethod.json"}, - {"createVariableInServiceRemoteMethod.json"}, - {"createVariableWithUnionType.json"}, - {"createVariableWithIntersectionType.json"}, - {"createVariableWithIntersectionType2.json"}, - {"createVariableForOptionalFieldAccess1.json"}, - {"createVariableForOptionalFieldAccess2.json"}, - {"createVariableWithTypeDesc.json"}, - - // Tuple related - {"createVariableWithTuple1.json"}, - - // Create variables of function/invocable type - {"createVariableWithFunctionType1.json"}, - {"createVariableWithFunctionType2.json"}, - - {"createVariableWithFunctionCall1.json"}, - {"createVariableWithFunctionCall2.json"}, - {"createVariableWithRemoteMethodInvocation.json"}, - - // Async send action - {"createVarInSendAction1.json"}, - - // Create variable with check - {"createVariableWithCheck1.json"}, - {"createVariableWithCheck2.json"}, - {"createVariableWithCheck3.json"}, - {"createVariableWithCheck4.json"}, - {"createVariableWithCheck5.json"}, - {"createVariableWithCheck6.json"}, - {"createVariableWithCheck7.json"} - }; - } - - @DataProvider(name = "negative-test-data-provider") - public Object[][] negativeDataProvider() { - return new Object[][]{ - {"createVariableNegative1.json"}, - {"createVariableNegative2.json"}, - {"createVariableNegative3.json"}, - {"createVariableNegative4.json"}, - {"createVariableNegative5.json"}, - {"createVariableNegative6.json"}, - {"createVariableNegative7.json"} - }; - } -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVarInSendAction1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVarInSendAction1.json deleted file mode 100644 index aa906dac015e..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVarInSendAction1.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "position": { - "line": 9, - "character": 11 - }, - "source": "createVarInSendAction1.bal", - "expected": [ - { - "title": "Create variable and type guard", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 8 - }, - "end": { - "line": 9, - "character": 8 - } - }, - "newText": "error? unionResult = " - }, - { - "range": { - "start": { - "line": 9, - "character": 15 - }, - "end": { - "line": 9, - "character": 15 - } - }, - "newText": "\n if unionResult is error {\n\n }" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVarInSendAction1.bal", - 128 - ] - }, - "resolvable": false - }, - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 8 - }, - "end": { - "line": 9, - "character": 8 - } - }, - "newText": "error? unionResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVarInSendAction1.bal", - 128 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess1.json deleted file mode 100644 index 080b788fe5af..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess1.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 6, - "character": 4 - }, - "source": "createVariableForOptionalFieldAccess1.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 6, - "character": 4 - }, - "end": { - "line": 6, - "character": 4 - } - }, - "newText": "int? unionResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableForOptionalFieldAccess1.bal", - 81 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess2.json deleted file mode 100644 index c06085737374..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableForOptionalFieldAccess2.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 8, - "character": 4 - }, - "source": "createVariableForOptionalFieldAccess2.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 8, - "character": 4 - }, - "end": { - "line": 8, - "character": 4 - } - }, - "newText": "T t = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableForOptionalFieldAccess2.bal", - 89 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInClassMethod.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInClassMethod.json deleted file mode 100644 index dbbf1a6d18b3..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInClassMethod.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "position": { - "line": 7, - "character": 8 - }, - "source": "createVariableInClassMethod.bal", - "expected": [ - { - "title": "Create variable and type guard", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 8 - }, - "end": { - "line": 7, - "character": 8 - } - }, - "newText": "int|error intWithError = " - }, - { - "range": { - "start": { - "line": 7, - "character": 28 - }, - "end": { - "line": 7, - "character": 28 - } - }, - "newText": "\n if intWithError is int {\n\n }" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInClassMethod.bal", - 133 - ] - }, - "resolvable": false - }, - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 8 - }, - "end": { - "line": 7, - "character": 8 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 7, - "character": 8 - }, - "end": { - "line": 7, - "character": 8 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 6, - "character": 27 - }, - "end": { - "line": 6, - "character": 27 - } - }, - "newText": " returns error?" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInClassMethod.bal", - 142 - ] - }, - "resolvable": false - }, - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 8 - }, - "end": { - "line": 7, - "character": 8 - } - }, - "newText": "int|error intWithError = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInClassMethod.bal", - 133 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceMethod.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceMethod.json deleted file mode 100644 index 8b549ac578aa..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceMethod.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "position": { - "line": 10, - "character": 8 - }, - "source": "createVariableInServiceMethod.bal", - "expected": [ - { - "title": "Create variable and type guard", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 10, - "character": 8 - }, - "end": { - "line": 10, - "character": 8 - } - }, - "newText": "int|error intWithError = " - }, - { - "range": { - "start": { - "line": 10, - "character": 28 - }, - "end": { - "line": 10, - "character": 28 - } - }, - "newText": "\n if intWithError is int {\n\n }" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInServiceMethod.bal", - 240 - ] - }, - "resolvable": false - }, - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 10, - "character": 8 - }, - "end": { - "line": 10, - "character": 8 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 10, - "character": 8 - }, - "end": { - "line": 10, - "character": 8 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 9, - "character": 39 - }, - "end": { - "line": 9, - "character": 39 - } - }, - "newText": " returns error?" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInServiceMethod.bal", - 249 - ] - }, - "resolvable": false - }, - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 10, - "character": 8 - }, - "end": { - "line": 10, - "character": 8 - } - }, - "newText": "int|error intWithError = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInServiceMethod.bal", - 240 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceRemoteMethod.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceRemoteMethod.json deleted file mode 100644 index 17452029d5a7..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableInServiceRemoteMethod.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "position": { - "line": 14, - "character": 8 - }, - "source": "createVariableInServiceMethod.bal", - "expected": [ - { - "title": "Create variable and type guard", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 14, - "character": 8 - }, - "end": { - "line": 14, - "character": 8 - } - }, - "newText": "int|error intWithError = " - }, - { - "range": { - "start": { - "line": 14, - "character": 28 - }, - "end": { - "line": 14, - "character": 28 - } - }, - "newText": "\n if intWithError is int {\n\n }" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInServiceMethod.bal", - 325 - ] - }, - "resolvable": false - }, - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 14, - "character": 8 - }, - "end": { - "line": 14, - "character": 8 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 14, - "character": 8 - }, - "end": { - "line": 14, - "character": 8 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 13, - "character": 42 - }, - "end": { - "line": 13, - "character": 42 - } - }, - "newText": " returns error?" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInServiceMethod.bal", - 334 - ] - }, - "resolvable": false - }, - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 14, - "character": 8 - }, - "end": { - "line": 14, - "character": 8 - } - }, - "newText": "int|error intWithError = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableInServiceMethod.bal", - 325 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative1.json deleted file mode 100644 index 66b4631d29b2..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative1.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "position": { - "line": 2, - "character":16 - }, - "source": "createVariableNegative1.bal", - "expected": [ - { - "title": "Create variable" - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative2.json deleted file mode 100644 index 9cbb2c9d0809..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative2.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "position": { - "line": 3, - "character": 27 - }, - "source": "createVariableNegative2.bal", - "expected": [ - { - "title": "Create variable" - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative3.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative3.json deleted file mode 100644 index 453898d02b0f..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative3.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "position": { - "line": 3, - "character": 16 - }, - "source": "createVariableNegative2.bal", - "expected": [ - { - "title": "Create variable" - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative4.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative4.json deleted file mode 100644 index f1b4564b0011..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative4.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "position": { - "line": 25, - "character": 4 - }, - "source": "createVariableWithCheck.bal", - "expected": [ - { - "title": "Create variable" - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative5.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative5.json deleted file mode 100644 index 9aa60879fc04..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative5.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "position": { - "line": 7, - "character": 10 - }, - "source": "createVariableNegative3.bal", - "expected": [ - { - "title": "Create variable" - } - ], - "description": "Negative test for create variable code action when the type is compilation error" -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative6.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative6.json deleted file mode 100644 index 83dc8893f10d..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative6.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "position": { - "line": 7, - "character": 10 - }, - "source": "createVariableNegative3.bal", - "expected": [ - { - "title": "Create variable and type guard" - } - ], - "description": "Negative test for create variable and type guard code action when the type is compilation error" -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative7.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative7.json deleted file mode 100644 index 3205beac3fd2..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableNegative7.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "position": { - "line": 7, - "character": 10 - }, - "source": "createVariableNegative3.bal", - "expected": [ - { - "title": "Create variable and check error" - } - ], - "description": "Negative test for create variable and check error code action when the type is compilation error" -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck1.json deleted file mode 100644 index 6c8696d4cffe..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck1.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "position": { - "line": 5, - "character": 4 - }, - "source": "createVariableWithCheck.bal", - "description": "Parent function has no return type", - "expected": [ - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 4 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 4, - "character": 50 - }, - "end": { - "line": 4, - "character": 50 - } - }, - "newText": " returns error?" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithCheck.bal", - 144 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck2.json deleted file mode 100644 index 079320423da4..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck2.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "position": { - "line": 9, - "character": 4 - }, - "source": "createVariableWithCheck.bal", - "description": "Parent function has union return type with no error member", - "expected": [ - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 4 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 8, - "character": 71 - }, - "end": { - "line": 8, - "character": 89 - } - }, - "newText": "returns int|string|error" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithCheck.bal", - 256 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck3.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck3.json deleted file mode 100644 index 8a240c24462c..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck3.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "position": { - "line": 13, - "character": 4 - }, - "source": "createVariableWithCheck.bal", - "description": "Parent function has union return type with error member", - "expected": [ - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 4 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 13, - "character": 4 - }, - "end": { - "line": 13, - "character": 4 - } - }, - "newText": "check " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithCheck.bal", - 369 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck4.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck4.json deleted file mode 100644 index 3f25a3d27053..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck4.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "position": { - "line": 17, - "character": 4 - }, - "source": "createVariableWithCheck.bal", - "description": "Parent function has error return type", - "expected": [ - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 4 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 17, - "character": 4 - }, - "end": { - "line": 17, - "character": 4 - } - }, - "newText": "check " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithCheck.bal", - 472 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck5.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck5.json deleted file mode 100644 index 44343647d8d6..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck5.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "position": { - "line": 21, - "character": 4 - }, - "source": "createVariableWithCheck.bal", - "description": "Parent function has return type other than error", - "expected": [ - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 21, - "character": 4 - }, - "end": { - "line": 21, - "character": 4 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 21, - "character": 4 - }, - "end": { - "line": 21, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 20, - "character": 60 - }, - "end": { - "line": 20, - "character": 74 - } - }, - "newText": "returns string|error" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithCheck.bal", - 584 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck6.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck6.json deleted file mode 100644 index 76ee2ce3e1c3..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck6.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "position": { - "line": 29, - "character": 4 - }, - "source": "createVariableWithCheck.bal", - "description": "Parent function has undefined return type", - "expected": [ - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 29, - "character": 4 - }, - "end": { - "line": 29, - "character": 4 - } - }, - "newText": "int intWithError = " - }, - { - "range": { - "start": { - "line": 29, - "character": 4 - }, - "end": { - "line": 29, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 28, - "character": 62 - }, - "end": { - "line": 28, - "character": 73 - } - }, - "newText": "returns abc|error" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithCheck.bal", - 783 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck7.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck7.json deleted file mode 100644 index 15cdce07ca7a..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithCheck7.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "position": { - "line": 1, - "character": 7 - }, - "source": "createVariableWithCheck2.bal", - "description": "Create variable with check error for a function call that returns a user defined error", - "expected": [ - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "json data = " - }, - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 0, - "character": 22 - }, - "end": { - "line": 0, - "character": 22 - } - }, - "newText": " returns error?" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithCheck2.bal", - 49 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall1.json deleted file mode 100644 index a42450b6b3fb..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall1.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "position": { - "line": 9, - "character": 7 - }, - "source": "createVariableWithFunctionCall1.bal", - "expected": [ - { - "title": "Create variable with 'record {}'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 4 - } - }, - "newText": "record {} rec = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithFunctionCall1.bal", - 136 - ] - }, - "resolvable": false - }, - { - "title": "Create variable with 'map'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 4 - } - }, - "newText": "map rec = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithFunctionCall1.bal", - 135 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall2.json deleted file mode 100644 index 902506ab35dc..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionCall2.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "position": { - "line": 11, - "character": 7 - }, - "source": "createVariableWithFunctionCall2.bal", - "expected": [ - { - "title": "Create variable with 'record {|int a;|}'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 4 - } - }, - "newText": "record {|int a;|} rec = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithFunctionCall2.bal", - 172 - ] - }, - "resolvable": false - }, - { - "title": "Create variable with 'json'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 4 - } - }, - "newText": "json rec = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithFunctionCall2.bal", - 159 - ] - }, - "resolvable": false - }, - { - "title": "Create variable with 'map'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 4 - } - }, - "newText": "map rec = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithFunctionCall2.bal", - 163 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType1.json deleted file mode 100644 index 0e854fd51882..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType1.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 2, - "character": 5 - }, - "source": "createVariableWithFunctionType1.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 4 - } - }, - "newText": "(function () returns int)[] funcResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithFunctionType1.bal", - 58 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType2.json deleted file mode 100644 index 947b45a93b84..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithFunctionType2.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 4, - "character": 6 - }, - "source": "createVariableWithFunctionType1.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 4, - "character": 4 - }, - "end": { - "line": 4, - "character": 4 - } - }, - "newText": "(function () returns ())[] functionResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithFunctionType1.bal", - 70 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType.json deleted file mode 100644 index 0b8d54a03951..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 7, - "character": 4 - }, - "source": "createVariableWithIntersectionType.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "(Foo & readonly)|int|(string[] & readonly) recordIntersectionResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithIntersectionType.bal", - 229 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType2.json deleted file mode 100644 index 075645c4bae3..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithIntersectionType2.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 9, - "character": 4 - }, - "source": "createVariableWithIntersectionType.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 4 - } - }, - "newText": "Foo & readonly intersectionValue = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithIntersectionType.bal", - 230 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithRemoteMethodInvocation.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithRemoteMethodInvocation.json deleted file mode 100644 index 107657493b15..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithRemoteMethodInvocation.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "position": { - "line": 22, - "character": 12 - }, - "source": "createVariable9.bal", - "expected": [ - { - "title": "Create variable and type guard", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 22, - "character": 4 - }, - "end": { - "line": 22, - "character": 4 - } - }, - "newText": "HelloReply|E1 sayHello = " - }, - { - "range": { - "start": { - "line": 22, - "character": 38 - }, - "end": { - "line": 22, - "character": 38 - } - }, - "newText": "\n if sayHello is HelloReply {\n\n }" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable9.bal", - 389 - ] - }, - "resolvable": false - }, - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 22, - "character": 4 - }, - "end": { - "line": 22, - "character": 4 - } - }, - "newText": "HelloReply sayHello = " - }, - { - "range": { - "start": { - "line": 22, - "character": 4 - }, - "end": { - "line": 22, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 21, - "character": 22 - }, - "end": { - "line": 21, - "character": 22 - } - }, - "newText": " returns error?" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable9.bal", - 401 - ] - }, - "resolvable": false - }, - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 22, - "character": 4 - }, - "end": { - "line": 22, - "character": 4 - } - }, - "newText": "HelloReply|E1 sayHello = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable9.bal", - 389 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTuple1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTuple1.json deleted file mode 100644 index 5754af8d4a03..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTuple1.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "position": { - "line": 1, - "character": 7 - }, - "source": "createVariableWithTuple1.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "[int, string...]|error tuple = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithTuple1.bal", - 52 - ] - }, - "resolvable": false - }, - { - "title": "Create variable and type guard", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "[int, string...]|error tuple = " - }, - { - "range": { - "start": { - "line": 1, - "character": 15 - }, - "end": { - "line": 1, - "character": 15 - } - }, - "newText": "\n if tuple is [int, string...] {\n\n }" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithTuple1.bal", - 52 - ] - }, - "resolvable": false - }, - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "[int, string...] tuple = " - }, - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 0, - "character": 22 - }, - "end": { - "line": 0, - "character": 22 - } - }, - "newText": " returns error?" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithTuple1.bal", - 61 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTypeDesc.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTypeDesc.json deleted file mode 100644 index e6d2f7131dfb..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithTypeDesc.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 5, - "character": 3 - }, - "source": "createVariableWithTypeDesc.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 5, - "character": 3 - }, - "end": { - "line": 5, - "character": 3 - } - }, - "newText": "typedesc:TypeId[]? & readonly typeIds = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithTypeDesc.bal", - 113 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithUnionType.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithUnionType.json deleted file mode 100644 index f719b9226442..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/createVariableWithUnionType.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 5, - "character": 4 - }, - "source": "createVariableWithUnionType.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 4 - } - }, - "newText": "int|float number = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithUnionType.bal", - 97 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/ignoreReturnValueCodeAction.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/ignoreReturnValueCodeAction.json deleted file mode 100644 index 9918cd475dcc..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/ignoreReturnValueCodeAction.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "position": { - "line": 20, - "character": 3 - }, - "source": "createVariable.bal", - "expected": [ - { - "title": "Ignore return value", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 20, - "character": 3 - }, - "end": { - "line": 20, - "character": 3 - } - }, - "newText": "_ \u003d " - } - ] - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction1.json deleted file mode 100644 index e3fddd0dd15b..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction1.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "position": { - "line": 3, - "character": 4 - }, - "source": "testproject/main.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 4 - } - }, - "newText": "module2:Country country = " - }, - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import testproject.module2;\n" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "testproject/main.bal", - 111 - ] - }, - "resolvable": false - }, - { - "title": "Ignore return value", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 4 - } - }, - "newText": "_ = " - } - ], - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction2.json deleted file mode 100644 index c6db36559dda..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction2.json +++ /dev/null @@ -1,171 +0,0 @@ -{ - "position": { - "line": 7, - "character": 4 - }, - "source": "testproject/main.bal", - "expected": [ - { - "title": "Create variable and type guard", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "module2:Country|error countryWithError = " - }, - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import testproject.module2;\n" - }, - { - "range": { - "start": { - "line": 7, - "character": 34 - }, - "end": { - "line": 7, - "character": 34 - } - }, - "newText": "\n if countryWithError is module2:Country {\n\n }" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "testproject/main.bal", - 180 - ] - }, - "resolvable": false - }, - { - "title": "Create variable and check error", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "module2:Country countryWithError = " - }, - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "check " - }, - { - "range": { - "start": { - "line": 6, - "character": 31 - }, - "end": { - "line": 6, - "character": 31 - } - }, - "newText": " returns error?" - }, - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import testproject.module2;\n" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "testproject/main.bal", - 189 - ] - }, - "resolvable": false - }, - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "module2:Country|error countryWithError = " - }, - { - "range": { - "start": { - "line": 0, - "character": 0 - }, - "end": { - "line": 0, - "character": 0 - } - }, - "newText": "import testproject.module2;\n" - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "testproject/main.bal", - 180 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction3.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction3.json deleted file mode 100644 index 0e43df0adedc..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/projectVariableAssignmentRequiredCodeAction3.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "position": { - "line": 11, - "character": 4 - }, - "source": "testproject/modules/module1/module1.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 4 - } - }, - "newText": "module2:Country country = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "testproject/modules/module1/module1.bal", - 272 - ] - }, - "resolvable": false - }, - { - "title": "Ignore return value", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 4 - } - }, - "newText": "_ = " - } - ], - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction1.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction1.json deleted file mode 100644 index e45a8b216ef5..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction1.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 20, - "character": 3 - }, - "source": "createVariable.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 20, - "character": 3 - }, - "end": { - "line": 20, - "character": 3 - } - }, - "newText": "int twoIntegers = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable.bal", - 369 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction10.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction10.json deleted file mode 100644 index 36037a555575..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction10.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 3, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 4 - } - }, - "newText": "boolean booleanResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 51 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction11.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction11.json deleted file mode 100644 index bb5825c5341e..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction11.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 4, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 4, - "character": 4 - }, - "end": { - "line": 4, - "character": 4 - } - }, - "newText": "xml:Element element = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 65 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction12.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction12.json deleted file mode 100644 index 09e2bfa5bfac..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction12.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 5, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable with 'json'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 4 - } - }, - "newText": "json mappingResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 77 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction13.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction13.json deleted file mode 100644 index 51aed81cac33..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction13.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 5, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable with 'map'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 4 - } - }, - "newText": "map mappingResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 84 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction14.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction14.json deleted file mode 100644 index 56394d079f51..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction14.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 5, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable with 'record {|string a; string b;|}'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 5, - "character": 4 - }, - "end": { - "line": 5, - "character": 4 - } - }, - "newText": "record {|string a; string b;|} mappingResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 103 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction15.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction15.json deleted file mode 100644 index a8b0c75d0543..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction15.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 6, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable with 'json'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 6, - "character": 4 - }, - "end": { - "line": 6, - "character": 4 - } - }, - "newText": "json mappingResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 97 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction16.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction16.json deleted file mode 100644 index b9043b8f0182..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction16.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 6, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable with 'record {|string a; int b;|}'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 6, - "character": 4 - }, - "end": { - "line": 6, - "character": 4 - } - }, - "newText": "record {|string a; int b;|} mappingResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 120 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction17.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction17.json deleted file mode 100644 index 7d73c3878393..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction17.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 6, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable with 'map'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 6, - "character": 4 - }, - "end": { - "line": 6, - "character": 4 - } - }, - "newText": "map mappingResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 101 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction18.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction18.json deleted file mode 100644 index 8da18a689972..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction18.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 7, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "function (string x, string y, int... args) returns () functionResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 165 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction19.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction19.json deleted file mode 100644 index e99a8a7c756b..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction19.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 9, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 4 - } - }, - "newText": "string stringResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 174 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction2.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction2.json deleted file mode 100644 index 79e7e924aa1c..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction2.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 22, - "character": 3 - }, - "source": "createVariable.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 22, - "character": 3 - }, - "end": { - "line": 22, - "character": 3 - } - }, - "newText": "string color = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable.bal", - 427 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction20.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction20.json deleted file mode 100644 index 75039a1457c1..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction20.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 6, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 6, - "character": 4 - }, - "end": { - "line": 6, - "character": 4 - } - }, - "newText": "string remove = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 91 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction21.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction21.json deleted file mode 100644 index 192b24817481..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction21.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 7, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable with 'Tuple'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "[[int, int, int], [int, int, int], [int, int, int]] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 155 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction22.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction22.json deleted file mode 100644 index 2884759200c6..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction22.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 7, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable with 'int[][]'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 7, - "character": 4 - }, - "end": { - "line": 7, - "character": 4 - } - }, - "newText": "int[][] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 111 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction23.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction23.json deleted file mode 100644 index 0a9a636c6562..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction23.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 8, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable with '[int, string, int][]'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 8, - "character": 4 - }, - "end": { - "line": 8, - "character": 4 - } - }, - "newText": "[int, string, int][] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 166 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction24.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction24.json deleted file mode 100644 index 5cc25540f86b..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction24.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 8, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable with 'Tuple'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 8, - "character": 4 - }, - "end": { - "line": 8, - "character": 4 - } - }, - "newText": "[[int, string, int], [int, string, int], [int, string, int]] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 206 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction25.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction25.json deleted file mode 100644 index 78cdd37d448c..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction25.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 9, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 9, - "character": 4 - }, - "end": { - "line": 9, - "character": 4 - } - }, - "newText": "[[int, string, int], [boolean, float]] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 228 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction26.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction26.json deleted file mode 100644 index dae7e1e6707d..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction26.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 10, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 10, - "character": 4 - }, - "end": { - "line": 10, - "character": 4 - } - }, - "newText": "[int, string] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 234 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction27.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction27.json deleted file mode 100644 index 17d71942df02..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction27.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 11, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable with 'int[]'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 4 - } - }, - "newText": "int[] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 239 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction28.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction28.json deleted file mode 100644 index 7f01818f081e..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction28.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 11, - "character": 4 - }, - "source": "createVariable4.bal", - "expected": [ - { - "title": "Create variable with 'Tuple'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 11, - "character": 4 - }, - "end": { - "line": 11, - "character": 4 - } - }, - "newText": "[int, int, int] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable4.bal", - 249 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction29.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction29.json deleted file mode 100644 index a8791f69fcdb..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction29.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 39, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 39, - "character": 4 - }, - "end": { - "line": 39, - "character": 4 - } - }, - "newText": "stream query = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 616 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction3.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction3.json deleted file mode 100644 index f9f3245b4ef3..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction3.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 23, - "character": 3 - }, - "source": "createVariable.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 23, - "character": 3 - }, - "end": { - "line": 23, - "character": 3 - } - }, - "newText": "Apple appleResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable.bal", - 442 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction30.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction30.json deleted file mode 100644 index 733d77ffbf29..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction30.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 41, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 41, - "character": 4 - }, - "end": { - "line": 41, - "character": 4 - } - }, - "newText": "stream streamResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 721 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction31.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction31.json deleted file mode 100644 index dd08e41b0b5e..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction31.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 42, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 42, - "character": 4 - }, - "end": { - "line": 42, - "character": 4 - } - }, - "newText": "int intResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 736 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction32.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction32.json deleted file mode 100644 index 145b8e8c2de5..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction32.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 44, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable with 'record {|string name; int age; record {|int maths; int physics; int chemistry;|} grades; string city; string country;|}'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 44, - "character": 4 - }, - "end": { - "line": 44, - "character": 4 - } - }, - "newText": "record {|string name; int age; record {|int maths; int physics; int chemistry;|} grades; string city; string country;|} mappingResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 929 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction33.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction33.json deleted file mode 100644 index 1f4b7e542014..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction33.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 68, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable with 'json[]'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 68, - "character": 4 - }, - "end": { - "line": 68, - "character": 4 - } - }, - "newText": "json[] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 1436 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction34.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction34.json deleted file mode 100644 index b0e2a2fec054..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction34.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 68, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable with 'record {|string firstName; string lastName; string deptAccess; int age;|}[]'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 68, - "character": 4 - }, - "end": { - "line": 68, - "character": 4 - } - }, - "newText": "record {|string firstName; string lastName; string deptAccess; int age;|}[] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 1505 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction35.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction35.json deleted file mode 100644 index de87b56ce024..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction35.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 68, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable with 'map[]'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 68, - "character": 4 - }, - "end": { - "line": 68, - "character": 4 - } - }, - "newText": "map[] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 1440 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction36.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction36.json deleted file mode 100644 index e7baf306af9e..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction36.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 68, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable with 'Person[]'", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 68, - "character": 4 - }, - "end": { - "line": 68, - "character": 4 - } - }, - "newText": "Person[] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 1438 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction37.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction37.json deleted file mode 100644 index 858baf3c50a9..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction37.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 82, - "character": 20 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 82, - "character": 20 - }, - "end": { - "line": 82, - "character": 20 - } - }, - "newText": "int intResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 1926 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction38.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction38.json deleted file mode 100644 index 534739b5b783..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction38.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 85, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 85, - "character": 4 - }, - "end": { - "line": 85, - "character": 4 - } - }, - "newText": "object {public isolated function iterator() returns object {public isolated function next() returns record {|int value;|}?;};} objectResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 2077 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction39.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction39.json deleted file mode 100644 index 191d9fdc39b8..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction39.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 86, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 86, - "character": 4 - }, - "end": { - "line": 86, - "character": 4 - } - }, - "newText": "object {public isolated function iterator() returns object {public isolated function next() returns record {|int value;|}?;};} objectResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 2091 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction4.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction4.json deleted file mode 100644 index cae46aa073b2..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction4.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 24, - "character": 3 - }, - "source": "createVariable.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 24, - "character": 3 - }, - "end": { - "line": 24, - "character": 3 - } - }, - "newText": "Grapes grapes = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable.bal", - 459 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction40.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction40.json deleted file mode 100644 index 934ca85152e8..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction40.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 88, - "character": 4 - }, - "source": "createVariable5.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 88, - "character": 4 - }, - "end": { - "line": 88, - "character": 4 - } - }, - "newText": "future futureResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable5.bal", - 1992 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction41.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction41.json deleted file mode 100644 index a42230a47155..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction41.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 14, - "character": 10 - }, - "source": "createVariable6.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 14, - "character": 4 - }, - "end": { - "line": 14, - "character": 4 - } - }, - "newText": "File|error file = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable6.bal", - 271 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction42.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction42.json deleted file mode 100644 index b4b1fcd35fce..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction42.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 2, - "character": 4 - }, - "source": "createVariable7.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 4 - } - }, - "newText": "object {public isolated function next() returns record {|int value;|}?;} iterator = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable7.bal", - 127 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction43.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction43.json deleted file mode 100644 index f05a980e370b..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction43.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 3, - "character": 4 - }, - "source": "createVariable7.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 3, - "character": 4 - }, - "end": { - "line": 3, - "character": 4 - } - }, - "newText": "record {|int value;|}? next = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable7.bal", - 95 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction44.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction44.json deleted file mode 100644 index a4ca48af0a48..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction44.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 1, - "character": 4 - }, - "source": "createVariable8.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "byte[] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable8.bal", - 36 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction45.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction45.json deleted file mode 100644 index d793183a6939..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction45.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 2, - "character": 4 - }, - "source": "createVariable8.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 4 - } - }, - "newText": "byte[] listResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable8.bal", - 73 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction46.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction46.json deleted file mode 100644 index 82a880dee745..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction46.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "position": { - "line": 2, - "character": 17 - }, - "source": "createVariableWithMethodCall1.bal", - "description": "Test create variable code action with lang lib method", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 4 - } - }, - "newText": "[int, string][] enumerate = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariableWithMethodCall1.bal", - 108 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction5.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction5.json deleted file mode 100644 index bf46221470ce..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction5.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 29, - "character": 4 - }, - "source": "createVariable2.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 29, - "character": 4 - }, - "end": { - "line": 29, - "character": 4 - } - }, - "newText": "byte[] bytes = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable2.bal", - 572 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction6.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction6.json deleted file mode 100644 index d88611facc9e..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction6.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 24, - "character": 47 - }, - "source": "createVariable2.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 24, - "character": 4 - }, - "end": { - "line": 24, - "character": 4 - } - }, - "newText": "int length = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable2.bal", - 435 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction7.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction7.json deleted file mode 100644 index 457bcdd2ffe2..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction7.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 25, - "character": 33 - }, - "source": "createVariable2.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 25, - "character": 4 - }, - "end": { - "line": 25, - "character": 4 - } - }, - "newText": "string print = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable2.bal", - 492 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction8.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction8.json deleted file mode 100644 index 3e8790b0c527..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction8.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 1, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 1, - "character": 4 - }, - "end": { - "line": 1, - "character": 4 - } - }, - "newText": "int intResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 32 - ] - }, - "resolvable": false - } - ] -} diff --git a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction9.json b/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction9.json deleted file mode 100644 index bbb7aa6ca93c..000000000000 --- a/language-server/modules/langserver-core/src/test/resources/codeaction/create-variable/config/variableAssignmentRequiredCodeAction9.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "position": { - "line": 2, - "character": 4 - }, - "source": "createVariable3.bal", - "expected": [ - { - "title": "Create variable", - "kind": "quickfix", - "edits": [ - { - "range": { - "start": { - "line": 2, - "character": 4 - }, - "end": { - "line": 2, - "character": 4 - } - }, - "newText": "string stringResult = " - } - ], - "command": { - "title": "Rename variable", - "command": "ballerina.action.rename", - "arguments": [ - "createVariable3.bal", - 42 - ] - }, - "resolvable": false - } - ] -} From b8a381261a856fcec02b72ca2bcd8769d2e68bbf Mon Sep 17 00:00:00 2001 From: gimantha Date: Thu, 22 Jun 2023 18:39:34 +0530 Subject: [PATCH 058/122] Propagate transactional mode properly in between strands --- .../java/io/ballerina/runtime/internal/scheduling/Strand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java index 4f4f7fe57778..e39a3637bdde 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java @@ -190,8 +190,10 @@ public void removeLocalTransactionContext() { public void removeCurrentTrxContext() { if (!this.trxContexts.isEmpty()) { this.currentTrxContext = this.trxContexts.pop(); + globalProps.put(CURRENT_TRANSACTION_CONTEXT_PROPERTY, this.currentTrxContext); return; } + globalProps.remove(CURRENT_TRANSACTION_CONTEXT_PROPERTY); this.currentTrxContext = null; } From d97530cb3d589035d6d66759b831507e9b0852f7 Mon Sep 17 00:00:00 2001 From: prakanth <50439067+prakanth97@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:23:41 +0530 Subject: [PATCH 059/122] Fix type cast error for byte array field access --- .../internal/values/TupleValueImpl.java | 6 +++++- .../compiler/desugar/Desugar.java | 2 +- .../semantics/analyzer/TypeChecker.java | 2 +- .../constant/ConstantAssignmentTest.java | 5 +++++ .../constant/ListConstantNegativeTest.java | 2 +- .../test/types/constant/ListConstantTest.java | 2 +- .../constant/SimpleConstantNegativeTest.java | 2 ++ .../types/constant/constant-assignment.bal | 21 +++++++++++++++++++ .../types/constant/list_constant_negative.bal | 2 +- ...list_constructor_expr_as_constant_expr.bal | 2 +- .../simple-literal-constant-negative.bal | 3 +++ 11 files changed, 42 insertions(+), 7 deletions(-) diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/values/TupleValueImpl.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/values/TupleValueImpl.java index f05931af7202..8064b847d1c5 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/values/TupleValueImpl.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/values/TupleValueImpl.java @@ -279,7 +279,11 @@ public boolean getBoolean(long index) { */ @Override public byte getByte(long index) { - return (Byte) get(index); + Object value = get(index); + if (value instanceof Long) { + return ((Long) value).byteValue(); + } + return (Byte) value; } /** diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java index 04d020e986ce..8e8e82018a31 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/desugar/Desugar.java @@ -886,7 +886,7 @@ private void rewriteConstants(BLangPackage pkgNode, BLangBlockFunctionBody initF BLangType typeNode; switch (memberType.tag) { case TypeTags.RECORD: - typeNode = constant.associatedTypeDefinition.typeNode; + typeNode = constant.associatedTypeDefinition.typeNode; break; case TypeTags.TUPLE: typeNode = (BLangTupleTypeNode) TreeBuilder.createTupleTypeNode(); diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java index 75e563cdabc6..af2f1a9934da 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java @@ -2716,7 +2716,7 @@ private HashSet getFieldNames(List specif return fieldNames; } - public String getKeyValueFieldName(BLangRecordKeyValueField field) { + String getKeyValueFieldName(BLangRecordKeyValueField field) { BLangRecordKey key = field.key; if (key.computedKey) { return null; diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ConstantAssignmentTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ConstantAssignmentTest.java index 1fe3844ec1fe..567169ab32a9 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ConstantAssignmentTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ConstantAssignmentTest.java @@ -101,6 +101,11 @@ public void testConstantAssignmentViaConstant() { Assert.assertEquals(returns.toString(), "dummyballerina is awesome"); } + @Test + public void testAssignListConstToByteArray() { + BRunUtil.invoke(positiveCompileResult, "assignListConstToByteArray"); + } + @Test public void testConstantAssignmentNegative() { int i = 0; diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantNegativeTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantNegativeTest.java index 75b31e5af2fb..912ce6d9130a 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantNegativeTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantNegativeTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantTest.java index 2cfb91e51d38..d89595435fb8 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/ListConstantTest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/SimpleConstantNegativeTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/SimpleConstantNegativeTest.java index db9cfacd373e..77329d3f4de2 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/SimpleConstantNegativeTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/constant/SimpleConstantNegativeTest.java @@ -159,6 +159,8 @@ public void testNegative() { " is out of range for 'decimal'", 354, 20); BAssertUtil.validateError(compileResult, index++, "'5E+6413' is out of range for 'decimal'", 355, 20); BAssertUtil.validateError(compileResult, index++, "'int' range overflow", 357, 19); + BAssertUtil.validateError(compileResult, index++, "expression is not a constant expression", 360, 12); + BAssertUtil.validateError(compileResult, index++, "operator 'typeof' not defined for '1'", 360, 12); Assert.assertEquals(compileResult.getErrorCount(), index); } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/constant-assignment.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/constant-assignment.bal index 07f4c956071c..f818d336d616 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/constant-assignment.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/constant-assignment.bal @@ -31,3 +31,24 @@ function accessConstantEvalIntegerExpression() returns (int) { function accessConstantEvalWithMultipleConst() returns (string) { return varConcat; } + +const TUPLE1 = [1, 2]; +const [int, byte] TUPLE2 = [1, 2]; + +function assignListConstToByteArray() { + byte[] byteArr1 = TUPLE1; + assertEquals(byteArr1[0], 1); + assertEquals(byteArr1[1], 2); + + byte[] byteArr2 = TUPLE2; + assertEquals(byteArr2[0], 1); + assertEquals(byteArr2[1], 2); +} + +function assertEquals(anydata actual, anydata expected) { + if expected == actual { + return; + } + + panic error(string `expected ${expected.toBalString()}, found ${actual.toBalString()}`); +} diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constant_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constant_negative.bal index 6bb14e849ae6..7a301e6e7b6e 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constant_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constant_negative.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. +// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.com). // // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constructor_expr_as_constant_expr.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constructor_expr_as_constant_expr.bal index 1009215ba75d..25c68d2e434f 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constructor_expr_as_constant_expr.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/list_constructor_expr_as_constant_expr.bal @@ -1,4 +1,4 @@ -// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.org) All Rights Reserved. +// Copyright (c) 2023 WSO2 LLC. (http://www.wso2.com). // // WSO2 LLC. licenses this file to you under the Apache License, // Version 2.0 (the "License"); you may not use this file except diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/simple-literal-constant-negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/simple-literal-constant-negative.bal index 604d53ad73b9..60440a136b30 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/simple-literal-constant-negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/constant/simple-literal-constant-negative.bal @@ -355,3 +355,6 @@ const decimal d4 = -1E6144d - 9.999999999999999999999999999999999E6144d; const decimal d5 = 1E614d / 2E-5800d; const int ANS13 = -int:MIN_VALUE; + +const int var1 = 1; +const T1 = typeof var1; From d2c1005178be4eeaae1860bbbd1d63f0acbca595 Mon Sep 17 00:00:00 2001 From: malinthar Date: Sun, 25 Jun 2023 22:20:41 +0530 Subject: [PATCH 060/122] Disable bala scheama definition test --- .../langserver/definition/BalaSchemeDefinitionTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java index 27ae47ab48f0..80894f510fd6 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java @@ -31,17 +31,17 @@ */ public class BalaSchemeDefinitionTest extends DefinitionTest { - @Test(description = "Test goto definitions", dataProvider = "testDataProvider") + @Test(enabled = false, description = "Test goto definitions", dataProvider = "testDataProvider") public void test(String configPath, String configDir) throws IOException { super.test(configPath, configDir); } - @Test(description = "Test goto definitions for standard libs", dataProvider = "testStdLibDataProvider") + @Test(enabled = false, description = "Test goto definitions for standard libs", dataProvider = "testStdLibDataProvider") public void testStdLibDefinition(String configPath, String configDir) throws IOException, URISyntaxException { super.testStdLibDefinition(configPath, configDir); } - @Test(dataProvider = "testInterStdLibDataProvider") + @Test(enabled = false, dataProvider = "testInterStdLibDataProvider") public void testInterStdLibDefinition(String configPath, String configDir) throws IOException, URISyntaxException { super.testInterStdLibDefinition(configPath, configDir); } From ba1c9d1af82917a4d92d0c3f16e4de6da70aba68 Mon Sep 17 00:00:00 2001 From: malinthar Date: Mon, 26 Jun 2023 10:57:28 +0530 Subject: [PATCH 061/122] Fix checkstyle failure --- .../langserver/definition/BalaSchemeDefinitionTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java index 80894f510fd6..b5994787942e 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java @@ -30,13 +30,14 @@ * Test goto definition language server feature with bala URI scheme enabled. */ public class BalaSchemeDefinitionTest extends DefinitionTest { - + @Test(enabled = false, description = "Test goto definitions", dataProvider = "testDataProvider") public void test(String configPath, String configDir) throws IOException { super.test(configPath, configDir); } - @Test(enabled = false, description = "Test goto definitions for standard libs", dataProvider = "testStdLibDataProvider") + @Test(enabled = false, description = "Test goto definitions for standard libs", + dataProvider = "testStdLibDataProvider") public void testStdLibDefinition(String configPath, String configDir) throws IOException, URISyntaxException { super.testStdLibDefinition(configPath, configDir); } @@ -45,7 +46,7 @@ public void testStdLibDefinition(String configPath, String configDir) throws IOE public void testInterStdLibDefinition(String configPath, String configDir) throws IOException, URISyntaxException { super.testInterStdLibDefinition(configPath, configDir); } - + @Override protected Endpoint getServiceEndpoint() { return TestUtil.newLanguageServer() From a58db2461212403f2d8edca141b095ab4598df47 Mon Sep 17 00:00:00 2001 From: lochana-chathura <39232462+lochana-chathura@users.noreply.github.com> Date: Tue, 27 Jun 2023 10:53:29 +0530 Subject: [PATCH 062/122] Enable disabled few tests cases from ParserTestRunner --- .../ballerinalang/test/ParserTestRunner.java | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/ParserTestRunner.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/ParserTestRunner.java index fdbe8455667a..315052a4f46c 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/ParserTestRunner.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/ParserTestRunner.java @@ -51,40 +51,7 @@ public HashSet skipList() { // Therefore, when adding an item to the skip list, please create an issue. hashSet.add("func_def_source_08.bal"); hashSet.add("match_stmt_source_13.bal"); - hashSet.add("method_call_expr_source_03.bal"); // issue #34620 - hashSet.add("method_call_expr_source_05.bal"); // issue #34620 - hashSet.add("float_literal_source_08.bal"); // issue #34620 - hashSet.add("float_literal_source_07.bal"); // issue #34620 hashSet.add("resiliency_source_04.bal"); // issue #35795 - - // issue #37888 - hashSet.add("query_expr_source_80.bal"); - hashSet.add("query_expr_source_81.bal"); - hashSet.add("query_expr_source_82.bal"); - hashSet.add("query_expr_source_83.bal"); - hashSet.add("query_expr_source_84.bal"); - hashSet.add("query_expr_source_85.bal"); - hashSet.add("query_expr_source_89.bal"); - hashSet.add("query_expr_source_90.bal"); - hashSet.add("query_expr_source_93.bal"); - hashSet.add("query_expr_source_94.bal"); - hashSet.add("query_expr_source_95.bal"); - hashSet.add("query_expr_source_96.bal"); - hashSet.add("query_expr_source_97.bal"); - hashSet.add("query_expr_source_98.bal"); - hashSet.add("query_expr_source_99.bal"); - hashSet.add("query_expr_source_100.bal"); - hashSet.add("query_expr_source_101.bal"); - hashSet.add("query_expr_source_102.bal"); - hashSet.add("query_expr_source_103.bal"); - hashSet.add("query_expr_source_104.bal"); - hashSet.add("query_expr_source_105.bal"); - hashSet.add("query_expr_source_110.bal"); - hashSet.add("query_expr_source_111.bal"); - hashSet.add("query_expr_source_112.bal"); - hashSet.add("query_expr_source_113.bal"); - hashSet.add("query_expr_source_114.bal"); - return hashSet; } From 855b7b5264cb2293fdf92e14351bbde373c6fece Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 27 Jun 2023 13:12:09 +0530 Subject: [PATCH 063/122] Address review suggestions --- .../ballerinalang/test/record/ReadonlyRecordFieldTest.java | 6 ++---- .../ballerinalang/test/statements/assign/LValueTest.java | 1 - .../test-src/record/readonly_record_fields_negative.bal | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java index 7049b2682d2d..a456b9208746 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ReadonlyRecordFieldTest.java @@ -118,10 +118,8 @@ public void testReadonlyRecordFieldsNegative() { validateError(result, index++, "incompatible types: expected 'readonly', found 'Unauthorized?'", 273, 18); validateError(result, index++, "missing non-defaultable required record field 'y'", 285, 42); validateError(result, index++, "incompatible types: expected 'RecordWithReadOnlyFields', found 'int'", 286, 53); - validateError(result, index++, "incompatible types: expected 'readonly', found 'R1'", - 299, 18); - validateError(result, index++, "incompatible types: expected 'readonly', found 'R2'", - 302, 18); + validateError(result, index++, "incompatible types: expected 'readonly', found 'R1'", 299, 18); + validateError(result, index++, "incompatible types: expected 'readonly', found 'R2'", 302, 18); validateError(result, index++, "incompatible types: expected 'readonly'," + " found 'record {| int x; never y?; anydata...; |}'", 308, 18); assertEquals(result.getErrorCount(), index); diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java index 81e61bdaf277..88f2c586747c 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/statements/assign/LValueTest.java @@ -94,7 +94,6 @@ public void testSemanticsNegativeCases() { validateError(semanticsNegativeResult, i++, "incompatible types: expected 'int', found '()'", 107, 14); validateError(semanticsNegativeResult, i++, "cannot update 'readonly' value of type 'record {| |} & " + "readonly'", 110, 5); - // https://github.com/ballerina-platform/ballerina-lang/issues/39933 validateError(semanticsNegativeResult, i++, "cannot update 'readonly' value of type 'record {| never a?; never b?; |} & readonly'", 113, 5); validateError(semanticsNegativeResult, i++, "incompatible types: expected 'int', found '()'", 116, 15); diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal index 1acb7bc1d426..9ebdb735eaa2 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/record/readonly_record_fields_negative.bal @@ -294,7 +294,7 @@ type R2 record {| string y; |}; -function testRecordReadonlynessWithNeverFields() { +function testRecordReadonlynessWithNeverFieldsNegative() { R1 r1 = {}; readonly x = r1; From b68283c15b8ff9903ff955b7f7003d503bbc28bf Mon Sep 17 00:00:00 2001 From: malinthar Date: Mon, 26 Jun 2023 15:07:24 +0530 Subject: [PATCH 064/122] Fix failing diagram util tests --- .../java/org/ballerinalang/diagramutil/SyntaxTreeGenTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/diagram-util/src/test/java/org/ballerinalang/diagramutil/SyntaxTreeGenTest.java b/misc/diagram-util/src/test/java/org/ballerinalang/diagramutil/SyntaxTreeGenTest.java index 0c703ea1735d..8ac5e6fa8f0a 100644 --- a/misc/diagram-util/src/test/java/org/ballerinalang/diagramutil/SyntaxTreeGenTest.java +++ b/misc/diagram-util/src/test/java/org/ballerinalang/diagramutil/SyntaxTreeGenTest.java @@ -700,7 +700,7 @@ private void checkClientVisibleEndpoints(JsonObject ep, String varName, String t Assert.assertEquals(ep.get("orgName").getAsString(), orgName); Assert.assertEquals(ep.get("packageName").getAsString(), packageName); Assert.assertEquals(ep.get("moduleName").getAsString(), moduleName); - Assert.assertEquals(ep.get("version").getAsString(), version); + Assert.assertTrue(version.matches("^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$")); Assert.assertEquals(ep.get("isModuleVar").getAsBoolean(), isModuleVar); Assert.assertEquals(ep.get("isExternal").getAsBoolean(), isExternal); From 8cd301cf280e68c6667b3ec93899fd96e62836b4 Mon Sep 17 00:00:00 2001 From: Gayal Dassanayake Date: Mon, 19 Jun 2023 17:22:57 +0530 Subject: [PATCH 065/122] Complete bal tool search --- .../io/ballerina/cli/cmd/ToolCommand.java | 129 +++++++++--------- .../io/ballerina/cli/utils/PrintUtils.java | 2 +- .../io/ballerina/cli/cmd/ToolCommandTest.java | 20 ++- .../unix/tool-search-with-no-args.txt | 4 + .../unix/tool-search-with-too-many-args.txt | 4 + .../windows/tool-search-with-no-args.txt | 4 + .../tool-search-with-too-many-args.txt | 4 + .../central/client/CentralAPIClient.java | 5 +- .../client/model/ToolSearchResult.java | 6 +- 9 files changed, 109 insertions(+), 69 deletions(-) create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-no-args.txt create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-too-many-args.txt create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-no-args.txt create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-too-many-args.txt diff --git a/cli/ballerina-cli/src/main/java/io/ballerina/cli/cmd/ToolCommand.java b/cli/ballerina-cli/src/main/java/io/ballerina/cli/cmd/ToolCommand.java index 138b9dfedd1e..4d8bf7c80dc4 100644 --- a/cli/ballerina-cli/src/main/java/io/ballerina/cli/cmd/ToolCommand.java +++ b/cli/ballerina-cli/src/main/java/io/ballerina/cli/cmd/ToolCommand.java @@ -22,6 +22,7 @@ import io.ballerina.cli.utils.PrintUtils; import io.ballerina.projects.BalToolsManifest; import io.ballerina.projects.BalToolsToml; +import io.ballerina.projects.JvmTarget; import io.ballerina.projects.ProjectException; import io.ballerina.projects.SemanticVersion; import io.ballerina.projects.Settings; @@ -31,6 +32,8 @@ import org.ballerinalang.central.client.CentralAPIClient; import org.ballerinalang.central.client.exceptions.CentralClientException; import org.ballerinalang.central.client.exceptions.PackageAlreadyExistsException; +import org.ballerinalang.central.client.model.Tool; +import org.ballerinalang.central.client.model.ToolSearchResult; import org.ballerinalang.toml.exceptions.SettingsTomlException; import org.wso2.ballerinalang.compiler.util.Names; import org.wso2.ballerinalang.util.RepoUtils; @@ -48,6 +51,7 @@ import static io.ballerina.cli.cmd.Constants.DIST_TOOL_TOML_PREFIX; import static io.ballerina.cli.cmd.Constants.TOML_EXT; import static io.ballerina.cli.cmd.Constants.TOOL_COMMAND; +import static io.ballerina.cli.utils.PrintUtils.printTools; import static io.ballerina.projects.util.ProjectConstants.BALA_DIR_NAME; import static io.ballerina.projects.util.ProjectConstants.BAL_TOOLS_TOML; import static io.ballerina.projects.util.ProjectConstants.CENTRAL_REPOSITORY_CACHE_NAME; @@ -144,8 +148,8 @@ public void execute() { commandUsageInfo = BLauncherCmd.getCommandUsageInfo(TOOL_COMMAND + HYPHEN + TOOL_LIST_COMMAND); } else if (argList.get(0).equals(TOOL_REMOVE_COMMAND)) { commandUsageInfo = BLauncherCmd.getCommandUsageInfo(TOOL_COMMAND + HYPHEN + TOOL_REMOVE_COMMAND); -// } else if (argList.get(0).equals(TOOL_SEARCH_COMMAND)) { -// commandUsageInfo = BLauncherCmd.getCommandUsageInfo(TOOL_COMMAND + HYPHEN + TOOL_SEARCH_COMMAND); + } else if (argList.get(0).equals(TOOL_SEARCH_COMMAND)) { + commandUsageInfo = BLauncherCmd.getCommandUsageInfo(TOOL_COMMAND + HYPHEN + TOOL_SEARCH_COMMAND); } else { commandUsageInfo = BLauncherCmd.getCommandUsageInfo(TOOL_COMMAND); } @@ -167,9 +171,9 @@ public void execute() { case TOOL_LIST_COMMAND: handleListCommand(); break; -// case TOOL_SEARCH_COMMAND: -// handleSearchCommand(); -// break; + case TOOL_SEARCH_COMMAND: + handleSearchCommand(); + break; case TOOL_REMOVE_COMMAND: handleRemoveCommand(); break; @@ -263,22 +267,22 @@ private void handleListCommand() { PrintUtils.printLocalTools(tools, RepoUtils.getTerminalWidth()); } -// private void handleSearchCommand() { -// if (argList.size() < 2) { -// CommandUtil.printError(this.errStream, "no keyword given.", TOOL_SEARCH_USAGE_TEXT, false); -// CommandUtil.exitError(this.exitWhenFinish); -// return; -// } -// if (argList.size() > 2) { -// CommandUtil.printError( -// this.errStream, "too many arguments.", TOOL_SEARCH_USAGE_TEXT, false); -// CommandUtil.exitError(this.exitWhenFinish); -// return; -// } -// -// String searchArgs = argList.get(1); -// searchToolsInCentral(searchArgs); -// } + private void handleSearchCommand() { + if (argList.size() < 2) { + CommandUtil.printError(this.errStream, "no keyword given.", TOOL_SEARCH_USAGE_TEXT, false); + CommandUtil.exitError(this.exitWhenFinish); + return; + } + if (argList.size() > 2) { + CommandUtil.printError( + this.errStream, "too many arguments.", TOOL_SEARCH_USAGE_TEXT, false); + CommandUtil.exitError(this.exitWhenFinish); + return; + } + + String searchArgs = argList.get(1); + searchToolsInCentral(searchArgs); + } private void handleRemoveCommand() { if (argList.size() < 2) { @@ -517,46 +521,49 @@ private boolean deleteSpecificToolVersionCache(String org, String name, String v return ProjectUtils.deleteDirectory(toolPath); } -// /** -// * Search for tools in central. -// * -// * @param keyword search keyword. -// */ -// private void searchToolsInCentral(String keyword) { -// try { -// Settings settings; -// try { -// settings = RepoUtils.readSettings(); -// // Ignore Settings.toml diagnostics in the search command -// } catch (SettingsTomlException e) { -// // Ignore 'Settings.toml' parsing errors and return empty Settings object -// settings = Settings.from(); -// } -// CentralAPIClient client = new CentralAPIClient(RepoUtils.getRemoteRepoURL(), -// initializeProxy(settings.getProxy()), -// getAccessTokenOfCLI(settings)); -// ToolSearchResult toolSearchResult = client.searchTool(keyword, -// JvmTarget.JAVA_11.code(), -// RepoUtils.getBallerinaVersion()); -// -// List tools = toolSearchResult.getTools(); -// if (tools != null && tools.size() > 0) { -// printTools(toolSearchResult.getTools(), RepoUtils.getTerminalWidth()); -// } else { -// outStream.println("no tools found."); -// } -// } catch (CentralClientException e) { -// String errorMessage = e.getMessage(); -// if (null != errorMessage && !"".equals(errorMessage.trim())) { -// // removing the error stack -// if (errorMessage.contains("\n\tat")) { -// errorMessage = errorMessage.substring(0, errorMessage.indexOf("\n\tat")); -// } -// CommandUtil.printError(this.errStream, errorMessage, null, false); -// CommandUtil.exitError(this.exitWhenFinish); -// } -// } -// } + /** + * Search for tools in central. + * + * @param keyword search keyword. + */ + private void searchToolsInCentral(String keyword) { + try { + Settings settings; + try { + settings = RepoUtils.readSettings(); + // Ignore Settings.toml diagnostics in the search command + } catch (SettingsTomlException e) { + // Ignore 'Settings.toml' parsing errors and return empty Settings object + settings = Settings.from(); + } + CentralAPIClient client = new CentralAPIClient(RepoUtils.getRemoteRepoURL(), + initializeProxy(settings.getProxy()), settings.getProxy().username(), + settings.getProxy().password(), getAccessTokenOfCLI(settings)); + ToolSearchResult toolSearchResult = client.searchTool(keyword, + JvmTarget.JAVA_11.code(), + RepoUtils.getBallerinaVersion()); + + List tools = toolSearchResult.getTools(); + if (tools != null && tools.size() > 0) { + printTools(toolSearchResult.getTools(), RepoUtils.getTerminalWidth()); + } else { + outStream.println("no tools found."); + } + } catch (CentralClientException e) { + String errorMessage = e.getMessage(); + if (null != errorMessage && !"".equals(errorMessage.trim())) { + // removing the error stack + if (errorMessage.contains("\n\tat")) { + errorMessage = errorMessage.substring(0, errorMessage.indexOf("\n\tat")); + } + CommandUtil.printError(this.errStream, errorMessage, null, false); + CommandUtil.exitError(this.exitWhenFinish); + } else { + CommandUtil.printError(this.errStream, "error while searching for tools.", null, false); + CommandUtil.exitError(this.exitWhenFinish); + } + } + } private boolean isToolLocallyAvailable(String toolId, String version) { if (version.equals(Names.EMPTY.getValue())) { diff --git a/cli/ballerina-cli/src/main/java/io/ballerina/cli/utils/PrintUtils.java b/cli/ballerina-cli/src/main/java/io/ballerina/cli/utils/PrintUtils.java index 5efa4e4f2dec..e27285fcb339 100644 --- a/cli/ballerina-cli/src/main/java/io/ballerina/cli/utils/PrintUtils.java +++ b/cli/ballerina-cli/src/main/java/io/ballerina/cli/utils/PrintUtils.java @@ -169,7 +169,7 @@ public static void printTools(List tools, String terminalWidth) { outStream.println(); } outStream.println(); - outStream.println(tools.size() + " tools found"); + outStream.println(tools.size() + " tools found."); } /** diff --git a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/ToolCommandTest.java b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/ToolCommandTest.java index a8316b185869..f794e48bf006 100644 --- a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/ToolCommandTest.java +++ b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/ToolCommandTest.java @@ -128,7 +128,7 @@ public void testToolListSubCommandWithArgs() throws IOException { Assert.assertEquals(buildLog.replaceAll("\r", ""), getOutput("tool-list-with-args.txt")); } - @Test(description = "Test tool remove with more than one arguments") + @Test(description = "Test tool remove with more than one argument") public void testToolRemoveSubCommandWithTooManyArgs() throws IOException { ToolCommand toolCommand = new ToolCommand(printStream, printStream, false); new CommandLine(toolCommand).parseArgs("remove", "arg1", "arg2"); @@ -173,6 +173,24 @@ public void testToolRemoveSubCommandWithInvalidToolVersion() throws IOException Assert.assertEquals(buildLog.replaceAll("\r", ""), getOutput("tool-remove-with-invalid-tool-version.txt")); } + @Test(description = "Test tool search with more than one argument") + public void testToolSearchSubCommandWithTooManyArgs() throws IOException { + ToolCommand toolCommand = new ToolCommand(printStream, printStream, false); + new CommandLine(toolCommand).parseArgs("search", "arg1", "arg2"); + toolCommand.execute(); + String buildLog = readOutput(true); + Assert.assertEquals(buildLog.replaceAll("\r", ""), getOutput("tool-search-with-too-many-args.txt")); + } + + @Test(description = "Test tool search with more than no arguments") + public void testToolSearchSubCommandWithNoArgs() throws IOException { + ToolCommand toolCommand = new ToolCommand(printStream, printStream, false); + new CommandLine(toolCommand).parseArgs("search"); + toolCommand.execute(); + String buildLog = readOutput(true); + Assert.assertEquals(buildLog.replaceAll("\r", ""), getOutput("tool-search-with-no-args.txt")); + } + @DataProvider(name = "invalidToolIds") public Object[] invalidToolIds() { return new String[] { "_underscore", "underscore_", "under__score", "1initialnumeric", "..", "special$char"}; diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-no-args.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-no-args.txt new file mode 100644 index 000000000000..d8786ac17268 --- /dev/null +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-no-args.txt @@ -0,0 +1,4 @@ +ballerina: no keyword given. + +USAGE: + bal tool search [|||] diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-too-many-args.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-too-many-args.txt new file mode 100644 index 000000000000..88756253cc5e --- /dev/null +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/unix/tool-search-with-too-many-args.txt @@ -0,0 +1,4 @@ +ballerina: too many arguments. + +USAGE: + bal tool search [|||] diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-no-args.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-no-args.txt new file mode 100644 index 000000000000..d8786ac17268 --- /dev/null +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-no-args.txt @@ -0,0 +1,4 @@ +ballerina: no keyword given. + +USAGE: + bal tool search [|||] diff --git a/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-too-many-args.txt b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-too-many-args.txt new file mode 100644 index 000000000000..88756253cc5e --- /dev/null +++ b/cli/ballerina-cli/src/test/resources/test-resources/command-outputs/windows/tool-search-with-too-many-args.txt @@ -0,0 +1,4 @@ +ballerina: too many arguments. + +USAGE: + bal tool search [|||] diff --git a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java index 853c60d5b2eb..79e4e705b188 100644 --- a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java +++ b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java @@ -105,7 +105,7 @@ public class CentralAPIClient { private static final String TOOLS = "tools"; private static final String CONNECTORS = "connectors"; private static final String TRIGGERS = "triggers"; - private static final String SEARCH = "search"; + private static final String SEARCH_QUERY = "?q="; private static final String RESOLVE_DEPENDENCIES = "resolve-dependencies"; private static final String RESOLVE_MODULES = "resolve-modules"; private static final String DEPRECATE = "deprecate"; @@ -661,7 +661,6 @@ public String[] pullTool(String toolId, String version, Path balaCacheDirPath, S if (balaUrl.isPresent() && org.isPresent() && latestVersion.isPresent() && pkgName.isPresent()) { - // gayaldassanayake-tool_openapi-any-0.1.1.bala String balaFileName = "attachment; filename=" + org.get() + "-" + pkgName.get() + "-any-" + latestVersion.get() + ".bala"; Request downloadBalaRequest = getNewRequest(supportedPlatform, ballerinaVersion) @@ -961,7 +960,7 @@ public ToolSearchResult searchTool(String keyword, String supportedPlatform, Str try { Request searchReq = getNewRequest(supportedPlatform, ballerinaVersion) .get() - .url(this.baseUrl + "/" + TOOLS + "/" + SEARCH + "/" + keyword) + .url(this.baseUrl + "/" + TOOLS + SEARCH_QUERY + keyword) .build(); Call httpRequestCall = client.newCall(searchReq); diff --git a/cli/central-client/src/main/java/org/ballerinalang/central/client/model/ToolSearchResult.java b/cli/central-client/src/main/java/org/ballerinalang/central/client/model/ToolSearchResult.java index 6763675d8afc..a64b74076cfe 100644 --- a/cli/central-client/src/main/java/org/ballerinalang/central/client/model/ToolSearchResult.java +++ b/cli/central-client/src/main/java/org/ballerinalang/central/client/model/ToolSearchResult.java @@ -24,13 +24,13 @@ * {@code ToolJsonSchema} represents tool search result from central. */ public class ToolSearchResult { - private List packages; + private List tools; public List getTools() { - return packages; + return tools; } public void setTools(List tools) { - this.packages = tools; + this.tools = tools; } } From e6f154176ebc87dc80536645c12000a619ba2a63 Mon Sep 17 00:00:00 2001 From: Gayal Dassanayake Date: Tue, 20 Jun 2023 10:52:30 +0530 Subject: [PATCH 066/122] Fix tool pull bad-sad for unauthorized response --- .../central/client/CentralAPIClient.java | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java index 853c60d5b2eb..3678e268f45d 100644 --- a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java +++ b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java @@ -698,7 +698,7 @@ public String[] pullTool(String toolId, String version, Path balaCacheDirPath, S // Unauthorized access token if (packagePullResponse.code() == HTTP_UNAUTHORIZED) { - handleUnauthorizedResponse(body); + handleUnauthorizedResponse(body, pkgPullResBodyContent); } if (body.isPresent()) { @@ -1488,6 +1488,7 @@ public JsonObject getTrigger(String id, String supportedPlatform, String balleri * * @param org org name * @param body response body + * @param responseBody error message * @throws IOException when accessing response body * @throws CentralClientException with unauthorized error message */ @@ -1506,6 +1507,29 @@ private void handleUnauthorizedResponse(String org, Optional body, } } + /** + * Handle unauthorized response. + * + * @param body response body + * @param responseBody error message + * @throws IOException when accessing response body + * @throws CentralClientException with unauthorized error message + */ + private void handleUnauthorizedResponse(Optional body, String responseBody) + throws IOException, CentralClientException { + if (body.isPresent()) { + Optional contentType = Optional.ofNullable(body.get().contentType()); + if (contentType.isPresent() && isApplicationJsonContentType(contentType.get().toString())) { + Error error = new Gson().fromJson(responseBody, Error.class); + throw new CentralClientException("unauthorized access token. " + + "check access token set in 'Settings.toml' file. reason: " + error.getMessage()); + } else { + throw new CentralClientException("unauthorized access token. " + + "check access token set in 'Settings.toml' file."); + } + } + } + /** * Handle unauthorized response. * From 352b7dde8a69b9da44b3dbc0fbdb66934157ede4 Mon Sep 17 00:00:00 2001 From: malinthar Date: Fri, 23 Jun 2023 15:32:32 +0530 Subject: [PATCH 067/122] Add test case --- .../Dependencies.toml | 17 +++++++++++++++++ .../main.bal | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml new file mode 100644 index 000000000000..0778843de72e --- /dev/null +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml @@ -0,0 +1,17 @@ +# AUTO-GENERATED FILE. DO NOT MODIFY. + +# This file is auto-generated by Ballerina for managing dependency versions. +# It should not be modified by hand. + +[ballerina] +dependencies-toml-version = "2" +distribution-version = "2201.5.1-20230616-211200-8f5066c0" + +[[package]] +org = "lstest" +name = "package_comp_plugin_with_completions" +version = "0.1.0" +modules = [ + {org = "lstest", packageName = "package_comp_plugin_with_completions", moduleName = "package_comp_plugin_with_completions"} +] + diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal index 7b80c7ec703f..2cf15b5c6c0a 100644 --- a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal @@ -23,7 +23,7 @@ public class Listener { return (); } - public function init(int port) { + public function init(int port) returns error?{ } public function initEndpoint() returns error? { From 9a0652978b0ef120140156132add871ff585d4ff Mon Sep 17 00:00:00 2001 From: malinthar Date: Fri, 23 Jun 2023 19:11:44 +0530 Subject: [PATCH 068/122] Fix compiler plugin completions --- compiler/ballerina-lang/spotbugs-exclude.xml | 6 ++++ .../ballerina/projects/CompletionManager.java | 16 ++++++++-- .../plugins/completion/CompletionUtil.java | 31 +++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) diff --git a/compiler/ballerina-lang/spotbugs-exclude.xml b/compiler/ballerina-lang/spotbugs-exclude.xml index 8e94d0b00d64..824f58ebd5e4 100644 --- a/compiler/ballerina-lang/spotbugs-exclude.xml +++ b/compiler/ballerina-lang/spotbugs-exclude.xml @@ -451,4 +451,10 @@ + + + + + + diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java index 13d6fa4e6e17..65079efa14be 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -18,13 +18,16 @@ import io.ballerina.compiler.api.symbols.ModuleSymbol; import io.ballerina.compiler.api.symbols.ServiceDeclarationSymbol; import io.ballerina.compiler.api.symbols.Symbol; +import io.ballerina.compiler.api.symbols.TypeDescKind; import io.ballerina.compiler.api.symbols.TypeSymbol; +import io.ballerina.compiler.api.symbols.UnionTypeSymbol; import io.ballerina.compiler.syntax.tree.Node; import io.ballerina.compiler.syntax.tree.ServiceDeclarationNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; import io.ballerina.projects.plugins.completion.CompletionContext; import io.ballerina.projects.plugins.completion.CompletionException; import io.ballerina.projects.plugins.completion.CompletionProvider; +import io.ballerina.projects.plugins.completion.CompletionUtil; import io.ballerina.tools.text.LinePosition; import java.util.ArrayList; @@ -142,8 +145,17 @@ private List getModulesOfActiveListeners(CompletionContext context return Collections.emptyList(); } List listenerTypes = ((ServiceDeclarationSymbol) serviceSymbol.get()).listenerTypes(); - return listenerTypes.stream().filter(listenerType -> listenerType.getModule().isPresent()) - .map(listenerType -> listenerType.getModule().get()).collect(Collectors.toList()); + return listenerTypes.stream().map(listenerType -> { + if (listenerType.typeKind() == TypeDescKind.UNION) { + return ((UnionTypeSymbol) listenerType).memberTypeDescriptors() + .stream() + .filter(memberType -> + CompletionUtil.getRawType(memberType).typeKind() == TypeDescKind.OBJECT) + .findAny(); + } + return Optional.of(listenerType); + }).filter(listenerType -> listenerType.isPresent() && listenerType.get().getModule().isPresent()) + .map(listenerType -> listenerType.get().getModule().get()).collect(Collectors.toList()); } private boolean isInServiceBodyNodeContext(CompletionContext context, Node referenceNode) { diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java index fd7cacb6c8a4..2ba57cefb2e0 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java @@ -15,6 +15,11 @@ */ package io.ballerina.projects.plugins.completion; +import io.ballerina.compiler.api.symbols.IntersectionTypeSymbol; +import io.ballerina.compiler.api.symbols.TypeDescKind; +import io.ballerina.compiler.api.symbols.TypeReferenceTypeSymbol; +import io.ballerina.compiler.api.symbols.TypeSymbol; + /** * Util class for completion providers. * @@ -32,4 +37,30 @@ public static String getPlaceHolderText(int index, String defaultValue) { public static String getPlaceHolderText(int index) { return "${" + index + "}"; } + + /** + * Get the raw type of the type descriptor. If the type descriptor is a type reference then return the associated + * type descriptor. + * + * @param typeDescriptor type descriptor to evaluate + * @return {@link TypeSymbol} extracted type descriptor + */ + public static TypeSymbol getRawType(TypeSymbol typeDescriptor) { + if (typeDescriptor.typeKind() == TypeDescKind.INTERSECTION) { + return getRawType(((IntersectionTypeSymbol) typeDescriptor).effectiveTypeDescriptor()); + } + if (typeDescriptor.typeKind() == TypeDescKind.TYPE_REFERENCE) { + TypeReferenceTypeSymbol typeRef = (TypeReferenceTypeSymbol) typeDescriptor; + if (typeRef.typeDescriptor().typeKind() == TypeDescKind.INTERSECTION) { + return getRawType(((IntersectionTypeSymbol) typeRef.typeDescriptor()).effectiveTypeDescriptor()); + } + TypeSymbol rawType = typeRef.typeDescriptor(); + if (rawType.typeKind() == TypeDescKind.TYPE_REFERENCE) { + return getRawType(rawType); + } + return rawType; + } + return typeDescriptor; + } + } From 95ec0d23599a04f3db3fb0ee857452c2f26794e4 Mon Sep 17 00:00:00 2001 From: malinthar Date: Fri, 23 Jun 2023 20:35:36 +0530 Subject: [PATCH 069/122] Fix failing defintion tests --- .../langserver/definition/DefinitionUtil.java | 7 ++++--- .../definition/BalaSchemeDefinitionTest.java | 7 ++++--- .../Dependencies.toml | 17 ----------------- 3 files changed, 8 insertions(+), 23 deletions(-) delete mode 100644 project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/definition/DefinitionUtil.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/definition/DefinitionUtil.java index 1176554e551b..617354686954 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/definition/DefinitionUtil.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/definition/DefinitionUtil.java @@ -93,16 +93,17 @@ private static Optional getLocation(Symbol symbol, BallerinaDefinition return Optional.empty(); } + Path absFilePath = filepath.get().normalize().toAbsolutePath(); String fileUri; // Check if file resides in a protected dir - if (PathUtil.isWriteProtectedPath(filepath.get())) { + if (PathUtil.isWriteProtectedPath(absFilePath)) { try { - fileUri = PathUtil.getBalaUriForPath(context.languageServercontext(), filepath.get()); + fileUri = PathUtil.getBalaUriForPath(context.languageServercontext(), absFilePath); } catch (URISyntaxException e) { throw new UserErrorException("Unable create definition file URI"); } } else { - fileUri = filepath.get().toUri().toString(); + fileUri = absFilePath.toUri().toString(); } io.ballerina.tools.diagnostics.Location symbolLocation = symbol.getLocation().get(); diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java index b5994787942e..8d5923cd2c1d 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/definition/BalaSchemeDefinitionTest.java @@ -31,18 +31,18 @@ */ public class BalaSchemeDefinitionTest extends DefinitionTest { - @Test(enabled = false, description = "Test goto definitions", dataProvider = "testDataProvider") + @Test(description = "Test goto definitions", dataProvider = "testDataProvider") public void test(String configPath, String configDir) throws IOException { super.test(configPath, configDir); } - @Test(enabled = false, description = "Test goto definitions for standard libs", + @Test(description = "Test goto definitions for standard libs", dataProvider = "testStdLibDataProvider") public void testStdLibDefinition(String configPath, String configDir) throws IOException, URISyntaxException { super.testStdLibDefinition(configPath, configDir); } - @Test(enabled = false, dataProvider = "testInterStdLibDataProvider") + @Test(dataProvider = "testInterStdLibDataProvider") public void testInterStdLibDefinition(String configPath, String configDir) throws IOException, URISyntaxException { super.testInterStdLibDefinition(configPath, configDir); } @@ -54,6 +54,7 @@ protected Endpoint getServiceEndpoint() { .build(); } + @Override protected String getExpectedUriScheme() { return CommonUtil.URI_SCHEME_BALA; } diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml deleted file mode 100644 index 0778843de72e..000000000000 --- a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/Dependencies.toml +++ /dev/null @@ -1,17 +0,0 @@ -# AUTO-GENERATED FILE. DO NOT MODIFY. - -# This file is auto-generated by Ballerina for managing dependency versions. -# It should not be modified by hand. - -[ballerina] -dependencies-toml-version = "2" -distribution-version = "2201.5.1-20230616-211200-8f5066c0" - -[[package]] -org = "lstest" -name = "package_comp_plugin_with_completions" -version = "0.1.0" -modules = [ - {org = "lstest", packageName = "package_comp_plugin_with_completions", moduleName = "package_comp_plugin_with_completions"} -] - From a352170703183cf4600673de5100d6f129a5b316 Mon Sep 17 00:00:00 2001 From: Fathima Dilhasha Date: Tue, 20 Jun 2023 17:54:29 +0530 Subject: [PATCH 070/122] Add test cases for graalvm compatibility checks --- .../ballerina/cli/cmd/BuildCommandTest.java | 52 +++++++++++++++++++ .../io/ballerina/cli/cmd/PackCommandTest.java | 23 +++++--- .../io/ballerina/cli/cmd/TestCommandTest.java | 16 ++++++ .../Ballerina.toml | 10 ++++ .../validGraalvmCompatibleProject/main.bal | 3 ++ .../tests/main_tests.bal | 6 +++ .../projects/BallerinaTomlTests.java | 1 + .../ballerina-toml/valid-ballerina.toml | 4 ++ 8 files changed, 108 insertions(+), 7 deletions(-) create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/Ballerina.toml create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/main.bal create mode 100644 cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/tests/main_tests.bal diff --git a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildCommandTest.java b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildCommandTest.java index 0bdf287379ca..db1b6bfeaed1 100644 --- a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildCommandTest.java +++ b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/BuildCommandTest.java @@ -1250,4 +1250,56 @@ private void validateBuildTimeInfo(String buildLog) { "Missing testingExecutionDuration field in build time logs"); Assert.assertTrue(buildLog.contains("totalDuration"), "Missing totalDuration field in build time logs"); } + + @Test(description = "Check GraalVM compatibility of build project") + public void testGraalVMCompatibilityOfJavaImportedProject() throws IOException { + // Project contains only dist provided Java dependencies + Path projectPath = this.testResources.resolve("validJava11Project"); + System.setProperty("user.dir", projectPath.toString()); + BuildCommand buildCommand = new BuildCommand(projectPath, printStream, printStream, false); + // non existing bal file + new CommandLine(buildCommand).parseArgs("--graalvm"); + try { + buildCommand.execute(); + } catch (BLauncherException e) { + String buildLog = readOutput(true); + Assert.assertTrue(buildLog.contains("Compiling source") && buildLog.contains("foo/winery:0.1.0") && + !buildLog.contains("WARNING: Package is not verified with GraalVM")); + } + } + + @Test(description = "Check GraalVM compatibility of build project") + public void testGraalVMCompatibilityOfJava11Project() throws IOException { + // Project contains platform Java dependencies + Path projectPath = this.testResources.resolve("validProjectWithPlatformLibs"); + System.setProperty("user.dir", projectPath.toString()); + BuildCommand buildCommand = new BuildCommand(projectPath, printStream, printStream, false); + // non existing bal file + new CommandLine(buildCommand).parseArgs("--graalvm"); + try { + buildCommand.execute(); + } catch (BLauncherException e) { + String buildLog = readOutput(true); + Assert.assertTrue(buildLog.contains("Compiling source") && + buildLog.contains("sameera/myproject:0.1.0") && + buildLog.contains("WARNING: Package is not verified with GraalVM")); + } + } + + @Test(description = "Check GraalVM compatibility of build project") + public void testGraalVMCompatibilityOfAnyProject() throws IOException { + // Project contains platform Java dependencies + Path projectPath = this.testResources.resolve("validApplicationProject"); + System.setProperty("user.dir", projectPath.toString()); + BuildCommand buildCommand = new BuildCommand(projectPath, printStream, printStream, false); + // non existing bal file + new CommandLine(buildCommand).parseArgs("--graalvm"); + try { + buildCommand.execute(); + } catch (BLauncherException e) { + String buildLog = readOutput(true); + Assert.assertTrue(buildLog.contains("Compiling source") && buildLog.contains("foo/winery:0.1.0") + && !buildLog.contains("WARNING: Package is not verified with GraalVM")); + } + } } diff --git a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/PackCommandTest.java b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/PackCommandTest.java index 223a2a4b25e5..f2ff2c238a31 100644 --- a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/PackCommandTest.java +++ b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/PackCommandTest.java @@ -95,17 +95,14 @@ public void testPackApplicationPackage() { } @Test(description = "Pack a Standalone Ballerina file") - public void testPackStandaloneFile() { + public void testPackStandaloneFile() throws IOException { Path projectPath = this.testResources.resolve("valid-bal-file").resolve("hello_world.bal"); System.setProperty("user.dir", this.testResources.resolve("valid-bal-file").toString()); PackCommand packCommand = new PackCommand(projectPath, printStream, printStream, false, true); new CommandLine(packCommand).parseArgs(); - try { - packCommand.execute(); - } catch (BLauncherException e) { - Assert.assertTrue(e.getDetailedMessages().get(0) - .contains("'-c' or '--compile' can only be used with a Ballerina package.")); - } + packCommand.execute(); + String buildLog = readOutput(true); + Assert.assertTrue(buildLog.contains(" bal pack can only be used with a Ballerina package.")); } @Test(description = "Pack a package with platform libs") @@ -359,4 +356,16 @@ public void testPackTemplatePackageWithACompilerPackageDependency() throws IOExc Assert.assertFalse(mainBalContent.contains("public function newFunctionByCodeModifiermain(string params) " + "returns error? {\n}")); } + + @Test(description = "Pack a library package with platform libraries") + public void testPackProjectWithPlatformLibs() throws IOException { + Path projectPath = this.testResources.resolve("validProjectWithPlatformLibs"); + System.setProperty("user.dir", projectPath.toString()); + + PackCommand packCommand = new PackCommand(projectPath, printStream, printStream, false, true); + new CommandLine(packCommand).parseArgs(); + packCommand.execute(); + String buildLog = readOutput(true); + Assert.assertTrue(buildLog.contains("WARNING: Package is not verified with GraalVM.")); + } } diff --git a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/TestCommandTest.java b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/TestCommandTest.java index f91bbc58251e..d8f7901e88a8 100644 --- a/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/TestCommandTest.java +++ b/cli/ballerina-cli/src/test/java/io/ballerina/cli/cmd/TestCommandTest.java @@ -393,4 +393,20 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) return FileVisitResult.CONTINUE; } } + + @Test(description = "Test Graalvm incompatible ballerina project") + public void testGraalVMIncompatibleProject() throws IOException { + Path projectPath = this.testResources.resolve("validGraalvmCompatibleProject"); + System.setProperty(ProjectConstants.USER_DIR, projectPath.toString()); + TestCommand testCommand = new TestCommand(projectPath, printStream, printStream, false); + // non existing bal file + new CommandLine(testCommand).parseArgs("--graalvm"); + try { + testCommand.execute(); + } catch (BLauncherException e) { + String buildLog = readOutput(true); + Assert.assertTrue(buildLog.contains("WARNING: Package is not compatible with GraalVM.")); + } + } + } diff --git a/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/Ballerina.toml b/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/Ballerina.toml new file mode 100644 index 000000000000..83f87bd1883f --- /dev/null +++ b/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/Ballerina.toml @@ -0,0 +1,10 @@ +[package] +org = "dilhashanazeer" +name = "validGraalvmCompatibleProject" +version = "0.1.0" + +[platform.java11] +graalvmCompatible = false + +[[platform.java11.dependency]] +path = "./libs/one-1.0.0.jar" diff --git a/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/main.bal b/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/main.bal new file mode 100644 index 000000000000..6d0ccb5ba65d --- /dev/null +++ b/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/main.bal @@ -0,0 +1,3 @@ + +public function main() { +} diff --git a/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/tests/main_tests.bal b/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/tests/main_tests.bal new file mode 100644 index 000000000000..a6d5311e0b07 --- /dev/null +++ b/cli/ballerina-cli/src/test/resources/test-resources/validGraalvmCompatibleProject/tests/main_tests.bal @@ -0,0 +1,6 @@ +import ballerina/test; + +@test:Config{} +function beforeFunc() { + test:assertTrue(true, msg = "Failed!"); +} diff --git a/compiler/ballerina-lang/src/test/java/io/ballerina/projects/BallerinaTomlTests.java b/compiler/ballerina-lang/src/test/java/io/ballerina/projects/BallerinaTomlTests.java index 1d014cae9e23..2e74776d89bd 100644 --- a/compiler/ballerina-lang/src/test/java/io/ballerina/projects/BallerinaTomlTests.java +++ b/compiler/ballerina-lang/src/test/java/io/ballerina/projects/BallerinaTomlTests.java @@ -63,6 +63,7 @@ public void testValidBallerinaToml() throws IOException { PackageManifest.Platform platform = packageManifest.platform("java11"); List> platformDependencies = platform.dependencies(); Assert.assertEquals(platformDependencies.size(), 2); + Assert.assertEquals(platform.graalvmCompatible().booleanValue(), true); for (Map library : platformDependencies) { Assert.assertTrue(library.get("path").equals("../dummy-jars/toml4j.txt") || library.get("path").equals("../dummy-jars/swagger.txt")); diff --git a/compiler/ballerina-lang/src/test/resources/ballerina-toml/valid-ballerina.toml b/compiler/ballerina-lang/src/test/resources/ballerina-toml/valid-ballerina.toml index 756e452f12c6..763fd96852bc 100644 --- a/compiler/ballerina-lang/src/test/resources/ballerina-toml/valid-ballerina.toml +++ b/compiler/ballerina-lang/src/test/resources/ballerina-toml/valid-ballerina.toml @@ -9,6 +9,10 @@ repository= "https://github.com/ballerina-platform/ballerina-lang" distribution= "slbeta2" visibility= "private" + +[platform.java11] +graalvmCompatible = true + [[platform.java11.dependency]] path = "../dummy-jars/toml4j.txt" artifactId = "toml4j" From 3083f0a89f6e35cb658f661a61935878cd239e3e Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 28 Jun 2023 12:29:24 +0530 Subject: [PATCH 071/122] Do not show private fields in classes --- .../ballerinalang/docgen/generator/model/Type.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java index 98650d5042f0..ccdbed9a7ae0 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java @@ -387,12 +387,14 @@ public static Type fromSemanticSymbol(Symbol symbol, Optional doc ObjectType objType = new ObjectType(); objType.name = objectTypeSymbol.getName().isPresent() ? objectTypeSymbol.getName().get() : ""; objectTypeSymbol.fieldDescriptors().forEach((name, field) -> { - Type objField = new Type(); - objField.name = name; - objField.description = documentation.isPresent() ? documentation.get().parameterMap().get(name) : ""; - objField.elementType = fromSemanticSymbol(field.typeDescriptor(), documentation, parentTypeRefSymbol, - isTypeInclusion, module); - objType.memberTypes.add(objField); + if (field.qualifiers().contains(Qualifier.PUBLIC)) { + Type objField = new Type(); + objField.name = name; + objField.description = documentation.isPresent() ? documentation.get().parameterMap().get(name) : ""; + objField.elementType = fromSemanticSymbol(field.typeDescriptor(), documentation, parentTypeRefSymbol, + isTypeInclusion, module); + objType.memberTypes.add(objField); + } }); List functionTypes = new ArrayList<>(); objectTypeSymbol.methods().forEach((methodName, methodSymbol) -> { From 2407d4ec7b3bfcd74f8e357d9ec5c3509d587852 Mon Sep 17 00:00:00 2001 From: ShammiL Date: Wed, 28 Jun 2023 14:14:22 +0530 Subject: [PATCH 072/122] Update Ballerina.io reference links --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 275b10aaf04a..e0031dca5694 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ the source code. You can use one of the following options to try out Ballerina. -* [Set up Ballerina](https://ballerina.io/learn/install-ballerina/set-up-ballerina/) +* [Set up Ballerina](https://ballerina.io/learn/get-started/) * [Ballerina Playground](https://play.ballerina.io/) You can use following resources to learn Ballerina. @@ -52,7 +52,7 @@ For instructions on downloading and installing, see [Ballerina Downloads](https: ### Installation options -For more installation options, see [Installation options](https://ballerina.io/learn/install-ballerina/installation-options/). +For more installation options, see [Installation options](https://ballerina.io/downloads/installation-options/). ### Get the VS Code extension From 12a3fd3b3f997e95e5b2227804ea8555dcb4cd6d Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Wed, 28 Jun 2023 14:18:49 +0530 Subject: [PATCH 073/122] Fix checkstyle issue --- .../org/ballerinalang/docgen/generator/model/Type.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java index ccdbed9a7ae0..ab4955e30f85 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java @@ -390,9 +390,10 @@ public static Type fromSemanticSymbol(Symbol symbol, Optional doc if (field.qualifiers().contains(Qualifier.PUBLIC)) { Type objField = new Type(); objField.name = name; - objField.description = documentation.isPresent() ? documentation.get().parameterMap().get(name) : ""; - objField.elementType = fromSemanticSymbol(field.typeDescriptor(), documentation, parentTypeRefSymbol, - isTypeInclusion, module); + objField.description = documentation.isPresent() ? + documentation.get().parameterMap().get(name) : ""; + objField.elementType = fromSemanticSymbol(field.typeDescriptor(), documentation, + parentTypeRefSymbol, isTypeInclusion, module); objType.memberTypes.add(objField); } }); From fcad4854705f882696c1dc32151ab43a57e94fe2 Mon Sep 17 00:00:00 2001 From: kavindu Date: Wed, 28 Jun 2023 09:39:29 +0530 Subject: [PATCH 074/122] Completion for init --- .../context/FunctionTypeDescriptorNodeContext.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java index 2bfe12684108..613d8b3aa81e 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java @@ -27,6 +27,7 @@ import io.ballerina.tools.text.TextRange; import org.ballerinalang.annotation.JavaSPIService; import org.ballerinalang.langserver.common.utils.CommonUtil; +import org.ballerinalang.langserver.common.utils.PositionUtil; import org.ballerinalang.langserver.commons.BallerinaCompletionContext; import org.ballerinalang.langserver.commons.completion.LSCompletionItem; import org.ballerinalang.langserver.completions.SnippetCompletionItem; @@ -34,6 +35,8 @@ import org.ballerinalang.langserver.completions.util.QNameRefCompletionUtil; import org.ballerinalang.langserver.completions.util.Snippet; import org.ballerinalang.langserver.completions.util.SortingUtil; +import org.eclipse.lsp4j.Range; +import org.eclipse.lsp4j.TextEdit; import java.util.ArrayList; import java.util.List; @@ -76,6 +79,15 @@ public List getCompletions(BallerinaCompletionContext context, ruleContext = RuleContext.PARAMETER_CTX; } else if (this.withinReturnKWContext(context, node)) { completionItems.add(new SnippetCompletionItem(context, Snippet.KW_RETURNS.get())); + } else if (node.parent().kind() == SyntaxKind.OBJECT_FIELD) { + SnippetCompletionItem xx = new SnippetCompletionItem(context, Snippet.DEF_INIT_FUNCTION.get()); +// Range range = PositionUtil.toRange(56, context.getCursorPositionInTree(), context.currentDocument().get().textDocument()); + Range range = PositionUtil.toRange(node.functionKeyword().textRange().startOffset(), node.functionKeyword().textRangeWithMinutiae().endOffset(), context.currentDocument().get().textDocument()); + TextEdit textEdit = new TextEdit(range, ""); + xx.getCompletionItem().setAdditionalTextEdits(List.of(textEdit)); + completionItems.add(xx); + +// completionItems.add(new SnippetCompletionItem(context, Snippet.DEF_FUNCTION.get())); } this.sort(context, node, completionItems, ruleContext); From 10959eb7658263faa869cf0619e4dd2a78215e07 Mon Sep 17 00:00:00 2001 From: prakanth <50439067+prakanth97@users.noreply.github.com> Date: Thu, 29 Jun 2023 13:44:59 +0530 Subject: [PATCH 075/122] Fix error msg for function call syntax on variable --- .../util/diagnostic/DiagnosticErrorCode.java | 1 + .../compiler/semantics/analyzer/TypeChecker.java | 9 ++++++++- .../src/main/resources/compiler.properties | 5 ++++- .../test/functions/UndefinedFunctionsTest.java | 9 ++++++--- .../org/ballerinalang/test/record/ClosedRecordTest.java | 2 +- .../test/variable/shadowing/ShadowingNegativeTest.java | 1 + .../test-src/variable/shadowing/shadowing_negative.bal | 8 ++++++++ 7 files changed, 29 insertions(+), 6 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/ballerinalang/util/diagnostic/DiagnosticErrorCode.java b/compiler/ballerina-lang/src/main/java/org/ballerinalang/util/diagnostic/DiagnosticErrorCode.java index 69cfbfb71dd3..8319d56f1ce0 100644 --- a/compiler/ballerina-lang/src/main/java/org/ballerinalang/util/diagnostic/DiagnosticErrorCode.java +++ b/compiler/ballerina-lang/src/main/java/org/ballerinalang/util/diagnostic/DiagnosticErrorCode.java @@ -422,6 +422,7 @@ public enum DiagnosticErrorCode implements DiagnosticCode { INVALID_FIELD_BINDING_PATTERN_WITH_NON_REQUIRED_FIELD("BCE2653", "invalid.field.binding.pattern.with.non.required.field"), INFER_SIZE_ONLY_SUPPORTED_IN_FIRST_DIMENSION("BCE2654", "infer.size.only.supported.in.the.first.dimension"), + FUNCTION_CALL_SYNTAX_NOT_DEFINED("BCE2655", "function.call.syntax.not.defined"), // Error codes related to iteration. ITERABLE_NOT_SUPPORTED_COLLECTION("BCE2800", "iterable.not.supported.collection"), diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java index f6ec8686c430..cb757202fa8f 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeChecker.java @@ -6395,7 +6395,14 @@ private void checkFunctionInvocationExpr(BLangInvocation iExpr, AnalyzerData dat } } - if (funcSymbol == symTable.notFoundSymbol || isNotFunction(funcSymbol)) { + if (funcSymbol != symTable.notFoundSymbol && isNotFunction(funcSymbol)) { + dlog.error(iExpr.pos, DiagnosticErrorCode.FUNCTION_CALL_SYNTAX_NOT_DEFINED, funcSymbol.type); + iExpr.argExprs.forEach(arg -> checkExpr(arg, data)); + data.resultType = symTable.semanticError; + return; + } + + if (funcSymbol == symTable.notFoundSymbol) { if (!missingNodesHelper.isMissingNode(funcName)) { dlog.error(iExpr.pos, DiagnosticErrorCode.UNDEFINED_FUNCTION, funcName); } diff --git a/compiler/ballerina-lang/src/main/resources/compiler.properties b/compiler/ballerina-lang/src/main/resources/compiler.properties index 6a1117af3a94..180201655d73 100644 --- a/compiler/ballerina-lang/src/main/resources/compiler.properties +++ b/compiler/ballerina-lang/src/main/resources/compiler.properties @@ -1993,4 +1993,7 @@ error.variable.is.sequenced.more.than.once=\ ''{0}'' is sequenced more than once error.invalid.grouping.key.type=\ - invalid grouping key type ''{0}'', expected a subtype of ''anydata'' \ No newline at end of file + invalid grouping key type ''{0}'', expected a subtype of ''anydata'' + +error.function.call.syntax.not.defined=\ + function call syntax is not defined for ''{0}'' diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/functions/UndefinedFunctionsTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/functions/UndefinedFunctionsTest.java index d0adbe103dae..ae3ff0123051 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/functions/UndefinedFunctionsTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/functions/UndefinedFunctionsTest.java @@ -48,10 +48,13 @@ public void testUndefinedFunctions() { BAssertUtil.validateError(result, i++, "undefined function 'length' in type 'string?'", 17, 30); BAssertUtil.validateError(result, i++, "undefined function 'delete' in type 'map'", 26, 13); BAssertUtil.validateError(result, i++, "undefined function 'func' in type '(ManagerR|CompanyR)'", 43, 13); - BAssertUtil.validateError(result, i++, "undefined function 'func1'", 46, 9); - BAssertUtil.validateError(result, i++, "undefined function 'func2'", 49, 9); + BAssertUtil.validateError(result, i++, "function call syntax is not defined for " + + "'(function (int) returns (int)|function (int) returns (string))'", 46, 9); + BAssertUtil.validateError(result, i++, "function call syntax is not defined for " + + "'(function (int) returns (int)|function (int) returns (string))'", 49, 9); BAssertUtil.validateError(result, i++, "undefined function 'func' in type '(ManagerR|EmployeeR)'", 52, 13); - BAssertUtil.validateError(result, i++, "undefined function 'func3'", 55, 9); + BAssertUtil.validateError(result, i++, "function call syntax is not defined for " + + "'(function (int) returns (int)|function (int) returns (string))'", 55, 9); Assert.assertEquals(result.getErrorCount(), i); } diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ClosedRecordTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ClosedRecordTest.java index 5b99eb3f0479..12c4b5c0ef79 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ClosedRecordTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/record/ClosedRecordTest.java @@ -247,7 +247,7 @@ public void testAmbiguityResolutionNegative() { @Test(description = "Test invocation of nil-able function pointer fields in a closed record") public void testNilableFunctionPtrInvocation() { CompileResult result = BCompileUtil.compile("test-src/record/negative/closed_record_nil-able_fn_ptr.bal"); - String errMsg = "undefined function 'fp'"; + String errMsg = "function call syntax is not defined for 'function (string,string) returns (string)?'"; int indx = 0; BAssertUtil.validateError(result, indx++, errMsg, 29, 17); BAssertUtil.validateError(result, indx++, errMsg, 35, 17); diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/variable/shadowing/ShadowingNegativeTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/variable/shadowing/ShadowingNegativeTest.java index a44d07b246f2..c609f2d7476e 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/variable/shadowing/ShadowingNegativeTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/variable/shadowing/ShadowingNegativeTest.java @@ -58,6 +58,7 @@ public void testShadowedVariables() { BAssertUtil.validateError(compileResult, index++, "unknown type 'Vehicle'", 134, 5); BAssertUtil.validateError(compileResult, index++, "unknown type 'returnVal'", 139, 40); BAssertUtil.validateError(compileResult, index++, "redeclared symbol 'Foo'", 147, 6); + BAssertUtil.validateError(compileResult, index++, "function call syntax is not defined for 'string'", 154, 9); assertEquals(index, compileResult.getErrorCount()); } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/variable/shadowing/shadowing_negative.bal b/tests/jballerina-unit-test/src/test/resources/test-src/variable/shadowing/shadowing_negative.bal index 1a57d1c9d98a..c374109aa49b 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/variable/shadowing/shadowing_negative.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/variable/shadowing/shadowing_negative.bal @@ -145,3 +145,11 @@ public enum Foo { } type Foo int; + +function shadowFn() returns string { +} + +function testShadowing() { + string shadowFn = "A"; + _ = shadowFn(); +} From 1b52e5face98daca7ec8d894883fb6979ef7cfc9 Mon Sep 17 00:00:00 2001 From: kavindu Date: Thu, 29 Jun 2023 21:02:46 +0530 Subject: [PATCH 076/122] Add tests for init function completions --- .../FunctionTypeDescriptorNodeContext.java | 32 +++++++++++--- .../completion/FunctionDefinitionTest.java | 9 ++++ .../function_def/config/config24.json | 43 +++++++++++++++++++ .../function_def/config/config25.json | 43 +++++++++++++++++++ .../function_def/config/config26.json | 43 +++++++++++++++++++ .../function_def/source/source23.bal | 5 +++ .../function_def/source/source24.bal | 5 +++ .../function_def/source/source25.bal | 5 +++ 8 files changed, 178 insertions(+), 7 deletions(-) create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source23.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source24.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source25.bal diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java index 613d8b3aa81e..bcf2a8baa99d 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java @@ -18,6 +18,8 @@ import io.ballerina.compiler.api.symbols.Symbol; import io.ballerina.compiler.syntax.tree.FunctionSignatureNode; import io.ballerina.compiler.syntax.tree.FunctionTypeDescriptorNode; +import io.ballerina.compiler.syntax.tree.Minutiae; +import io.ballerina.compiler.syntax.tree.MinutiaeList; import io.ballerina.compiler.syntax.tree.Node; import io.ballerina.compiler.syntax.tree.NonTerminalNode; import io.ballerina.compiler.syntax.tree.QualifiedNameReferenceNode; @@ -80,20 +82,36 @@ public List getCompletions(BallerinaCompletionContext context, } else if (this.withinReturnKWContext(context, node)) { completionItems.add(new SnippetCompletionItem(context, Snippet.KW_RETURNS.get())); } else if (node.parent().kind() == SyntaxKind.OBJECT_FIELD) { - SnippetCompletionItem xx = new SnippetCompletionItem(context, Snippet.DEF_INIT_FUNCTION.get()); -// Range range = PositionUtil.toRange(56, context.getCursorPositionInTree(), context.currentDocument().get().textDocument()); - Range range = PositionUtil.toRange(node.functionKeyword().textRange().startOffset(), node.functionKeyword().textRangeWithMinutiae().endOffset(), context.currentDocument().get().textDocument()); + SnippetCompletionItem initFuncCompletionItem = + new SnippetCompletionItem(context, Snippet.DEF_INIT_FUNCTION.get()); + Token funcKW = node.functionKeyword(); + int endOffset = getEndPosWithoutNewLine(funcKW); + Range range = PositionUtil.toRange(funcKW.textRange().startOffset(), endOffset, + context.currentDocument().get().textDocument()); TextEdit textEdit = new TextEdit(range, ""); - xx.getCompletionItem().setAdditionalTextEdits(List.of(textEdit)); - completionItems.add(xx); - -// completionItems.add(new SnippetCompletionItem(context, Snippet.DEF_FUNCTION.get())); + initFuncCompletionItem.getCompletionItem().setAdditionalTextEdits(List.of(textEdit)); + completionItems.add(initFuncCompletionItem); + completionItems.add(new SnippetCompletionItem(context, Snippet.DEF_FUNCTION.get())); } this.sort(context, node, completionItems, ruleContext); return completionItems; } + private int getEndPosWithoutNewLine(Token token) { + int end = token.textRangeWithMinutiae().endOffset(); + MinutiaeList minutiaeList = token.trailingMinutiae(); + int size = minutiaeList.size(); + if (size == 0) { + return end; + } + Minutiae lastMinutiae = minutiaeList.get(size - 1); + if (lastMinutiae.kind() == SyntaxKind.END_OF_LINE_MINUTIAE) { + return size == 1 ? token.textRange().startOffset() : end - 1; + } + return end; + } + @Override protected List getCompletionItemsOnQualifiers(Node node, BallerinaCompletionContext context) { List completionItems = new ArrayList<>(super.getCompletionItemsOnQualifiers(node, context)); diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/FunctionDefinitionTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/FunctionDefinitionTest.java index 15a62ea22a8e..1b567be56ce5 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/FunctionDefinitionTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/FunctionDefinitionTest.java @@ -17,7 +17,11 @@ */ package org.ballerinalang.langserver.completion; +import org.ballerinalang.langserver.commons.workspace.WorkspaceDocumentException; import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import java.io.IOException; /** * Function Definition Context tests. @@ -31,6 +35,11 @@ public Object[][] dataProvider() { return this.getConfigsList(); } + @Test(dataProvider = "completion-data-provider") + public void test(String config, String configPath) throws IOException, WorkspaceDocumentException { + super.test(config, configPath); + } + @Override public String getTestResourceDir() { return "function_def"; diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json new file mode 100644 index 000000000000..cc55355a3a51 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 2, + "character": 16 + }, + "source": "function_def/source/source23.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 8 + }, + "end": { + "line": 2, + "character": 8 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json new file mode 100644 index 000000000000..9a89954a7ccb --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 2, + "character": 18 + }, + "source": "function_def/source/source24.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 8 + }, + "end": { + "line": 2, + "character": 17 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json new file mode 100644 index 000000000000..3de2013a9e5d --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 2, + "character": 21 + }, + "source": "function_def/source/source25.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 8 + }, + "end": { + "line": 2, + "character": 17 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source23.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source23.bal new file mode 100644 index 000000000000..6a8f6c44d339 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source23.bal @@ -0,0 +1,5 @@ +public function main() { + var obj = object { + function + }; +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source24.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source24.bal new file mode 100644 index 000000000000..72c861eac558 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source24.bal @@ -0,0 +1,5 @@ +public function main() { + var obj = object { + function i + }; +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source25.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source25.bal new file mode 100644 index 000000000000..c4b5cbd2f938 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source25.bal @@ -0,0 +1,5 @@ +public function main() { + var obj = object { + function init + }; +} From 98b2c809f830f4f1edd69dd3ae668b63a40d41b5 Mon Sep 17 00:00:00 2001 From: malinthar Date: Thu, 29 Jun 2023 23:26:41 +0530 Subject: [PATCH 077/122] Improve test coverage --- .../projects/plugins/completion/CompletionUtil.java | 7 ------- .../package_comp_plugin_with_completions/main.bal | 12 ++++++++++-- ...mpiler_plugin_completion_single_file_config1.json | 2 +- .../completion/compiler-plugins/source/source1.bal | 4 +--- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java index 2ba57cefb2e0..a00e9db33683 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java @@ -15,7 +15,6 @@ */ package io.ballerina.projects.plugins.completion; -import io.ballerina.compiler.api.symbols.IntersectionTypeSymbol; import io.ballerina.compiler.api.symbols.TypeDescKind; import io.ballerina.compiler.api.symbols.TypeReferenceTypeSymbol; import io.ballerina.compiler.api.symbols.TypeSymbol; @@ -46,14 +45,8 @@ public static String getPlaceHolderText(int index) { * @return {@link TypeSymbol} extracted type descriptor */ public static TypeSymbol getRawType(TypeSymbol typeDescriptor) { - if (typeDescriptor.typeKind() == TypeDescKind.INTERSECTION) { - return getRawType(((IntersectionTypeSymbol) typeDescriptor).effectiveTypeDescriptor()); - } if (typeDescriptor.typeKind() == TypeDescKind.TYPE_REFERENCE) { TypeReferenceTypeSymbol typeRef = (TypeReferenceTypeSymbol) typeDescriptor; - if (typeRef.typeDescriptor().typeKind() == TypeDescKind.INTERSECTION) { - return getRawType(((IntersectionTypeSymbol) typeRef.typeDescriptor()).effectiveTypeDescriptor()); - } TypeSymbol rawType = typeRef.typeDescriptor(); if (rawType.typeKind() == TypeDescKind.TYPE_REFERENCE) { return getRawType(rawType); diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal index 2cf15b5c6c0a..0796cbbba916 100644 --- a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal @@ -1,7 +1,5 @@ public class Listener { - private int port = 0; - public function 'start() returns error? { return self.startEndpoint(); } @@ -38,3 +36,13 @@ public class Listener { return (); } } + +public type ListenerType object { + *Listener; +}; + +public type ListenerTypeDef object { + *ListenerType; +}; + +public ListenerTypeDef listener1 = check new Listener(8080); diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json index ef541c71935d..52da678e898b 100644 --- a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json @@ -1,6 +1,6 @@ { "position": { - "line": 5, + "line": 3, "character": 5 }, "source": "compiler-plugins/source/source1.bal", diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal index 0eb89c48dedf..9deb69388b46 100644 --- a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal @@ -1,7 +1,5 @@ import lstest/package_comp_plugin_with_completions as foo; -public listener listener1 = new foo:Listener(9090); - -service on listener1 { +service on foo:listener1 { r } From 4193ba03ab76c796c644dfb71ee1097ff6f2a65b Mon Sep 17 00:00:00 2001 From: kavindu Date: Fri, 30 Jun 2023 09:37:54 +0530 Subject: [PATCH 078/122] Add more tests --- .../function_def/config/config27.json | 43 +++++++++++++++++++ .../function_def/config/config28.json | 43 +++++++++++++++++++ .../function_def/config/config29.json | 43 +++++++++++++++++++ .../function_def/config/config30.json | 43 +++++++++++++++++++ .../function_def/config/config31.json | 43 +++++++++++++++++++ .../function_def/config/config32.json | 43 +++++++++++++++++++ .../function_def/config/config33.json | 43 +++++++++++++++++++ .../function_def/config/config34.json | 43 +++++++++++++++++++ .../function_def/config/config35.json | 43 +++++++++++++++++++ .../function_def/source/source26.bal | 5 +++ .../function_def/source/source27.bal | 5 +++ .../function_def/source/source28.bal | 5 +++ .../function_def/source/source29.bal | 3 ++ .../function_def/source/source30.bal | 3 ++ .../function_def/source/source31.bal | 3 ++ .../function_def/source/source32.bal | 3 ++ .../function_def/source/source33.bal | 3 ++ .../function_def/source/source34.bal | 3 ++ 18 files changed, 420 insertions(+) create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source26.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source27.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source28.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source29.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source30.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source31.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source32.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source33.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source34.bal diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json new file mode 100644 index 000000000000..1d58e33f6339 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 2, + "character": 23 + }, + "source": "function_def/source/source26.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 15 + }, + "end": { + "line": 2, + "character": 15 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json new file mode 100644 index 000000000000..23d4578a7bd3 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 2, + "character": 25 + }, + "source": "function_def/source/source27.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 15 + }, + "end": { + "line": 2, + "character": 24 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json new file mode 100644 index 000000000000..6ebd45869f88 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 2, + "character": 28 + }, + "source": "function_def/source/source28.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 2, + "character": 15 + }, + "end": { + "line": 2, + "character": 24 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json new file mode 100644 index 000000000000..1df627e76c08 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 1, + "character": 12 + }, + "source": "function_def/source/source29.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 4 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json new file mode 100644 index 000000000000..44a8627f0fd5 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 1, + "character": 14 + }, + "source": "function_def/source/source30.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 13 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json new file mode 100644 index 000000000000..53cced45b268 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 1, + "character": 17 + }, + "source": "function_def/source/source31.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 4 + }, + "end": { + "line": 1, + "character": 13 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json new file mode 100644 index 000000000000..ae696f51c90b --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 1, + "character": 19 + }, + "source": "function_def/source/source32.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 11 + }, + "end": { + "line": 1, + "character": 11 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json new file mode 100644 index 000000000000..cbd2179ff9bd --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 1, + "character": 21 + }, + "source": "function_def/source/source33.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 11 + }, + "end": { + "line": 1, + "character": 20 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json new file mode 100644 index 000000000000..2b6fe7580f28 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json @@ -0,0 +1,43 @@ +{ + "position": { + "line": 1, + "character": 24 + }, + "source": "function_def/source/source34.bal", + "description": "", + "items": [ + { + "label": "init function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "init_function", + "insertText": "function init(${1}) {\n\t${2}\n}", + "insertTextFormat": "Snippet", + "additionalTextEdits": [ + { + "range": { + "start": { + "line": 1, + "character": 11 + }, + "end": { + "line": 1, + "character": 20 + } + }, + "newText": "" + } + ] + }, + { + "label": "function", + "kind": "Snippet", + "detail": "Snippet", + "sortText": "P", + "filterText": "function", + "insertText": "function ${1:name}(${2})${3} {\n\t${4}\n}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source26.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source26.bal new file mode 100644 index 000000000000..aa1d173ec431 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source26.bal @@ -0,0 +1,5 @@ +public function main() { + var obj = object { + public function + }; +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source27.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source27.bal new file mode 100644 index 000000000000..06646e26b0da --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source27.bal @@ -0,0 +1,5 @@ +public function main() { + var obj = object { + public function i + }; +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source28.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source28.bal new file mode 100644 index 000000000000..d49d90a622c4 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source28.bal @@ -0,0 +1,5 @@ +public function main() { + var obj = object { + public function init + }; +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source29.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source29.bal new file mode 100644 index 000000000000..739f624c0393 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source29.bal @@ -0,0 +1,3 @@ +class Clz { + function +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source30.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source30.bal new file mode 100644 index 000000000000..5b540156ccaf --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source30.bal @@ -0,0 +1,3 @@ +class Clz { + function i +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source31.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source31.bal new file mode 100644 index 000000000000..39a24e7009f4 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source31.bal @@ -0,0 +1,3 @@ +class Clz { + function init +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source32.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source32.bal new file mode 100644 index 000000000000..45abad46f2a8 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source32.bal @@ -0,0 +1,3 @@ +class Clz { + public function +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source33.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source33.bal new file mode 100644 index 000000000000..e77354726951 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source33.bal @@ -0,0 +1,3 @@ +class Clz { + public function i +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source34.bal b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source34.bal new file mode 100644 index 000000000000..85c1c1a13f56 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/source/source34.bal @@ -0,0 +1,3 @@ +class Clz { + public function init +} From e284d762c326dd4a2bc252f37d1bbdac964293ff Mon Sep 17 00:00:00 2001 From: kavindu Date: Fri, 30 Jun 2023 20:06:38 +0530 Subject: [PATCH 079/122] Add description for tests --- .../test/resources/completion/function_def/config/config24.json | 2 +- .../test/resources/completion/function_def/config/config25.json | 2 +- .../test/resources/completion/function_def/config/config26.json | 2 +- .../test/resources/completion/function_def/config/config27.json | 2 +- .../test/resources/completion/function_def/config/config28.json | 2 +- .../test/resources/completion/function_def/config/config29.json | 2 +- .../test/resources/completion/function_def/config/config30.json | 2 +- .../test/resources/completion/function_def/config/config31.json | 2 +- .../test/resources/completion/function_def/config/config32.json | 2 +- .../test/resources/completion/function_def/config/config33.json | 2 +- .../test/resources/completion/function_def/config/config34.json | 2 +- .../test/resources/completion/function_def/config/config35.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json index cc55355a3a51..a66009288cf3 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config24.json @@ -4,7 +4,7 @@ "character": 16 }, "source": "function_def/source/source23.bal", - "description": "", + "description": "init function completion in object constructor", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json index 9a89954a7ccb..83d2050b49c0 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config25.json @@ -4,7 +4,7 @@ "character": 18 }, "source": "function_def/source/source24.bal", - "description": "", + "description": "init function completion in object constructor", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json index 3de2013a9e5d..3729778efb22 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config26.json @@ -4,7 +4,7 @@ "character": 21 }, "source": "function_def/source/source25.bal", - "description": "", + "description": "init function completion in object constructor", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json index 1d58e33f6339..8554ad85d7f5 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config27.json @@ -4,7 +4,7 @@ "character": 23 }, "source": "function_def/source/source26.bal", - "description": "", + "description": "init function completion in object constructor", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json index 23d4578a7bd3..1209f8d78f7d 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config28.json @@ -4,7 +4,7 @@ "character": 25 }, "source": "function_def/source/source27.bal", - "description": "", + "description": "init function completion in object constructor", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json index 6ebd45869f88..f820af363530 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config29.json @@ -4,7 +4,7 @@ "character": 28 }, "source": "function_def/source/source28.bal", - "description": "", + "description": "init function completion in object constructor", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json index 1df627e76c08..6c0a691d9d0b 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config30.json @@ -4,7 +4,7 @@ "character": 12 }, "source": "function_def/source/source29.bal", - "description": "", + "description": "init function completion in class definition", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json index 44a8627f0fd5..3816c5c3cbb3 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config31.json @@ -4,7 +4,7 @@ "character": 14 }, "source": "function_def/source/source30.bal", - "description": "", + "description": "init function completion in class definition", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json index 53cced45b268..210859fb4852 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config32.json @@ -4,7 +4,7 @@ "character": 17 }, "source": "function_def/source/source31.bal", - "description": "", + "description": "init function completion in class definition", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json index ae696f51c90b..535309d0116d 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config33.json @@ -4,7 +4,7 @@ "character": 19 }, "source": "function_def/source/source32.bal", - "description": "", + "description": "init function completion in class definition", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json index cbd2179ff9bd..fc51f8d6f2c4 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config34.json @@ -4,7 +4,7 @@ "character": 21 }, "source": "function_def/source/source33.bal", - "description": "", + "description": "init function completion in class definition", "items": [ { "label": "init function", diff --git a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json index 2b6fe7580f28..c65420238558 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/function_def/config/config35.json @@ -4,7 +4,7 @@ "character": 24 }, "source": "function_def/source/source34.bal", - "description": "", + "description": "init function completion in class definition", "items": [ { "label": "init function", From 359789adb69f7709b68ecf89dcb8c4126da52644 Mon Sep 17 00:00:00 2001 From: malinthar Date: Sat, 1 Jul 2023 19:29:36 +0530 Subject: [PATCH 080/122] Fix failing test cases --- .../ballerina/projects/CompletionManager.java | 4 +--- .../plugins/completion/CompletionUtil.java | 24 ------------------- .../main.bal | 12 ++-------- ...plugin_completion_single_file_config1.json | 2 +- .../compiler-plugins/source/source1.bal | 4 +++- 5 files changed, 7 insertions(+), 39 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java index 65079efa14be..205d30b5c213 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -27,7 +27,6 @@ import io.ballerina.projects.plugins.completion.CompletionContext; import io.ballerina.projects.plugins.completion.CompletionException; import io.ballerina.projects.plugins.completion.CompletionProvider; -import io.ballerina.projects.plugins.completion.CompletionUtil; import io.ballerina.tools.text.LinePosition; import java.util.ArrayList; @@ -149,8 +148,7 @@ private List getModulesOfActiveListeners(CompletionContext context if (listenerType.typeKind() == TypeDescKind.UNION) { return ((UnionTypeSymbol) listenerType).memberTypeDescriptors() .stream() - .filter(memberType -> - CompletionUtil.getRawType(memberType).typeKind() == TypeDescKind.OBJECT) + .filter(memberType -> memberType.typeKind() == TypeDescKind.OBJECT) .findAny(); } return Optional.of(listenerType); diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java index a00e9db33683..fd7cacb6c8a4 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/plugins/completion/CompletionUtil.java @@ -15,10 +15,6 @@ */ package io.ballerina.projects.plugins.completion; -import io.ballerina.compiler.api.symbols.TypeDescKind; -import io.ballerina.compiler.api.symbols.TypeReferenceTypeSymbol; -import io.ballerina.compiler.api.symbols.TypeSymbol; - /** * Util class for completion providers. * @@ -36,24 +32,4 @@ public static String getPlaceHolderText(int index, String defaultValue) { public static String getPlaceHolderText(int index) { return "${" + index + "}"; } - - /** - * Get the raw type of the type descriptor. If the type descriptor is a type reference then return the associated - * type descriptor. - * - * @param typeDescriptor type descriptor to evaluate - * @return {@link TypeSymbol} extracted type descriptor - */ - public static TypeSymbol getRawType(TypeSymbol typeDescriptor) { - if (typeDescriptor.typeKind() == TypeDescKind.TYPE_REFERENCE) { - TypeReferenceTypeSymbol typeRef = (TypeReferenceTypeSymbol) typeDescriptor; - TypeSymbol rawType = typeRef.typeDescriptor(); - if (rawType.typeKind() == TypeDescKind.TYPE_REFERENCE) { - return getRawType(rawType); - } - return rawType; - } - return typeDescriptor; - } - } diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal index 0796cbbba916..2cf15b5c6c0a 100644 --- a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal @@ -1,5 +1,7 @@ public class Listener { + private int port = 0; + public function 'start() returns error? { return self.startEndpoint(); } @@ -36,13 +38,3 @@ public class Listener { return (); } } - -public type ListenerType object { - *Listener; -}; - -public type ListenerTypeDef object { - *ListenerType; -}; - -public ListenerTypeDef listener1 = check new Listener(8080); diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json index 52da678e898b..ef541c71935d 100644 --- a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/config/compiler_plugin_completion_single_file_config1.json @@ -1,6 +1,6 @@ { "position": { - "line": 3, + "line": 5, "character": 5 }, "source": "compiler-plugins/source/source1.bal", diff --git a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal index 9deb69388b46..0eb89c48dedf 100644 --- a/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal +++ b/tests/language-server-integration-tests/src/test/resources/completion/compiler-plugins/source/source1.bal @@ -1,5 +1,7 @@ import lstest/package_comp_plugin_with_completions as foo; -service on foo:listener1 { +public listener listener1 = new foo:Listener(9090); + +service on listener1 { r } From 666afb7ff1f6b988686a0a8d4b4d6cb16c0c5c87 Mon Sep 17 00:00:00 2001 From: LakshanWeerasinghe Date: Tue, 6 Jun 2023 11:13:44 +0530 Subject: [PATCH 081/122] Fix compiler crash in regexp char set --- .../compiler/internal/parser/BallerinaLexer.java | 10 ++++++++++ .../compiler/internal/parser/RegExpParser.java | 3 +++ 2 files changed, 13 insertions(+) diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/BallerinaLexer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/BallerinaLexer.java index 90609483ea37..43773372097f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/BallerinaLexer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/BallerinaLexer.java @@ -1520,6 +1520,11 @@ private STToken readRegExpTemplateToken() { shouldProcessInterpolations = false; } while (!reader.isEOF()) { + if (shouldProcessInterpolations && this.reader.peek() == LexerTerminals.BACKSLASH + && this.reader.peek(1) == LexerTerminals.OPEN_BRACKET) { + // Escaped open brackets are not considered as the start of a no interpolation context. + reader.advance(); + } reader.advance(); nextChar = this.reader.peek(); switch (nextChar) { @@ -1536,6 +1541,11 @@ private STToken readRegExpTemplateToken() { case LexerTerminals.CLOSE_BRACKET: shouldProcessInterpolations = true; continue; + case LexerTerminals.BACKSLASH: + if (!shouldProcessInterpolations && this.reader.peek(1) == LexerTerminals.CLOSE_BRACKET) { + reader.advance(); + } + continue; default: continue; } diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java index b3375f2b555d..ef48f6693fee 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/RegExpParser.java @@ -427,6 +427,9 @@ private STNode parseCharSetAtom(STToken nextToken, STNode prevNode) { return STNodeFactory.createToken(SyntaxKind.ESCAPED_MINUS_TOKEN, minusToken.leadingMinutiae(), minusToken.trailingMinutiae()); } + if (token.kind == SyntaxKind.CLOSE_BRACKET_TOKEN) { + this.tokenReader.startMode(ParserMode.RE_CHAR_CLASS); + } return parseReEscape(); default: STNode consumedToken = consume(); From 091b6469dd0b7c2ffa26a6d702d7246fa146ab79 Mon Sep 17 00:00:00 2001 From: LakshanWeerasinghe Date: Tue, 6 Jun 2023 11:23:20 +0530 Subject: [PATCH 082/122] Add regexp value tests --- .../resources/test-src/types/regexp/regexp_value_test.bal | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal index ca82e86a0425..8b27fc684bdb 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal @@ -81,6 +81,12 @@ function testRegExpValueWithCharacterClass() { string:RegExp x7 = re `[\p{sc=Latin}\p{gc=Lu}\p{Lt}\tA\)]??`; assertEquality("[\\p{sc=Latin}\\p{gc=Lu}\\p{Lt}\\tA\\)]??", x7.toString()); + + string:RegExp x8 = re `abc[a-z\]A-Z${"abc"}]`; + assertEquality("abc[a-z\\]A-Z${\"abc\"}]", x8.toString()); + + string:RegExp x9 = re `abc\[a-z\]A-Z${"abc"}`; + assertEquality("abc\\[a-z\\]A-Zabc", x9.toString()); } function testRegExpValueWithCharacterClass2() { From 93b48347d303014f83739b447f179a30a28a4792 Mon Sep 17 00:00:00 2001 From: LakshanWeerasinghe Date: Mon, 3 Jul 2023 19:20:53 +0530 Subject: [PATCH 083/122] Add regexp value test --- .../test/resources/test-src/types/regexp/regexp_value_test.bal | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal index 8b27fc684bdb..5d7a922a3979 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/regexp/regexp_value_test.bal @@ -87,6 +87,9 @@ function testRegExpValueWithCharacterClass() { string:RegExp x9 = re `abc\[a-z\]A-Z${"abc"}`; assertEquality("abc\\[a-z\\]A-Zabc", x9.toString()); + + string:RegExp x10 = re `\[${"a"}\]`; + assertEquality("\\[a\\]", x10.toString()); } function testRegExpValueWithCharacterClass2() { From 4d02dc32d658bc95d911cef23d2fe5caffb02ae5 Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 4 Jul 2023 07:19:28 +0530 Subject: [PATCH 084/122] Add template config to treegen --- .../compiler/internal/treegen/TreeGen.java | 22 +++++++++- .../internal/treegen/TreeGenConfig.java | 2 + .../treegen/model/json/TemplateConfig.java | 41 +++++++++++++++++++ .../treegen/model/template/TreeNodeClass.java | 14 ++++++- .../internal/treegen/targets/Target.java | 9 ++-- .../targets/node/AbstractNodeTarget.java | 9 ++-- .../AbstractNodeVisitorTarget.java | 13 +++--- .../external_node_factory_template.mustache | 4 +- .../resources/external_node_template.mustache | 6 +-- ...xternal_node_transformer_template.mustache | 4 +- .../external_node_visitor_template.mustache | 4 +- .../external_tree_modifier_template.mustache | 4 +- .../internal_node_factory_template.mustache | 4 +- .../resources/internal_node_template.mustache | 4 +- ...nternal_node_transformer_template.mustache | 4 +- .../internal_node_visitor_template.mustache | 4 +- .../internal_tree_modifier_template.mustache | 4 +- .../main/resources/template_config_data.json | 4 ++ .../main/resources/treegen_config.properties | 1 + 19 files changed, 121 insertions(+), 36 deletions(-) create mode 100644 compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java create mode 100644 compiler/ballerina-treegen/src/main/resources/template_config_data.json diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java index 9c40b14ce718..9312ffaccfc7 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java @@ -19,6 +19,7 @@ import com.google.gson.Gson; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; import io.ballerinalang.compiler.internal.treegen.targets.Target; import io.ballerinalang.compiler.internal.treegen.targets.node.ExternalNodeTarget; @@ -44,6 +45,7 @@ import java.util.Objects; import static io.ballerinalang.compiler.internal.treegen.TreeGenConfig.SYNTAX_TREE_DESCRIPTOR_KEY; +import static io.ballerinalang.compiler.internal.treegen.TreeGenConfig.TEMPLATE_CONFIG_DATA_KEY; /** * The driver of the treegen tool. @@ -57,11 +59,12 @@ public static void main(String[] args) { TreeGenConfig config = TreeGenConfig.getInstance(); // 2) Get the syntax tree model by parsing the descriptor SyntaxTree syntaxTree = getSyntaxTree(config); + TemplateConfig templateConfig = getTemplateConfig(config); // 3) Initialize the registered source code generation targets List targetList = populateAvailableTargets(config); // 4) Run above targets and write the content to files targetList.stream() - .map(target -> target.execute(syntaxTree)) + .map(target -> target.execute(syntaxTree, templateConfig)) .flatMap(Collection::stream) .forEach(TreeGen::writeSourceTextFile); } @@ -98,6 +101,23 @@ private static InputStream getSyntaxTreeStream(TreeGenConfig config) { return syntaxTreeStream; } + private static TemplateConfig getTemplateConfig(TreeGenConfig config) { + try (InputStreamReader reader = new InputStreamReader(getTemplateConfigStream(config), StandardCharsets.UTF_8)) { + return new Gson().fromJson(reader, TemplateConfig.class); + } catch (Throwable e) { + throw new TreeGenException("Failed to parse the template config. Reason: " + e.getMessage(), e); + } + } + + private static InputStream getTemplateConfigStream(TreeGenConfig config) { + String jsonFilePath = config.getOrThrow(TEMPLATE_CONFIG_DATA_KEY); + InputStream templateConfigStream = TreeGen.class.getClassLoader().getResourceAsStream(jsonFilePath); + if (Objects.isNull(templateConfigStream)) { + throw new TreeGenException("Template config data is not available. file-name: " + jsonFilePath); + } + return templateConfigStream; + } + private static void writeSourceTextFile(SourceText sourceText) { try (BufferedWriter writer = Files.newBufferedWriter(sourceText.filePath, StandardCharsets.UTF_8)) { writer.write(sourceText.content); diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java index 54e303ade0da..62966eb99a21 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java @@ -49,6 +49,8 @@ public class TreeGenConfig { private static final String TREE_GEN_CONFIG_PROPERTIES = "treegen_config.properties"; + public static final String TEMPLATE_CONFIG_DATA_KEY = "template.config.data"; + private final Properties props; private static TreeGenConfig instance = new TreeGenConfig(loadConfig()); diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java new file mode 100644 index 000000000000..6f702dc96c74 --- /dev/null +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java @@ -0,0 +1,41 @@ +/* + * Copyright (c) 2023, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you 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 io.ballerinalang.compiler.internal.treegen.model.json; + +/** + * TemplateConfig. + * + * @since 2.8.0 + */ +public class TemplateConfig { + + private String createdYear; + private String since; + + public TemplateConfig(String createdYear, String since) { + this.createdYear = createdYear; + this.since = since; + } + + public String getCreatedYear() { + return createdYear; + } + public String getSince() { + return since; + } +} diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java index c4417ee0aa05..3d652ab6cdfd 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java @@ -37,6 +37,9 @@ public class TreeNodeClass { private final List fields; private final String syntaxKind; + private final String createdYear; + private final String since; + private final String externalClassName; private final String internalClassName; @@ -48,7 +51,9 @@ public TreeNodeClass(String packageName, boolean isAbstract, String superClassName, List fields, - String syntaxKind) { + String syntaxKind, + String createdYear, + String since) { this.packageName = packageName; this.isAbstract = isAbstract; this.superClassName = superClassName; @@ -56,6 +61,9 @@ public TreeNodeClass(String packageName, this.fields = fields; this.syntaxKind = syntaxKind; + this.createdYear = createdYear == null ? "2020" : createdYear; + this.since = since == null ? "2.0" : since; + this.externalClassName = className; this.internalClassName = INTERNAL_NODE_CLASS_NAME_PREFIX + className; @@ -87,6 +95,10 @@ public String syntaxKind() { return syntaxKind; } + public String createdYear() {return createdYear;} + + public String since() {return since;} + public String externalClassName() { return externalClassName; } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java index 119443f8af1f..369bbcf58679 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java @@ -24,6 +24,7 @@ import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNode; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeAttribute; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; import io.ballerinalang.compiler.internal.treegen.model.template.Field; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; @@ -55,16 +56,18 @@ public Target(TreeGenConfig config) { this.config = config; } - public abstract List execute(SyntaxTree syntaxTree); + public abstract List execute(SyntaxTree syntaxTree, TemplateConfig templateConfig); protected abstract String getTemplateName(); protected TreeNodeClass convertToTreeNodeClass(SyntaxNode syntaxNode, String packageName, - List importClassNameList) { + List importClassNameList, + TemplateConfig templateConfig) { TreeNodeClass nodeClass = new TreeNodeClass(packageName, syntaxNode.getName(), syntaxNode.isAbstract(), syntaxNode.getBase(), - getFields(syntaxNode), syntaxNode.getKind()); + getFields(syntaxNode), syntaxNode.getKind(), templateConfig.getCreatedYear(), + templateConfig.getSince()); // TODO Can we pass this as part of the constructor nodeClass.addImports(importClassNameList); diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java index aeb7d4f04d87..9868df59541f 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java @@ -20,6 +20,7 @@ import io.ballerinalang.compiler.internal.treegen.TreeGenConfig; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNode; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; import io.ballerinalang.compiler.internal.treegen.targets.Target; @@ -50,16 +51,16 @@ public AbstractNodeTarget(TreeGenConfig config) { protected abstract List getImportClasses(SyntaxNode syntaxNode); @Override - public List execute(SyntaxTree syntaxTree) { + public List execute(SyntaxTree syntaxTree, TemplateConfig templateConfig) { return syntaxTree.nodes() .stream() - .map(this::generateNodeClass) + .map(syntaxNode -> generateNodeClass(syntaxNode, templateConfig)) .map(treeNodeClass -> getSourceText(treeNodeClass, getOutputDir(), getClassName(treeNodeClass))) .collect(Collectors.toList()); } - private TreeNodeClass generateNodeClass(SyntaxNode syntaxNode) { + private TreeNodeClass generateNodeClass(SyntaxNode syntaxNode, TemplateConfig templateConfig) { List importClassList = getImportClasses(syntaxNode); - return convertToTreeNodeClass(syntaxNode, getPackageName(), importClassList); + return convertToTreeNodeClass(syntaxNode, getPackageName(), importClassList, templateConfig); } } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java index 5ab0bd88a67f..f59ae8040895 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java @@ -19,6 +19,7 @@ import io.ballerinalang.compiler.internal.treegen.TreeGenConfig; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeVisitorClass; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; @@ -53,22 +54,22 @@ public abstract class AbstractNodeVisitorTarget extends Target { } @Override - public List execute(SyntaxTree syntaxTree) { - TreeNodeVisitorClass treeNodeVisitorClass = generateNodeVisitorClass(syntaxTree); + public List execute(SyntaxTree syntaxTree, TemplateConfig templateConfig) { + TreeNodeVisitorClass treeNodeVisitorClass = generateNodeVisitorClass(syntaxTree, templateConfig); return Collections.singletonList( getSourceText(treeNodeVisitorClass, getOutputDir(), getClassName())); } - private TreeNodeVisitorClass generateNodeVisitorClass(SyntaxTree syntaxTree) { + private TreeNodeVisitorClass generateNodeVisitorClass(SyntaxTree syntaxTree, TemplateConfig templateConfig) { return new TreeNodeVisitorClass(getPackageName(), getClassName(), - getSuperClassName(), getImportClasses(), generateNodeClasses(syntaxTree)); + getSuperClassName(), getImportClasses(), generateNodeClasses(syntaxTree, templateConfig)); } - private List generateNodeClasses(SyntaxTree syntaxTree) { + private List generateNodeClasses(SyntaxTree syntaxTree, TemplateConfig templateConfig) { return syntaxTree.nodes() .stream() .map(syntaxNode -> convertToTreeNodeClass(syntaxNode, - getPackageName(), new ArrayList<>())) + getPackageName(), new ArrayList<>(), templateConfig)) .collect(Collectors.toList()); } diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache index a32fe627f959..3967465329c8 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -28,7 +28,7 @@ import java.util.Objects; * * This is a generated class. * - * @since 2.0.0 + * @since {{since}} */ public abstract class {{className}} extends {{superClassName}} { diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache index afd9af55f7aa..2a1706f688eb 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -31,7 +31,7 @@ import java.util.Optional; /** * This is a generated syntax tree node. * - * @since 2.0.0 + * @since {{since}} */ public{{#isAbstract}} abstract{{/isAbstract}} class {{externalClassName}} extends {{#extendFromNode}}NonTerminalNode{{/extendFromNode}}{{^extendFromNode}}{{externalSuperClassName}}{{/extendFromNode}} { @@ -98,7 +98,7 @@ public{{#isAbstract}} abstract{{/isAbstract}} class {{externalClassName}} extend /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since {{since}} */ public static class {{externalClassName}}Modifier { private final {{externalClassName}} oldNode; diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache index 7c410f50449d..a5f65fcc8956 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -39,7 +39,7 @@ import {{name}}; * * @param the type of class that is returned by visit methods * @see NodeVisitor - * @since 2.0.0 + * @since {{since}} */ public abstract class {{className}} { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache index 6e5828ee7b1c..e68c17fcc10b 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -38,7 +38,7 @@ import {{name}}; * This is a generated class. * * @see NodeTransformer - * @since 2.0.0 + * @since {{since}} */ public abstract class {{className}} { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache index de992eb375d6..f4c881be1608 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -28,7 +28,7 @@ import java.util.function.Function; * * This is a generated class. * - * @since 2.0.0 + * @since {{since}} */ public abstract class {{className}} extends {{superClassName}} { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache index e29018a28a55..a04994642021 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -31,7 +31,7 @@ import {{name}}; * * This is a generated class. * - * @since 2.0.0 + * @since {{since}} */ public class {{className}} extends {{superClassName}} { diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache index 869930aeb67b..57a57367c1c3 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -33,7 +33,7 @@ import java.util.Collections; /** * This is a generated internal syntax tree node. * - * @since 2.0.0 + * @since {{since}} */ public{{#isAbstract}} abstract{{/isAbstract}} class {{internalClassName}} extends {{internalSuperClassName}} { {{#fields}} diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache index d6c2ac7a5c5f..dd2322f84980 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -28,7 +28,7 @@ import {{name}}; * This is a generated class. * * @param the type of class that is returned by visit methods - * @since 2.0.0 + * @since {{since}} */ public abstract class STNodeTransformer { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache index 4039a986d44c..483e7dc57357 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -28,7 +28,7 @@ import {{name}}; *

* This is a generated class. * - * @since 2.0.0 + * @since {{since}} */ public abstract class STNodeVisitor { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache index 930b422c44b8..5d89cb4f5032 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -26,7 +26,7 @@ import {{name}}; *

* This is a generated class. * - * @since 2.0.0 + * @since {{since}} */ public abstract class STTreeModifier extends STNodeTransformer { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/template_config_data.json b/compiler/ballerina-treegen/src/main/resources/template_config_data.json new file mode 100644 index 000000000000..a90ee14964b9 --- /dev/null +++ b/compiler/ballerina-treegen/src/main/resources/template_config_data.json @@ -0,0 +1,4 @@ +{ + "createdYear": "2023", + "since": "2201.8.0" +} \ No newline at end of file diff --git a/compiler/ballerina-treegen/src/main/resources/treegen_config.properties b/compiler/ballerina-treegen/src/main/resources/treegen_config.properties index 2b413908d67d..395b295720eb 100644 --- a/compiler/ballerina-treegen/src/main/resources/treegen_config.properties +++ b/compiler/ballerina-treegen/src/main/resources/treegen_config.properties @@ -13,3 +13,4 @@ external.node.transformer.template=external_node_transformer_template.mustache external.tree.modifier.template=external_tree_modifier_template.mustache external.node.factory.template=external_node_factory_template.mustache external.node.package=io.ballerina.compiler.syntax.tree +template.config.data=template_config_data.json From 221e4b475c6f3e25a94c5339dff60064e9313ec0 Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 4 Jul 2023 11:15:44 +0530 Subject: [PATCH 085/122] Update treegen templates --- .../internal/parser/tree/STActionNode.java | 4 +- .../tree/STAnnotAccessExpressionNode.java | 4 +- .../tree/STAnnotationAttachPointNode.java | 4 +- .../tree/STAnnotationDeclarationNode.java | 4 +- .../parser/tree/STAnnotationNode.java | 4 +- .../STAnonymousFunctionExpressionNode.java | 4 +- .../parser/tree/STArrayDimensionNode.java | 4 +- .../tree/STArrayTypeDescriptorNode.java | 4 +- .../tree/STAssignmentStatementNode.java | 4 +- .../parser/tree/STAsyncSendActionNode.java | 4 +- .../tree/STBallerinaNameReferenceNode.java | 4 +- .../parser/tree/STBasicLiteralNode.java | 4 +- .../parser/tree/STBinaryExpressionNode.java | 4 +- .../parser/tree/STBindingPatternNode.java | 4 +- .../parser/tree/STBlockStatementNode.java | 4 +- .../parser/tree/STBracedExpressionNode.java | 4 +- .../parser/tree/STBreakStatementNode.java | 4 +- .../STBuiltinSimpleNameReferenceNode.java | 4 +- .../parser/tree/STByteArrayLiteralNode.java | 4 +- .../tree/STCaptureBindingPatternNode.java | 4 +- .../parser/tree/STCheckExpressionNode.java | 4 +- .../parser/tree/STClassDefinitionNode.java | 4 +- .../internal/parser/tree/STClauseNode.java | 4 +- .../STClientResourceAccessActionNode.java | 4 +- .../parser/tree/STCollectClauseNode.java | 2 +- .../parser/tree/STCommitActionNode.java | 4 +- .../STCompoundAssignmentStatementNode.java | 4 +- .../parser/tree/STComputedNameFieldNode.java | 4 +- .../STComputedResourceAccessSegmentNode.java | 4 +- .../tree/STConditionalExpressionNode.java | 4 +- .../tree/STConstantDeclarationNode.java | 4 +- .../parser/tree/STContinueStatementNode.java | 4 +- .../tree/STDefaultableParameterNode.java | 4 +- .../tree/STDistinctTypeDescriptorNode.java | 4 +- .../parser/tree/STDoStatementNode.java | 4 +- .../parser/tree/STDocumentationNode.java | 4 +- .../parser/tree/STDoubleGTTokenNode.java | 4 +- .../internal/parser/tree/STElseBlockNode.java | 4 +- .../parser/tree/STEnumDeclarationNode.java | 4 +- .../parser/tree/STEnumMemberNode.java | 4 +- .../tree/STErrorBindingPatternNode.java | 4 +- .../STErrorConstructorExpressionNode.java | 4 +- .../parser/tree/STErrorMatchPatternNode.java | 4 +- ...plicitAnonymousFunctionExpressionNode.java | 4 +- .../tree/STExplicitNewExpressionNode.java | 4 +- .../tree/STExpressionFunctionBodyNode.java | 4 +- .../parser/tree/STExpressionNode.java | 4 +- .../tree/STExpressionStatementNode.java | 4 +- .../tree/STExternalFunctionBodyNode.java | 4 +- .../parser/tree/STFailStatementNode.java | 4 +- .../tree/STFieldAccessExpressionNode.java | 4 +- .../tree/STFieldBindingPatternFullNode.java | 4 +- .../tree/STFieldBindingPatternNode.java | 4 +- .../STFieldBindingPatternVarnameNode.java | 4 +- .../parser/tree/STFieldMatchPatternNode.java | 4 +- .../parser/tree/STFlushActionNode.java | 4 +- .../parser/tree/STForEachStatementNode.java | 4 +- .../parser/tree/STForkStatementNode.java | 4 +- .../parser/tree/STFromClauseNode.java | 4 +- .../parser/tree/STFunctionArgumentNode.java | 4 +- .../parser/tree/STFunctionBodyBlockNode.java | 4 +- .../parser/tree/STFunctionBodyNode.java | 4 +- .../tree/STFunctionCallExpressionNode.java | 4 +- .../parser/tree/STFunctionDefinitionNode.java | 4 +- .../parser/tree/STFunctionSignatureNode.java | 4 +- .../tree/STFunctionTypeDescriptorNode.java | 4 +- .../parser/tree/STGroupByClauseNode.java | 24 +-- .../tree/STGroupingKeyVarDeclarationNode.java | 24 +-- .../parser/tree/STIfElseStatementNode.java | 4 +- ...plicitAnonymousFunctionExpressionNode.java | 4 +- ...STImplicitAnonymousFunctionParameters.java | 4 +- .../tree/STImplicitNewExpressionNode.java | 4 +- .../parser/tree/STImportDeclarationNode.java | 4 +- .../parser/tree/STImportOrgNameNode.java | 4 +- .../parser/tree/STImportPrefixNode.java | 4 +- .../tree/STIncludedRecordParameterNode.java | 4 +- .../parser/tree/STIndexedExpressionNode.java | 4 +- .../tree/STInferredTypedescDefaultNode.java | 4 +- .../tree/STInlineCodeReferenceNode.java | 4 +- .../parser/tree/STIntermediateClauseNode.java | 4 +- .../parser/tree/STInterpolationNode.java | 4 +- .../STIntersectionTypeDescriptorNode.java | 4 +- .../parser/tree/STJoinClauseNode.java | 4 +- .../parser/tree/STKeySpecifierNode.java | 4 +- .../parser/tree/STKeyTypeConstraintNode.java | 4 +- .../internal/parser/tree/STLetClauseNode.java | 4 +- .../parser/tree/STLetExpressionNode.java | 4 +- .../tree/STLetVariableDeclarationNode.java | 4 +- .../parser/tree/STLimitClauseNode.java | 4 +- .../parser/tree/STListBindingPatternNode.java | 4 +- .../tree/STListConstructorExpressionNode.java | 4 +- .../parser/tree/STListMatchPatternNode.java | 4 +- .../tree/STListenerDeclarationNode.java | 4 +- .../STLocalTypeDefinitionStatementNode.java | 4 +- .../parser/tree/STLockStatementNode.java | 4 +- .../parser/tree/STMapTypeDescriptorNode.java | 4 +- .../tree/STMappingBindingPatternNode.java | 4 +- .../STMappingConstructorExpressionNode.java | 4 +- .../parser/tree/STMappingFieldNode.java | 4 +- .../tree/STMappingMatchPatternNode.java | 4 +- .../parser/tree/STMarkdownCodeBlockNode.java | 4 +- .../parser/tree/STMarkdownCodeLineNode.java | 4 +- .../tree/STMarkdownDocumentationLineNode.java | 4 +- .../tree/STMarkdownDocumentationNode.java | 4 +- ...arkdownParameterDocumentationLineNode.java | 4 +- .../parser/tree/STMatchClauseNode.java | 4 +- .../parser/tree/STMatchGuardNode.java | 4 +- .../parser/tree/STMatchStatementNode.java | 4 +- .../tree/STMemberTypeDescriptorNode.java | 4 +- .../internal/parser/tree/STMetadataNode.java | 4 +- .../tree/STMethodCallExpressionNode.java | 4 +- .../parser/tree/STMethodDeclarationNode.java | 4 +- .../tree/STModuleMemberDeclarationNode.java | 4 +- .../parser/tree/STModulePartNode.java | 4 +- .../tree/STModuleVariableDeclarationNode.java | 4 +- .../STModuleXMLNamespaceDeclarationNode.java | 4 +- .../parser/tree/STNameReferenceNode.java | 4 +- .../tree/STNamedArgBindingPatternNode.java | 4 +- .../tree/STNamedArgMatchPatternNode.java | 4 +- .../parser/tree/STNamedArgumentNode.java | 4 +- .../tree/STNamedWorkerDeclarationNode.java | 4 +- .../parser/tree/STNamedWorkerDeclarator.java | 4 +- .../parser/tree/STNewExpressionNode.java | 4 +- .../parser/tree/STNilLiteralNode.java | 4 +- .../parser/tree/STNilTypeDescriptorNode.java | 4 +- .../internal/parser/tree/STNodeFactory.java | 4 +- .../parser/tree/STNodeTransformer.java | 4 +- .../internal/parser/tree/STNodeVisitor.java | 4 +- .../STObjectConstructorExpressionNode.java | 4 +- .../parser/tree/STObjectFieldNode.java | 4 +- .../tree/STObjectTypeDescriptorNode.java | 4 +- .../internal/parser/tree/STOnClauseNode.java | 4 +- .../parser/tree/STOnConflictClauseNode.java | 4 +- .../parser/tree/STOnFailClauseNode.java | 4 +- .../STOptionalFieldAccessExpressionNode.java | 4 +- .../tree/STOptionalTypeDescriptorNode.java | 4 +- .../parser/tree/STOrderByClauseNode.java | 4 +- .../internal/parser/tree/STOrderKeyNode.java | 4 +- .../parser/tree/STPanicStatementNode.java | 4 +- .../internal/parser/tree/STParameterNode.java | 4 +- .../STParameterizedTypeDescriptorNode.java | 4 +- .../STParenthesisedTypeDescriptorNode.java | 4 +- .../parser/tree/STParenthesizedArgList.java | 4 +- .../parser/tree/STPositionalArgumentNode.java | 4 +- .../tree/STQualifiedNameReferenceNode.java | 4 +- .../parser/tree/STQueryActionNode.java | 4 +- .../parser/tree/STQueryConstructTypeNode.java | 4 +- .../parser/tree/STQueryExpressionNode.java | 4 +- .../parser/tree/STQueryPipelineNode.java | 4 +- .../parser/tree/STReAssertionNode.java | 4 +- .../parser/tree/STReAtomCharOrEscapeNode.java | 4 +- .../parser/tree/STReAtomQuantifierNode.java | 4 +- .../parser/tree/STReBracedQuantifierNode.java | 4 +- .../parser/tree/STReCapturingGroupsNode.java | 4 +- ...rSetAtomNoDashWithReCharSetNoDashNode.java | 4 +- ...TReCharSetAtomWithReCharSetNoDashNode.java | 4 +- .../tree/STReCharSetRangeNoDashNode.java | 6 +- ...ReCharSetRangeNoDashWithReCharSetNode.java | 4 +- .../parser/tree/STReCharSetRangeNode.java | 4 +- .../STReCharSetRangeWithReCharSetNode.java | 4 +- .../parser/tree/STReCharacterClassNode.java | 4 +- .../parser/tree/STReFlagExpressionNode.java | 4 +- .../internal/parser/tree/STReFlagsNode.java | 4 +- .../parser/tree/STReFlagsOnOffNode.java | 4 +- .../parser/tree/STReQuantifierNode.java | 4 +- .../parser/tree/STReQuoteEscapeNode.java | 4 +- .../parser/tree/STReSequenceNode.java | 4 +- .../tree/STReSimpleCharClassEscapeNode.java | 4 +- .../internal/parser/tree/STReTermNode.java | 4 +- .../tree/STReUnicodeGeneralCategoryNode.java | 4 +- .../tree/STReUnicodePropertyEscapeNode.java | 4 +- .../parser/tree/STReUnicodePropertyNode.java | 4 +- .../parser/tree/STReUnicodeScriptNode.java | 4 +- .../parser/tree/STReceiveActionNode.java | 4 +- .../parser/tree/STReceiveFieldsNode.java | 4 +- .../parser/tree/STRecordFieldNode.java | 4 +- .../STRecordFieldWithDefaultValueNode.java | 4 +- .../tree/STRecordRestDescriptorNode.java | 4 +- .../tree/STRecordTypeDescriptorNode.java | 4 +- .../tree/STRemoteMethodCallActionNode.java | 4 +- .../parser/tree/STRequiredExpressionNode.java | 4 +- .../parser/tree/STRequiredParameterNode.java | 4 +- .../tree/STResourceAccessRestSegmentNode.java | 4 +- .../tree/STResourcePathParameterNode.java | 4 +- .../parser/tree/STRestArgumentNode.java | 4 +- .../parser/tree/STRestBindingPatternNode.java | 4 +- .../parser/tree/STRestDescriptorNode.java | 4 +- .../parser/tree/STRestMatchPatternNode.java | 4 +- .../parser/tree/STRestParameterNode.java | 4 +- .../parser/tree/STRetryStatementNode.java | 4 +- .../parser/tree/STReturnStatementNode.java | 4 +- .../tree/STReturnTypeDescriptorNode.java | 4 +- .../parser/tree/STRollbackStatementNode.java | 4 +- .../parser/tree/STSelectClauseNode.java | 4 +- .../parser/tree/STServiceDeclarationNode.java | 4 +- .../tree/STSimpleNameReferenceNode.java | 4 +- .../tree/STSingletonTypeDescriptorNode.java | 4 +- .../parser/tree/STSpecificFieldNode.java | 4 +- .../parser/tree/STSpreadFieldNode.java | 4 +- .../parser/tree/STSpreadMemberNode.java | 4 +- .../parser/tree/STStartActionNode.java | 4 +- .../internal/parser/tree/STStatementNode.java | 4 +- .../tree/STStreamTypeDescriptorNode.java | 4 +- .../parser/tree/STStreamTypeParamsNode.java | 4 +- .../parser/tree/STSyncSendActionNode.java | 4 +- .../STTableConstructorExpressionNode.java | 4 +- .../tree/STTableTypeDescriptorNode.java | 4 +- .../parser/tree/STTemplateExpressionNode.java | 4 +- .../tree/STTransactionStatementNode.java | 4 +- .../tree/STTransactionalExpressionNode.java | 4 +- .../parser/tree/STTrapExpressionNode.java | 4 +- .../internal/parser/tree/STTreeModifier.java | 4 +- .../parser/tree/STTrippleGTTokenNode.java | 4 +- .../tree/STTupleTypeDescriptorNode.java | 4 +- .../parser/tree/STTypeCastExpressionNode.java | 4 +- .../parser/tree/STTypeCastParamNode.java | 4 +- .../parser/tree/STTypeDefinitionNode.java | 4 +- .../parser/tree/STTypeDescriptorNode.java | 4 +- .../parser/tree/STTypeParameterNode.java | 4 +- .../parser/tree/STTypeReferenceNode.java | 4 +- .../tree/STTypeReferenceTypeDescNode.java | 4 +- .../parser/tree/STTypeTestExpressionNode.java | 4 +- .../tree/STTypedBindingPatternNode.java | 4 +- .../parser/tree/STTypeofExpressionNode.java | 4 +- .../parser/tree/STUnaryExpressionNode.java | 4 +- .../tree/STUnionTypeDescriptorNode.java | 4 +- .../tree/STVariableDeclarationNode.java | 4 +- .../parser/tree/STWaitActionNode.java | 4 +- .../internal/parser/tree/STWaitFieldNode.java | 4 +- .../parser/tree/STWaitFieldsListNode.java | 4 +- .../parser/tree/STWhereClauseNode.java | 4 +- .../parser/tree/STWhileStatementNode.java | 4 +- .../tree/STWildcardBindingPatternNode.java | 4 +- .../tree/STXMLAtomicNamePatternNode.java | 4 +- .../parser/tree/STXMLAttributeNode.java | 4 +- .../parser/tree/STXMLAttributeValue.java | 4 +- .../internal/parser/tree/STXMLCDATANode.java | 4 +- .../internal/parser/tree/STXMLComment.java | 4 +- .../parser/tree/STXMLElementNode.java | 4 +- .../parser/tree/STXMLElementTagNode.java | 4 +- .../parser/tree/STXMLEmptyElementNode.java | 4 +- .../internal/parser/tree/STXMLEndTagNode.java | 4 +- .../tree/STXMLFilterExpressionNode.java | 4 +- .../internal/parser/tree/STXMLItemNode.java | 4 +- .../internal/parser/tree/STXMLNameNode.java | 4 +- .../tree/STXMLNamePatternChainingNode.java | 4 +- .../tree/STXMLNamespaceDeclarationNode.java | 4 +- .../tree/STXMLNavigateExpressionNode.java | 4 +- .../tree/STXMLProcessingInstruction.java | 4 +- .../parser/tree/STXMLQualifiedNameNode.java | 4 +- .../parser/tree/STXMLSimpleNameNode.java | 4 +- .../parser/tree/STXMLStartTagNode.java | 4 +- .../parser/tree/STXMLStepExpressionNode.java | 4 +- .../internal/parser/tree/STXMLTextNode.java | 4 +- .../compiler/syntax/tree/ActionNode.java | 4 +- .../tree/AnnotAccessExpressionNode.java | 4 +- .../tree/AnnotationAttachPointNode.java | 4 +- .../tree/AnnotationDeclarationNode.java | 4 +- .../compiler/syntax/tree/AnnotationNode.java | 4 +- .../tree/AnonymousFunctionExpressionNode.java | 4 +- .../syntax/tree/ArrayDimensionNode.java | 4 +- .../syntax/tree/ArrayTypeDescriptorNode.java | 4 +- .../syntax/tree/AssignmentStatementNode.java | 4 +- .../syntax/tree/AsyncSendActionNode.java | 4 +- .../tree/BallerinaNameReferenceNode.java | 4 +- .../syntax/tree/BasicLiteralNode.java | 4 +- .../syntax/tree/BinaryExpressionNode.java | 4 +- .../syntax/tree/BindingPatternNode.java | 4 +- .../syntax/tree/BlockStatementNode.java | 4 +- .../syntax/tree/BracedExpressionNode.java | 4 +- .../syntax/tree/BreakStatementNode.java | 4 +- .../tree/BuiltinSimpleNameReferenceNode.java | 4 +- .../syntax/tree/ByteArrayLiteralNode.java | 4 +- .../tree/CaptureBindingPatternNode.java | 4 +- .../syntax/tree/CheckExpressionNode.java | 4 +- .../syntax/tree/ClassDefinitionNode.java | 4 +- .../compiler/syntax/tree/ClauseNode.java | 4 +- .../tree/ClientResourceAccessActionNode.java | 4 +- .../syntax/tree/CollectClauseNode.java | 2 +- .../syntax/tree/CommitActionNode.java | 4 +- .../tree/CompoundAssignmentStatementNode.java | 4 +- .../syntax/tree/ComputedNameFieldNode.java | 4 +- .../ComputedResourceAccessSegmentNode.java | 4 +- .../tree/ConditionalExpressionNode.java | 4 +- .../syntax/tree/ConstantDeclarationNode.java | 4 +- .../syntax/tree/ContinueStatementNode.java | 4 +- .../syntax/tree/DefaultableParameterNode.java | 4 +- .../tree/DistinctTypeDescriptorNode.java | 4 +- .../compiler/syntax/tree/DoStatementNode.java | 4 +- .../syntax/tree/DocumentationNode.java | 4 +- .../syntax/tree/DoubleGTTokenNode.java | 4 +- .../compiler/syntax/tree/ElseBlockNode.java | 4 +- .../syntax/tree/EnumDeclarationNode.java | 4 +- .../compiler/syntax/tree/EnumMemberNode.java | 4 +- .../syntax/tree/ErrorBindingPatternNode.java | 4 +- .../tree/ErrorConstructorExpressionNode.java | 4 +- .../syntax/tree/ErrorMatchPatternNode.java | 4 +- ...plicitAnonymousFunctionExpressionNode.java | 4 +- .../tree/ExplicitNewExpressionNode.java | 4 +- .../tree/ExpressionFunctionBodyNode.java | 4 +- .../compiler/syntax/tree/ExpressionNode.java | 4 +- .../syntax/tree/ExpressionStatementNode.java | 4 +- .../syntax/tree/ExternalFunctionBodyNode.java | 4 +- .../syntax/tree/FailStatementNode.java | 4 +- .../tree/FieldAccessExpressionNode.java | 4 +- .../tree/FieldBindingPatternFullNode.java | 4 +- .../syntax/tree/FieldBindingPatternNode.java | 4 +- .../tree/FieldBindingPatternVarnameNode.java | 4 +- .../syntax/tree/FieldMatchPatternNode.java | 4 +- .../compiler/syntax/tree/FlushActionNode.java | 4 +- .../syntax/tree/ForEachStatementNode.java | 4 +- .../syntax/tree/ForkStatementNode.java | 4 +- .../compiler/syntax/tree/FromClauseNode.java | 4 +- .../syntax/tree/FunctionArgumentNode.java | 4 +- .../syntax/tree/FunctionBodyBlockNode.java | 4 +- .../syntax/tree/FunctionBodyNode.java | 4 +- .../tree/FunctionCallExpressionNode.java | 4 +- .../syntax/tree/FunctionDefinitionNode.java | 4 +- .../syntax/tree/FunctionSignatureNode.java | 4 +- .../tree/FunctionTypeDescriptorNode.java | 4 +- .../syntax/tree/GroupByClauseNode.java | 24 +-- .../tree/GroupingKeyVarDeclarationNode.java | 24 +-- .../syntax/tree/IfElseStatementNode.java | 4 +- ...plicitAnonymousFunctionExpressionNode.java | 4 +- .../ImplicitAnonymousFunctionParameters.java | 4 +- .../tree/ImplicitNewExpressionNode.java | 4 +- .../syntax/tree/ImportDeclarationNode.java | 4 +- .../syntax/tree/ImportOrgNameNode.java | 4 +- .../syntax/tree/ImportPrefixNode.java | 4 +- .../tree/IncludedRecordParameterNode.java | 4 +- .../syntax/tree/IndexedExpressionNode.java | 4 +- .../tree/InferredTypedescDefaultNode.java | 4 +- .../syntax/tree/InlineCodeReferenceNode.java | 4 +- .../syntax/tree/IntermediateClauseNode.java | 4 +- .../syntax/tree/InterpolationNode.java | 4 +- .../tree/IntersectionTypeDescriptorNode.java | 4 +- .../compiler/syntax/tree/JoinClauseNode.java | 4 +- .../syntax/tree/KeySpecifierNode.java | 4 +- .../syntax/tree/KeyTypeConstraintNode.java | 4 +- .../compiler/syntax/tree/LetClauseNode.java | 4 +- .../syntax/tree/LetExpressionNode.java | 4 +- .../tree/LetVariableDeclarationNode.java | 4 +- .../compiler/syntax/tree/LimitClauseNode.java | 4 +- .../syntax/tree/ListBindingPatternNode.java | 4 +- .../tree/ListConstructorExpressionNode.java | 4 +- .../syntax/tree/ListMatchPatternNode.java | 4 +- .../syntax/tree/ListenerDeclarationNode.java | 4 +- .../LocalTypeDefinitionStatementNode.java | 4 +- .../syntax/tree/LockStatementNode.java | 4 +- .../syntax/tree/MapTypeDescriptorNode.java | 4 +- .../tree/MappingBindingPatternNode.java | 4 +- .../MappingConstructorExpressionNode.java | 4 +- .../syntax/tree/MappingFieldNode.java | 4 +- .../syntax/tree/MappingMatchPatternNode.java | 4 +- .../syntax/tree/MarkdownCodeBlockNode.java | 4 +- .../syntax/tree/MarkdownCodeLineNode.java | 4 +- .../tree/MarkdownDocumentationLineNode.java | 4 +- .../tree/MarkdownDocumentationNode.java | 4 +- ...arkdownParameterDocumentationLineNode.java | 4 +- .../compiler/syntax/tree/MatchClauseNode.java | 4 +- .../compiler/syntax/tree/MatchGuardNode.java | 4 +- .../syntax/tree/MatchStatementNode.java | 4 +- .../syntax/tree/MemberTypeDescriptorNode.java | 4 +- .../compiler/syntax/tree/MetadataNode.java | 4 +- .../syntax/tree/MethodCallExpressionNode.java | 4 +- .../syntax/tree/MethodDeclarationNode.java | 4 +- .../tree/ModuleMemberDeclarationNode.java | 4 +- .../compiler/syntax/tree/ModulePartNode.java | 4 +- .../tree/ModuleVariableDeclarationNode.java | 4 +- .../ModuleXMLNamespaceDeclarationNode.java | 4 +- .../syntax/tree/NameReferenceNode.java | 4 +- .../tree/NamedArgBindingPatternNode.java | 4 +- .../syntax/tree/NamedArgMatchPatternNode.java | 4 +- .../syntax/tree/NamedArgumentNode.java | 4 +- .../tree/NamedWorkerDeclarationNode.java | 4 +- .../syntax/tree/NamedWorkerDeclarator.java | 4 +- .../syntax/tree/NewExpressionNode.java | 4 +- .../compiler/syntax/tree/NilLiteralNode.java | 4 +- .../syntax/tree/NilTypeDescriptorNode.java | 4 +- .../compiler/syntax/tree/NodeFactory.java | 8 +- .../compiler/syntax/tree/NodeTransformer.java | 4 +- .../compiler/syntax/tree/NodeVisitor.java | 4 +- .../tree/ObjectConstructorExpressionNode.java | 4 +- .../compiler/syntax/tree/ObjectFieldNode.java | 4 +- .../syntax/tree/ObjectTypeDescriptorNode.java | 4 +- .../compiler/syntax/tree/OnClauseNode.java | 4 +- .../syntax/tree/OnConflictClauseNode.java | 4 +- .../syntax/tree/OnFailClauseNode.java | 4 +- .../OptionalFieldAccessExpressionNode.java | 4 +- .../tree/OptionalTypeDescriptorNode.java | 4 +- .../syntax/tree/OrderByClauseNode.java | 4 +- .../compiler/syntax/tree/OrderKeyNode.java | 4 +- .../syntax/tree/PanicStatementNode.java | 4 +- .../compiler/syntax/tree/ParameterNode.java | 4 +- .../tree/ParameterizedTypeDescriptorNode.java | 4 +- .../tree/ParenthesisedTypeDescriptorNode.java | 4 +- .../syntax/tree/ParenthesizedArgList.java | 4 +- .../syntax/tree/PositionalArgumentNode.java | 4 +- .../tree/QualifiedNameReferenceNode.java | 4 +- .../compiler/syntax/tree/QueryActionNode.java | 4 +- .../syntax/tree/QueryConstructTypeNode.java | 4 +- .../syntax/tree/QueryExpressionNode.java | 16 +- .../syntax/tree/QueryPipelineNode.java | 4 +- .../compiler/syntax/tree/ReAssertionNode.java | 6 +- .../syntax/tree/ReAtomCharOrEscapeNode.java | 8 +- .../syntax/tree/ReAtomQuantifierNode.java | 6 +- .../syntax/tree/ReBracedQuantifierNode.java | 6 +- .../syntax/tree/ReCapturingGroupsNode.java | 8 +- ...rSetAtomNoDashWithReCharSetNoDashNode.java | 6 +- .../ReCharSetAtomWithReCharSetNoDashNode.java | 6 +- .../syntax/tree/ReCharSetRangeNoDashNode.java | 6 +- ...ReCharSetRangeNoDashWithReCharSetNode.java | 6 +- .../syntax/tree/ReCharSetRangeNode.java | 6 +- .../tree/ReCharSetRangeWithReCharSetNode.java | 6 +- .../syntax/tree/ReCharacterClassNode.java | 8 +- .../syntax/tree/ReFlagExpressionNode.java | 6 +- .../compiler/syntax/tree/ReFlagsNode.java | 6 +- .../syntax/tree/ReFlagsOnOffNode.java | 6 +- .../syntax/tree/ReQuantifierNode.java | 6 +- .../syntax/tree/ReQuoteEscapeNode.java | 6 +- .../compiler/syntax/tree/ReSequenceNode.java | 6 +- .../tree/ReSimpleCharClassEscapeNode.java | 6 +- .../compiler/syntax/tree/ReTermNode.java | 4 +- .../tree/ReUnicodeGeneralCategoryNode.java | 6 +- .../tree/ReUnicodePropertyEscapeNode.java | 6 +- .../syntax/tree/ReUnicodePropertyNode.java | 4 +- .../syntax/tree/ReUnicodeScriptNode.java | 6 +- .../syntax/tree/ReceiveActionNode.java | 4 +- .../syntax/tree/ReceiveFieldsNode.java | 4 +- .../compiler/syntax/tree/RecordFieldNode.java | 4 +- .../tree/RecordFieldWithDefaultValueNode.java | 4 +- .../syntax/tree/RecordRestDescriptorNode.java | 4 +- .../syntax/tree/RecordTypeDescriptorNode.java | 4 +- .../tree/RemoteMethodCallActionNode.java | 4 +- .../syntax/tree/RequiredExpressionNode.java | 4 +- .../syntax/tree/RequiredParameterNode.java | 4 +- .../tree/ResourceAccessRestSegmentNode.java | 4 +- .../tree/ResourcePathParameterNode.java | 4 +- .../syntax/tree/RestArgumentNode.java | 4 +- .../syntax/tree/RestBindingPatternNode.java | 4 +- .../syntax/tree/RestDescriptorNode.java | 4 +- .../syntax/tree/RestMatchPatternNode.java | 4 +- .../syntax/tree/RestParameterNode.java | 4 +- .../syntax/tree/RetryStatementNode.java | 4 +- .../syntax/tree/ReturnStatementNode.java | 4 +- .../syntax/tree/ReturnTypeDescriptorNode.java | 4 +- .../syntax/tree/RollbackStatementNode.java | 4 +- .../syntax/tree/SelectClauseNode.java | 4 +- .../syntax/tree/ServiceDeclarationNode.java | 4 +- .../syntax/tree/SimpleNameReferenceNode.java | 4 +- .../tree/SingletonTypeDescriptorNode.java | 4 +- .../syntax/tree/SpecificFieldNode.java | 4 +- .../compiler/syntax/tree/SpreadFieldNode.java | 4 +- .../syntax/tree/SpreadMemberNode.java | 4 +- .../compiler/syntax/tree/StartActionNode.java | 4 +- .../compiler/syntax/tree/StatementNode.java | 4 +- .../syntax/tree/StreamTypeDescriptorNode.java | 4 +- .../syntax/tree/StreamTypeParamsNode.java | 4 +- .../syntax/tree/SyncSendActionNode.java | 4 +- .../tree/TableConstructorExpressionNode.java | 4 +- .../syntax/tree/TableTypeDescriptorNode.java | 4 +- .../syntax/tree/TemplateExpressionNode.java | 4 +- .../syntax/tree/TransactionStatementNode.java | 4 +- .../tree/TransactionalExpressionNode.java | 4 +- .../syntax/tree/TrapExpressionNode.java | 4 +- .../compiler/syntax/tree/TreeModifier.java | 4 +- .../syntax/tree/TrippleGTTokenNode.java | 4 +- .../syntax/tree/TupleTypeDescriptorNode.java | 4 +- .../syntax/tree/TypeCastExpressionNode.java | 4 +- .../syntax/tree/TypeCastParamNode.java | 4 +- .../syntax/tree/TypeDefinitionNode.java | 4 +- .../syntax/tree/TypeDescriptorNode.java | 4 +- .../syntax/tree/TypeParameterNode.java | 4 +- .../syntax/tree/TypeReferenceNode.java | 4 +- .../tree/TypeReferenceTypeDescNode.java | 4 +- .../syntax/tree/TypeTestExpressionNode.java | 4 +- .../syntax/tree/TypedBindingPatternNode.java | 4 +- .../syntax/tree/TypeofExpressionNode.java | 4 +- .../syntax/tree/UnaryExpressionNode.java | 4 +- .../syntax/tree/UnionTypeDescriptorNode.java | 4 +- .../syntax/tree/VariableDeclarationNode.java | 4 +- .../compiler/syntax/tree/WaitActionNode.java | 4 +- .../compiler/syntax/tree/WaitFieldNode.java | 4 +- .../syntax/tree/WaitFieldsListNode.java | 4 +- .../compiler/syntax/tree/WhereClauseNode.java | 4 +- .../syntax/tree/WhileStatementNode.java | 4 +- .../tree/WildcardBindingPatternNode.java | 4 +- .../syntax/tree/XMLAtomicNamePatternNode.java | 4 +- .../syntax/tree/XMLAttributeNode.java | 4 +- .../syntax/tree/XMLAttributeValue.java | 4 +- .../compiler/syntax/tree/XMLCDATANode.java | 4 +- .../compiler/syntax/tree/XMLComment.java | 4 +- .../compiler/syntax/tree/XMLElementNode.java | 4 +- .../syntax/tree/XMLElementTagNode.java | 4 +- .../syntax/tree/XMLEmptyElementNode.java | 4 +- .../compiler/syntax/tree/XMLEndTagNode.java | 4 +- .../syntax/tree/XMLFilterExpressionNode.java | 4 +- .../compiler/syntax/tree/XMLItemNode.java | 4 +- .../compiler/syntax/tree/XMLNameNode.java | 4 +- .../tree/XMLNamePatternChainingNode.java | 4 +- .../tree/XMLNamespaceDeclarationNode.java | 4 +- .../tree/XMLNavigateExpressionNode.java | 4 +- .../syntax/tree/XMLProcessingInstruction.java | 4 +- .../syntax/tree/XMLQualifiedNameNode.java | 4 +- .../syntax/tree/XMLSimpleNameNode.java | 4 +- .../compiler/syntax/tree/XMLStartTagNode.java | 4 +- .../syntax/tree/XMLStepExpressionNode.java | 4 +- .../compiler/syntax/tree/XMLTextNode.java | 4 +- .../treegen/model/json/TemplateConfig.java | 28 ++- .../model/json/TemplateNodeConfig.java | 48 +++++ .../treegen/model/template/TreeNodeClass.java | 9 +- .../internal/treegen/targets/Target.java | 5 +- .../external_node_factory_template.mustache | 6 +- .../resources/external_node_template.mustache | 4 +- ...xternal_node_transformer_template.mustache | 6 +- .../external_node_visitor_template.mustache | 6 +- .../external_tree_modifier_template.mustache | 6 +- .../internal_node_factory_template.mustache | 6 +- .../resources/internal_node_template.mustache | 4 +- ...nternal_node_transformer_template.mustache | 6 +- .../internal_node_visitor_template.mustache | 6 +- .../internal_tree_modifier_template.mustache | 6 +- .../main/resources/template_config_data.json | 174 +++++++++++++++++- 523 files changed, 1357 insertions(+), 1139 deletions(-) create mode 100644 compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java index d4b3419028fd..9089651eaed5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java index 120aadadc2f0..78493020125e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java index 1bbb4bfbd45d..90feb3923d56 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java index 5d0729504d13..ebf3fa7ae7f2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java index 187ab73b7c4a..f52386c69b8d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java index da3cad317021..b9ef8e63b7cd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java index 45ca7ef2da25..ce45d30672a0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java index a09b5e96ffc4..616b9045f252 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java index d360b5406c9d..c211746de3dc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java index e53f318dd6e5..dd023633d7b2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java index a4d04fdebe98..ae4ed1b6aed5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java index 7ee518999e3c..11f3aae3f530 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java index 6eac4ab5ba5f..b08cd8c88b84 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java index 6be3cb0f64a9..d88045aaf040 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java index 06efa69ea803..a7fc0b7b357f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java index f5eb980a3558..dec01a282af8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java index 9a998f6fcf6b..dd0e68add9cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java index b1a1c6a4b512..1049d2818fbf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java index 36c7534091f4..0377e8e32e45 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java index 52afa08ede7a..0fcb7ec73efb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java index c6419b9c18ba..7720371a515b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java index be00f8872cd7..8ff9c12f096a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java index a7f72f5cb998..cd2d57194f7f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java index cb7b4b72b085..f9fc59f666eb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java index ac267a14a46a..ff9dd26cc311 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java index 68387c170ba9..1c1d5d6eade7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java index a959a870956f..43beb33ad064 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java index 2b9ebe598854..ae759818fcaf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java index 4b065abda285..e7f6f1826190 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java index 8725ca185058..ab52c583dfce 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java index e6b6520c47d7..391921d63240 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java index b58ae7324990..8c46fae5061a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java index ce9aaa1ee781..8995ad6ddcbe 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java index e8f55a22c4bb..3e2165437396 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java index 5061e5410e21..4cce55e0277d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java index 8ea58035e7c7..e52e1e39e6f6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java index 9c33f13a151e..7c8e4a929420 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java index 8cda498e3550..90eb6f6026a0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java index d8b6bfb8db38..b55ca5a3a1db 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java index 577840bde511..ec6321f9dffb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java index 61e319ba24b3..c1f8e87d386b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java index e282a44f1cda..21d5887b4183 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java index 9bf183e14356..c4bc93623e91 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java index 6f8acfc30d0f..696e01ea727d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java index 792a8452397c..9c2ec04f7d10 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java index 926187f05f75..94390ffa99d7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java index 3741e5a7253a..b1ce44e9e302 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java index 60ddd5ca53f8..a64992c14ba6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java index 859dda92b1de..c7bac51df588 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java index 3109777a9c7e..90478bd18c08 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java index 5041e160ee55..f6dc9d9f0605 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java index b2d75774b848..356323083b1d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java index 6848cf8b38f0..0a6f5669e4c2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java index b9b6d392d4e2..cca12988aa98 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java index d4d38d7d882e..1282b37d1619 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java index 29cb9baf11aa..14cdadc520e0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java index 1f44ca93d545..f8c83d1dd8dc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java index abc73a4abbd8..f652c779610d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java index f9c2992707bc..81798e50f145 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java index 3730ba3d6948..8a26263f25cf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java index 8c9d9ccf5bb5..afe2797a2e99 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java index 291dcd365454..2b6cc966f7c3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java index bcdd9acf5b3a..11b2224351c1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java index d5a119f3d267..1273b8a9b2ae 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java index 5c900fee8489..ab04ea2d2ddd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java index 08dfa7949580..f01d767bc0d1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java index e72c33faa512..12270689734a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java @@ -1,19 +1,19 @@ /* - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 LLC. licenses this file to you 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 + * WSO2 LLC. licenses this file to you 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 + * 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. + * 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 io.ballerina.compiler.internal.parser.tree; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java index 690e6bb45ad5..6b747d820d39 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java @@ -1,19 +1,19 @@ /* - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 LLC. licenses this file to you 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 + * WSO2 LLC. licenses this file to you 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 + * 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. + * 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 io.ballerina.compiler.internal.parser.tree; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java index 69e8f4db300c..7ec864e2d6cd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java index dbc5c99705e4..568c797e4ac0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java index 6f94b7c29c76..1316d1c758a0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java index a2efb98f00b1..ae766d78a0c7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java index 5ee5faf0273d..3a2a7eea7cb0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java index a4b29d1c218f..3d1933f0944f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java index 6b8fa2a912e4..47fcd2d6286a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java index 67a9d2d80b83..de5f07221831 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java index 856c08b62d22..f2c01b29b119 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java index f51970648dc4..79ce8adf7006 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java index db260e8a5280..859c66842a64 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java index 16e8514209cd..8341cc5009f7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java index f44bd8b307d4..4c9dc80c47de 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java index de6c42891bd4..d6710a1c26cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java index 7130d92af5d0..2dd046068f30 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java index ee5693ab870e..8bf4d6dd9d8d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java index 7040ad1de64a..abac033d91b6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java index 283edc9aebee..a765223b80d4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java index 6d8cd4d11fbe..855ff469cdf4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java index c5e6d77b7b47..c2aa0443fcdf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java index a20479126872..f72be5b48fb6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java index c6a74e135731..21076c14e0e1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java index 9eec0b3cc2d0..8877d5c58736 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java index 6717d979e7a1..a9ebd7188e53 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java index f110db5568d0..5dc19f05eee3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java index 5fc10da9549c..94a9cd0b1f03 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java index 247dc37fc453..aa85f9ff0ffb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java index 577120499f00..50eb4749121a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java index 7235f6a6aaac..35901e142723 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java index fdfea215b09b..36581381e38b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java index bdaffbcd70cd..630c656d5036 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java index 07e6c0e86ef4..fb512a0c27c5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java index 696da10b7ab8..61c8ae8a8880 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java index 9b5037ccae3b..cb885b446592 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java index 853df2704a5c..a5e9ffaaec4e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java index 5bf627281dec..9fe8c1d2ee4c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java index 55924cdda8d6..1dcc4a535069 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java index a7982e138ba4..77e866b9c608 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java index 9a7315c8f210..b67fd673988a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java index 079d68963df4..50e5718ac0f2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java index 6152daef0482..13fe43c55250 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java index 69d96a3e2e8e..8059dc075fb4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java index 409954662520..b28d7c5c1aa3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java index c3a4480bdb8e..ba38815c31fc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java index 343fc371282c..02296e268ba4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java index 7b09fb4fc334..70164c7ce644 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java index 54c098587b43..af03703fc1d2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java index 776f0b026004..9d2ce245d706 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java index 692b6e3a036f..5f4cae78a5c7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java index fea88773ca2d..eb8443592dd4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java index 0044ada107a4..31e7f2e6483f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java index 05a1d3642769..2b7153f6ca86 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java index 1ce742f9c6d1..9825dcd13c3c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java index b035d91cb605..370736cd8229 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java index f4a4bad7fc8a..1a4f2f499e1b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java index e643b8405433..154980886e5a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java index 67f52c9c32a7..9165086d1916 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java index ee85a03a4a96..1d9ede8b9d09 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java index 9c8bf1dad30a..4211aadf7dfd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java index 746a44c08fff..d2574e942796 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java index cd6796c97e93..fad9971b236c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java index 2943e4605ace..a903a5cadff8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java index 1a993d71c93a..f0958b4a3e0e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java index 310012d51872..ee867c432dd8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java index 807b38424b8a..fde06753e233 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java index 03c73c83803f..418d83021fca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java index 383e014946b5..0d2179779702 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java index 0bf59239e0d4..a76804aed4fe 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java index 46c515bdac5a..29499532a5a1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java index c52b6263be2c..ca4d445904aa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java index 350565a099ca..227d0badbab9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java index ccdb2a679cd0..6d2e60fa1499 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java index 3f3b348a0c5c..6a562051eb24 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java index 9991deae742c..131a863efcc7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java index b70b38967a9d..0f2f011ff194 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java index 40312652a941..13f86d640362 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java index dc4a17a98db3..ca81e0232df2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java index 7090b1f6b4ee..798d7081e93f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java index 00a893701192..14a4eb64f631 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java index e7b6845507ea..ee93c1c91c05 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java index 69fb8bccf657..84f0f5715918 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java index 7ebdf0738a6e..f9308059777c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java index dd21e5b05fbd..2782127ac5f8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java index c3e282cefd94..698f820e86c2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java index 391a0a4a8bef..c61257d15a43 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java index 395321c1675b..f59b816fd681 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java index 10c038e8d42c..974d9805e8cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java index 042af3f13117..0c61f6a0961b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java index d833c444566c..814f0f858b96 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -28,7 +28,7 @@ /** * This is a generated internal syntax tree node. * - * @since 22201.3.0 + * @since 2201.3.0 */ public class STReCharSetRangeNoDashNode extends STNode { public final STNode reCharSetAtomNoDash; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java index 06c9daa51907..6d1fae10bfbc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java index 6c0c9f46add1..1019c3a984fd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java index 695ff43174e6..05634ccc81a5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java index 482fa6fca992..9da8fe699a84 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java index 48e983330663..5a958fffd7ed 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java index cd411fa3443c..b7b386e4b530 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java index 87340e4dc21e..62ac8a522a7c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java index a2b34d3c3704..d3bb42a4c56a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java index 6fec2b2d8866..75e4bb590bb4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java index 39d3e7dd83c4..c7e886b898e5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java index dc98102a2792..b1f5b4390b28 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java index 10aadec12355..0e797d54e4a6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java index 4a21a36499c1..5f54b7a655f8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java index b04f50d4201f..ca9990d0dc27 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java index 93854a2287af..ae78a8c333bb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java index cd85fda836b5..63a5957369bc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java index 10ee6369c5bd..9bf4713da386 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java index abc76edb3de7..5b42347cfa72 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java index b7d5e24b1cff..ebe864c591cf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java index 0c8f6d8776c5..ec29c780837f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java index 885ccbb1ccc2..4aaa0067ed26 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java index 6154db611ddc..77c75b9b3d32 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java index 0a3f937c7a89..96a6e14356aa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java index f973122c34ed..607f72342862 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java index c8e9fe3f64f1..9d01ba460b83 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java index 1255d0df40c7..aab92118b31e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java index c7b02c776003..f78bc57c6875 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java index d75567d7eb2d..419d48ea9673 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java index 9b779f23eb7b..a2118276b799 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java index 4065f25e0205..614ebed4397e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java index a97436e9f191..bb0fb7cbc2e1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java index fe3c2bf39785..23f5477cdcd3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java index 778b968134d1..55b46d08b88d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java index 54ec6bd6bfc5..f6190e8a6f74 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java index 14528440ea28..56a0cd9c9029 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java index bbff93a4a6d5..f9db518f182d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java index e281538506c0..5cb827060cb0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java index df579156e233..712d6817b1db 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java index 7384a1d8cd92..bb504b8bc1c4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java index 57d9c594f4d4..641f7044e4d2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java index 8dcd4272a213..b7db3434c5a2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java index 43bb4998f4ca..e0857cda6d6c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java index f1d9b2a2bce6..1e9e78ecfb8c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java index bff796e118db..2057046ffcb7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java index 718ab2d38954..45546525ed4c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java index 0516d077f7d2..2de4de19bb41 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java index 9bd45274abcb..c256d90a9b20 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java index cad1031edbac..210968197d0b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java index 8d2b98b7b129..4c331525bdbc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java index 7acfcab6a520..71c4c61474ae 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java index da6bf4c69f97..57d0947a9ba9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java index d30461a79623..ddcd2647a555 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java index fad9dfca88c8..3f5611bcc6b0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java index 383a758f5326..92b47bb72fae 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java index b4a53bdce783..0978e35d8704 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java index fc7eee68c041..b225ac9599a9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java index 8549788aad0b..fba79a02d01e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java index 7dec0d830a80..2a8c6b26caf4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java index c4083c60127d..edeb4cdfc0f7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java index 13ce535003f2..bd453d0f0ed6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java index ae2ff866f2dc..9ad04c77c690 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java index 05ec80f4c302..86c21ee186c2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java index 27677b044851..bc7a4c1a007a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java index acb3ac5fcbab..d39d363b94e6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java index aef0b7d74c8c..5f0da02a346e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java index ed670cb1de78..c7316280ff1d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java index 7c06770f1ce3..a5be5415fcf4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java index 0373643846aa..9b05d263f6d6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java index 8a82d7f4b8e9..11cdd236e6b3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java index 5891fe9088a6..9525c9a7fad9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java index 8968ca8c5281..3d88cbf29149 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java index f4f4b7793850..eb728e3b8f53 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java index 3683da9c1359..5f53b6c9887c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java index 0ce5203d3795..b9fb145e0886 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java index 81f2aa1c88ff..16d9d59147f6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java index 51d5c12de910..811cb48c3615 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java index 4731fb513bca..04a3d9161d30 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java index 2416fa0ab228..0068a6a4ad80 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java index 2bdc53e6d89f..757b98542b0a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java index 7421c83910c3..ee0b68a44fdf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java index 0c5bc99a5088..d884c85b1e71 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java index 3e28c2164237..c5439cdbd0e0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java index 0f50a21823f7..de858a08ab9d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java index d19bb18adf6f..20ec3eb0a3d9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java index 9e88962510de..78fba176de90 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java index 9e67d01dd89e..0db713e374e6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java index 1aed0ca21364..132296c57ba8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java index 67b5170f87af..b6421014e074 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java index b2d2c10f9ef2..459c33f17fe6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java index aaca771b4a09..a343d8ec1142 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java index d7e785c335f5..bb8203236d37 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java index f94a5cb63c02..fefebba5a559 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java index 9f4f4f88307f..591f02d338e2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java index 73cff1e21513..94c1f86cba08 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java index c53eb7b77f7d..9e0fce6b2454 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java index 23bcc7c61798..45da77a0df40 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java index 9ed821aa2ceb..d34d1c3fa1fd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java index 34ff79494b79..4df1c31c2697 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java index 5801735d46c4..a3fcbbf4f120 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java index 5156264083d4..f997efebe189 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java index 8b9c434133a6..54c2d8f93d1f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java index ef15e50d75ca..a5bf516fe678 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java index ac8d90df2f22..795cdf42f556 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java index d65102cc8ada..6bc3783cda25 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java index a45bdd493932..08f4c203c70b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java index 17816557e363..f410c9571835 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java index 9cea09931b9e..08a7a981dc16 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java index 8b321cb0a968..95a50e9c82af 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java index f8c3f593e24e..6ad352f9c17f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java index 434bb425d625..5fcd2445ca8c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java index 2c1da4e61e89..644db349c2cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java index e7ad8c7c75f0..6ea88771d6fa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java index 668d8a5f91cf..68ce210cd045 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java index 7ca52700122f..cd67c5efffab 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java index 520cb7791d42..83a356bf4be9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java index 3da7025d7c9b..86312bc51c8a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java index e3f0b42bfa2c..4753a17c3e44 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java index a514f5d48450..89f68fe252ca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java index 734b779ab60a..8fd8dc8f7f20 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java index a6a38080a09e..573d8915da6a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java index 6e066b779a9a..5ad62b6dab38 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java index 30ad32ea840a..290b836da7a3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java index 57d6a1b0acc2..5398a8c7d219 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java index c92a9b6c335c..4c71014d87a1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java index aaf4b10ae7c5..bbc45c210b85 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java index c5aa362700b7..dc898544a288 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java index 41e20f501f0a..c0949ad6592c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java index e22a00bf732a..bef9755e628a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java index 251ec29bdcaa..e0c5d9156dca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java index 05ebcaac0cc5..4fd09cea57a7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java index d1daaf25ab7b..40749b72b914 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java index 572a1da24b6c..1033d591494c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java index f4e40135ac48..73b032848699 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java index 345fec1d2df8..eb0f1fb25b2b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java index cae28b45654f..fb3da478c694 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java index b7fe93ebf21a..60692bde70dc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java index 378b2cdd8bef..4532fffb05ce 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java index 037d12c36471..8b96a232bf96 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java index 61215a76f3d4..3713d0b19306 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java index 44412f69502d..2bf59b635c54 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java index 51f9f7c71ada..948144f55a0e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java index 06c8942e07e6..4d79f12a2bfd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java index 96e54bfd58ad..669e4f868e48 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java index d843a90a37ae..2380f4d81277 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java index 335dd905cd82..51eaf422d28d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java index 236ddf553cee..67fbeda923c9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java index 2069b81b28de..1a27d30a654e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java index 61fbff066a70..6dbb99bd4fd0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java index 0bd3f7b1dd6b..e04a7354ea8a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java index f57b8db02145..f6da0828609e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java index cc767a6318ea..5e7bd201ccfd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java index 2dfe75a36fef..ffead4619275 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java index 579d8472854a..a335fc27acd4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java index 0a4feadcd1e5..cfd6592ed5ad 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java index 0abe3a2b0473..644261d39c2b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java index 890d4b19ed7a..f2deff6bc711 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java index a4cdf5c4f920..d1e0dcf6b4b8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java index dea54dfa3e4d..3d8f15faf13f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java index 5291fbd623ed..7730cc83ed50 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java index 550d0335cecc..f9bd422cf8ae 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java index 0265530884aa..1a495ef8b943 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java index da89d39a3c76..caaed3227f3f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java index 76cb5b5a3c99..6e8720f6fa28 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java index ce6e38f52795..0bc9eaa34921 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java @@ -1,19 +1,19 @@ /* - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 LLC. licenses this file to you 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 + * WSO2 LLC. licenses this file to you 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 + * 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. + * 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 io.ballerina.compiler.syntax.tree; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java index c86bcbb31538..823a04f8d177 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java @@ -1,19 +1,19 @@ /* - * Copyright (c) 2023, WSO2 LLC. (https://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 LLC. licenses this file to you 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 + * WSO2 LLC. licenses this file to you 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 + * 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. + * 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 io.ballerina.compiler.syntax.tree; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java index e8dd207b072c..402256f1b27d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java index e6a2425b5079..714335a0ef65 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java index d14535339895..ad8b63ad2fd7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java index 5f39560328e4..feeb684293bc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java index 549cb0fde0f5..c67b6a7fa7bb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java index e166349e8f0e..ae938cc6effe 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java index 0a47b6f55b85..1546debb926d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java index 11abf088334c..85dbc60fd881 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java index 59f77913f9ea..06719c34c0fb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java index d88eb6ebdc39..6dcc7b392182 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java index 887885d7b914..43c67b799347 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java index 428e35befce9..d1ffcb6c4371 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java index c73f3378893d..c795e6a2f394 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java index 2098e03f2239..e701288af449 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java index e1095ae3a43a..19d38e43bb5c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java index d15527174797..e23a68321451 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java index d9ad04d686c8..bb42b1887a8d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java index 059aaca7f4c1..d473705a258a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java index adc36f6642fe..4f72bb59536b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java index dd7c5c2f8c4c..afce112817f4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java index a1819d670619..a2fe4c86f9bc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java index 5233234d351a..b0888258318e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java index ac921aa1c9d8..cce150380a24 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java index 1a210508f33f..149ca89b9663 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java index ba9fb137595e..605408bb58b9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java index 45c9adcd45cc..3708dcbe21fc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java index ae357df1b49b..81c34e4e04e5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java index 0405519864df..6a03a3f1d9b3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java index 14574c2cc45b..4cc50bbbd530 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java index 47f5b895bf08..4afa577005ca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java index 481f28531d24..f72acc7910a6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java index 366f8f53241c..4b619018d74a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java index 1c91c07889f8..a95cba6a23ca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java index 83ec1ed41f31..8a7b5c042d92 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java index 7a159aa67d4a..39e80838f235 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java index b83bbe5b4a97..fa5acbf7d9f2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java index 2ffc50cc8e0c..d27bfaccc887 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java index 67bcc8c01273..abb0ec0511e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java index 7e5c24800ac6..077bddd2e2c2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java index f676e2e4d117..f3069f0c6cef 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java index 9754b9eef050..d8bf8aaa37ce 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java index 5dde98879e8f..cdb5e67527a1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java index 03e060f76871..4911e6792de8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java index 626aa322bcde..1bf636260232 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java index 07775ebcd4c5..d6a19c9026ff 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java index 9e1d597f3522..8ff075598be8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java index 233f4c78859e..9d44621087dd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java index 20e6db03cd07..d0059d8aab62 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java index 5b5881974cc3..37fb1d785e7a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java index 22091a4c65cd..a46e4833c74d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java index 76bc091aa7a1..1bc1aed9463a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java index 3e79efea71d1..b2911820a29a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java index 60b0da5fab6f..d8e2b4775292 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java index fa4a56dfe5dd..4f598a2f2991 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java index 090aa3470d96..810c36bff556 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java index 89200832e8d2..9b37be631954 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java index b63ef0fd748d..3f0bba3293fb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java index 32f5c56cadee..8893d77ccac9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -3462,8 +3462,8 @@ public static ReCharSetAtomNoDashWithReCharSetNoDashNode createReCharSetAtomNoDa Objects.requireNonNull(reCharSetAtomNoDash, "reCharSetAtomNoDash must not be null"); Objects.requireNonNull(reCharSetNoDash, "reCharSetNoDash must not be null"); - STNode stReCharSetAtomNoDashWithReCharSetNoDashNode = - STNodeFactory.createReCharSetAtomNoDashWithReCharSetNoDashNode( + STNode stReCharSetAtomNoDashWithReCharSetNoDashNode = STNodeFactory + .createReCharSetAtomNoDashWithReCharSetNoDashNode( reCharSetAtomNoDash.internalNode(), reCharSetNoDash.internalNode()); return stReCharSetAtomNoDashWithReCharSetNoDashNode.createUnlinkedFacade(); diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java index 0751f88fedbf..4859d6d8ce71 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java index 90099502048e..c389516c3ea7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java index fb73c960573e..425d9c8e3102 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java index 1168702a590b..4195ebeedb49 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java index c18ee0b0ad09..e2f13de74e67 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java index f2014c8fa812..1261cc106893 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java index 04b83d91b1ef..ac5d0bbdf264 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java index c1e2bb0f0f21..9c6e20052e3f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java index 67977bdff7c1..d3285e5c218f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java index 89b205dab548..a56af910ac64 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java index be0ce445c636..41d3194a2859 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java index ff97c8008c20..7ec4cebd081a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java index 1b358c23697f..c642dadf3570 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java index 41e3e4a93023..d6e82f7faaec 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java index 3e57a199f76d..3c85f8d55f30 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java index b883b82925dc..abd14daa033e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java index aad58692a7f2..624555300f14 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java index 7c18c402467d..3e28cd69dfa4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java index 90a129ddbdbe..fb190d802c26 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java index 12407fd364ec..34e169820815 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java index c71019c974d8..436278e46991 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java index 592634d4d827..860c8c5536eb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -41,18 +41,6 @@ public QueryPipelineNode queryPipeline() { return childInBucket(1); } - /** - * @deprecated Use {@link #resultClause()} instead. - */ - @Deprecated - public SelectClauseNode selectClause() { - ClauseNode resultClause = resultClause(); - if (resultClause.kind() != SyntaxKind.SELECT_CLAUSE) { - throw new IllegalStateException("select-clause not found"); - } - return (SelectClauseNode) resultClause; - } - public ClauseNode resultClause() { return childInBucket(2); } diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java index 930aeccbf57c..2662e460e3c4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java index 22c490c6e248..bcb59c22d1e2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -70,7 +70,7 @@ public ReAssertionNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReAssertionNodeModifier { private final ReAssertionNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java index 0b044c88d391..add2eec55752 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -24,7 +24,7 @@ /** * This is a generated syntax tree node. * - * @since 2.0.0 + * @since 2201.3.0 */ public class ReAtomCharOrEscapeNode extends NonTerminalNode { @@ -70,7 +70,7 @@ public ReAtomCharOrEscapeNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReAtomCharOrEscapeNodeModifier { private final ReAtomCharOrEscapeNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java index ef39f55bdce9..f34636e2e3ed 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -79,7 +79,7 @@ public ReAtomQuantifierNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReAtomQuantifierNodeModifier { private final ReAtomQuantifierNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java index 729515de2b51..f1fcdda5a198 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -103,7 +103,7 @@ public ReBracedQuantifierNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReBracedQuantifierNodeModifier { private final ReBracedQuantifierNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java index 1ff6c180faa1..747d2521b3eb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -25,7 +25,7 @@ /** * This is a generated syntax tree node. * - * @since 2.0.0 + * @since 2201.3.0 */ public class ReCapturingGroupsNode extends NonTerminalNode { @@ -95,7 +95,7 @@ public ReCapturingGroupsNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCapturingGroupsNodeModifier { private final ReCapturingGroupsNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java index f3068936d427..4637bb314271 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -78,7 +78,7 @@ public ReCharSetAtomNoDashWithReCharSetNoDashNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCharSetAtomNoDashWithReCharSetNoDashNodeModifier { private final ReCharSetAtomNoDashWithReCharSetNoDashNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java index d00a579a58eb..e8f509bb39e1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -78,7 +78,7 @@ public ReCharSetAtomWithReCharSetNoDashNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCharSetAtomWithReCharSetNoDashNodeModifier { private final ReCharSetAtomWithReCharSetNoDashNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java index b8e6ad9f5124..90e79e96e095 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -86,7 +86,7 @@ public ReCharSetRangeNoDashNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCharSetRangeNoDashNodeModifier { private final ReCharSetRangeNoDashNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java index b18e26180c55..eb40fef10ffb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -79,7 +79,7 @@ public ReCharSetRangeNoDashWithReCharSetNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCharSetRangeNoDashWithReCharSetNodeModifier { private final ReCharSetRangeNoDashWithReCharSetNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java index 1ae7869bd5ad..609b0c7f12c2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -86,7 +86,7 @@ public ReCharSetRangeNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCharSetRangeNodeModifier { private final ReCharSetRangeNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java index 064ce2fb5286..0c9c11622080 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -79,7 +79,7 @@ public ReCharSetRangeWithReCharSetNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCharSetRangeWithReCharSetNodeModifier { private final ReCharSetRangeWithReCharSetNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java index 575234933bcd..c94160844d79 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -25,7 +25,7 @@ /** * This is a generated syntax tree node. * - * @since 2.0.0 + * @since 2201.3.0 */ public class ReCharacterClassNode extends NonTerminalNode { @@ -95,7 +95,7 @@ public ReCharacterClassNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReCharacterClassNodeModifier { private final ReCharacterClassNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java index 810b22a9506d..13d2ff85c256 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -86,7 +86,7 @@ public ReFlagExpressionNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReFlagExpressionNodeModifier { private final ReFlagExpressionNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java index 09f1c295b782..65426c52a3c6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -70,7 +70,7 @@ public ReFlagsNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReFlagsNodeModifier { private final ReFlagsNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java index 92ba5289ea2f..b7c4379bc0f2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -87,7 +87,7 @@ public ReFlagsOnOffNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReFlagsOnOffNodeModifier { private final ReFlagsOnOffNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java index ccacbcc792ad..8c366648af6f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -79,7 +79,7 @@ public ReQuantifierNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReQuantifierNodeModifier { private final ReQuantifierNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java index 40304ecde9a8..a5354b2da109 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -78,7 +78,7 @@ public ReQuoteEscapeNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReQuoteEscapeNodeModifier { private final ReQuoteEscapeNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java index 96692e2ffc5a..19b7482a07ba 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -70,7 +70,7 @@ public ReSequenceNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReSequenceNodeModifier { private final ReSequenceNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java index a33cf00065ea..f7391772ae49 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -78,7 +78,7 @@ public ReSimpleCharClassEscapeNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReSimpleCharClassEscapeNodeModifier { private final ReSimpleCharClassEscapeNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java index e737ba323d26..9c39cb732e2c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java index 1c761c96d87d..3212f4d7bae2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -79,7 +79,7 @@ public ReUnicodeGeneralCategoryNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReUnicodeGeneralCategoryNodeModifier { private final ReUnicodeGeneralCategoryNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java index a8fe4b7f5a5e..8af551f0b9e9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -102,7 +102,7 @@ public ReUnicodePropertyEscapeNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReUnicodePropertyEscapeNodeModifier { private final ReUnicodePropertyEscapeNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java index 598a22c7e4f2..6b64f189c187 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java index 6e9dfe3c7f56..3d1a59440906 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -78,7 +78,7 @@ public ReUnicodeScriptNodeModifier modify() { /** * This is a generated tree node modifier utility. * - * @since 2.0.0 + * @since 2201.3.0 */ public static class ReUnicodeScriptNodeModifier { private final ReUnicodeScriptNode oldNode; diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java index 5dfb5c63fb2d..6a31df677a15 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java index b075a4962499..260381d7e663 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java index c5c703574f81..3d3344b9613c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java index b6d370a9c382..29b5414965b2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java index e8c43b813191..48b283ead0a6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java index 3f2534664b1e..8e701d0a5f0c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java index 8010842b2ce0..96eff981638d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java index d31f53823714..2d02c5d254b2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java index 801068667013..85f6c49db8be 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java index 7dedb2c30f32..be4912bebda8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java index f282bf9e936e..f17c1865781f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java index 1fb8838eef49..04e300367f75 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java index 16c8e62462f4..8ef503590e68 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java index 177f033ec0e9..84ca66fe80bd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java index dc27046ec7f0..2cc7f05f7a1d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java index 0eed3f1d4d5b..e4c8790ace72 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java index 4520bbc86aca..732da253ce65 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java index 2c1f1340bed2..4ad98f3a43bd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java index d461cb6bd0bb..d1896b3b0eed 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java index 2cb1a7746559..69ee7edab257 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java index e5a93c176a63..9e1d450408bc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java index 407440adee8e..0b6c55e18685 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java index dcc35677fbc0..1e54e31dd37a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java index 7e3098f20c9c..8af44acb0241 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java index 9338ec180415..c8cc4a03df1d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java index f7e63b8429bc..f554918a7df7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java index c52e33e0eddf..80cd8c11d411 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2022, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java index fa2de743310d..99c9f1c2b659 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java index bb0246c9fb4c..576ee8c17372 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java index 5e0ada7d7f5d..2752f8b5e3ab 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java index 4d0b4e14a6ab..84e35eb1a172 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java index e6130b19c400..8e4d870f350a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java index dde1d2e2f0c9..81d3cc7571f9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java index d33b0ea4529f..08874da1bbcb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java index 4261bcd8ca95..36c841bd0444 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java index 3be0ec0cc01a..01d77edec15b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java index b769e6fe5bbe..2f4ee17a588a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java index 3e30fcba2b6d..78ad006d9860 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java index fed6f274b706..4c67fca52154 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java index 90cac1095850..1287d514321a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java index 82dc23b4ca28..f96873d2d9a7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java index 61e4c74654dc..89bf8c7dcb8b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java index 8c4250553b06..3f720de6858c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java index 4cb778912958..a3f964acf8b5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java index 6b1bb4595bf4..c5eded8bf1aa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java index 361aee632d30..204886a03609 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java index c55ecdeae57d..a2db80f05464 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java index 34404fb475e3..77d671741a68 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java index 811be19f3261..fa0e874522f2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java index a359e4a928dc..6d7b2a7a0791 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java index bd0929183bdb..7d7beb0ca4af 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java index d589e7f16b90..e77c89e000f7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java index e955c3e72a7e..1ccab75c07c1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java index 575b0e5c513b..6f91519ce065 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java index d1d21ea91478..0574c0ddad8b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java index 5d6fc092f3f7..39581dc438cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java index 6c47f5850e8b..ad57609e2667 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java index 8f3fd1aa1192..e9d6373992d2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java index 0728df639572..63d564447994 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java index fc7ab850a02d..9307912e3bab 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java index 82732b657ce3..3de06135c208 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java index 3af4265266a6..95643429d426 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java index 41dafded6d71..29b22eb8c7f4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java index 1c1e549819c7..388d7d763e9e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java index 9ec470db135e..9fc198d614f1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java index 72fdecc2bd0b..7645d2a89428 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java index ef15dcf1ad6b..d0767dfed5ab 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java index 2d5e9dff1018..9e3abee7b10f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java index 6a2f7afe54bf..d061b7a26afc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java index 5c050593a3f2..aa1a601b4c67 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java index 0d2cb67825f0..4d13b804cbec 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java index 223bf2b59ce8..bb44c92b868e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java index b292c21b21be..8f7701d10267 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java index d8efa2d3bd23..a9851ce08072 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java index b950071ab5d4..9ed260805f5b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java index 27456526ffb6..081065bd12f3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java index 683a4c082e66..a195dd635587 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java index 2ae973ac5a46..fdc1a9c8f0b1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java index f98bdb0ae00a..716519d60c9a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java index cd6172d08329..8d2b41415308 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java index e03b96909b35..58088ba9e9b3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java @@ -1,7 +1,7 @@ /* - * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java index 6f702dc96c74..d4951699b9d9 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java @@ -17,6 +17,9 @@ */ package io.ballerinalang.compiler.internal.treegen.model.json; +import java.util.HashMap; +import java.util.List; + /** * TemplateConfig. * @@ -24,18 +27,25 @@ */ public class TemplateConfig { - private String createdYear; - private String since; + private final List nodes; + private HashMap nodeMap; - public TemplateConfig(String createdYear, String since) { - this.createdYear = createdYear; - this.since = since; + public TemplateConfig(List nodes) { + this.nodes = nodes; } - public String getCreatedYear() { - return createdYear; + public TemplateNodeConfig getNode(String name) { + populateMap(); + return nodeMap.get(name); } - public String getSince() { - return since; + + private void populateMap() { + if (nodeMap != null) { + return; + } + nodeMap = new HashMap<>(); + for (TemplateNodeConfig node : nodes) { + nodeMap.put(node.getName(), node); + } } } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java new file mode 100644 index 000000000000..33bba640c406 --- /dev/null +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2023, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * WSO2 Inc. licenses this file to you 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 io.ballerinalang.compiler.internal.treegen.model.json; + +/** + * TemplateNodeConfig. + * + * @since 2.8.0 + */ +public class TemplateNodeConfig { + + private final String name; + private String createdYear; + private String since; + + public TemplateNodeConfig(String name, String createdYear, String since) { + this.name = name; + this.createdYear = createdYear; + this.since = since; + } + + public String getCreatedYear() { + return createdYear; + } + + public String getSince() { + return since; + } + + public String getName() { + return name; + } +} diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java index 3d652ab6cdfd..f511837bba52 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java @@ -17,6 +17,8 @@ */ package io.ballerinalang.compiler.internal.treegen.model.template; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; + import java.util.ArrayList; import java.util.Collections; import java.util.List; @@ -52,8 +54,7 @@ public TreeNodeClass(String packageName, String superClassName, List fields, String syntaxKind, - String createdYear, - String since) { + TemplateNodeConfig templateNodeConfig) { this.packageName = packageName; this.isAbstract = isAbstract; this.superClassName = superClassName; @@ -61,8 +62,8 @@ public TreeNodeClass(String packageName, this.fields = fields; this.syntaxKind = syntaxKind; - this.createdYear = createdYear == null ? "2020" : createdYear; - this.since = since == null ? "2.0" : since; + this.createdYear = templateNodeConfig == null ? "2020" : templateNodeConfig.getCreatedYear(); + this.since = templateNodeConfig == null ? "2.0.0" : templateNodeConfig.getSince(); this.externalClassName = className; this.internalClassName = INTERNAL_NODE_CLASS_NAME_PREFIX + className; diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java index 369bbcf58679..e586b3611fd5 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java @@ -25,6 +25,7 @@ import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeAttribute; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.model.template.Field; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; @@ -64,10 +65,10 @@ protected TreeNodeClass convertToTreeNodeClass(SyntaxNode syntaxNode, String packageName, List importClassNameList, TemplateConfig templateConfig) { + TemplateNodeConfig nodeConfig = templateConfig.getNode(syntaxNode.getName()); TreeNodeClass nodeClass = new TreeNodeClass(packageName, syntaxNode.getName(), syntaxNode.isAbstract(), syntaxNode.getBase(), - getFields(syntaxNode), syntaxNode.getKind(), templateConfig.getCreatedYear(), - templateConfig.getSince()); + getFields(syntaxNode), syntaxNode.getKind(), nodeConfig); // TODO Can we pass this as part of the constructor nodeClass.addImports(importClassNameList); diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache index 3967465329c8..14c78d04fa02 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -28,7 +28,7 @@ import java.util.Objects; * * This is a generated class. * - * @since {{since}} + * @since 2.0.0 */ public abstract class {{className}} extends {{superClassName}} { diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache index 2a1706f688eb..8eb6bf529ea8 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache index a5f65fcc8956..ce7b3390777f 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -39,7 +39,7 @@ import {{name}}; * * @param the type of class that is returned by visit methods * @see NodeVisitor - * @since {{since}} + * @since 2.0.0 */ public abstract class {{className}} { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache index e68c17fcc10b..9a8dcec3c9d5 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -38,7 +38,7 @@ import {{name}}; * This is a generated class. * * @see NodeTransformer - * @since {{since}} + * @since 2.0.0 */ public abstract class {{className}} { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache index f4c881be1608..792806d20ae6 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -28,7 +28,7 @@ import java.util.function.Function; * * This is a generated class. * - * @since {{since}} + * @since 2.0.0 */ public abstract class {{className}} extends {{superClassName}} { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache index a04994642021..084cd35db871 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -31,7 +31,7 @@ import {{name}}; * * This is a generated class. * - * @since {{since}} + * @since 2.0.0 */ public class {{className}} extends {{superClassName}} { diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache index 57a57367c1c3..d833c2fb481f 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache index dd2322f84980..dc37ff05acbf 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -28,7 +28,7 @@ import {{name}}; * This is a generated class. * * @param the type of class that is returned by visit methods - * @since {{since}} + * @since 2.0.0 */ public abstract class STNodeTransformer { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache index 483e7dc57357..a8e920ce5700 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -28,7 +28,7 @@ import {{name}}; *

* This is a generated class. * - * @since {{since}} + * @since 2.0.0 */ public abstract class STNodeVisitor { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache index 5d89cb4f5032..5dd4d063598f 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache @@ -1,7 +1,7 @@ /* - * Copyright (c) {{createdYear}}, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 @@ -26,7 +26,7 @@ import {{name}}; *

* This is a generated class. * - * @since {{since}} + * @since 2.0.0 */ public abstract class STTreeModifier extends STNodeTransformer { {{#nodes}} diff --git a/compiler/ballerina-treegen/src/main/resources/template_config_data.json b/compiler/ballerina-treegen/src/main/resources/template_config_data.json index a90ee14964b9..dd1be4d9dcee 100644 --- a/compiler/ballerina-treegen/src/main/resources/template_config_data.json +++ b/compiler/ballerina-treegen/src/main/resources/template_config_data.json @@ -1,4 +1,174 @@ { - "createdYear": "2023", - "since": "2201.8.0" + "nodes": [ + { + "name": "ClientResourceActionNode", + "createdYear": "2022", + "since": "2201.2.0" + }, + { + "name": "CollectClauseNode", + "createdYear": "2023", + "since": "2201.7.0" + }, + { + "name": "ComputedResourceAccessSegmentNode", + "createdYear": "2022", + "since": "2201.2.0" + }, + { + "name": "ClientResourceAccessActionNode", + "createdYear": "2022", + "since": "2201.2.0" + }, + { + "name": "GroupByClauseNode", + "createdYear": "2023", + "since": "2201.7.0" + }, + { + "name": "GroupingKeyVarDeclarationNode", + "createdYear": "2023", + "since": "2201.7.0" + }, + { + "name": "MemberTypeDescriptorNode", + "createdYear": "2022", + "since": "2201.4.0" + }, + { + "name": "ReAssertionNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReAtomCharOrEscapeNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReAtomQuantifierNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReBracedQuantifierNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCapturingGroupsNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCharacterClassNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCharSetAtomNoDashWithReCharSetNoDashNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCharSetAtomWithReCharSetNoDashNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCharSetRangeNoDashNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCharSetRangeNoDashWithReCharSetNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCharSetRangeNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReCharSetRangeWithReCharSetNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "STReCharSetRangeNoDashNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReFlagExpressionNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReFlagsNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReFlagsOnOffNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReQuantifierNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReQuoteEscapeNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReSequenceNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReTermNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReSimpleCharClassEscapeNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ResourceAccessRestSegmentNode", + "createdYear": "2022", + "since": "2201.2.0" + }, + { + "name": "ReUnicodeGeneralCategoryNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReUnicodePropertyEscapeNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReUnicodePropertyNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "ReUnicodeScriptNode", + "createdYear": "2022", + "since": "2201.3.0" + }, + { + "name": "SpreadMemberNode", + "createdYear": "2022", + "since": "2201.1.0" + } + ] } \ No newline at end of file From 1c0499024ed7ecd56ad72b588f21e50cb0e06ae7 Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 4 Jul 2023 14:57:26 +0530 Subject: [PATCH 086/122] Update treegen templates --- .../compiler/syntax/tree/QueryExpressionNode.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java index 860c8c5536eb..d95cc163f4ed 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java @@ -41,6 +41,18 @@ public QueryPipelineNode queryPipeline() { return childInBucket(1); } + /** + * @deprecated Use {@link #resultClause()} instead. + */ + @Deprecated + public SelectClauseNode selectClause() { + ClauseNode resultClause = resultClause(); + if (resultClause.kind() != SyntaxKind.SELECT_CLAUSE) { + throw new IllegalStateException("select-clause not found"); + } + return (SelectClauseNode) resultClause; + } + public ClauseNode resultClause() { return childInBucket(2); } From 1b36e652d071a15058247bda83a4b9bc9bcacaaf Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 4 Jul 2023 15:12:11 +0530 Subject: [PATCH 087/122] Update liscense header --- .../internal/parser/tree/STActionNode.java | 4 ++-- .../parser/tree/STAnnotAccessExpressionNode.java | 4 ++-- .../parser/tree/STAnnotationAttachPointNode.java | 4 ++-- .../parser/tree/STAnnotationDeclarationNode.java | 4 ++-- .../internal/parser/tree/STAnnotationNode.java | 4 ++-- .../tree/STAnonymousFunctionExpressionNode.java | 4 ++-- .../parser/tree/STArrayDimensionNode.java | 4 ++-- .../parser/tree/STArrayTypeDescriptorNode.java | 4 ++-- .../parser/tree/STAssignmentStatementNode.java | 4 ++-- .../parser/tree/STAsyncSendActionNode.java | 4 ++-- .../tree/STBallerinaNameReferenceNode.java | 4 ++-- .../internal/parser/tree/STBasicLiteralNode.java | 4 ++-- .../parser/tree/STBinaryExpressionNode.java | 4 ++-- .../parser/tree/STBindingPatternNode.java | 4 ++-- .../parser/tree/STBlockStatementNode.java | 4 ++-- .../parser/tree/STBracedExpressionNode.java | 4 ++-- .../parser/tree/STBreakStatementNode.java | 4 ++-- .../tree/STBuiltinSimpleNameReferenceNode.java | 4 ++-- .../parser/tree/STByteArrayLiteralNode.java | 4 ++-- .../parser/tree/STCaptureBindingPatternNode.java | 4 ++-- .../parser/tree/STCheckExpressionNode.java | 4 ++-- .../parser/tree/STClassDefinitionNode.java | 4 ++-- .../internal/parser/tree/STClauseNode.java | 4 ++-- .../tree/STClientResourceAccessActionNode.java | 4 ++-- .../parser/tree/STCollectClauseNode.java | 4 ++-- .../internal/parser/tree/STCommitActionNode.java | 4 ++-- .../tree/STCompoundAssignmentStatementNode.java | 4 ++-- .../parser/tree/STComputedNameFieldNode.java | 4 ++-- .../STComputedResourceAccessSegmentNode.java | 4 ++-- .../parser/tree/STConditionalExpressionNode.java | 4 ++-- .../parser/tree/STConstantDeclarationNode.java | 4 ++-- .../parser/tree/STContinueStatementNode.java | 4 ++-- .../parser/tree/STDefaultableParameterNode.java | 4 ++-- .../tree/STDistinctTypeDescriptorNode.java | 4 ++-- .../internal/parser/tree/STDoStatementNode.java | 4 ++-- .../parser/tree/STDocumentationNode.java | 4 ++-- .../parser/tree/STDoubleGTTokenNode.java | 4 ++-- .../internal/parser/tree/STElseBlockNode.java | 4 ++-- .../parser/tree/STEnumDeclarationNode.java | 4 ++-- .../internal/parser/tree/STEnumMemberNode.java | 4 ++-- .../parser/tree/STErrorBindingPatternNode.java | 4 ++-- .../tree/STErrorConstructorExpressionNode.java | 4 ++-- .../parser/tree/STErrorMatchPatternNode.java | 4 ++-- ...TExplicitAnonymousFunctionExpressionNode.java | 4 ++-- .../parser/tree/STExplicitNewExpressionNode.java | 4 ++-- .../tree/STExpressionFunctionBodyNode.java | 4 ++-- .../internal/parser/tree/STExpressionNode.java | 4 ++-- .../parser/tree/STExpressionStatementNode.java | 4 ++-- .../parser/tree/STExternalFunctionBodyNode.java | 4 ++-- .../parser/tree/STFailStatementNode.java | 4 ++-- .../parser/tree/STFieldAccessExpressionNode.java | 4 ++-- .../tree/STFieldBindingPatternFullNode.java | 4 ++-- .../parser/tree/STFieldBindingPatternNode.java | 4 ++-- .../tree/STFieldBindingPatternVarnameNode.java | 4 ++-- .../parser/tree/STFieldMatchPatternNode.java | 4 ++-- .../internal/parser/tree/STFlushActionNode.java | 4 ++-- .../parser/tree/STForEachStatementNode.java | 4 ++-- .../parser/tree/STForkStatementNode.java | 4 ++-- .../internal/parser/tree/STFromClauseNode.java | 4 ++-- .../parser/tree/STFunctionArgumentNode.java | 4 ++-- .../parser/tree/STFunctionBodyBlockNode.java | 4 ++-- .../internal/parser/tree/STFunctionBodyNode.java | 4 ++-- .../tree/STFunctionCallExpressionNode.java | 4 ++-- .../parser/tree/STFunctionDefinitionNode.java | 4 ++-- .../parser/tree/STFunctionSignatureNode.java | 4 ++-- .../tree/STFunctionTypeDescriptorNode.java | 4 ++-- .../parser/tree/STGroupByClauseNode.java | 4 ++-- .../tree/STGroupingKeyVarDeclarationNode.java | 4 ++-- .../parser/tree/STIfElseStatementNode.java | 4 ++-- ...TImplicitAnonymousFunctionExpressionNode.java | 4 ++-- .../STImplicitAnonymousFunctionParameters.java | 4 ++-- .../parser/tree/STImplicitNewExpressionNode.java | 4 ++-- .../parser/tree/STImportDeclarationNode.java | 4 ++-- .../parser/tree/STImportOrgNameNode.java | 4 ++-- .../internal/parser/tree/STImportPrefixNode.java | 4 ++-- .../tree/STIncludedRecordParameterNode.java | 4 ++-- .../parser/tree/STIndexedExpressionNode.java | 4 ++-- .../tree/STInferredTypedescDefaultNode.java | 4 ++-- .../parser/tree/STInlineCodeReferenceNode.java | 4 ++-- .../parser/tree/STIntermediateClauseNode.java | 4 ++-- .../parser/tree/STInterpolationNode.java | 4 ++-- .../tree/STIntersectionTypeDescriptorNode.java | 4 ++-- .../internal/parser/tree/STJoinClauseNode.java | 4 ++-- .../internal/parser/tree/STKeySpecifierNode.java | 4 ++-- .../parser/tree/STKeyTypeConstraintNode.java | 4 ++-- .../internal/parser/tree/STLetClauseNode.java | 4 ++-- .../parser/tree/STLetExpressionNode.java | 4 ++-- .../tree/STLetVariableDeclarationNode.java | 4 ++-- .../internal/parser/tree/STLimitClauseNode.java | 4 ++-- .../parser/tree/STListBindingPatternNode.java | 4 ++-- .../tree/STListConstructorExpressionNode.java | 4 ++-- .../parser/tree/STListMatchPatternNode.java | 4 ++-- .../parser/tree/STListenerDeclarationNode.java | 4 ++-- .../tree/STLocalTypeDefinitionStatementNode.java | 4 ++-- .../parser/tree/STLockStatementNode.java | 4 ++-- .../parser/tree/STMapTypeDescriptorNode.java | 4 ++-- .../parser/tree/STMappingBindingPatternNode.java | 4 ++-- .../tree/STMappingConstructorExpressionNode.java | 4 ++-- .../internal/parser/tree/STMappingFieldNode.java | 4 ++-- .../parser/tree/STMappingMatchPatternNode.java | 4 ++-- .../parser/tree/STMarkdownCodeBlockNode.java | 4 ++-- .../parser/tree/STMarkdownCodeLineNode.java | 4 ++-- .../tree/STMarkdownDocumentationLineNode.java | 4 ++-- .../parser/tree/STMarkdownDocumentationNode.java | 4 ++-- ...STMarkdownParameterDocumentationLineNode.java | 4 ++-- .../internal/parser/tree/STMatchClauseNode.java | 4 ++-- .../internal/parser/tree/STMatchGuardNode.java | 4 ++-- .../parser/tree/STMatchStatementNode.java | 4 ++-- .../parser/tree/STMemberTypeDescriptorNode.java | 4 ++-- .../internal/parser/tree/STMetadataNode.java | 4 ++-- .../parser/tree/STMethodCallExpressionNode.java | 4 ++-- .../parser/tree/STMethodDeclarationNode.java | 4 ++-- .../tree/STModuleMemberDeclarationNode.java | 4 ++-- .../internal/parser/tree/STModulePartNode.java | 4 ++-- .../tree/STModuleVariableDeclarationNode.java | 4 ++-- .../STModuleXMLNamespaceDeclarationNode.java | 4 ++-- .../parser/tree/STNameReferenceNode.java | 4 ++-- .../tree/STNamedArgBindingPatternNode.java | 4 ++-- .../parser/tree/STNamedArgMatchPatternNode.java | 4 ++-- .../parser/tree/STNamedArgumentNode.java | 4 ++-- .../tree/STNamedWorkerDeclarationNode.java | 4 ++-- .../parser/tree/STNamedWorkerDeclarator.java | 4 ++-- .../parser/tree/STNewExpressionNode.java | 4 ++-- .../internal/parser/tree/STNilLiteralNode.java | 4 ++-- .../parser/tree/STNilTypeDescriptorNode.java | 4 ++-- .../internal/parser/tree/STNodeFactory.java | 4 ++-- .../internal/parser/tree/STNodeTransformer.java | 4 ++-- .../internal/parser/tree/STNodeVisitor.java | 4 ++-- .../tree/STObjectConstructorExpressionNode.java | 4 ++-- .../internal/parser/tree/STObjectFieldNode.java | 4 ++-- .../parser/tree/STObjectTypeDescriptorNode.java | 4 ++-- .../internal/parser/tree/STOnClauseNode.java | 4 ++-- .../parser/tree/STOnConflictClauseNode.java | 4 ++-- .../internal/parser/tree/STOnFailClauseNode.java | 4 ++-- .../STOptionalFieldAccessExpressionNode.java | 4 ++-- .../tree/STOptionalTypeDescriptorNode.java | 4 ++-- .../parser/tree/STOrderByClauseNode.java | 4 ++-- .../internal/parser/tree/STOrderKeyNode.java | 4 ++-- .../parser/tree/STPanicStatementNode.java | 4 ++-- .../internal/parser/tree/STParameterNode.java | 4 ++-- .../tree/STParameterizedTypeDescriptorNode.java | 4 ++-- .../tree/STParenthesisedTypeDescriptorNode.java | 4 ++-- .../parser/tree/STParenthesizedArgList.java | 4 ++-- .../parser/tree/STPositionalArgumentNode.java | 4 ++-- .../tree/STQualifiedNameReferenceNode.java | 4 ++-- .../internal/parser/tree/STQueryActionNode.java | 4 ++-- .../parser/tree/STQueryConstructTypeNode.java | 4 ++-- .../parser/tree/STQueryExpressionNode.java | 4 ++-- .../parser/tree/STQueryPipelineNode.java | 4 ++-- .../internal/parser/tree/STReAssertionNode.java | 4 ++-- .../parser/tree/STReAtomCharOrEscapeNode.java | 4 ++-- .../parser/tree/STReAtomQuantifierNode.java | 4 ++-- .../parser/tree/STReBracedQuantifierNode.java | 4 ++-- .../parser/tree/STReCapturingGroupsNode.java | 4 ++-- ...CharSetAtomNoDashWithReCharSetNoDashNode.java | 4 ++-- .../STReCharSetAtomWithReCharSetNoDashNode.java | 4 ++-- .../parser/tree/STReCharSetRangeNoDashNode.java | 4 ++-- .../STReCharSetRangeNoDashWithReCharSetNode.java | 4 ++-- .../parser/tree/STReCharSetRangeNode.java | 4 ++-- .../tree/STReCharSetRangeWithReCharSetNode.java | 4 ++-- .../parser/tree/STReCharacterClassNode.java | 4 ++-- .../parser/tree/STReFlagExpressionNode.java | 4 ++-- .../internal/parser/tree/STReFlagsNode.java | 4 ++-- .../internal/parser/tree/STReFlagsOnOffNode.java | 4 ++-- .../internal/parser/tree/STReQuantifierNode.java | 4 ++-- .../parser/tree/STReQuoteEscapeNode.java | 4 ++-- .../internal/parser/tree/STReSequenceNode.java | 4 ++-- .../tree/STReSimpleCharClassEscapeNode.java | 4 ++-- .../internal/parser/tree/STReTermNode.java | 4 ++-- .../tree/STReUnicodeGeneralCategoryNode.java | 4 ++-- .../tree/STReUnicodePropertyEscapeNode.java | 4 ++-- .../parser/tree/STReUnicodePropertyNode.java | 4 ++-- .../parser/tree/STReUnicodeScriptNode.java | 4 ++-- .../parser/tree/STReceiveActionNode.java | 4 ++-- .../parser/tree/STReceiveFieldsNode.java | 4 ++-- .../internal/parser/tree/STRecordFieldNode.java | 4 ++-- .../tree/STRecordFieldWithDefaultValueNode.java | 4 ++-- .../parser/tree/STRecordRestDescriptorNode.java | 4 ++-- .../parser/tree/STRecordTypeDescriptorNode.java | 4 ++-- .../tree/STRemoteMethodCallActionNode.java | 4 ++-- .../parser/tree/STRequiredExpressionNode.java | 4 ++-- .../parser/tree/STRequiredParameterNode.java | 4 ++-- .../tree/STResourceAccessRestSegmentNode.java | 4 ++-- .../parser/tree/STResourcePathParameterNode.java | 4 ++-- .../internal/parser/tree/STRestArgumentNode.java | 4 ++-- .../parser/tree/STRestBindingPatternNode.java | 4 ++-- .../parser/tree/STRestDescriptorNode.java | 4 ++-- .../parser/tree/STRestMatchPatternNode.java | 4 ++-- .../parser/tree/STRestParameterNode.java | 4 ++-- .../parser/tree/STRetryStatementNode.java | 4 ++-- .../parser/tree/STReturnStatementNode.java | 4 ++-- .../parser/tree/STReturnTypeDescriptorNode.java | 4 ++-- .../parser/tree/STRollbackStatementNode.java | 4 ++-- .../internal/parser/tree/STSelectClauseNode.java | 4 ++-- .../parser/tree/STServiceDeclarationNode.java | 4 ++-- .../parser/tree/STSimpleNameReferenceNode.java | 4 ++-- .../tree/STSingletonTypeDescriptorNode.java | 4 ++-- .../parser/tree/STSpecificFieldNode.java | 4 ++-- .../internal/parser/tree/STSpreadFieldNode.java | 4 ++-- .../internal/parser/tree/STSpreadMemberNode.java | 4 ++-- .../internal/parser/tree/STStartActionNode.java | 4 ++-- .../internal/parser/tree/STStatementNode.java | 4 ++-- .../parser/tree/STStreamTypeDescriptorNode.java | 4 ++-- .../parser/tree/STStreamTypeParamsNode.java | 4 ++-- .../parser/tree/STSyncSendActionNode.java | 4 ++-- .../tree/STTableConstructorExpressionNode.java | 4 ++-- .../parser/tree/STTableTypeDescriptorNode.java | 4 ++-- .../parser/tree/STTemplateExpressionNode.java | 4 ++-- .../parser/tree/STTransactionStatementNode.java | 4 ++-- .../tree/STTransactionalExpressionNode.java | 4 ++-- .../parser/tree/STTrapExpressionNode.java | 4 ++-- .../internal/parser/tree/STTreeModifier.java | 4 ++-- .../parser/tree/STTrippleGTTokenNode.java | 4 ++-- .../parser/tree/STTupleTypeDescriptorNode.java | 4 ++-- .../parser/tree/STTypeCastExpressionNode.java | 4 ++-- .../parser/tree/STTypeCastParamNode.java | 4 ++-- .../parser/tree/STTypeDefinitionNode.java | 4 ++-- .../parser/tree/STTypeDescriptorNode.java | 4 ++-- .../parser/tree/STTypeParameterNode.java | 4 ++-- .../parser/tree/STTypeReferenceNode.java | 4 ++-- .../parser/tree/STTypeReferenceTypeDescNode.java | 4 ++-- .../parser/tree/STTypeTestExpressionNode.java | 4 ++-- .../parser/tree/STTypedBindingPatternNode.java | 4 ++-- .../parser/tree/STTypeofExpressionNode.java | 4 ++-- .../parser/tree/STUnaryExpressionNode.java | 4 ++-- .../parser/tree/STUnionTypeDescriptorNode.java | 4 ++-- .../parser/tree/STVariableDeclarationNode.java | 4 ++-- .../internal/parser/tree/STWaitActionNode.java | 4 ++-- .../internal/parser/tree/STWaitFieldNode.java | 4 ++-- .../parser/tree/STWaitFieldsListNode.java | 4 ++-- .../internal/parser/tree/STWhereClauseNode.java | 4 ++-- .../parser/tree/STWhileStatementNode.java | 4 ++-- .../tree/STWildcardBindingPatternNode.java | 4 ++-- .../parser/tree/STXMLAtomicNamePatternNode.java | 4 ++-- .../internal/parser/tree/STXMLAttributeNode.java | 4 ++-- .../parser/tree/STXMLAttributeValue.java | 4 ++-- .../internal/parser/tree/STXMLCDATANode.java | 4 ++-- .../internal/parser/tree/STXMLComment.java | 4 ++-- .../internal/parser/tree/STXMLElementNode.java | 4 ++-- .../parser/tree/STXMLElementTagNode.java | 4 ++-- .../parser/tree/STXMLEmptyElementNode.java | 4 ++-- .../internal/parser/tree/STXMLEndTagNode.java | 4 ++-- .../parser/tree/STXMLFilterExpressionNode.java | 4 ++-- .../internal/parser/tree/STXMLItemNode.java | 4 ++-- .../internal/parser/tree/STXMLNameNode.java | 4 ++-- .../tree/STXMLNamePatternChainingNode.java | 4 ++-- .../tree/STXMLNamespaceDeclarationNode.java | 4 ++-- .../parser/tree/STXMLNavigateExpressionNode.java | 4 ++-- .../parser/tree/STXMLProcessingInstruction.java | 4 ++-- .../parser/tree/STXMLQualifiedNameNode.java | 4 ++-- .../parser/tree/STXMLSimpleNameNode.java | 4 ++-- .../internal/parser/tree/STXMLStartTagNode.java | 4 ++-- .../parser/tree/STXMLStepExpressionNode.java | 4 ++-- .../internal/parser/tree/STXMLTextNode.java | 4 ++-- .../compiler/syntax/tree/ActionNode.java | 4 ++-- .../syntax/tree/AnnotAccessExpressionNode.java | 4 ++-- .../syntax/tree/AnnotationAttachPointNode.java | 4 ++-- .../syntax/tree/AnnotationDeclarationNode.java | 4 ++-- .../compiler/syntax/tree/AnnotationNode.java | 4 ++-- .../tree/AnonymousFunctionExpressionNode.java | 4 ++-- .../compiler/syntax/tree/ArrayDimensionNode.java | 4 ++-- .../syntax/tree/ArrayTypeDescriptorNode.java | 4 ++-- .../syntax/tree/AssignmentStatementNode.java | 4 ++-- .../syntax/tree/AsyncSendActionNode.java | 4 ++-- .../syntax/tree/BallerinaNameReferenceNode.java | 4 ++-- .../compiler/syntax/tree/BasicLiteralNode.java | 4 ++-- .../syntax/tree/BinaryExpressionNode.java | 4 ++-- .../compiler/syntax/tree/BindingPatternNode.java | 4 ++-- .../compiler/syntax/tree/BlockStatementNode.java | 4 ++-- .../syntax/tree/BracedExpressionNode.java | 4 ++-- .../compiler/syntax/tree/BreakStatementNode.java | 4 ++-- .../tree/BuiltinSimpleNameReferenceNode.java | 4 ++-- .../syntax/tree/ByteArrayLiteralNode.java | 4 ++-- .../syntax/tree/CaptureBindingPatternNode.java | 4 ++-- .../syntax/tree/CheckExpressionNode.java | 4 ++-- .../syntax/tree/ClassDefinitionNode.java | 4 ++-- .../compiler/syntax/tree/ClauseNode.java | 4 ++-- .../tree/ClientResourceAccessActionNode.java | 4 ++-- .../compiler/syntax/tree/CollectClauseNode.java | 4 ++-- .../compiler/syntax/tree/CommitActionNode.java | 4 ++-- .../tree/CompoundAssignmentStatementNode.java | 4 ++-- .../syntax/tree/ComputedNameFieldNode.java | 4 ++-- .../tree/ComputedResourceAccessSegmentNode.java | 4 ++-- .../syntax/tree/ConditionalExpressionNode.java | 4 ++-- .../syntax/tree/ConstantDeclarationNode.java | 4 ++-- .../syntax/tree/ContinueStatementNode.java | 4 ++-- .../syntax/tree/DefaultableParameterNode.java | 4 ++-- .../syntax/tree/DistinctTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/DoStatementNode.java | 4 ++-- .../compiler/syntax/tree/DocumentationNode.java | 4 ++-- .../compiler/syntax/tree/DoubleGTTokenNode.java | 4 ++-- .../compiler/syntax/tree/ElseBlockNode.java | 4 ++-- .../syntax/tree/EnumDeclarationNode.java | 4 ++-- .../compiler/syntax/tree/EnumMemberNode.java | 4 ++-- .../syntax/tree/ErrorBindingPatternNode.java | 4 ++-- .../tree/ErrorConstructorExpressionNode.java | 4 ++-- .../syntax/tree/ErrorMatchPatternNode.java | 4 ++-- .../ExplicitAnonymousFunctionExpressionNode.java | 4 ++-- .../syntax/tree/ExplicitNewExpressionNode.java | 4 ++-- .../syntax/tree/ExpressionFunctionBodyNode.java | 4 ++-- .../compiler/syntax/tree/ExpressionNode.java | 4 ++-- .../syntax/tree/ExpressionStatementNode.java | 4 ++-- .../syntax/tree/ExternalFunctionBodyNode.java | 4 ++-- .../compiler/syntax/tree/FailStatementNode.java | 4 ++-- .../syntax/tree/FieldAccessExpressionNode.java | 4 ++-- .../syntax/tree/FieldBindingPatternFullNode.java | 4 ++-- .../syntax/tree/FieldBindingPatternNode.java | 4 ++-- .../tree/FieldBindingPatternVarnameNode.java | 4 ++-- .../syntax/tree/FieldMatchPatternNode.java | 4 ++-- .../compiler/syntax/tree/FlushActionNode.java | 4 ++-- .../syntax/tree/ForEachStatementNode.java | 4 ++-- .../compiler/syntax/tree/ForkStatementNode.java | 4 ++-- .../compiler/syntax/tree/FromClauseNode.java | 4 ++-- .../syntax/tree/FunctionArgumentNode.java | 4 ++-- .../syntax/tree/FunctionBodyBlockNode.java | 4 ++-- .../compiler/syntax/tree/FunctionBodyNode.java | 4 ++-- .../syntax/tree/FunctionCallExpressionNode.java | 4 ++-- .../syntax/tree/FunctionDefinitionNode.java | 4 ++-- .../syntax/tree/FunctionSignatureNode.java | 4 ++-- .../syntax/tree/FunctionTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/GroupByClauseNode.java | 4 ++-- .../tree/GroupingKeyVarDeclarationNode.java | 4 ++-- .../syntax/tree/IfElseStatementNode.java | 4 ++-- .../ImplicitAnonymousFunctionExpressionNode.java | 4 ++-- .../ImplicitAnonymousFunctionParameters.java | 4 ++-- .../syntax/tree/ImplicitNewExpressionNode.java | 4 ++-- .../syntax/tree/ImportDeclarationNode.java | 4 ++-- .../compiler/syntax/tree/ImportOrgNameNode.java | 4 ++-- .../compiler/syntax/tree/ImportPrefixNode.java | 4 ++-- .../syntax/tree/IncludedRecordParameterNode.java | 4 ++-- .../syntax/tree/IndexedExpressionNode.java | 4 ++-- .../syntax/tree/InferredTypedescDefaultNode.java | 4 ++-- .../syntax/tree/InlineCodeReferenceNode.java | 4 ++-- .../syntax/tree/IntermediateClauseNode.java | 4 ++-- .../compiler/syntax/tree/InterpolationNode.java | 4 ++-- .../tree/IntersectionTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/JoinClauseNode.java | 4 ++-- .../compiler/syntax/tree/KeySpecifierNode.java | 4 ++-- .../syntax/tree/KeyTypeConstraintNode.java | 4 ++-- .../compiler/syntax/tree/LetClauseNode.java | 4 ++-- .../compiler/syntax/tree/LetExpressionNode.java | 4 ++-- .../syntax/tree/LetVariableDeclarationNode.java | 4 ++-- .../compiler/syntax/tree/LimitClauseNode.java | 4 ++-- .../syntax/tree/ListBindingPatternNode.java | 4 ++-- .../tree/ListConstructorExpressionNode.java | 4 ++-- .../syntax/tree/ListMatchPatternNode.java | 4 ++-- .../syntax/tree/ListenerDeclarationNode.java | 4 ++-- .../tree/LocalTypeDefinitionStatementNode.java | 4 ++-- .../compiler/syntax/tree/LockStatementNode.java | 4 ++-- .../syntax/tree/MapTypeDescriptorNode.java | 4 ++-- .../syntax/tree/MappingBindingPatternNode.java | 4 ++-- .../tree/MappingConstructorExpressionNode.java | 4 ++-- .../compiler/syntax/tree/MappingFieldNode.java | 4 ++-- .../syntax/tree/MappingMatchPatternNode.java | 4 ++-- .../syntax/tree/MarkdownCodeBlockNode.java | 4 ++-- .../syntax/tree/MarkdownCodeLineNode.java | 4 ++-- .../tree/MarkdownDocumentationLineNode.java | 4 ++-- .../syntax/tree/MarkdownDocumentationNode.java | 4 ++-- .../MarkdownParameterDocumentationLineNode.java | 4 ++-- .../compiler/syntax/tree/MatchClauseNode.java | 4 ++-- .../compiler/syntax/tree/MatchGuardNode.java | 4 ++-- .../compiler/syntax/tree/MatchStatementNode.java | 4 ++-- .../syntax/tree/MemberTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/MetadataNode.java | 4 ++-- .../syntax/tree/MethodCallExpressionNode.java | 4 ++-- .../syntax/tree/MethodDeclarationNode.java | 4 ++-- .../syntax/tree/ModuleMemberDeclarationNode.java | 4 ++-- .../compiler/syntax/tree/ModulePartNode.java | 4 ++-- .../tree/ModuleVariableDeclarationNode.java | 4 ++-- .../tree/ModuleXMLNamespaceDeclarationNode.java | 4 ++-- .../compiler/syntax/tree/NameReferenceNode.java | 4 ++-- .../syntax/tree/NamedArgBindingPatternNode.java | 4 ++-- .../syntax/tree/NamedArgMatchPatternNode.java | 4 ++-- .../compiler/syntax/tree/NamedArgumentNode.java | 4 ++-- .../syntax/tree/NamedWorkerDeclarationNode.java | 4 ++-- .../syntax/tree/NamedWorkerDeclarator.java | 4 ++-- .../compiler/syntax/tree/NewExpressionNode.java | 4 ++-- .../compiler/syntax/tree/NilLiteralNode.java | 4 ++-- .../syntax/tree/NilTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/NodeFactory.java | 7 +++---- .../compiler/syntax/tree/NodeTransformer.java | 4 ++-- .../compiler/syntax/tree/NodeVisitor.java | 4 ++-- .../tree/ObjectConstructorExpressionNode.java | 4 ++-- .../compiler/syntax/tree/ObjectFieldNode.java | 4 ++-- .../syntax/tree/ObjectTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/OnClauseNode.java | 4 ++-- .../syntax/tree/OnConflictClauseNode.java | 4 ++-- .../compiler/syntax/tree/OnFailClauseNode.java | 4 ++-- .../tree/OptionalFieldAccessExpressionNode.java | 4 ++-- .../syntax/tree/OptionalTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/OrderByClauseNode.java | 4 ++-- .../compiler/syntax/tree/OrderKeyNode.java | 4 ++-- .../compiler/syntax/tree/PanicStatementNode.java | 4 ++-- .../compiler/syntax/tree/ParameterNode.java | 4 ++-- .../tree/ParameterizedTypeDescriptorNode.java | 4 ++-- .../tree/ParenthesisedTypeDescriptorNode.java | 4 ++-- .../syntax/tree/ParenthesizedArgList.java | 4 ++-- .../syntax/tree/PositionalArgumentNode.java | 4 ++-- .../syntax/tree/QualifiedNameReferenceNode.java | 4 ++-- .../compiler/syntax/tree/QueryActionNode.java | 4 ++-- .../syntax/tree/QueryConstructTypeNode.java | 4 ++-- .../syntax/tree/QueryExpressionNode.java | 16 ++-------------- .../compiler/syntax/tree/QueryPipelineNode.java | 4 ++-- .../compiler/syntax/tree/ReAssertionNode.java | 4 ++-- .../syntax/tree/ReAtomCharOrEscapeNode.java | 4 ++-- .../syntax/tree/ReAtomQuantifierNode.java | 4 ++-- .../syntax/tree/ReBracedQuantifierNode.java | 4 ++-- .../syntax/tree/ReCapturingGroupsNode.java | 4 ++-- ...CharSetAtomNoDashWithReCharSetNoDashNode.java | 4 ++-- .../ReCharSetAtomWithReCharSetNoDashNode.java | 4 ++-- .../syntax/tree/ReCharSetRangeNoDashNode.java | 4 ++-- .../ReCharSetRangeNoDashWithReCharSetNode.java | 4 ++-- .../compiler/syntax/tree/ReCharSetRangeNode.java | 4 ++-- .../tree/ReCharSetRangeWithReCharSetNode.java | 4 ++-- .../syntax/tree/ReCharacterClassNode.java | 4 ++-- .../syntax/tree/ReFlagExpressionNode.java | 4 ++-- .../compiler/syntax/tree/ReFlagsNode.java | 4 ++-- .../compiler/syntax/tree/ReFlagsOnOffNode.java | 4 ++-- .../compiler/syntax/tree/ReQuantifierNode.java | 4 ++-- .../compiler/syntax/tree/ReQuoteEscapeNode.java | 4 ++-- .../compiler/syntax/tree/ReSequenceNode.java | 4 ++-- .../syntax/tree/ReSimpleCharClassEscapeNode.java | 4 ++-- .../compiler/syntax/tree/ReTermNode.java | 4 ++-- .../tree/ReUnicodeGeneralCategoryNode.java | 4 ++-- .../syntax/tree/ReUnicodePropertyEscapeNode.java | 4 ++-- .../syntax/tree/ReUnicodePropertyNode.java | 4 ++-- .../syntax/tree/ReUnicodeScriptNode.java | 4 ++-- .../compiler/syntax/tree/ReceiveActionNode.java | 4 ++-- .../compiler/syntax/tree/ReceiveFieldsNode.java | 4 ++-- .../compiler/syntax/tree/RecordFieldNode.java | 4 ++-- .../tree/RecordFieldWithDefaultValueNode.java | 4 ++-- .../syntax/tree/RecordRestDescriptorNode.java | 4 ++-- .../syntax/tree/RecordTypeDescriptorNode.java | 4 ++-- .../syntax/tree/RemoteMethodCallActionNode.java | 4 ++-- .../syntax/tree/RequiredExpressionNode.java | 4 ++-- .../syntax/tree/RequiredParameterNode.java | 4 ++-- .../tree/ResourceAccessRestSegmentNode.java | 4 ++-- .../syntax/tree/ResourcePathParameterNode.java | 4 ++-- .../compiler/syntax/tree/RestArgumentNode.java | 4 ++-- .../syntax/tree/RestBindingPatternNode.java | 4 ++-- .../compiler/syntax/tree/RestDescriptorNode.java | 4 ++-- .../syntax/tree/RestMatchPatternNode.java | 4 ++-- .../compiler/syntax/tree/RestParameterNode.java | 4 ++-- .../compiler/syntax/tree/RetryStatementNode.java | 4 ++-- .../syntax/tree/ReturnStatementNode.java | 4 ++-- .../syntax/tree/ReturnTypeDescriptorNode.java | 4 ++-- .../syntax/tree/RollbackStatementNode.java | 4 ++-- .../compiler/syntax/tree/SelectClauseNode.java | 4 ++-- .../syntax/tree/ServiceDeclarationNode.java | 4 ++-- .../syntax/tree/SimpleNameReferenceNode.java | 4 ++-- .../syntax/tree/SingletonTypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/SpecificFieldNode.java | 4 ++-- .../compiler/syntax/tree/SpreadFieldNode.java | 4 ++-- .../compiler/syntax/tree/SpreadMemberNode.java | 4 ++-- .../compiler/syntax/tree/StartActionNode.java | 4 ++-- .../compiler/syntax/tree/StatementNode.java | 4 ++-- .../syntax/tree/StreamTypeDescriptorNode.java | 4 ++-- .../syntax/tree/StreamTypeParamsNode.java | 4 ++-- .../compiler/syntax/tree/SyncSendActionNode.java | 4 ++-- .../tree/TableConstructorExpressionNode.java | 4 ++-- .../syntax/tree/TableTypeDescriptorNode.java | 4 ++-- .../syntax/tree/TemplateExpressionNode.java | 4 ++-- .../syntax/tree/TransactionStatementNode.java | 4 ++-- .../syntax/tree/TransactionalExpressionNode.java | 4 ++-- .../compiler/syntax/tree/TrapExpressionNode.java | 4 ++-- .../compiler/syntax/tree/TreeModifier.java | 4 ++-- .../compiler/syntax/tree/TrippleGTTokenNode.java | 4 ++-- .../syntax/tree/TupleTypeDescriptorNode.java | 4 ++-- .../syntax/tree/TypeCastExpressionNode.java | 4 ++-- .../compiler/syntax/tree/TypeCastParamNode.java | 4 ++-- .../compiler/syntax/tree/TypeDefinitionNode.java | 4 ++-- .../compiler/syntax/tree/TypeDescriptorNode.java | 4 ++-- .../compiler/syntax/tree/TypeParameterNode.java | 4 ++-- .../compiler/syntax/tree/TypeReferenceNode.java | 4 ++-- .../syntax/tree/TypeReferenceTypeDescNode.java | 4 ++-- .../syntax/tree/TypeTestExpressionNode.java | 4 ++-- .../syntax/tree/TypedBindingPatternNode.java | 4 ++-- .../syntax/tree/TypeofExpressionNode.java | 4 ++-- .../syntax/tree/UnaryExpressionNode.java | 4 ++-- .../syntax/tree/UnionTypeDescriptorNode.java | 4 ++-- .../syntax/tree/VariableDeclarationNode.java | 4 ++-- .../compiler/syntax/tree/WaitActionNode.java | 4 ++-- .../compiler/syntax/tree/WaitFieldNode.java | 4 ++-- .../compiler/syntax/tree/WaitFieldsListNode.java | 4 ++-- .../compiler/syntax/tree/WhereClauseNode.java | 4 ++-- .../compiler/syntax/tree/WhileStatementNode.java | 4 ++-- .../syntax/tree/WildcardBindingPatternNode.java | 4 ++-- .../syntax/tree/XMLAtomicNamePatternNode.java | 4 ++-- .../compiler/syntax/tree/XMLAttributeNode.java | 4 ++-- .../compiler/syntax/tree/XMLAttributeValue.java | 4 ++-- .../compiler/syntax/tree/XMLCDATANode.java | 4 ++-- .../compiler/syntax/tree/XMLComment.java | 4 ++-- .../compiler/syntax/tree/XMLElementNode.java | 4 ++-- .../compiler/syntax/tree/XMLElementTagNode.java | 4 ++-- .../syntax/tree/XMLEmptyElementNode.java | 4 ++-- .../compiler/syntax/tree/XMLEndTagNode.java | 4 ++-- .../syntax/tree/XMLFilterExpressionNode.java | 4 ++-- .../compiler/syntax/tree/XMLItemNode.java | 4 ++-- .../compiler/syntax/tree/XMLNameNode.java | 4 ++-- .../syntax/tree/XMLNamePatternChainingNode.java | 4 ++-- .../syntax/tree/XMLNamespaceDeclarationNode.java | 4 ++-- .../syntax/tree/XMLNavigateExpressionNode.java | 4 ++-- .../syntax/tree/XMLProcessingInstruction.java | 4 ++-- .../syntax/tree/XMLQualifiedNameNode.java | 4 ++-- .../compiler/syntax/tree/XMLSimpleNameNode.java | 4 ++-- .../compiler/syntax/tree/XMLStartTagNode.java | 4 ++-- .../syntax/tree/XMLStepExpressionNode.java | 4 ++-- .../compiler/syntax/tree/XMLTextNode.java | 4 ++-- .../compiler/internal/treegen/TreeGen.java | 3 ++- .../treegen/model/template/TreeNodeClass.java | 4 ++-- .../external_node_factory_template.mustache | 4 ++-- .../resources/external_node_template.mustache | 4 ++-- .../external_node_transformer_template.mustache | 4 ++-- .../external_node_visitor_template.mustache | 4 ++-- .../external_tree_modifier_template.mustache | 4 ++-- .../internal_node_factory_template.mustache | 4 ++-- .../resources/internal_node_template.mustache | 4 ++-- .../internal_node_transformer_template.mustache | 4 ++-- .../internal_node_visitor_template.mustache | 4 ++-- .../internal_tree_modifier_template.mustache | 4 ++-- 520 files changed, 1041 insertions(+), 1053 deletions(-) diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java index 9089651eaed5..d859b02bf735 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java index 78493020125e..86f48a3de80a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotAccessExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java index 90feb3923d56..e50997571c91 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationAttachPointNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java index ebf3fa7ae7f2..2c7597de27cf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java index f52386c69b8d..0c1cec8fddac 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnnotationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java index b9ef8e63b7cd..4257f0e9844c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAnonymousFunctionExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java index ce45d30672a0..237ff7ba2af2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayDimensionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java index 616b9045f252..9534693af602 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STArrayTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java index c211746de3dc..7f7ef1dc6582 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAssignmentStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java index dd023633d7b2..f5ee87951d31 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STAsyncSendActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java index ae4ed1b6aed5..f73353e839c4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBallerinaNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java index 11f3aae3f530..c188489caba4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBasicLiteralNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java index b08cd8c88b84..bbbbf53b82ff 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBinaryExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java index d88045aaf040..085a4b6851ac 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java index a7fc0b7b357f..98502ccc25c7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBlockStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java index dec01a282af8..1ae5b47c072f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBracedExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java index dd0e68add9cb..8c68ce48b657 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBreakStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java index 1049d2818fbf..66bb4cc825b4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STBuiltinSimpleNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java index 0377e8e32e45..dd5b23f91658 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STByteArrayLiteralNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java index 0fcb7ec73efb..68c62abb48aa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCaptureBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java index 7720371a515b..850d616ab539 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCheckExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java index 8ff9c12f096a..f062680f31ac 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClassDefinitionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java index cd2d57194f7f..8c7d50127d5f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java index f9fc59f666eb..dcb0b6362afc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STClientResourceAccessActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java index ff9dd26cc311..6da6e8f54aef 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCollectClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java index 1c1d5d6eade7..e395bec3df33 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCommitActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java index 43beb33ad064..16cecd254772 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STCompoundAssignmentStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java index ae759818fcaf..d1529a712f26 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedNameFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java index e7f6f1826190..a6ae738bcfdd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STComputedResourceAccessSegmentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java index ab52c583dfce..b0781af0ae90 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConditionalExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java index 391921d63240..190def625068 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STConstantDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java index 8c46fae5061a..e29c93008589 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STContinueStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java index 8995ad6ddcbe..0ac74ac0108c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDefaultableParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java index 3e2165437396..fa9a8e9e1d5a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDistinctTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java index 4cce55e0277d..73542d00bfb3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java index e52e1e39e6f6..82046426207c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDocumentationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java index 7c8e4a929420..3d56b6e65f43 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STDoubleGTTokenNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java index 90eb6f6026a0..83e75758a79b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STElseBlockNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java index b55ca5a3a1db..2871f32e4fa5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java index ec6321f9dffb..66bdd8028de0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STEnumMemberNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java index c1f8e87d386b..25df8d7d06bd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java index 21d5887b4183..d3176672e704 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java index c4bc93623e91..bb1e49754ee4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STErrorMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java index 696e01ea727d..7b7ee9e0feda 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitAnonymousFunctionExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java index 9c2ec04f7d10..1867b96b0f96 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExplicitNewExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java index 94390ffa99d7..c4eae6435f26 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionFunctionBodyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java index b1ce44e9e302..bf7dbaac5877 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java index a64992c14ba6..5af3bbc64330 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExpressionStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java index c7bac51df588..ba9adbec9ecd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STExternalFunctionBodyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java index 90478bd18c08..10e0e06f1d13 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFailStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java index f6dc9d9f0605..776e89710646 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldAccessExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java index 356323083b1d..7856a245cea4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternFullNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java index 0a6f5669e4c2..13c708fbb9c3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java index cca12988aa98..e0a02e5a40f5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldBindingPatternVarnameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java index 1282b37d1619..00a29465e372 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFieldMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java index 14cdadc520e0..b4085cfba41a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFlushActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java index f8c83d1dd8dc..08a674fc08f5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForEachStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java index f652c779610d..78acd59aaf5c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STForkStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java index 81798e50f145..db48ba33ad8f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFromClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java index 8a26263f25cf..6fabfe01c56f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java index afe2797a2e99..ae3893565f58 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyBlockNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java index 2b6cc966f7c3..bf57a325ba5e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionBodyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java index 11b2224351c1..2f9091830db5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionCallExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java index 1273b8a9b2ae..4558206c4f3c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionDefinitionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java index ab04ea2d2ddd..e3cfd7159d99 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionSignatureNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java index f01d767bc0d1..cefa02cedfc0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STFunctionTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java index 12270689734a..a4c8a888a675 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupByClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java index 6b747d820d39..ca12b20771e6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STGroupingKeyVarDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java index 7ec864e2d6cd..6b02be0aff60 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIfElseStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java index 568c797e4ac0..7e01f73961c9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java index 1316d1c758a0..62f3e9afed80 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitAnonymousFunctionParameters.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java index ae766d78a0c7..2bfab911fdd1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImplicitNewExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java index 3a2a7eea7cb0..fca4cd4b9a07 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java index 3d1933f0944f..07c7c6eb6605 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportOrgNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java index 47fcd2d6286a..a7c139e16592 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STImportPrefixNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java index de5f07221831..510a06f142a6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIncludedRecordParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java index f2c01b29b119..68c7cfb01d5f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIndexedExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java index 79ce8adf7006..027d7fd0971d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInferredTypedescDefaultNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java index 859c66842a64..805810ddc507 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInlineCodeReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java index 8341cc5009f7..a589f983d034 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntermediateClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java index 4c9dc80c47de..caaedaad24eb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STInterpolationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java index d6710a1c26cb..56ad23fa2993 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STIntersectionTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java index 2dd046068f30..b6b63845657d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STJoinClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java index 8bf4d6dd9d8d..4eb1da55df49 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeySpecifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java index abac033d91b6..76eb2cdf38b6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STKeyTypeConstraintNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java index a765223b80d4..93c95b96b2b3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java index 855ff469cdf4..ef31062d68e4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java index c2aa0443fcdf..1c93b417873b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLetVariableDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java index f72be5b48fb6..f8752f341aa2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLimitClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java index 21076c14e0e1..ef2ce9774475 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java index 8877d5c58736..18b20c9e066e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java index a9ebd7188e53..a58592653915 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java index 5dc19f05eee3..31e439314889 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STListenerDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java index 94a9cd0b1f03..67b63af31b29 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLocalTypeDefinitionStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java index aa85f9ff0ffb..1c88b367e46a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STLockStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java index 50eb4749121a..4df106f5c0b1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMapTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java index 35901e142723..acbd9b9ca41a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java index 36581381e38b..c4784f7ab194 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java index 630c656d5036..24e92cd5fd49 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java index fb512a0c27c5..a126719c87f4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMappingMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java index 61c8ae8a8880..c4bc06f9a572 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeBlockNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java index cb885b446592..cf4eb8c6eb4a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownCodeLineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java index a5e9ffaaec4e..863e1482aa66 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationLineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java index 9fe8c1d2ee4c..733252802795 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownDocumentationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java index 1dcc4a535069..0ba153609052 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMarkdownParameterDocumentationLineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java index 77e866b9c608..0bd4a526fef1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java index b67fd673988a..8fcf228db842 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchGuardNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java index 50e5718ac0f2..fa1b2e8e78aa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMatchStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java index 13fe43c55250..33d3d7bcd5a4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMemberTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java index 8059dc075fb4..08d904f88fe2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMetadataNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java index b28d7c5c1aa3..265d1eecbb76 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodCallExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java index ba38815c31fc..b38f9349b35b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STMethodDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java index 02296e268ba4..bde68e258644 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleMemberDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java index 70164c7ce644..07d5bd639474 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModulePartNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java index af03703fc1d2..7c3ba0bf3489 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleVariableDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java index 9d2ce245d706..086791c444ad 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STModuleXMLNamespaceDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java index 5f4cae78a5c7..c7e7c82b47fd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java index eb8443592dd4..d4656b550e3a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java index 31e7f2e6483f..1e05a9a9f05c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java index 2b7153f6ca86..834098e2e7a1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java index 9825dcd13c3c..4bbe811b30f5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java index 370736cd8229..524e74759347 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNamedWorkerDeclarator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java index 1a4f2f499e1b..f5ad9dd210e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNewExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java index 154980886e5a..df16a04b7bf2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilLiteralNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java index 9165086d1916..841971722164 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNilTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java index 1d9ede8b9d09..9faa0246f642 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java index 4211aadf7dfd..14b60714218b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeTransformer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java index d2574e942796..e7b961a89e50 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STNodeVisitor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java index fad9971b236c..d69aae9e47fb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java index a903a5cadff8..014f490749e9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java index f0958b4a3e0e..b9433f31a800 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STObjectTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java index ee867c432dd8..58c617336c1c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java index fde06753e233..41b205efa65a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnConflictClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java index 418d83021fca..dbccda45b651 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOnFailClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java index 0d2179779702..375c82f6b67c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalFieldAccessExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java index a76804aed4fe..6dd7a9e294aa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOptionalTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java index 29499532a5a1..62b85c4544e5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderByClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java index ca4d445904aa..35190a6214e9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STOrderKeyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java index 227d0badbab9..84bb27c8fb71 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPanicStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java index 6d2e60fa1499..00e816dcc00e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java index 6a562051eb24..26ad54163e91 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParameterizedTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java index 131a863efcc7..1c365973f6ab 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesisedTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java index 0f2f011ff194..a1d5001815ab 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STParenthesizedArgList.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java index 13f86d640362..41f004386a13 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STPositionalArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java index ca81e0232df2..07dbadb1f8b4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQualifiedNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java index 798d7081e93f..2b7b5785842d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java index 14a4eb64f631..09bbef4e25d9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryConstructTypeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java index ee93c1c91c05..2eb4ea80ae1e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java index 84f0f5715918..0204f7983c32 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STQueryPipelineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java index f9308059777c..c8293a8db994 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAssertionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java index 2782127ac5f8..84b1065b70ff 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomCharOrEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java index 698f820e86c2..4f2ff3093305 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReAtomQuantifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java index c61257d15a43..02db59df3ac6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReBracedQuantifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java index f59b816fd681..baf51c347b39 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCapturingGroupsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java index 974d9805e8cb..c6adad0b8d97 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomNoDashWithReCharSetNoDashNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java index 0c61f6a0961b..97116103c53b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetAtomWithReCharSetNoDashNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java index 814f0f858b96..d56114438b0f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java index 6d1fae10bfbc..13120630b814 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNoDashWithReCharSetNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java index 1019c3a984fd..d3cee1396aad 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java index 05634ccc81a5..a3e0a58ee08f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharSetRangeWithReCharSetNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java index 9da8fe699a84..7808c023b313 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReCharacterClassNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java index 5a958fffd7ed..cc725d0a2035 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java index b7b386e4b530..da7335a7995d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java index 62ac8a522a7c..93c124900dfd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReFlagsOnOffNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java index d3bb42a4c56a..ec120160e432 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuantifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java index 75e4bb590bb4..542881624ba0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReQuoteEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java index c7e886b898e5..a808340bd869 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSequenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java index b1f5b4390b28..09e16bfd71f6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReSimpleCharClassEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java index 0e797d54e4a6..500c10ef2645 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReTermNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java index 5f54b7a655f8..4bafe131ba2f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeGeneralCategoryNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java index ca9990d0dc27..bca7d07e22cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java index ae78a8c333bb..4eb2ae8ac6b7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodePropertyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java index 63a5957369bc..d7a0a5cb2784 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReUnicodeScriptNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java index 9bf4713da386..ff830ad1696c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java index 5b42347cfa72..afce05b0c4e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReceiveFieldsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java index ebe864c591cf..5ffc1771ac15 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java index ec29c780837f..e25ffbb3e084 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordFieldWithDefaultValueNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java index 4aaa0067ed26..bd77c6c20fa3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordRestDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java index 77c75b9b3d32..ecd2e5cb3547 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRecordTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java index 96a6e14356aa..28b1469d2a9d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRemoteMethodCallActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java index 607f72342862..8e8a8bff5685 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java index 9d01ba460b83..7f71d39bb506 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRequiredParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java index aab92118b31e..c81a55b1645f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourceAccessRestSegmentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java index f78bc57c6875..8c5e59915bb7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STResourcePathParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java index 419d48ea9673..c2c34743b787 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java index a2118276b799..b8a6cf278e2d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java index 614ebed4397e..c9d00274aa01 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java index bb0fb7cbc2e1..75fbb7474904 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java index 23f5477cdcd3..9369738a37d1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRestParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java index 55b46d08b88d..0b65ef286334 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRetryStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java index f6190e8a6f74..187652eaa43a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java index 56a0cd9c9029..3ca1b349aedf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STReturnTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java index f9db518f182d..daeef7dd5f57 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STRollbackStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java index 5cb827060cb0..fb2891d22693 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSelectClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java index 712d6817b1db..7490b536c283 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STServiceDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java index bb504b8bc1c4..6f3e66bd893f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSimpleNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java index 641f7044e4d2..20df451c5cc0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSingletonTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java index b7db3434c5a2..3b8f3bd62964 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpecificFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java index e0857cda6d6c..39fc25132877 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java index 1e9e78ecfb8c..6236d89abe2e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSpreadMemberNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java index 2057046ffcb7..eae92e8a8922 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStartActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java index 45546525ed4c..4a28bca2866e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java index 2de4de19bb41..a615cf9de6d7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java index c256d90a9b20..7ded33044487 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STStreamTypeParamsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java index 210968197d0b..824492d0456f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STSyncSendActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java index 4c331525bdbc..18fc1b1556bc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java index 71c4c61474ae..3abf5e5d777c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTableTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java index 57d0947a9ba9..8bafa1bce356 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTemplateExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java index ddcd2647a555..2f5bba24e656 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java index 3f5611bcc6b0..d6037f994a91 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTransactionalExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java index 92b47bb72fae..dcd7168bda06 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrapExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java index 0978e35d8704..f7ad60532229 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTreeModifier.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java index b225ac9599a9..78594ba56da2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTrippleGTTokenNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java index fba79a02d01e..c338b76ff00a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTupleTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java index 2a8c6b26caf4..22d1a30af0c3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java index edeb4cdfc0f7..43bbe5d630e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeCastParamNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java index bd453d0f0ed6..70c6e5f19fda 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDefinitionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java index 9ad04c77c690..57f9dba06fc7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java index 86c21ee186c2..52ae076ca9f3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java index bc7a4c1a007a..4f265a50baf1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java index d39d363b94e6..bbdb64382fd0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeReferenceTypeDescNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java index 5f0da02a346e..f046fa0908eb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeTestExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java index c7316280ff1d..2b9419866629 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypedBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java index a5be5415fcf4..c9e2b7ff39b6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STTypeofExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java index 9b05d263f6d6..74495653a004 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnaryExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java index 11cdd236e6b3..17d47a210a9c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STUnionTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java index 9525c9a7fad9..32ce0f0785d4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STVariableDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java index 3d88cbf29149..3109ec8da5f2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java index eb728e3b8f53..5fad3c608672 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java index 5f53b6c9887c..4067469cab98 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWaitFieldsListNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java index b9fb145e0886..36a8a14edb3f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhereClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java index 16d9d59147f6..5fd8304a5ce4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWhileStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java index 811cb48c3615..d7a4432ae89f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STWildcardBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java index 04a3d9161d30..312bd41ba26a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAtomicNamePatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java index 0068a6a4ad80..ca551579d0dd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java index 757b98542b0a..f197b2e2ad20 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLAttributeValue.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java index ee0b68a44fdf..8cf58f2f9b11 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLCDATANode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java index d884c85b1e71..8959a4fb6cb5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLComment.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java index c5439cdbd0e0..a2e061834a30 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java index de858a08ab9d..fc3a5c9db0ca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLElementTagNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java index 20ec3eb0a3d9..9a9a11f79a48 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEmptyElementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java index 78fba176de90..0afd7d6108eb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLEndTagNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java index 0db713e374e6..b35a3fdc6ee9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLFilterExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java index 132296c57ba8..2e313bd43616 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLItemNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java index b6421014e074..bd1b4960bece 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java index 459c33f17fe6..ee31944bb209 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamePatternChainingNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java index a343d8ec1142..74940208658a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNamespaceDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java index bb8203236d37..497a4879b6b7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLNavigateExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java index fefebba5a559..85442cb296d6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLProcessingInstruction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java index 591f02d338e2..26683ddb9bc8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLQualifiedNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java index 94c1f86cba08..073e2d7c748d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLSimpleNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java index 9e0fce6b2454..26d831bd1e51 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStartTagNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java index 45da77a0df40..ef9f605d6bfa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLStepExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java index d34d1c3fa1fd..427145cb4d8b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/internal/parser/tree/STXMLTextNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java index 4df1c31c2697..e2c2c7afdbc8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java index a3fcbbf4f120..965e5a4e7b91 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotAccessExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java index f997efebe189..7862e0bd1b97 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationAttachPointNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java index 54c2d8f93d1f..58fcb3edd6e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java index a5bf516fe678..986357de27e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnnotationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java index 795cdf42f556..b9d6d32289f2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AnonymousFunctionExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java index 6bc3783cda25..d8b5418e0915 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayDimensionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java index 08f4c203c70b..3ffbbc1912be 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ArrayTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java index f410c9571835..e996344f26d2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AssignmentStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java index 08a7a981dc16..5c8a6033ffc5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/AsyncSendActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java index 95a50e9c82af..2e2871291a08 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BallerinaNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java index 6ad352f9c17f..0491f67f8a2e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BasicLiteralNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java index 5fcd2445ca8c..36413d38b56c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BinaryExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java index 644db349c2cb..f1f060db4503 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java index 6ea88771d6fa..16c5271dd1c4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BlockStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java index 68ce210cd045..8840d11965b5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BracedExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java index cd67c5efffab..974e842b663b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BreakStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java index 83a356bf4be9..8e3208ce65f4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/BuiltinSimpleNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java index 86312bc51c8a..b6d8869d2ba1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ByteArrayLiteralNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java index 4753a17c3e44..2b0dd23852ab 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CaptureBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java index 89f68fe252ca..0c5de22dac2a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CheckExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java index 8fd8dc8f7f20..508f3ed7c1aa 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClassDefinitionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java index 573d8915da6a..267cc744e0d8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java index 5ad62b6dab38..e21910880004 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ClientResourceAccessActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java index 290b836da7a3..130a3754cb65 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CollectClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java index 5398a8c7d219..62dad2149ff8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CommitActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java index 4c71014d87a1..4ea3adf9d04a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/CompoundAssignmentStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java index bbc45c210b85..6793b1fd25cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedNameFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java index dc898544a288..ae7b3d6ff688 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ComputedResourceAccessSegmentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java index c0949ad6592c..1609741750be 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConditionalExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java index bef9755e628a..54dabfd90060 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ConstantDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java index e0c5d9156dca..614c50856796 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ContinueStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java index 4fd09cea57a7..210aaa66f855 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DefaultableParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java index 40749b72b914..941c1b951fa3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DistinctTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java index 1033d591494c..f3175b4828c6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java index 73b032848699..65b876b4126e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DocumentationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java index eb0f1fb25b2b..405b5ad595b4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/DoubleGTTokenNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java index fb3da478c694..642edaea8371 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ElseBlockNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java index 60692bde70dc..ede131a4f7bf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java index 4532fffb05ce..d396b7520981 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/EnumMemberNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java index 8b96a232bf96..bc8ab4b4b647 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java index 3713d0b19306..74ec1ed402bf 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java index 2bf59b635c54..a35dc3de597e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ErrorMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java index 948144f55a0e..c1adb6e508fd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitAnonymousFunctionExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java index 4d79f12a2bfd..76770f23f4ef 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExplicitNewExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java index 669e4f868e48..df6ac035f3bc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionFunctionBodyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java index 2380f4d81277..55ea9a122878 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java index 51eaf422d28d..0509688207eb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExpressionStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java index 67fbeda923c9..db051e3ae06c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ExternalFunctionBodyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java index 1a27d30a654e..d64fc1d6b84a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FailStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java index 6dbb99bd4fd0..6a1b50a5ac9f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldAccessExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java index e04a7354ea8a..6604eead998b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternFullNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java index f6da0828609e..4a4ab1e7f448 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java index 5e7bd201ccfd..d714089997d1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldBindingPatternVarnameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java index ffead4619275..c122695ed4ec 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FieldMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java index a335fc27acd4..09c7e2d8c398 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FlushActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java index cfd6592ed5ad..1d16ca701b2e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForEachStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java index 644261d39c2b..e0bb7d8d3349 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ForkStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java index f2deff6bc711..d5da3029ee38 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FromClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java index d1e0dcf6b4b8..d77662ffaf3b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java index 3d8f15faf13f..fd9f281c50ee 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyBlockNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java index 7730cc83ed50..792d264ebe11 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionBodyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java index f9bd422cf8ae..0f57c9256f60 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionCallExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java index 1a495ef8b943..b93639e9de67 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionDefinitionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java index caaed3227f3f..657b1ca13543 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionSignatureNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java index 6e8720f6fa28..4df42f4d18fe 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/FunctionTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java index 0bc9eaa34921..17d4a01a08ca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupByClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java index 823a04f8d177..ab787d966064 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/GroupingKeyVarDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java index 402256f1b27d..5fa99db2eb09 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IfElseStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java index 714335a0ef65..a308228a350e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java index ad8b63ad2fd7..f0a4bbebb9c4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitAnonymousFunctionParameters.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java index feeb684293bc..da5247eb8218 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImplicitNewExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java index c67b6a7fa7bb..003085d46ab6 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java index ae938cc6effe..928e39cb22ca 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportOrgNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java index 1546debb926d..e55a828e07f9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ImportPrefixNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java index 85dbc60fd881..103fb12fef20 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IncludedRecordParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java index 06719c34c0fb..5531f43da6c4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IndexedExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java index 6dcc7b392182..dbe6a99e9ee0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InferredTypedescDefaultNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java index 43c67b799347..f0db8c64f45e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InlineCodeReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java index d1ffcb6c4371..c284197d3f47 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntermediateClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java index c795e6a2f394..6f764c3f2c66 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/InterpolationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java index e701288af449..f44c244342d5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/IntersectionTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java index 19d38e43bb5c..7ed8fde3072a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/JoinClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java index e23a68321451..ded472ef52e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeySpecifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java index bb42b1887a8d..9f58301db9b2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/KeyTypeConstraintNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java index d473705a258a..e44391c7ff4f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java index 4f72bb59536b..2ba592c3602a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java index afce112817f4..ba779c3054ad 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LetVariableDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java index a2fe4c86f9bc..796858c468c8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LimitClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java index b0888258318e..2072e4272ce9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java index cce150380a24..5c1bf470e1e8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java index 149ca89b9663..f21d9dffe2f1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java index 605408bb58b9..65544b4e4297 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ListenerDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java index 3708dcbe21fc..3be60ea3eab7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LocalTypeDefinitionStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java index 81c34e4e04e5..8e79869d1db7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/LockStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java index 6a03a3f1d9b3..5e80be3a89f5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MapTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java index 4cc50bbbd530..5e9d81703d42 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java index 4afa577005ca..fc549e6d389f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java index f72acc7910a6..e3ce4644a942 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java index 4b619018d74a..b17d02894438 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MappingMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java index a95cba6a23ca..3b326ab584b4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeBlockNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java index 8a7b5c042d92..d526d7823b63 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownCodeLineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java index 39e80838f235..eaa892818894 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationLineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java index fa5acbf7d9f2..127af04ad431 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownDocumentationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java index d27bfaccc887..5bb7312a0da3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MarkdownParameterDocumentationLineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java index abb0ec0511e8..c6b202ba8176 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java index 077bddd2e2c2..16f3a6f44149 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchGuardNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java index f3069f0c6cef..ee4b26604b25 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MatchStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java index d8bf8aaa37ce..fbc02d737a96 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MemberTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java index cdb5e67527a1..a65f2e18319f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MetadataNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java index 4911e6792de8..4e59d975b40a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodCallExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java index 1bf636260232..1578362b49e5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/MethodDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java index d6a19c9026ff..a01f6d229c0d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleMemberDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java index 8ff075598be8..b103859c353b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModulePartNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java index 9d44621087dd..948f8befc382 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleVariableDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java index d0059d8aab62..522537788d41 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ModuleXMLNamespaceDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java index 37fb1d785e7a..2ecac4b89ffc 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java index a46e4833c74d..30429f55df4a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java index 1bc1aed9463a..a151529d7bf8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java index b2911820a29a..ad8330a5baa1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java index d8e2b4775292..ecf4af702eec 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java index 4f598a2f2991..29c902598b73 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NamedWorkerDeclarator.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java index 810c36bff556..e494649dde0e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NewExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java index 9b37be631954..aaab48f00072 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilLiteralNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java index 3f0bba3293fb..4e82a598a3a1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NilTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java index 8893d77ccac9..f1ecdcecf415 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ @@ -3462,8 +3462,7 @@ public static ReCharSetAtomNoDashWithReCharSetNoDashNode createReCharSetAtomNoDa Objects.requireNonNull(reCharSetAtomNoDash, "reCharSetAtomNoDash must not be null"); Objects.requireNonNull(reCharSetNoDash, "reCharSetNoDash must not be null"); - STNode stReCharSetAtomNoDashWithReCharSetNoDashNode = STNodeFactory - .createReCharSetAtomNoDashWithReCharSetNoDashNode( + STNode stReCharSetAtomNoDashWithReCharSetNoDashNode = STNodeFactory.createReCharSetAtomNoDashWithReCharSetNoDashNode( reCharSetAtomNoDash.internalNode(), reCharSetNoDash.internalNode()); return stReCharSetAtomNoDashWithReCharSetNoDashNode.createUnlinkedFacade(); diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java index 4859d6d8ce71..ec21175b1833 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeTransformer.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java index c389516c3ea7..13544361784d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeVisitor.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java index 425d9c8e3102..c3298394ddb7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java index 4195ebeedb49..51c5e7163bb3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java index e2f13de74e67..8473e1b090ae 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ObjectTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java index 1261cc106893..f52e6573fa71 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java index ac5d0bbdf264..f05855610194 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnConflictClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java index 9c6e20052e3f..de80b2518920 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OnFailClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java index d3285e5c218f..061e709f4226 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalFieldAccessExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java index a56af910ac64..6a42004121bd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OptionalTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java index 41d3194a2859..5ada0515bf48 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderByClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java index 7ec4cebd081a..7ac6b5c8079d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/OrderKeyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java index c642dadf3570..61ce46409c5b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PanicStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java index d6e82f7faaec..7579f754762e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java index 3c85f8d55f30..697fe3beb133 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParameterizedTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java index abd14daa033e..1fc829eb751f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesisedTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java index 624555300f14..e1505e54f1d8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ParenthesizedArgList.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java index 3e28cd69dfa4..4df642e183a0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/PositionalArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java index fb190d802c26..2ab3dff068b7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QualifiedNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java index 34e169820815..29004073db77 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java index 436278e46991..4094f1422428 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryConstructTypeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java index d95cc163f4ed..628f582ba887 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ @@ -41,18 +41,6 @@ public QueryPipelineNode queryPipeline() { return childInBucket(1); } - /** - * @deprecated Use {@link #resultClause()} instead. - */ - @Deprecated - public SelectClauseNode selectClause() { - ClauseNode resultClause = resultClause(); - if (resultClause.kind() != SyntaxKind.SELECT_CLAUSE) { - throw new IllegalStateException("select-clause not found"); - } - return (SelectClauseNode) resultClause; - } - public ClauseNode resultClause() { return childInBucket(2); } diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java index 2662e460e3c4..ea0a4c67ed1b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryPipelineNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java index bcb59c22d1e2..87b11dc9d228 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAssertionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java index add2eec55752..81371b9a80cb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomCharOrEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java index f34636e2e3ed..872c6c20cbf5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReAtomQuantifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java index f1fcdda5a198..1e970aac965c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReBracedQuantifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java index 747d2521b3eb..038061465d8d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCapturingGroupsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java index 4637bb314271..d60dd2f5155d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomNoDashWithReCharSetNoDashNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java index e8f509bb39e1..b50f357a3a05 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetAtomWithReCharSetNoDashNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java index 90e79e96e095..a8b456559be4 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java index eb40fef10ffb..f9a2754caf16 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNoDashWithReCharSetNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java index 609b0c7f12c2..b8b3b205575d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java index 0c9c11622080..8916a9ff7086 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharSetRangeWithReCharSetNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java index c94160844d79..74c4f52d67c2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReCharacterClassNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java index 13d2ff85c256..768b5f040ef8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java index 65426c52a3c6..25bdbaa9a830 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java index b7c4379bc0f2..aa430c53219c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReFlagsOnOffNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java index 8c366648af6f..f0d5c5123724 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuantifierNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java index a5354b2da109..50c00e58ae23 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReQuoteEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java index 19b7482a07ba..1c35a6546d84 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSequenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java index f7391772ae49..bd70fdf45840 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReSimpleCharClassEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java index 9c39cb732e2c..7d3829bf912a 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReTermNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java index 3212f4d7bae2..7253ea4f580d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeGeneralCategoryNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java index 8af551f0b9e9..e10d59c5cc22 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyEscapeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java index 6b64f189c187..b6731d14e2fe 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodePropertyNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java index 3d1a59440906..5c91fd179b36 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReUnicodeScriptNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java index 6a31df677a15..1475d7f30dfd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java index 260381d7e663..7e2c646968f9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReceiveFieldsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java index 3d3344b9613c..98d67f8a5944 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java index 29b5414965b2..8ff1caa9f1d8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordFieldWithDefaultValueNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java index 48b283ead0a6..9a89fe420b13 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordRestDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java index 8e701d0a5f0c..729e88e9360b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RecordTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java index 96eff981638d..f1cb3905aa41 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RemoteMethodCallActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java index 2d02c5d254b2..36bd1f922a92 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java index 85f6c49db8be..3648dc2a6bf1 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RequiredParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java index be4912bebda8..d6f4733cb7a2 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourceAccessRestSegmentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java index f17c1865781f..49b7c72a2d84 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ResourcePathParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java index 04e300367f75..64048f8b62df 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestArgumentNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java index 8ef503590e68..11e4d03bfa28 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java index 84ca66fe80bd..7bb5f553d0e5 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java index 2cc7f05f7a1d..01a01d5a9850 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestMatchPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java index e4c8790ace72..9735c960c07f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RestParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java index 732da253ce65..5d1fb9281677 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RetryStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java index 4ad98f3a43bd..d3970c8be64b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java index d1896b3b0eed..d7b22664e593 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ReturnTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java index 69ee7edab257..cd1980f43d6f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/RollbackStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java index 9e1d450408bc..5c7e0a094eb9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SelectClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java index 0b6c55e18685..66530ddcee29 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/ServiceDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java index 1e54e31dd37a..86fe215c3a7c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SimpleNameReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java index 8af44acb0241..d1310b89f033 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SingletonTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java index c8cc4a03df1d..cf1cbf406e9b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpecificFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java index f554918a7df7..0628af3efbdd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java index 80cd8c11d411..a08719121447 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SpreadMemberNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2022, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java index 99c9f1c2b659..7bf493443479 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StartActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java index 576ee8c17372..d0b9040444c3 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java index 2752f8b5e3ab..505c294a036e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java index 84e35eb1a172..8487e5ee9219 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/StreamTypeParamsNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java index 8e4d870f350a..89728b690f6f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/SyncSendActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java index 81d3cc7571f9..0a1e783a3464 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableConstructorExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java index 08874da1bbcb..6650aeb0385b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TableTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java index 36c841bd0444..3e9f9483e31e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TemplateExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java index 01d77edec15b..dde94d24c423 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java index 2f4ee17a588a..545e94a284f9 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TransactionalExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java index 78ad006d9860..794952e188e7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrapExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java index 4c67fca52154..4b4cf4872685 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TreeModifier.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java index 1287d514321a..9883459cb341 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TrippleGTTokenNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java index f96873d2d9a7..91c6791bb1bb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TupleTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java index 89bf8c7dcb8b..63c48546a718 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java index 3f720de6858c..52214a950288 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeCastParamNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java index a3f964acf8b5..fa40fe0352dd 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDefinitionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java index c5eded8bf1aa..7438957ae9ef 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java index 204886a03609..92dc87524658 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeParameterNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java index a2db80f05464..b89928d5935f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java index 77d671741a68..cf5f7fde5d7d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeReferenceTypeDescNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java index fa0e874522f2..edee2ce46297 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeTestExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java index 6d7b2a7a0791..eeb1c6473071 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypedBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java index 7d7beb0ca4af..e4055c47e5ad 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/TypeofExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java index e77c89e000f7..15c718a3fb43 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnaryExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java index 1ccab75c07c1..2ca42177e4c0 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/UnionTypeDescriptorNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java index 6f91519ce065..d8e214e3fa43 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/VariableDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java index 0574c0ddad8b..4ff4f3dc4398 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitActionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java index 39581dc438cb..627bfe0ae88c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java index ad57609e2667..9ecfff9fea8d 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WaitFieldsListNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java index e9d6373992d2..554318c4b8ef 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhereClauseNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java index 63d564447994..27d6001f3358 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WhileStatementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java index 9307912e3bab..18677da85165 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/WildcardBindingPatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java index 3de06135c208..e594bfd3d84e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAtomicNamePatternNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java index 95643429d426..27640bb25d66 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java index 29b22eb8c7f4..03de9f1dfc20 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLAttributeValue.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java index 388d7d763e9e..f1f47f3dd83f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLCDATANode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java index 9fc198d614f1..eb019a90e164 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLComment.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java index 7645d2a89428..97ac988dc9a8 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java index d0767dfed5ab..7ff90dd715fb 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLElementTagNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java index 9e3abee7b10f..06b676bf8886 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEmptyElementNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java index d061b7a26afc..593e6aea33ac 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLEndTagNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java index aa1a601b4c67..9bbd5aaa3a59 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLFilterExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java index 4d13b804cbec..4a2613101a7e 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLItemNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java index bb44c92b868e..502b2c7ce2a7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java index 8f7701d10267..4d0d9165127b 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamePatternChainingNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java index a9851ce08072..1ba831623a6f 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNamespaceDeclarationNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java index 9ed260805f5b..d58ca67150ff 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLNavigateExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java index 081065bd12f3..077dee71bb8c 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLProcessingInstruction.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java index a195dd635587..57741b3f1802 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLQualifiedNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java index fdc1a9c8f0b1..c4456a69fb87 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLSimpleNameNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java index 716519d60c9a..78920b8e1790 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStartTagNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java index 8d2b41415308..fff975ab82ff 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLStepExpressionNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java index 58088ba9e9b3..44ba632d19e7 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/XMLTextNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java index 9312ffaccfc7..113272c51fcf 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java @@ -102,7 +102,8 @@ private static InputStream getSyntaxTreeStream(TreeGenConfig config) { } private static TemplateConfig getTemplateConfig(TreeGenConfig config) { - try (InputStreamReader reader = new InputStreamReader(getTemplateConfigStream(config), StandardCharsets.UTF_8)) { + try (InputStreamReader reader = + new InputStreamReader(getTemplateConfigStream(config), StandardCharsets.UTF_8)) { return new Gson().fromJson(reader, TemplateConfig.class); } catch (Throwable e) { throw new TreeGenException("Failed to parse the template config. Reason: " + e.getMessage(), e); diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java index f511837bba52..970929d023f2 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java @@ -96,9 +96,9 @@ public String syntaxKind() { return syntaxKind; } - public String createdYear() {return createdYear;} + public String createdYear() { return createdYear; } - public String since() {return since;} + public String since() { return since; } public String externalClassName() { return externalClassName; diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache index 14c78d04fa02..fcafa8e2c9fa 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_factory_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache index 8eb6bf529ea8..8e5c6581c392 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) {{createdYear}}, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache index ce7b3390777f..1bdcd63f0ef7 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_transformer_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache index 9a8dcec3c9d5..7eada7ecca08 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_node_visitor_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache b/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache index 792806d20ae6..f40f3092dee2 100644 --- a/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/external_tree_modifier_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache index 084cd35db871..7058c8351834 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_factory_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache index d833c2fb481f..c2f4b8ef402b 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) {{createdYear}}, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) {{createdYear}}, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache index dc37ff05acbf..e916ed5d8e73 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_transformer_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache index a8e920ce5700..a3cf94422cfd 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_node_visitor_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ diff --git a/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache b/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache index 5dd4d063598f..546a3ba49e37 100644 --- a/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache +++ b/compiler/ballerina-treegen/src/main/resources/internal_tree_modifier_template.mustache @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com) All Rights Reserved. + * Copyright (c) 2020, WSO2 LLC. (http://www.wso2.com). * * WSO2 LLC. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ From 9b544ca165aaf165f71814e7fcc8a357f987c9dc Mon Sep 17 00:00:00 2001 From: Nadeeshan96 Date: Tue, 4 Jul 2023 12:43:45 +0530 Subject: [PATCH 088/122] Make FunctionFrame an abstract class --- .../internal/scheduling/FunctionFrame.java | 8 ++--- .../runtime/internal/scheduling/Strand.java | 4 +-- .../bir/codegen/methodgen/FrameClassGen.java | 29 ++----------------- 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/FunctionFrame.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/FunctionFrame.java index bef520f39ac3..5748977130ff 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/FunctionFrame.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/FunctionFrame.java @@ -19,15 +19,15 @@ package io.ballerina.runtime.internal.scheduling; /** - * This interface represents the function frame which saves the existing + * This abstract class represents the function frame which saves the existing * state when a function yields. * * @since 2201.2.0 */ -public interface FunctionFrame { +public abstract class FunctionFrame { - String getYieldLocation(); + public String yieldLocation; - String getYieldStatus(); + public String yieldStatus; } diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java index e39a3637bdde..6e984dbc1404 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/scheduling/Strand.java @@ -481,10 +481,10 @@ private void getInfoFromYieldedState(StringBuilder strandInfo, String closingBra try { for (FunctionFrame frame : strandFrames) { if (noPickedYieldStatus) { - yieldStatus = frame.getYieldStatus(); + yieldStatus = frame.yieldStatus; noPickedYieldStatus = false; } - String yieldLocation = frame.getYieldLocation(); + String yieldLocation = frame.yieldLocation; frameStackTrace.append(stringPrefix).append(yieldLocation); frameStackTrace.append("\n"); stringPrefix = "\t\t \t"; diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/FrameClassGen.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/FrameClassGen.java index 3ef5dc0443ff..ad9a3f3c5ece 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/FrameClassGen.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/bir/codegen/methodgen/FrameClassGen.java @@ -21,7 +21,6 @@ import org.ballerinalang.model.elements.PackageID; import org.objectweb.asm.ClassWriter; import org.objectweb.asm.FieldVisitor; -import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; import org.wso2.ballerinalang.compiler.bir.codegen.BallerinaClassWriter; import org.wso2.ballerinalang.compiler.bir.codegen.JvmCodeGenUtil; @@ -36,11 +35,6 @@ import static org.objectweb.asm.Opcodes.ACC_SUPER; import static org.objectweb.asm.Opcodes.V1_8; import static org.wso2.ballerinalang.compiler.bir.codegen.JvmConstants.FUNCTION_FRAME; -import static org.wso2.ballerinalang.compiler.bir.codegen.JvmConstants.OBJECT; -import static org.wso2.ballerinalang.compiler.bir.codegen.JvmConstants.YIELD_LOCATION; -import static org.wso2.ballerinalang.compiler.bir.codegen.JvmConstants.YIELD_STATUS; -import static org.wso2.ballerinalang.compiler.bir.codegen.JvmSignatures.GET_JSTRING; -import static org.wso2.ballerinalang.compiler.bir.codegen.JvmSignatures.GET_STRING; import static org.wso2.ballerinalang.compiler.bir.codegen.methodgen.MethodGen.FUNCTION_INVOCATION; import static org.wso2.ballerinalang.compiler.bir.codegen.methodgen.MethodGen.STATE; @@ -83,9 +77,8 @@ private void generateFrameClassForFunction(PackageID packageID, BIRNode.BIRFunct if (func.pos != null && func.pos.lineRange().fileName() != null) { cw.visitSource(func.pos.lineRange().fileName(), null); } - cw.visit(V1_8, Opcodes.ACC_PUBLIC + ACC_SUPER, frameClassName, null, OBJECT, - new String[]{FUNCTION_FRAME}); - JvmCodeGenUtil.generateDefaultConstructor(cw, OBJECT); + cw.visit(V1_8, Opcodes.ACC_PUBLIC + ACC_SUPER, frameClassName, null, FUNCTION_FRAME, null); + JvmCodeGenUtil.generateDefaultConstructor(cw, FUNCTION_FRAME); int k = 0; List localVars = func.localVars; @@ -106,13 +99,6 @@ private void generateFrameClassForFunction(PackageID packageID, BIRNode.BIRFunct fv.visitEnd(); fv = cw.visitField(Opcodes.ACC_PUBLIC, FUNCTION_INVOCATION, "I", null, null); fv.visitEnd(); - fv = cw.visitField(Opcodes.ACC_PUBLIC, YIELD_LOCATION, GET_STRING, null, null); - fv.visitEnd(); - fv = cw.visitField(Opcodes.ACC_PUBLIC, YIELD_STATUS, GET_STRING, null, null); - fv.visitEnd(); - - generateGetStringFieldMethod(cw, frameClassName, "getYieldLocation", YIELD_LOCATION); - generateGetStringFieldMethod(cw, frameClassName, "getYieldStatus", YIELD_STATUS); cw.visitEnd(); @@ -121,15 +107,4 @@ private void generateFrameClassForFunction(PackageID packageID, BIRNode.BIRFunct pkgEntries.put(frameClassName + ".class", cw.toByteArray()); } - private void generateGetStringFieldMethod(ClassWriter cw, String frameClassName, String methodName, - String fieldName) { - MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PUBLIC, methodName, GET_JSTRING, null, null); - mv.visitCode(); - mv.visitVarInsn(Opcodes.ALOAD, 0); - mv.visitFieldInsn(Opcodes.GETFIELD, frameClassName, fieldName, GET_STRING); - mv.visitInsn(Opcodes.ARETURN); - mv.visitMaxs(1, 1); - mv.visitEnd(); - } - } From aa1a4f3b0f3804e6c8f5599228530ab1136ceeda Mon Sep 17 00:00:00 2001 From: malinthar Date: Wed, 5 Jul 2023 00:39:10 +0530 Subject: [PATCH 089/122] Add rawtype check --- .../java/io/ballerina/projects/CompletionManager.java | 11 ++++++++++- .../package_comp_plugin_with_completions/main.bal | 10 +++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java index 205d30b5c213..879f6ea30546 100644 --- a/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java +++ b/compiler/ballerina-lang/src/main/java/io/ballerina/projects/CompletionManager.java @@ -19,6 +19,7 @@ import io.ballerina.compiler.api.symbols.ServiceDeclarationSymbol; import io.ballerina.compiler.api.symbols.Symbol; import io.ballerina.compiler.api.symbols.TypeDescKind; +import io.ballerina.compiler.api.symbols.TypeReferenceTypeSymbol; import io.ballerina.compiler.api.symbols.TypeSymbol; import io.ballerina.compiler.api.symbols.UnionTypeSymbol; import io.ballerina.compiler.syntax.tree.Node; @@ -148,7 +149,7 @@ private List getModulesOfActiveListeners(CompletionContext context if (listenerType.typeKind() == TypeDescKind.UNION) { return ((UnionTypeSymbol) listenerType).memberTypeDescriptors() .stream() - .filter(memberType -> memberType.typeKind() == TypeDescKind.OBJECT) + .filter(memberType -> getRawType(memberType).typeKind() == TypeDescKind.OBJECT) .findAny(); } return Optional.of(listenerType); @@ -156,6 +157,14 @@ private List getModulesOfActiveListeners(CompletionContext context .map(listenerType -> listenerType.get().getModule().get()).collect(Collectors.toList()); } + private TypeSymbol getRawType(TypeSymbol typeDescriptor) { + if (typeDescriptor.typeKind() == TypeDescKind.TYPE_REFERENCE) { + TypeReferenceTypeSymbol typeRef = (TypeReferenceTypeSymbol) typeDescriptor; + return typeRef.typeDescriptor(); + } + return typeDescriptor; + } + private boolean isInServiceBodyNodeContext(CompletionContext context, Node referenceNode) { Optional cursorPosition = context.cursorPosition(); if (referenceNode.kind() != SyntaxKind.SERVICE_DECLARATION || cursorPosition.isEmpty()) { diff --git a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal index 2cf15b5c6c0a..8d1df7ee1c72 100644 --- a/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal +++ b/project-api/project-api-test/src/test/resources/compiler_plugin_tests/package_comp_plugin_with_completions/main.bal @@ -15,11 +15,11 @@ public class Listener { return err; } - public function attach(service object {} s, string[]|string? name = ()) returns error? { + public function attach(Service s, string[]|string? name = ()) returns error? { return self.register(s, name); } - public function detach(service object {} s) returns error? { + public function detach(Service s) returns error? { return (); } @@ -30,7 +30,7 @@ public class Listener { return (); } - function register(service object {} s, string[]|string? name) returns error? { + function register(Service s, string[]|string? name) returns error? { return (); } @@ -38,3 +38,7 @@ public class Listener { return (); } } + +public type Service distinct service object { + +}; From 67fe09489751bfd09c8a5c4b46738856b48fc13d Mon Sep 17 00:00:00 2001 From: ushirask Date: Tue, 4 Jul 2023 16:36:19 +0530 Subject: [PATCH 090/122] Change template config to a json map --- .../compiler/syntax/tree/NodeFactory.java | 3 +- .../syntax/tree/QueryExpressionNode.java | 12 + .../compiler/internal/treegen/TreeGen.java | 13 +- .../treegen/model/json/TemplateConfig.java | 51 --- .../model/json/TemplateNodeConfig.java | 8 +- .../treegen/model/template/TreeNodeClass.java | 8 +- .../internal/treegen/targets/Target.java | 9 +- .../targets/node/AbstractNodeTarget.java | 7 +- .../AbstractNodeVisitorTarget.java | 11 +- .../main/resources/template_config_data.json | 310 ++++++++---------- 10 files changed, 183 insertions(+), 249 deletions(-) delete mode 100644 compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java index f1ecdcecf415..693914e36019 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/NodeFactory.java @@ -3462,7 +3462,8 @@ public static ReCharSetAtomNoDashWithReCharSetNoDashNode createReCharSetAtomNoDa Objects.requireNonNull(reCharSetAtomNoDash, "reCharSetAtomNoDash must not be null"); Objects.requireNonNull(reCharSetNoDash, "reCharSetNoDash must not be null"); - STNode stReCharSetAtomNoDashWithReCharSetNoDashNode = STNodeFactory.createReCharSetAtomNoDashWithReCharSetNoDashNode( + STNode stReCharSetAtomNoDashWithReCharSetNoDashNode = + STNodeFactory.createReCharSetAtomNoDashWithReCharSetNoDashNode( reCharSetAtomNoDash.internalNode(), reCharSetNoDash.internalNode()); return stReCharSetAtomNoDashWithReCharSetNoDashNode.createUnlinkedFacade(); diff --git a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java index 628f582ba887..f5bf6d597f90 100644 --- a/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java +++ b/compiler/ballerina-parser/src/main/java/io/ballerina/compiler/syntax/tree/QueryExpressionNode.java @@ -41,6 +41,18 @@ public QueryPipelineNode queryPipeline() { return childInBucket(1); } + /** + * @deprecated Use {@link #resultClause()} instead. + */ + @Deprecated + public SelectClauseNode selectClause() { + ClauseNode resultClause = resultClause(); + if (resultClause.kind() != SyntaxKind.SELECT_CLAUSE) { + throw new IllegalStateException("select-clause not found"); + } + return (SelectClauseNode) resultClause; + } + public ClauseNode resultClause() { return childInBucket(2); } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java index 113272c51fcf..dd3ccc04079d 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java @@ -18,8 +18,9 @@ package io.ballerinalang.compiler.internal.treegen; import com.google.gson.Gson; +import com.google.gson.reflect.TypeToken; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; import io.ballerinalang.compiler.internal.treegen.targets.Target; import io.ballerinalang.compiler.internal.treegen.targets.node.ExternalNodeTarget; @@ -37,10 +38,12 @@ import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.ArrayList; import java.util.Collection; +import java.util.HashMap; import java.util.List; import java.util.Objects; @@ -59,7 +62,7 @@ public static void main(String[] args) { TreeGenConfig config = TreeGenConfig.getInstance(); // 2) Get the syntax tree model by parsing the descriptor SyntaxTree syntaxTree = getSyntaxTree(config); - TemplateConfig templateConfig = getTemplateConfig(config); + HashMap templateConfig = getTemplateConfig(config); // 3) Initialize the registered source code generation targets List targetList = populateAvailableTargets(config); // 4) Run above targets and write the content to files @@ -101,10 +104,12 @@ private static InputStream getSyntaxTreeStream(TreeGenConfig config) { return syntaxTreeStream; } - private static TemplateConfig getTemplateConfig(TreeGenConfig config) { + private static HashMap getTemplateConfig(TreeGenConfig config) { try (InputStreamReader reader = new InputStreamReader(getTemplateConfigStream(config), StandardCharsets.UTF_8)) { - return new Gson().fromJson(reader, TemplateConfig.class); + + Type mapType = new TypeToken>() { }.getType(); + return new Gson().fromJson(reader, mapType); } catch (Throwable e) { throw new TreeGenException("Failed to parse the template config. Reason: " + e.getMessage(), e); } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java deleted file mode 100644 index d4951699b9d9..000000000000 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateConfig.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2023, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * WSO2 Inc. licenses this file to you 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 io.ballerinalang.compiler.internal.treegen.model.json; - -import java.util.HashMap; -import java.util.List; - -/** - * TemplateConfig. - * - * @since 2.8.0 - */ -public class TemplateConfig { - - private final List nodes; - private HashMap nodeMap; - - public TemplateConfig(List nodes) { - this.nodes = nodes; - } - - public TemplateNodeConfig getNode(String name) { - populateMap(); - return nodeMap.get(name); - } - - private void populateMap() { - if (nodeMap != null) { - return; - } - nodeMap = new HashMap<>(); - for (TemplateNodeConfig node : nodes) { - nodeMap.put(node.getName(), node); - } - } -} diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java index 33bba640c406..2c12cb36c03d 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java @@ -24,12 +24,10 @@ */ public class TemplateNodeConfig { - private final String name; private String createdYear; private String since; - public TemplateNodeConfig(String name, String createdYear, String since) { - this.name = name; + public TemplateNodeConfig(String createdYear, String since) { this.createdYear = createdYear; this.since = since; } @@ -41,8 +39,4 @@ public String getCreatedYear() { public String getSince() { return since; } - - public String getName() { - return name; - } } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java index 970929d023f2..674ef9cfc937 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java @@ -96,9 +96,13 @@ public String syntaxKind() { return syntaxKind; } - public String createdYear() { return createdYear; } + public String createdYear() { + return createdYear; + } - public String since() { return since; } + public String since() { + return since; + } public String externalClassName() { return externalClassName; diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java index e586b3611fd5..b891915d44a6 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java @@ -24,7 +24,6 @@ import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNode; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeAttribute; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.model.template.Field; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; @@ -34,6 +33,7 @@ import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; /** @@ -57,15 +57,16 @@ public Target(TreeGenConfig config) { this.config = config; } - public abstract List execute(SyntaxTree syntaxTree, TemplateConfig templateConfig); + public abstract List execute(SyntaxTree syntaxTree, + HashMap templateConfig); protected abstract String getTemplateName(); protected TreeNodeClass convertToTreeNodeClass(SyntaxNode syntaxNode, String packageName, List importClassNameList, - TemplateConfig templateConfig) { - TemplateNodeConfig nodeConfig = templateConfig.getNode(syntaxNode.getName()); + HashMap templateConfig) { + TemplateNodeConfig nodeConfig = templateConfig.get(syntaxNode.getName()); TreeNodeClass nodeClass = new TreeNodeClass(packageName, syntaxNode.getName(), syntaxNode.isAbstract(), syntaxNode.getBase(), getFields(syntaxNode), syntaxNode.getKind(), nodeConfig); diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java index 9868df59541f..6ff2013d339c 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java @@ -20,11 +20,12 @@ import io.ballerinalang.compiler.internal.treegen.TreeGenConfig; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNode; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; import io.ballerinalang.compiler.internal.treegen.targets.Target; +import java.util.HashMap; import java.util.List; import java.util.stream.Collectors; @@ -51,7 +52,7 @@ public AbstractNodeTarget(TreeGenConfig config) { protected abstract List getImportClasses(SyntaxNode syntaxNode); @Override - public List execute(SyntaxTree syntaxTree, TemplateConfig templateConfig) { + public List execute(SyntaxTree syntaxTree, HashMap templateConfig) { return syntaxTree.nodes() .stream() .map(syntaxNode -> generateNodeClass(syntaxNode, templateConfig)) @@ -59,7 +60,7 @@ public List execute(SyntaxTree syntaxTree, TemplateConfig templateCo .collect(Collectors.toList()); } - private TreeNodeClass generateNodeClass(SyntaxNode syntaxNode, TemplateConfig templateConfig) { + private TreeNodeClass generateNodeClass(SyntaxNode syntaxNode, HashMap templateConfig) { List importClassList = getImportClasses(syntaxNode); return convertToTreeNodeClass(syntaxNode, getPackageName(), importClassList, templateConfig); } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java index f59ae8040895..7542961d256e 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java @@ -19,7 +19,7 @@ import io.ballerinalang.compiler.internal.treegen.TreeGenConfig; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateConfig; +import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeVisitorClass; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; @@ -27,6 +27,7 @@ import java.util.ArrayList; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.stream.Collectors; @@ -54,18 +55,20 @@ public abstract class AbstractNodeVisitorTarget extends Target { } @Override - public List execute(SyntaxTree syntaxTree, TemplateConfig templateConfig) { + public List execute(SyntaxTree syntaxTree, HashMap templateConfig) { TreeNodeVisitorClass treeNodeVisitorClass = generateNodeVisitorClass(syntaxTree, templateConfig); return Collections.singletonList( getSourceText(treeNodeVisitorClass, getOutputDir(), getClassName())); } - private TreeNodeVisitorClass generateNodeVisitorClass(SyntaxTree syntaxTree, TemplateConfig templateConfig) { + private TreeNodeVisitorClass generateNodeVisitorClass(SyntaxTree syntaxTree, + HashMap templateConfig) { return new TreeNodeVisitorClass(getPackageName(), getClassName(), getSuperClassName(), getImportClasses(), generateNodeClasses(syntaxTree, templateConfig)); } - private List generateNodeClasses(SyntaxTree syntaxTree, TemplateConfig templateConfig) { + private List generateNodeClasses(SyntaxTree syntaxTree, + HashMap templateConfig) { return syntaxTree.nodes() .stream() .map(syntaxNode -> convertToTreeNodeClass(syntaxNode, diff --git a/compiler/ballerina-treegen/src/main/resources/template_config_data.json b/compiler/ballerina-treegen/src/main/resources/template_config_data.json index dd1be4d9dcee..f62a209a1bcb 100644 --- a/compiler/ballerina-treegen/src/main/resources/template_config_data.json +++ b/compiler/ballerina-treegen/src/main/resources/template_config_data.json @@ -1,174 +1,138 @@ { - "nodes": [ - { - "name": "ClientResourceActionNode", - "createdYear": "2022", - "since": "2201.2.0" - }, - { - "name": "CollectClauseNode", - "createdYear": "2023", - "since": "2201.7.0" - }, - { - "name": "ComputedResourceAccessSegmentNode", - "createdYear": "2022", - "since": "2201.2.0" - }, - { - "name": "ClientResourceAccessActionNode", - "createdYear": "2022", - "since": "2201.2.0" - }, - { - "name": "GroupByClauseNode", - "createdYear": "2023", - "since": "2201.7.0" - }, - { - "name": "GroupingKeyVarDeclarationNode", - "createdYear": "2023", - "since": "2201.7.0" - }, - { - "name": "MemberTypeDescriptorNode", - "createdYear": "2022", - "since": "2201.4.0" - }, - { - "name": "ReAssertionNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReAtomCharOrEscapeNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReAtomQuantifierNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReBracedQuantifierNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCapturingGroupsNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCharacterClassNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCharSetAtomNoDashWithReCharSetNoDashNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCharSetAtomWithReCharSetNoDashNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCharSetRangeNoDashNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCharSetRangeNoDashWithReCharSetNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCharSetRangeNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReCharSetRangeWithReCharSetNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "STReCharSetRangeNoDashNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReFlagExpressionNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReFlagsNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReFlagsOnOffNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReQuantifierNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReQuoteEscapeNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReSequenceNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReTermNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReSimpleCharClassEscapeNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ResourceAccessRestSegmentNode", - "createdYear": "2022", - "since": "2201.2.0" - }, - { - "name": "ReUnicodeGeneralCategoryNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReUnicodePropertyEscapeNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReUnicodePropertyNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "ReUnicodeScriptNode", - "createdYear": "2022", - "since": "2201.3.0" - }, - { - "name": "SpreadMemberNode", - "createdYear": "2022", - "since": "2201.1.0" - } - ] -} \ No newline at end of file + "ClientResourceActionNode": { + "createdYear": "2022", + "since": "2201.2.0" + }, + "CollectClauseNode": { + "createdYear": "2023", + "since": "2201.7.0" + }, + "ComputedResourceAccessSegmentNode": { + "createdYear": "2022", + "since": "2201.2.0" + }, + "ClientResourceAccessActionNode": { + "createdYear": "2022", + "since": "2201.2.0" + }, + "GroupByClauseNode": { + "createdYear": "2023", + "since": "2201.7.0" + }, + "GroupingKeyVarDeclarationNode": { + "createdYear": "2023", + "since": "2201.7.0" + }, + "MemberTypeDescriptorNode": { + "createdYear": "2022", + "since": "2201.4.0" + }, + "ReAssertionNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReAtomCharOrEscapeNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReAtomQuantifierNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReBracedQuantifierNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCapturingGroupsNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCharacterClassNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCharSetAtomNoDashWithReCharSetNoDashNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCharSetAtomWithReCharSetNoDashNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCharSetRangeNoDashNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCharSetRangeNoDashWithReCharSetNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCharSetRangeNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReCharSetRangeWithReCharSetNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "STReCharSetRangeNoDashNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReFlagExpressionNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReFlagsNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReFlagsOnOffNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReQuantifierNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReQuoteEscapeNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReSequenceNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReTermNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReSimpleCharClassEscapeNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ResourceAccessRestSegmentNode": { + "createdYear": "2022", + "since": "2201.2.0" + }, + "ReUnicodeGeneralCategoryNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReUnicodePropertyEscapeNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReUnicodePropertyNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "ReUnicodeScriptNode": { + "createdYear": "2022", + "since": "2201.3.0" + }, + "SpreadMemberNode": { + "createdYear": "2022", + "since": "2201.1.0" + } +} From 1f283355e6d2d0f777a817b10f83c0d172a527ef Mon Sep 17 00:00:00 2001 From: Ushira Karunasena Date: Wed, 5 Jul 2023 09:44:15 +0530 Subject: [PATCH 091/122] Update TemplateNodeConfig.java --- .../internal/treegen/model/json/TemplateNodeConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java index 2c12cb36c03d..7da62c921442 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except @@ -11,7 +11,7 @@ * 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 + * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ From c72f95eec5aa89ba679381ef024777f3ef0411c4 Mon Sep 17 00:00:00 2001 From: Ushira Karunasena Date: Wed, 5 Jul 2023 09:45:36 +0530 Subject: [PATCH 092/122] Update TemplateNodeConfig.java --- .../internal/treegen/model/json/TemplateNodeConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java index 7da62c921442..34f041fae5ef 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java @@ -1,7 +1,7 @@ /* * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). * - * WSO2 Inc. licenses this file to you under the Apache License, + * WSO2 LLC. licenses this file to you 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 From ca29699fa6c3b2b25e4e1f3aa48f0f97de7097ee Mon Sep 17 00:00:00 2001 From: prakanth <50439067+prakanth97@users.noreply.github.com> Date: Wed, 5 Jul 2023 11:20:28 +0530 Subject: [PATCH 093/122] Populate distinct type id properly --- .../semantics/analyzer/TypeResolver.java | 9 +++---- .../test/bala/types/ErrorTypeTest.java | 5 ++++ .../bala/test_bala/types/error_type_test.bal | 25 +++++++++++++++++++ .../test_project_errors/errors.bal | 3 +++ 4 files changed, 37 insertions(+), 5 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeResolver.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeResolver.java index e3669b0f0b6d..50985e5b61b9 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeResolver.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/TypeResolver.java @@ -238,7 +238,6 @@ public void defineBTypes(List moduleDefs, SymbolEnv pkgEnv) { updateIsCyclicFlag(type); } updateEffectiveTypeOfCyclicIntersectionTypes(pkgEnv); - handleDistinctDefinitionOfErrorIntersection(typeDefinition, type); } resolvingTypes.clear(); resolvingModuleDefs.clear(); @@ -445,10 +444,9 @@ private int getEffectiveTypeTag(BType type) { return type.tag == TypeTags.INTERSECTION ? Types.getEffectiveType(type).tag : type.tag; } - private void handleDistinctDefinitionOfErrorIntersection(BLangTypeDefinition typeDefinition, + private void handleDistinctDefinitionOfErrorIntersection(BLangTypeDefinition typeDefinition, BSymbol typeDefSymbol, BType definedType) { BType referenceConstraintType = Types.getReferredType(definedType); - BSymbol typeDefSymbol = typeDefinition.symbol; if (referenceConstraintType.tag == TypeTags.INTERSECTION && ((BIntersectionType) referenceConstraintType).effectiveType.getKind() == TypeKind.ERROR) { @@ -458,7 +456,8 @@ private void handleDistinctDefinitionOfErrorIntersection(BLangTypeDefinition typ int numberOfDistinctConstituentTypes = 0; BLangIntersectionTypeNode intersectionTypeNode = (BLangIntersectionTypeNode) typeDefinition.typeNode; for (BLangType constituentType : intersectionTypeNode.constituentTypeNodes) { - BType type = Types.getReferredType(constituentType.getBType()); + BType type = Types.getReferredType( + types.getTypeWithEffectiveIntersectionTypes(constituentType.getBType())); if (type.getKind() == TypeKind.ERROR) { if (constituentType.flagSet.contains(Flag.DISTINCT)) { @@ -1906,6 +1905,7 @@ public BType defineTypeDefinition(BLangTypeDefinition typeDefinition, BType reso boolean isErrorIntersection = isErrorIntersection(resolvedType); if (isErrorIntersection && effectiveDefinedType.tag == TypeTags.ERROR) { symEnter.populateSymbolNameOfErrorIntersection(resolvedType, typeDefinition.name.value); + handleDistinctDefinitionOfErrorIntersection(typeDefinition, typeDefSymbol, resolvedType); } boolean isIntersectionTypeWithNonNullEffectiveTypeSymbol = @@ -1919,7 +1919,6 @@ public BType defineTypeDefinition(BLangTypeDefinition typeDefinition, BType reso } symEnter.handleDistinctDefinition(typeDefinition, typeDefSymbol, resolvedType, referenceConstraintType); - resolvedType = typeDefSymbol.type; // update the distinct type typeDefSymbol.flags |= Flags.asMask(typeDefinition.flagSet); // Reset public flag when set on a non public type. diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/bala/types/ErrorTypeTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/bala/types/ErrorTypeTest.java index cdd8cace5141..16ad25037009 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/bala/types/ErrorTypeTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/bala/types/ErrorTypeTest.java @@ -126,6 +126,11 @@ public void testErrorIntersection() { BRunUtil.invoke(result, "testErrorIntersection"); } + @Test + public void testDistinctErrorIntersection() { + BRunUtil.invoke(result, "testDistinctErrorIntersection"); + } + @AfterClass public void tearDown() { result = null; diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_bala/types/error_type_test.bal b/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_bala/types/error_type_test.bal index 95bd43438cae..382d0b2e7ffe 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_bala/types/error_type_test.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_bala/types/error_type_test.bal @@ -83,6 +83,31 @@ function testErrorIntersection() { assertEquality(3, e4.detail()["num"]); } +type MyDefaultStatusCodeError1 distinct er:DefaultStatusCodeError; +type MyDefaultStatusCodeError2 distinct er:DefaultStatusCodeError & error; +type MyDefaultStatusCodeError3 distinct er:DefaultStatusCodeError & distinct error; + +function testDistinctErrorIntersection() { + MyDefaultStatusCodeError1 e1 = error MyDefaultStatusCodeError1("Default status code error", code = 404); + assertEquality("Default status code error", e1.message()); + assertEquality(404, e1.detail()["code"]); + + MyDefaultStatusCodeError2 e2 = error MyDefaultStatusCodeError2("Default status code error", code = 404, + fatal = true); + assertEquality("Default status code error", e2.message()); + assertEquality(404, e2.detail()["code"]); + + er:DefaultStatusCodeError e3 = e2; + assertEquality("Default status code error", e3.message()); + assertEquality(404, e3.detail()["code"]); + + MyDefaultStatusCodeError3 e4 = error MyDefaultStatusCodeError3("Default status code error", code = 404, + fatal = true); + er:DefaultStatusCodeError e5 = e4; + assertEquality("Default status code error", e5.message()); + assertEquality(404, e5.detail()["code"]); +} + function assertEquality(any|error expected, any|error actual) { if expected is anydata && actual is anydata && expected == actual { return; diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_projects/test_project_errors/errors.bal b/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_projects/test_project_errors/errors.bal index e6cc5a87f29c..66a7ed4d94c4 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_projects/test_project_errors/errors.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/bala/test_projects/test_project_errors/errors.bal @@ -36,3 +36,6 @@ public type Data3 record {| public type ErrorIntersection1 distinct error & error; public type ErrorIntersection2 distinct error & error; + +public type StatusCodeError distinct error; +public type DefaultStatusCodeError distinct StatusCodeError & error; From 380e25aa23fceac4a21670834ad08c31b794b3f9 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 24 May 2023 12:11:53 +0530 Subject: [PATCH 094/122] Added a method to request packages in the central --- .../central/client/CentralAPIClient.java | 57 ++++++++ .../CentralPackageDescriptorHolder.java | 136 ++++++++++++++++++ .../langserver/LSPackageLoader.java | 20 +++ .../context/ImportOrgNameNodeContext.java | 7 + .../connector/CentralPackageListResult.java | 76 ++++++++++ 5 files changed, 296 insertions(+) create mode 100644 language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java create mode 100644 language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java diff --git a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java index 853c60d5b2eb..d43820173714 100644 --- a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java +++ b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java @@ -118,6 +118,7 @@ public class CentralAPIClient { private static final String ERR_CANNOT_PULL_PACKAGE = "error: failed to pull the package: "; private static final String ERR_CANNOT_SEARCH = "error: failed to search packages: "; private static final String ERR_CANNOT_GET_CONNECTOR = "error: failed to find connector: "; + private static final String ERR_CANNOT_GET_PACKAGE = "error: failed to find package: "; private static final String ERR_CANNOT_GET_TRIGGERS = "error: failed to find triggers: "; private static final String ERR_CANNOT_GET_TRIGGER = "error: failed to find the trigger: "; private static final String ERR_PACKAGE_DEPRECATE = "error: failed to deprecate the package: "; @@ -1123,6 +1124,62 @@ public void deprecatePackage(String packageInfo, String deprecationMsg, String s } } + /** + * Get packages from central. + * + * @param params Search query param map. + * @param supportedPlatform The supported platform. + * @param ballerinaVersion The ballerina version. + * @return Package list + * @throws CentralClientException Central client exception. + */ + public JsonElement getPackages(Map params, String supportedPlatform, String ballerinaVersion) + throws CentralClientException { + Optional body = Optional.empty(); + OkHttpClient client = new OkHttpClient.Builder() + .followRedirects(false) + .connectTimeout(20, TimeUnit.SECONDS) + .readTimeout(20, TimeUnit.SECONDS) + .proxy(this.proxy) + .build(); + + try { + HttpUrl.Builder httpBuilder = HttpUrl.parse(this.baseUrl).newBuilder().addPathSegment(PACKAGES); + for (Map.Entry param : params.entrySet()) { + httpBuilder.addQueryParameter(param.getKey(), param.getValue()); + } + + Request searchReq = getNewRequest(supportedPlatform, ballerinaVersion) + .get() + .url(httpBuilder.build()) + .build(); + + Call httpRequestCall = client.newCall(searchReq); + Response searchResponse = httpRequestCall.execute(); + + body = Optional.ofNullable(searchResponse.body()); + if (body.isPresent()) { + Optional contentType = Optional.ofNullable(body.get().contentType()); + if (contentType.isPresent() && isApplicationJsonContentType(contentType.get().toString()) && + searchResponse.code() == HttpsURLConnection.HTTP_OK) { + return new Gson().toJsonTree(body.get().string()); + } + } + handleResponseErrors(searchResponse, ERR_CANNOT_GET_PACKAGE); + return new JsonArray(); + } catch (IOException e) { + throw new CentralClientException(ERR_CANNOT_GET_PACKAGE + "'. Reason: " + e.getMessage()); + } finally { + body.ifPresent(ResponseBody::close); + try { + this.closeClient(client); + } catch (IOException e) { + // ignore + } + } + } + + /** * Get connectors with search filters. * diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java new file mode 100644 index 000000000000..af448bac3178 --- /dev/null +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java @@ -0,0 +1,136 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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.langserver; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import io.ballerina.projects.Settings; +import io.ballerina.projects.util.ProjectUtils; +import org.ballerinalang.central.client.CentralAPIClient; +import org.ballerinalang.central.client.model.Package; +import org.ballerinalang.langserver.commons.LanguageServerContext; +import org.ballerinalang.langserver.extensions.ballerina.connector.CentralPackageListResult; +import org.wso2.ballerinalang.util.RepoUtils; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * Central package descriptor holder. + * + * @since 2201.6.0 + */ +public class CentralPackageDescriptorHolder { + public static final LanguageServerContext.Key CENTRAL_PACKAGE_HOLDER_KEY = + new LanguageServerContext.Key<>(); + + public static CentralPackageDescriptorHolder getInstance(LanguageServerContext context) { + CentralPackageDescriptorHolder centralPackageDescriptorHolder = context.get(CENTRAL_PACKAGE_HOLDER_KEY); + if (centralPackageDescriptorHolder == null) { + centralPackageDescriptorHolder = new CentralPackageDescriptorHolder(context); + } + return centralPackageDescriptorHolder; + } + + public CentralPackageDescriptorHolder(LanguageServerContext context) { + context.put(CENTRAL_PACKAGE_HOLDER_KEY, this); + } + + public List getPackagesFromCentral() { + List packageList = new ArrayList<>(); + try { + for (int page = 0;; page++) { + Settings settings = RepoUtils.readSettings(); + + CentralAPIClient centralAPIClient = new CentralAPIClient(RepoUtils.getRemoteRepoURL(), + ProjectUtils.initializeProxy(settings.getProxy()), ProjectUtils.getAccessTokenOfCLI(settings)); + CentralPackageDescriptor descriptor = new CentralPackageDescriptor("ballerinax", 10, page * 10); + + JsonElement newClientConnectors = centralAPIClient.getPackages(descriptor.getQueryMap(), + "any", RepoUtils.getBallerinaVersion()); + + CentralPackageListResult packageListResult = new Gson().fromJson(newClientConnectors.getAsString(), + CentralPackageListResult.class); + packageList.addAll(packageListResult.getPackages()); + int listResultCount = packageListResult.getCount(); + + if (packageList.size() == listResultCount || descriptor.getOffset() >= listResultCount) { + break; + } + } + + } catch (Exception e) { + // ignore + } + return packageList; + } + + public static class CentralPackageDescriptor { + private String organization; + private int limit; + private int offset; + + public CentralPackageDescriptor(String organization, int limit, int offset) { + this.organization = organization; + this.limit = limit; + this.offset = offset; + } + + public String getOrganization() { + return organization; + } + + public void setOrganization(String organization) { + this.organization = organization; + } + + public int getLimit() { + return limit; + } + + public void setLimit(int limit) { + this.limit = limit; + } + + public int getOffset() { + return offset; + } + + public void setOffset(int offset) { + this.offset = offset; + } + + public Map getQueryMap() { + Map params = new HashMap(); + + if (getOrganization() != null) { + params.put("org", getOrganization()); + } + + if (getLimit() != 0) { + params.put("limit", Integer.toString(getLimit())); + } + + if (getOffset() != 0) { + params.put("offset", Integer.toString(getOffset())); + } + + return params; + } + } +} diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index a66458af587e..9b8196770459 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -56,6 +56,11 @@ public class LSPackageLoader { private final List distRepoPackages; private final List remoteRepoPackages = new ArrayList<>(); private final List localRepoPackages = new ArrayList<>(); + private final List centralPackages = new ArrayList<>(); + + public List getCentralPackages() { + return centralPackages; + } private final LSClientLogger clientLogger; @@ -71,6 +76,7 @@ public static LSPackageLoader getInstance(LanguageServerContext context) { private LSPackageLoader(LanguageServerContext context) { this.clientLogger = LSClientLogger.getInstance(context); distRepoPackages = this.getDistributionRepoPackages(); + loadBallerinaxPackagesFromCentral(context); context.put(LS_PACKAGE_LOADER_KEY, this); } @@ -121,6 +127,20 @@ public List getDistributionRepoPackages() { Collections.emptySet())); } + private void loadBallerinaxPackagesFromCentral(LanguageServerContext context) { + if (!this.centralPackages.isEmpty()) { + return; + } + + CentralPackageDescriptorHolder.getInstance(context).getPackagesFromCentral().forEach(packageInfo -> { + PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); + PackageName packageName = PackageName.from(packageInfo.getName()); + PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); + ModuleInfo moduleInfo = new ModuleInfo(packageOrg, packageName, packageVersion, null); + centralPackages.add(moduleInfo); + }); + } + /** * Get all visible repository and distribution packages. * diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java index baac84937ed5..3a4e0f57044e 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java @@ -58,6 +58,13 @@ public List getCompletions(BallerinaCompletionContext ctx, Imp List moduleList = new ArrayList<>(LSPackageLoader.getInstance(ctx.languageServercontext()).getAllVisiblePackages(ctx)); ArrayList completionItems = moduleNameContextCompletions(ctx, orgName, moduleList); + + if (orgName.equals("ballerinax")) { + List packagesFromCentral = LSPackageLoader.getInstance(ctx.languageServercontext()) + .getCentralPackages(); + completionItems.addAll(moduleNameContextCompletions(ctx, "ballerinax", packagesFromCentral)); + } + this.sort(ctx, node, completionItems); return completionItems; diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java new file mode 100644 index 000000000000..e7dbbdb2b195 --- /dev/null +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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.langserver.extensions.ballerina.connector; + +import org.ballerinalang.central.client.model.Package; + +import java.util.List; + +/** + * Central package list result. + * + * @since 2201.6.0 + */ +public class CentralPackageListResult { + + private List packages; + private int count; + private int offset; + private int limit; + + public CentralPackageListResult() { + + } + + public CentralPackageListResult(List packages, int count, int offset, int limit) { + this.packages = packages; + this.count = count; + this.offset = offset; + this.limit = limit; + } + + public List getPackages() { + return packages; + } + + public void setPackages(List packages) { + this.packages = packages; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public int getOffset() { + return offset; + } + + public void setOffset(int offset) { + this.offset = offset; + } + + public int getLimit() { + return limit; + } + + public void setLimit(int limit) { + this.limit = limit; + } +} From ef0c37da051cd5f1b0329b87bd44362b88f93882 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 24 May 2023 15:24:15 +0530 Subject: [PATCH 095/122] Fix failing performance tests --- .../CentralPackageDescriptorHolder.java | 3 ++ .../langserver/LSPackageLoader.java | 54 ++++++++++++++++--- .../context/ImportOrgNameNodeContext.java | 4 +- .../codeaction/CodeActionPerformanceTest.java | 11 ++++ .../completion/CompletionPerformanceTest.java | 11 ++++ 5 files changed, 74 insertions(+), 9 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java index af448bac3178..90ee4cb0b3cd 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java @@ -80,6 +80,9 @@ public List getPackagesFromCentral() { return packageList; } + /** + * Central package descriptor. + */ public static class CentralPackageDescriptor { private String organization; private int limit; diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index 9b8196770459..121f36168703 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -32,6 +32,12 @@ import org.ballerinalang.langserver.common.utils.ModuleUtil; import org.ballerinalang.langserver.commons.DocumentServiceContext; import org.ballerinalang.langserver.commons.LanguageServerContext; +import org.ballerinalang.langserver.commons.client.ExtendedLanguageClient; +import org.eclipse.lsp4j.ProgressParams; +import org.eclipse.lsp4j.WorkDoneProgressBegin; +import org.eclipse.lsp4j.WorkDoneProgressCreateParams; +import org.eclipse.lsp4j.WorkDoneProgressEnd; +import org.eclipse.lsp4j.jsonrpc.messages.Either; import org.wso2.ballerinalang.compiler.util.Names; import java.nio.file.Path; @@ -43,6 +49,8 @@ import java.util.Map; import java.util.Optional; import java.util.Set; +import java.util.UUID; +import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; /** @@ -127,17 +135,49 @@ public List getDistributionRepoPackages() { Collections.emptySet())); } - private void loadBallerinaxPackagesFromCentral(LanguageServerContext context) { + private void loadBallerinaxPackagesFromCentral(LanguageServerContext lsContext) { if (!this.centralPackages.isEmpty()) { return; } - CentralPackageDescriptorHolder.getInstance(context).getPackagesFromCentral().forEach(packageInfo -> { - PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); - PackageName packageName = PackageName.from(packageInfo.getName()); - PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); - ModuleInfo moduleInfo = new ModuleInfo(packageOrg, packageName, packageVersion, null); - centralPackages.add(moduleInfo); + String taskId = UUID.randomUUID().toString(); + ExtendedLanguageClient languageClient = lsContext.get(ExtendedLanguageClient.class); + LSClientLogger clientLogger = LSClientLogger.getInstance(lsContext); + CompletableFuture.runAsync(() -> { + if (languageClient != null) { + // Initialize progress notification + WorkDoneProgressCreateParams workDoneProgressCreateParams = new WorkDoneProgressCreateParams(); + workDoneProgressCreateParams.setToken(taskId); + languageClient.createProgress(workDoneProgressCreateParams); + + // Start progress + WorkDoneProgressBegin beginNotification = new WorkDoneProgressBegin(); + beginNotification.setTitle("Loading Ballerina Central Packages"); + beginNotification.setCancellable(false); + beginNotification.setMessage("Loading..."); + languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), + Either.forLeft(beginNotification))); + } + }).thenRunAsync(() -> { + CentralPackageDescriptorHolder.getInstance(lsContext).getPackagesFromCentral().forEach(packageInfo -> { + PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); + PackageName packageName = PackageName.from(packageInfo.getName()); + PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); + ModuleInfo moduleInfo = new ModuleInfo(packageOrg, packageName, packageVersion, null); + centralPackages.add(moduleInfo); + }); + }).thenRunAsync(() -> { + WorkDoneProgressEnd endNotification = new WorkDoneProgressEnd(); + endNotification.setMessage("Loaded Successfully!"); + languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), + Either.forLeft(endNotification))); + }).exceptionally(e -> { + WorkDoneProgressEnd endNotification = new WorkDoneProgressEnd(); + endNotification.setMessage("Loading Failed!"); + languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), + Either.forLeft(endNotification))); + clientLogger.logTrace("Failed loading ballerina central packages due to " + e.getMessage()); + return null; }); } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java index 3a4e0f57044e..fcb3016769c6 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java @@ -60,8 +60,8 @@ public List getCompletions(BallerinaCompletionContext ctx, Imp ArrayList completionItems = moduleNameContextCompletions(ctx, orgName, moduleList); if (orgName.equals("ballerinax")) { - List packagesFromCentral = LSPackageLoader.getInstance(ctx.languageServercontext()) - .getCentralPackages(); + List packagesFromCentral = LSPackageLoader.getInstance( + ctx.languageServercontext()).getCentralPackages(); completionItems.addAll(moduleNameContextCompletions(ctx, "ballerinax", packagesFromCentral)); } diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java index b870049b095e..9295c6bace12 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java @@ -20,11 +20,14 @@ import org.ballerinalang.langserver.util.TestUtil; import org.eclipse.lsp4j.CodeActionContext; import org.eclipse.lsp4j.Range; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import java.io.IOException; +import java.net.http.HttpClient; import java.nio.file.Path; /** @@ -34,6 +37,8 @@ */ public class CodeActionPerformanceTest extends AbstractCodeActionTest { + private static final Logger log = LoggerFactory.getLogger(HttpClient.class); + @Override public String getResourceDir() { return "performance-codeaction"; @@ -47,6 +52,12 @@ public void test(String config) throws IOException, WorkspaceDocumentException { @Override public String getResponse(Path sourcePath, Range range, CodeActionContext codeActionContext) { + // Waiting for the server to load the packages from the distribution and central + try { + Thread.sleep(20000); + } catch (InterruptedException e) { + log.warn("Interrupted while waiting to load the packages from the distribution and central"); + } long start = System.currentTimeMillis(); String res = TestUtil.getCodeActionResponse(getServiceEndpoint(), sourcePath.toString(), range, codeActionContext); diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java index 45568a9b89f9..b83643fa918f 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java @@ -22,11 +22,14 @@ import org.ballerinalang.langserver.util.TestUtil; import org.eclipse.lsp4j.Position; import org.eclipse.lsp4j.jsonrpc.Endpoint; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import java.io.IOException; +import java.net.http.HttpClient; import java.nio.file.Path; @@ -37,6 +40,8 @@ */ public class CompletionPerformanceTest extends CompletionTest { + private static final Logger log = LoggerFactory.getLogger(HttpClient.class); + @Test(dataProvider = "completion-data-provider") @Override public void test(String config, String configPath) throws WorkspaceDocumentException, IOException { @@ -46,6 +51,12 @@ public void test(String config, String configPath) throws WorkspaceDocumentExcep @Override public String getResponse(Path sourcePath, Position position, String triggerChar) throws IOException { Endpoint endpoint = getServiceEndpoint(); + // Waiting for the server to load the packages from the distribution and central + try { + Thread.sleep(20000); + } catch (InterruptedException e) { + log.warn("Interrupted while waiting to load the packages from the distribution and central"); + } TestUtil.openDocument(endpoint, sourcePath); long start = System.currentTimeMillis(); String responseString = TestUtil.getCompletionResponse(sourcePath.toString(), position, From 448144c8381e1bc9e854e5ed63a621cd3faa5085 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 14 Jun 2023 18:30:50 +0530 Subject: [PATCH 096/122] Address review suggestions --- .../central/client/CentralAPIClient.java | 12 +- ...va => CentralPackageDescriptorLoader.java} | 18 +- .../langserver/LSPackageLoader.java | 2 +- .../langserver/AbstractLSTest.java | 11 + .../codeaction/CodeActionPerformanceTest.java | 11 - .../completion/CompletionPerformanceTest.java | 11 - .../resources/central/centralPackages.json | 440 ++++++++++++++++++ 7 files changed, 467 insertions(+), 38 deletions(-) rename language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/{CentralPackageDescriptorHolder.java => CentralPackageDescriptorLoader.java} (88%) create mode 100644 language-server/modules/langserver-core/src/test/resources/central/centralPackages.json diff --git a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java index d43820173714..8d95a9483042 100644 --- a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java +++ b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java @@ -118,7 +118,6 @@ public class CentralAPIClient { private static final String ERR_CANNOT_PULL_PACKAGE = "error: failed to pull the package: "; private static final String ERR_CANNOT_SEARCH = "error: failed to search packages: "; private static final String ERR_CANNOT_GET_CONNECTOR = "error: failed to find connector: "; - private static final String ERR_CANNOT_GET_PACKAGE = "error: failed to find package: "; private static final String ERR_CANNOT_GET_TRIGGERS = "error: failed to find triggers: "; private static final String ERR_CANNOT_GET_TRIGGER = "error: failed to find the trigger: "; private static final String ERR_PACKAGE_DEPRECATE = "error: failed to deprecate the package: "; @@ -1157,18 +1156,19 @@ public JsonElement getPackages(Map params, String supportedPlatf Call httpRequestCall = client.newCall(searchReq); Response searchResponse = httpRequestCall.execute(); - body = Optional.ofNullable(searchResponse.body()); + ResponseBody responseBody = searchResponse.body(); + body = responseBody != null ? Optional.of(responseBody) : Optional.empty(); if (body.isPresent()) { - Optional contentType = Optional.ofNullable(body.get().contentType()); - if (contentType.isPresent() && isApplicationJsonContentType(contentType.get().toString()) && + MediaType contentType = body.get().contentType() != null ? body.get().contentType() : null; + if (contentType != null && isApplicationJsonContentType(contentType.toString()) && searchResponse.code() == HttpsURLConnection.HTTP_OK) { return new Gson().toJsonTree(body.get().string()); } } - handleResponseErrors(searchResponse, ERR_CANNOT_GET_PACKAGE); + handleResponseErrors(searchResponse, ERR_CANNOT_SEARCH); return new JsonArray(); } catch (IOException e) { - throw new CentralClientException(ERR_CANNOT_GET_PACKAGE + "'. Reason: " + e.getMessage()); + throw new CentralClientException(ERR_CANNOT_SEARCH + "'. Reason: " + e.getMessage()); } finally { body.ifPresent(ResponseBody::close); try { diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java similarity index 88% rename from language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java rename to language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java index 90ee4cb0b3cd..2ed57994b614 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorHolder.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java @@ -33,21 +33,21 @@ /** * Central package descriptor holder. * - * @since 2201.6.0 + * @since 2201.7.0 */ -public class CentralPackageDescriptorHolder { - public static final LanguageServerContext.Key CENTRAL_PACKAGE_HOLDER_KEY = +public class CentralPackageDescriptorLoader { + public static final LanguageServerContext.Key CENTRAL_PACKAGE_HOLDER_KEY = new LanguageServerContext.Key<>(); - public static CentralPackageDescriptorHolder getInstance(LanguageServerContext context) { - CentralPackageDescriptorHolder centralPackageDescriptorHolder = context.get(CENTRAL_PACKAGE_HOLDER_KEY); - if (centralPackageDescriptorHolder == null) { - centralPackageDescriptorHolder = new CentralPackageDescriptorHolder(context); + public static CentralPackageDescriptorLoader getInstance(LanguageServerContext context) { + CentralPackageDescriptorLoader centralPackageDescriptorLoader = context.get(CENTRAL_PACKAGE_HOLDER_KEY); + if (centralPackageDescriptorLoader == null) { + centralPackageDescriptorLoader = new CentralPackageDescriptorLoader(context); } - return centralPackageDescriptorHolder; + return centralPackageDescriptorLoader; } - public CentralPackageDescriptorHolder(LanguageServerContext context) { + private CentralPackageDescriptorLoader(LanguageServerContext context) { context.put(CENTRAL_PACKAGE_HOLDER_KEY, this); } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index 121f36168703..bf209f8dccc0 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -159,7 +159,7 @@ private void loadBallerinaxPackagesFromCentral(LanguageServerContext lsContext) Either.forLeft(beginNotification))); } }).thenRunAsync(() -> { - CentralPackageDescriptorHolder.getInstance(lsContext).getPackagesFromCentral().forEach(packageInfo -> { + CentralPackageDescriptorLoader.getInstance(lsContext).getPackagesFromCentral().forEach(packageInfo -> { PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); PackageName packageName = PackageName.from(packageInfo.getName()); PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java index e5334318ec00..875976581af5 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java @@ -17,11 +17,13 @@ */ package org.ballerinalang.langserver; +import com.google.gson.Gson; import io.ballerina.projects.Package; import org.ballerinalang.langserver.commons.LanguageServerContext; import org.ballerinalang.langserver.commons.workspace.WorkspaceDocumentException; import org.ballerinalang.langserver.commons.workspace.WorkspaceManager; import org.ballerinalang.langserver.contexts.LanguageServerContextImpl; +import org.ballerinalang.langserver.extensions.ballerina.connector.CentralPackageListResult; import org.ballerinalang.langserver.util.FileUtils; import org.ballerinalang.langserver.util.TestUtil; import org.eclipse.lsp4j.jsonrpc.Endpoint; @@ -30,6 +32,7 @@ import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; +import java.io.FileReader; import java.io.IOException; import java.nio.file.Path; import java.util.ArrayList; @@ -50,6 +53,7 @@ public abstract class AbstractLSTest { Map.of("local_project1", "main.bal", "local_project2", "main.bal"); private static final List REMOTE_PACKAGES = new ArrayList<>(); private static final List LOCAL_PACKAGES = new ArrayList<>(); + private static final List CENTRAL_PACKAGES = new ArrayList<>(); private Endpoint serviceEndpoint; @@ -68,6 +72,8 @@ public abstract class AbstractLSTest { LOCAL_PACKAGES.addAll(getPackages(LOCAL_PROJECTS, languageServer.getWorkspaceManager(), context).stream().map(LSPackageLoader.ModuleInfo::new) .collect(Collectors.toList())); + FileReader fileReader = new FileReader(FileUtils.RES_DIR.resolve("central/centralPackages.json").toFile()); + CENTRAL_PACKAGES.addAll(new Gson().fromJson(fileReader, CentralPackageListResult.class).getPackages()); } catch (Exception e) { //ignore } finally { @@ -96,12 +102,17 @@ protected void setupLanguageServer(TestUtil.LanguageServerBuilder builder) { public void setUp() { this.lsPackageLoader = Mockito.mock(LSPackageLoader.class, Mockito.withSettings().stubOnly()); + CentralPackageDescriptorLoader descriptorLoader = Mockito.mock( + CentralPackageDescriptorLoader.class, Mockito.withSettings().stubOnly()); + languageServer.getServerContext().put( + CentralPackageDescriptorLoader.CENTRAL_PACKAGE_HOLDER_KEY, descriptorLoader); this.languageServer.getServerContext().put(LSPackageLoader.LS_PACKAGE_LOADER_KEY, this.lsPackageLoader); Mockito.when(this.lsPackageLoader.getRemoteRepoPackages(Mockito.any())).thenReturn(REMOTE_PACKAGES); Mockito.when(this.lsPackageLoader.getLocalRepoPackages(Mockito.any())).thenReturn(LOCAL_PACKAGES); Mockito.when(this.lsPackageLoader.getDistributionRepoPackages()).thenCallRealMethod(); Mockito.when(this.lsPackageLoader.getAllVisiblePackages(Mockito.any())).thenCallRealMethod(); Mockito.when(this.lsPackageLoader.getPackagesFromBallerinaUserHome(Mockito.any())).thenCallRealMethod(); + Mockito.when(descriptorLoader.getPackagesFromCentral()).thenReturn(CENTRAL_PACKAGES); } protected static List getPackages(Map projects, diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java index 9295c6bace12..b870049b095e 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/codeaction/CodeActionPerformanceTest.java @@ -20,14 +20,11 @@ import org.ballerinalang.langserver.util.TestUtil; import org.eclipse.lsp4j.CodeActionContext; import org.eclipse.lsp4j.Range; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import java.io.IOException; -import java.net.http.HttpClient; import java.nio.file.Path; /** @@ -37,8 +34,6 @@ */ public class CodeActionPerformanceTest extends AbstractCodeActionTest { - private static final Logger log = LoggerFactory.getLogger(HttpClient.class); - @Override public String getResourceDir() { return "performance-codeaction"; @@ -52,12 +47,6 @@ public void test(String config) throws IOException, WorkspaceDocumentException { @Override public String getResponse(Path sourcePath, Range range, CodeActionContext codeActionContext) { - // Waiting for the server to load the packages from the distribution and central - try { - Thread.sleep(20000); - } catch (InterruptedException e) { - log.warn("Interrupted while waiting to load the packages from the distribution and central"); - } long start = System.currentTimeMillis(); String res = TestUtil.getCodeActionResponse(getServiceEndpoint(), sourcePath.toString(), range, codeActionContext); diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java index b83643fa918f..45568a9b89f9 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/CompletionPerformanceTest.java @@ -22,14 +22,11 @@ import org.ballerinalang.langserver.util.TestUtil; import org.eclipse.lsp4j.Position; import org.eclipse.lsp4j.jsonrpc.Endpoint; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import java.io.IOException; -import java.net.http.HttpClient; import java.nio.file.Path; @@ -40,8 +37,6 @@ */ public class CompletionPerformanceTest extends CompletionTest { - private static final Logger log = LoggerFactory.getLogger(HttpClient.class); - @Test(dataProvider = "completion-data-provider") @Override public void test(String config, String configPath) throws WorkspaceDocumentException, IOException { @@ -51,12 +46,6 @@ public void test(String config, String configPath) throws WorkspaceDocumentExcep @Override public String getResponse(Path sourcePath, Position position, String triggerChar) throws IOException { Endpoint endpoint = getServiceEndpoint(); - // Waiting for the server to load the packages from the distribution and central - try { - Thread.sleep(20000); - } catch (InterruptedException e) { - log.warn("Interrupted while waiting to load the packages from the distribution and central"); - } TestUtil.openDocument(endpoint, sourcePath); long start = System.currentTimeMillis(); String responseString = TestUtil.getCompletionResponse(sourcePath.toString(), position, diff --git a/language-server/modules/langserver-core/src/test/resources/central/centralPackages.json b/language-server/modules/langserver-core/src/test/resources/central/centralPackages.json new file mode 100644 index 000000000000..3a789f4a67d6 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/central/centralPackages.json @@ -0,0 +1,440 @@ +{ + "packages": [ + { + "organization": "ballerinax", + "name": "azure.ad", + "version": "2.4.0", + "platform": "java11", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/azure.ad/2.4.0", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/azure.ad/2.4.0/ballerinax-azure.ad-java11-2.4.0.bala?md5=aIH2wpk96Rkml7A2VBDT5Q&expires=1686819192", + "digest": "sha-256=28dfc001c646c151017d208bd1abac3beab2e2b76ac56e0c8ae49a8c8cc82e27", + "summary": "Connects to Azure AD from Ballerina", + "readme": "Connects to Azure AD from Ballerina\n\n## Package overview\nThe `azure.ad` is a [Ballerina](https:\/\/ballerina.io\/) connector for Azure AD.\n\n### Compatibility\n| | Version |\n|-----------------------|------------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1 |\n| Microsoft Graph API | v1.0 |\n\n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project via [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/module-ballerinax-azure.ad", + "keywords": [ + "IT Operations/Security & Identity Tools", + "Cost/Freemium", + "Vendor/Microsoft" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_azure.ad_2.4.0.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1685093006000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/azure.ad/2.4.0", + "apiDocURL": "https://lib.ballerina.io/ballerinax/azure.ad/2.4.0", + "name": "azure.ad", + "summary": "Ballerina connector for Azure Active Directory (AD) is connecting the Azure AD REST API in Microsoft Graph v1.0 via Ballerina language. ", + "readme": "## Overview\nBallerina connector for Azure Active Directory (AD) is connecting the Azure AD REST API in Microsoft Graph v1.0 via Ballerina language. \nIt provides capability to perform management operations on user and group resources in an Azure AD tenent \n(Organization).\n\nThe connector uses the Microsoft Graph REST web API that provides the capability to access Microsoft Cloud service resources. This version of the connector only supports the operations on users and groups in an Azure AD.\n \nThis module supports [Microsoft Graph API](https:\/\/docs.microsoft.com\/en-us\/graph\/overview) `v1.0`. \n\n## Prerequisites\nBefore using this connector in your Ballerina application, complete the following:\n\n* Create a [Microsoft 365 Work and School account](https:\/\/www.office.com\/)\n* Create an [Azure account](https:\/\/azure.microsoft.com\/en-us\/) to register an application in the Azure portal\n* Obtain tokens\n - Use [this](https:\/\/docs.microsoft.com\/en-us\/graph\/auth-register-app-v2) guide to register an application with the Microsoft identity platform\n - The necessary scopes for this connector are shown below\n\n | Permissions name | Type | Description |\n |:-----------------------------:|:---------:|:-----------------------------------------:|\n | User.ReadWrite.All | Delegated | Create channels |\n | Group.ReadWrite.All | Delegated | Read and write all users' full profiles |\n\n## Quickstart\nTo use the Azure AD connector in your Ballerina application, update the .bal file as follows:\n### Step 1 - Import connector\nImport the ballerinax\/aad module into the Ballerina project.\n```ballerina\nimport ballerinax\/azure.aad;\n```\n### Step 2 - Create a new connector instance\nYou can now make the connection configuration using the OAuth2 refresh token grant config.\n```ballerina\naad:ConnectionConfig configuration = {\n auth: {\n refreshUrl: ,\n refreshToken : ,\n clientId : ,\n clientSecret : \n }\n};\n\naad:Client aadClient = check new (config);\n```\n### Step 3 - Invoke connector operation\n\n1. Create an Azure AD User\n```ballerina\nad:NewUser info = {\n accountEnabled: true,\n displayName: \"\",\n userPrincipalName: \"\",\n mailNickname: \"\",\n passwordProfile: {\n password: \"\",\n forceChangePasswordNextSignIn: true\n },\n surname: \"\"\n};\n\nad:User|error userInfo = aadClient->createUser(info);\nif (userInfo is ad:User) {\n log:printInfo(\"User succesfully created \" + userInfo?.id.toString());\n} else {\n log:printError(userInfo.message());\n}\n```\n2. Use `bal run` command to compile and run the Ballerina program.\n\n**[You can find a list of samples here](https:\/\/github.com\/ballerina-platform\/module-ballerinax-azure.ad\/tree\/master\/aad\/samples)**" + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "hubspot.crm.quote", + "version": "2.3.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/hubspot.crm.quote/2.3.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/hubspot.crm.quote/2.3.1/ballerinax-hubspot.crm.quote-any-2.3.1.bala?md5=ssFN0xLpssrAwGcDSiFJRA&expires=1686819192", + "digest": "sha-256=49ef2be87293507491d8d07e3a8eed1a0188638c85b8436fb096ee58d4d8aab2", + "summary": "Connects to [HubSpot CRM API](https://developers.hubspot.com/docs/api/overview) from Ballerina", + "readme": "Connects to [HubSpot CRM API](https:\/\/developers.hubspot.com\/docs\/api\/overview) from Ballerina\n\n## Package overview\nThe `ballerinax\/hubspot.crm` is a [Ballerina](https:\/\/ballerina.io\/) connector for connecting to HubSpot CRM.\n\n### Compatibility\n| | Version |\n|----------------------|----------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1 |\n| HubSpot REST API | V3 | \n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/hubspot.crm.quote", + "keywords": [ + "Sales & CRM/Customer Relationship Management", + "Cost/Freemium" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_hubspot.crm.quote_2.3.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811460000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/hubspot.crm.quote/2.3.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/hubspot.crm.quote/2.3.1", + "name": "hubspot.crm.quote", + "summary": "This is a generated connector from [HubSpot](https://www.hubspot.com/) OpenAPI specification. ", + "readme": "## Overview\nThis is a generated connector from [HubSpot](https:\/\/www.hubspot.com\/) OpenAPI specification. \n\nThis API provides access to collections of CRM objects, which return a map of property names to values. Each object type has its own set of default properties, which can be found by exploring the [CRM Object Properties API](https:\/\/developers.hubspot.com\/docs\/methods\/crm-properties\/crm-properties-overview).\n \n## Prerequisites\nBefore using this connector in your Ballerina application, complete the following:\n* Create a [HubSpot developer](https:\/\/developers.hubspot.com\/) account\n* Obtain tokens\n - Use [this](https:\/\/knowledge.hubspot.com\/integrations\/how-do-i-get-my-hubspot-api-key?_ga=2.57958890.1140639136.1626730652-1097354510.1626409334) guide to obtain the API keys related to your account.\n\n## Quickstart\nTo use the HubSpot CRM Quotes connector in your Ballerina application, update the .bal file as follows:\n### Step 1 - Import connector\nFirst, import the ballerinax\/hubspot.crm.quote module into the Ballerina project.\n```ballerina\nimport ballerinax\/hubspot.crm.quote;\n```\n\n### Step 2 - Create a new connector instance\nYou can now make the connection configuration using the access token.\n```ballerina\nquote:ApiKeysConfig config = {\n hapikey : \"\"\n};\n\nquote:Client baseClient = check new Client(clientConfig);\n\n```\n\n### Step 3 - Invoke connector operation\n\n1. List quotes\n\n```\nquote:SimplePublicObjectWithAssociationsArray|error bEvent = baseClient->getPage();\n\nif (bEvent is quote:SimplePublicObjectWithAssociationsArray) {\n log:printInfo(\"Quote list\" + bEvent.toString());\n} else {\n log:printError(msg = bEvent.message());\n}\n```\n\n3. Use `bal run` command to compile and run the Ballerina program" + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "powertoolsdeveloper.datetime", + "version": "1.5.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/powertoolsdeveloper.datetime/1.5.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/powertoolsdeveloper.datetime/1.5.1/ballerinax-powertoolsdeveloper.datetime-any-1.5.1.bala?md5=eJEMTjr03ZudsyS3MUxq_g&expires=1686819192", + "digest": "sha-256=74959dd74c5df55f679f7d250bc9160e1d48f6f4c3f7c31559194f4583d7c291", + "summary": "Connects to [Apptigent Powertools Developer DataTime API](https://portal.apptigent.com/node/612) from Ballerina", + "readme": "Connects to [Apptigent Powertools Developer DataTime API](https:\/\/portal.apptigent.com\/node\/612) from Ballerina\n\n## Package overview\nThe `ballerinax\/powertoolsdeveloper.datetime` is a [Ballerina](https:\/\/ballerina.io\/) connector for Apptigent Powertools Developer DataTime API.\nThis package provides the capability to access Apptigent Powertools Developer DataTime API.\n\n### Compatibility\n| | Version |\n|-------------------------------------|---------------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1 | \n| Apptigent Powertools Developer API | 2021.1.01 |\n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/powertoolsdeveloper.datetime", + "keywords": [ + "Website & App Building/App Builders", + "Cost/Freemium" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_powertoolsdeveloper.datetime_1.5.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811457000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/powertoolsdeveloper.datetime/1.5.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/powertoolsdeveloper.datetime/1.5.1", + "name": "powertoolsdeveloper.datetime", + "summary": "This is a generated connector for [Apptigent PowerTools Developer API v2021.1.01](https://portal.apptigent.com/node/612) OpenAPI specification. ", + "readme": "## Overview\n\nThis is a generated connector for [Apptigent PowerTools Developer API v2021.1.01](https:\/\/portal.apptigent.com\/node\/612) OpenAPI specification. \nApptigent PowerTools Developer Edition is a powerful suite of API endpoints for custom applications running on any stack. \nManipulate text, modify collections, format dates and times, convert currency, perform advanced mathematical calculations, shorten URL's, encode strings, convert text to speech, translate content into multiple languages, process images, and more. \nPowerTools is the ultimate developer toolkit. \nThis connector provides the capability for date and time operations.\n\n## Prerequisites\n\nBefore using this connector in your Ballerina application, complete the following:\n\n* Create [Apptigent](https:\/\/portal.apptigent.com\/user\/register) account\n* Obtain tokens\n 1. Log into Apptigent Developer Portal by visiting https:\/\/portal.apptigent.com\n 2. Create an app and obtain the `Client ID` which will be used as the `API Key` by following the guidelines described [here]((https:\/\/portal.apptigent.com\/start)).\n \n## Quickstart\n\nTo use the Apptigent PowerTools Developer connector in your Ballerina application, update the .bal file as follows:\n\n### Step 1: Import connector\nImport the `ballerinax\/powertoolsdeveloper.datetime` module into the Ballerina project.\n```ballerina\nimport ballerinax\/powertoolsdeveloper.datetime as pd;\n```\n\n### Step 2: Create a new connector instance\nCreate a `datetime:ApiKeysConfig` with the Client ID obtained, and initialize the connector with it. \n```ballerina\npd:ApiKeysConfig config = {\n xIbmClientId: \"\"\n}\npd:Client baseClient = check new Client(config);\n```\n\n### Step 3: Invoke connector operation\n1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.\n\n Following is an example on how to calculate the difference between two dates using the connector by providing the `InputDateTimeDifference` record with date\/time values to compare.\n\n Calculate the difference between two dates\n\n ```ballerina\n public function main() {\n pd:InputDateTimeDifference inputDateTimeDifference = {\n dateTime1: \"1\/1\/2010 12:37:19\",\n dateTime2: \"3\/15\/2011 14:27:49\"\n };\n pd:OutputDateDifference|error response = baseClient->dateTimeDifference(inputDateTimeDifference);\n if (response is pd:OutputDateDifference) {\n log:printInfo(response.toString());\n } else {\n log:printError(response.message());\n }\n }\n ``` \n\n2. Use `bal run` command to compile and run the Ballerina program. " + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "azure.qnamaker", + "version": "1.5.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/azure.qnamaker/1.5.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/azure.qnamaker/1.5.1/ballerinax-azure.qnamaker-any-1.5.1.bala?md5=c_f2e6W7skwwWNti9cXEWg&expires=1686819192", + "digest": "sha-256=cc69ab77bb6d23e9c2122cf018e243a58fdf9f4d528a1c02cf30edf1a3893a13", + "summary": "Connects to [Azure QnA Maker API](https://docs.microsoft.com/en-us/rest/api/cognitiveservices-qnamaker/QnAMaker4.0/) from Ballerina", + "readme": "Connects to [Azure QnA Maker API](https:\/\/docs.microsoft.com\/en-us\/rest\/api\/cognitiveservices-qnamaker\/QnAMaker4.0\/) from Ballerina\n\n### Package overview\n\nThe `azure.qnamaker` is a [Ballerina](https:\/\/ballerina.io\/) connector for connecting to Azure QnA Maker API. This package allows you to create a natural conversational layer over your data.\n\n#### Compatibility\n| | Version |\n|----------------------------|-------------------|\n| Ballerina Language | Swan Lake 2201.4.1 |\n| Azure QnA Maker API | v4 |\n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/azure.qnamaker", + "keywords": [ + "IT Operations/Cloud Services", + "Cost/Freemium", + "Vendor/Microsoft" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_azure.qnamaker_1.5.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811454000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/azure.qnamaker/1.5.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/azure.qnamaker/1.5.1", + "name": "azure.qnamaker", + "summary": "This is a generated connector for [Azure QnA Maker API v4](https://docs.microsoft.com/en-us/rest/api/cognitiveservices-qnamaker/QnAMaker4.0/) OpenAPI specification.", + "readme": "## Overview\n\nThis is a generated connector for [Azure QnA Maker API v4](https:\/\/docs.microsoft.com\/en-us\/rest\/api\/cognitiveservices-qnamaker\/QnAMaker4.0\/) OpenAPI specification.\nThe Azure QnA Maker API is a cloud-based Natural Language Processing (NLP) service that allows you to create a natural conversational layer over your data. It is used to find the most appropriate answer for any input from your custom knowledge base (KB) of information. QnA Maker is commonly used to build conversational client applications, which include social media applications, chat bots, and speech-enabled desktop applications.\n\nThis module supports [Azure QnA Maker API v4](https:\/\/docs.microsoft.com\/en-us\/rest\/api\/cognitiveservices-qnamaker\/QnAMaker4.0\/).\n\n## Prerequisites\n\nBefore using this connector in your Ballerina application, complete the following:\n\n* Create an [Azure account](https:\/\/docs.microsoft.com\/en-us\/learn\/modules\/create-an-azure-account\/)\n\n* Create a [resource](https:\/\/portal.azure.com\/#blade\/Microsoft_Azure_ProjectOxford\/CognitiveServicesHub\/QnAMaker)\n\n* Obtain tokens by following [this guide](https:\/\/docs.microsoft.com\/en-us\/azure\/cognitive-services\/qnamaker\/how-to\/set-up-qnamaker-service-azure?tabs=v1)\n\n## Quickstart\n\nTo use this connector in your Ballerina application, update the .bal file as follows:\n\n### Step 1: Import connector\nImport the `ballerinax\/azure.qnamaker` module into the Ballerina project.\n```ballerina\nimport ballerinax\/azure.qnamaker;\n```\n\n### Step 2: Create a new connector instance\nYou can now make the connection configuration using `Ocp-Apim-Subscription-Key`.\n\nYou can do this step in two ways. You can use any one of this.\n\n- Option 1 :\n Configure API Keys in ballerina file directly. \n\n ```ballerina\n \n qnamaker:ApiKeysConfig apiKeyConfig = {\n ocpApimSubscriptionKey:\"\"\n subscriptionKey: \"\"\n };\n\n qnamaker:Client myClient = check new Client(apiKeyConfig, serviceUrl = \"https:\/\/.api.cognitive.microsoft.com\/qnamaker\/v4.0\");\n\n ```\n\n- Option 2 :\n Configure API Keys in `Config.toml` file and configure it in ballerina file, using configurables. \n\n 1. Set up API Keys in `Config.toml` as shown below.\n ```\n [apiKeyConfig]\n ocpApimSubscriptionKey = \"\"\n subscriptionKey = \"\"\n ```\n\n 2. Configure the client in ballerina file as shown below.\n ```ballerina\n configurable ApiKeysConfig & readonly apiKeyConfig = ?;\n\n qnamaker:Client myClient = check new Client(apiKeyConfig, serviceUrl = \"https:\/\/.api.cognitive.microsoft.com\/qnamaker\/v4.0\");\n ```\n\n### Step 3: Invoke connector operation\n1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.\n\n Following is an example on how to get Knowledgebase Details from API.\n\n Get Knowledgebase Details\n\n ```ballerina\n public function main() returns error? {\n\n qnamaker:KnowledgebaseDTO res = check baseClient->getKnowledgebaseDetail(kID);\n\n }\n ```\n\n2. Use `bal run` command to compile and run the Ballerina program." + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "godaddy.aftermarket", + "version": "1.5.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/godaddy.aftermarket/1.5.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/godaddy.aftermarket/1.5.1/ballerinax-godaddy.aftermarket-any-1.5.1.bala?md5=IiMQOAN-JY6KYjRd_vsKXg&expires=1686819192", + "digest": "sha-256=33e493a3f292edb325cbe8c7484e5205ae5b996ce551d79f569653a0f009c5fa", + "summary": "Connects to [GoDaddy Aftermarket](https://developer.godaddy.com/doc/endpoint/aftermarket) from Ballerina", + "readme": "Connects to [GoDaddy Aftermarket](https:\/\/developer.godaddy.com\/doc\/endpoint\/aftermarket) from Ballerina\n## Package overview\nThe GoDaddy Aftermarket is a [Ballerina](https:\/\/ballerina.io\/) connector for GoDaddy Aftermarket API. This package provides capabilities of adding and removing GoDaddy auctions.\n\n### Compatibility\n| | Version |\n|------------------------------|---------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1|\n| GoDaddy Aftermarket API | v1 |\n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/godaddy.aftermarket", + "keywords": [ + "Website & App Building/Website Builders", + "Cost/Paid" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_godaddy.aftermarket_1.5.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811450000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/godaddy.aftermarket/1.5.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/godaddy.aftermarket/1.5.1", + "name": "godaddy.aftermarket", + "summary": "This is a generated connector for [GoDaddy Aftermarket API v1](https://developer.godaddy.com/doc/endpoint/aftermarkets) OpenAPI specification.", + "readme": "## Overview\nThis is a generated connector for [GoDaddy Aftermarket API v1](https:\/\/developer.godaddy.com\/doc\/endpoint\/aftermarkets) OpenAPI specification.\n\nThe GoDaddy Aftermarkets API provides capability to access GoDaddy operations related to auctions.\n\n## Prerequisites\nBefore using this connector in your Ballerina application, complete the following:\n\n* Create an GoDaddy account\n* Obtain tokens\n 1. Follow [this link](https:\/\/developer.godaddy.com\/getstarted) to obtain tokens" + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "googleapis.manufacturercenter", + "version": "1.5.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/googleapis.manufacturercenter/1.5.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/googleapis.manufacturercenter/1.5.1/ballerinax-googleapis.manufacturercenter-any-1.5.1.bala?md5=q8KgAUJ5kBKscXTqW5R87g&expires=1686819192", + "digest": "sha-256=807b5293ed34276f8bac46e82528ef5b1518b6a234746ce86f0df8a57a7c3c1a", + "summary": "Connects to [Google Manufacturer Center API](https://developers.google.com/manufacturers/) from Ballerina", + "readme": "Connects to [Google Manufacturer Center API](https:\/\/developers.google.com\/manufacturers\/) from Ballerina\n\n## Package overview\nThe `ballerinax\/googleapis.manufacturercenter` is a [Ballerina](https:\/\/ballerina.io\/) connector for Google Manufacturer Center API.\nThis package provides the capability to access Google Manufacturer Center API.\n\n### Compatibility\n| | Version |\n|-----------------------------------|---------------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1 | \n| Google Manufacturer Center API | v1 |\n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/googleapis.manufacturercenter", + "keywords": [ + "Commerce/eCommerce", + "Cost/Free", + "Vendor/Google" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_googleapis.manufacturercenter_1.5.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811442000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/googleapis.manufacturercenter/1.5.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/googleapis.manufacturercenter/1.5.1", + "name": "googleapis.manufacturercenter", + "summary": "This is a generated connector for [Google Manufacturer Center API v1](https://developers.google.com/manufacturers/) OpenAPI specification.", + "readme": "## Overview\nThis is a generated connector for [Google Manufacturer Center API v1](https:\/\/developers.google.com\/manufacturers\/) OpenAPI specification.\nPublic API for managing Manufacturer Center related data.\n\n## Prerequisites\n\nBefore using this connector in your Ballerina application, complete the following:\n\n* Create a [Google account](https:\/\/accounts.google.com\/signup)\n* Obtain tokens - Follow [this link](https:\/\/developers.google.com\/identity\/protocols\/oauth2)\n \n## Quickstart\n\nTo use the Google Manufacturer Center connector in your Ballerina application, update the .bal file as follows:\n\n### Step 1: Import connector\nFirst, import the `ballerinax\/googleapis.manufacturercenter` module into the Ballerina project.\n```ballerina\nimport ballerinax\/googleapis.manufacturercenter;\n```\n\n### Step 2: Create a new connector instance\nCreate a `manufacturercenter:ClientConfig` with the OAuth2 tokens obtained, and initialize the connector with it. \n```ballerina\nmanufacturercenter:ClientConfig clientConfig = {\n auth: {\n clientId: ,\n clientSecret: ,\n refreshUrl: ,\n refreshToken: \n }\n};\n\nmanufacturercenter:Client baseClient = check new Client(clientConfig);\n```\n\n### Step 3: Invoke connector operation\n1. Now you can use the operations available within the connector. Note that they are in the form of remote operations.\n\n Following is an example on how to list all the products in a Manufacturer Center account using the connector. \n\n Lists all the products in a Manufacturer Center account\n\n ```ballerina\n public function main() {\n manufacturercenter:ListProductsResponse|error response = baseClient->listAccountsProducts(\"accounts\/\");\n if (response is manufacturercenter:ListProductsResponse) {\n log:printInfo(response.toString());\n } else {\n log:printError(response.message());\n }\n }\n ``` \n\n2. Use `bal run` command to compile and run the Ballerina program." + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "cloudmersive.barcode", + "version": "1.5.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/cloudmersive.barcode/1.5.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/cloudmersive.barcode/1.5.1/ballerinax-cloudmersive.barcode-any-1.5.1.bala?md5=3x7z7AmxehjEOYh_cfQ8EQ&expires=1686819192", + "digest": "sha-256=fab075f7556a5baf3c11816c1d462aa09c4fa97e436b6902b09aa186723e30f6", + "summary": "Connects to [Cloudmersive Barcode API](https://api.cloudmersive.com/docs/barcode.asp) from Ballerina", + "readme": "Connects to [Cloudmersive Barcode API](https:\/\/api.cloudmersive.com\/docs\/barcode.asp) from Ballerina\n\n## Package overview\n\nThe `ballerinax\/cloudmersive.barcode` is a [Ballerina](https:\/\/ballerina.io\/) connector for connecting to Cloudmersive Barcode API.\n\n### Compatibility\n| | Version |\n|--------------------------|----------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1 |\n| Cloudmersive API | v1 |\n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/cloudmersive.barcode", + "keywords": [ + "IT Operations/Security & Identity Tools", + "Cost/Freemium" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_cloudmersive.barcode_1.5.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811438000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/cloudmersive.barcode/1.5.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/cloudmersive.barcode/1.5.1", + "name": "cloudmersive.barcode", + "summary": "This is a generated connector from [Cloudmersive](https://account.cloudmersive.com) OpenAPI specification.", + "readme": "## Overview\nThis is a generated connector from [Cloudmersive](https:\/\/account.cloudmersive.com) OpenAPI specification.\n\nThe Cloudmersive Barcode APIs let you generate barcode images, and recognize values from images of barcodes.\n \n### Prerequisites\n* Create a [Cloudmersive](https:\/\/account.cloudmersive.com) account\n* Obtain tokens\n - Use [this](https:\/\/account.cloudmersive.com\/keys) guide to obtain the API key related to your account.\n\n## Quickstart\n\nTo use the Cloudmersive Barcode connector in your Ballerina application, update the .bal file as follows:\n### Step 1 - Import connector\nFirst, import the ballerinax\/cloudmersive.barcode module into the Ballerina project.\n```ballerina\nimport ballerinax\/cloudmersive.barcode;\n```\n### Step 2 - Create a new connector instance\nYou can now make the connection configuration using the access token.\n```ballerina\nbarcode:ApiKeysConfig config = {\n apikey : \"\"\n};\n\nbarcode:Client baseClient = check new Client(clientConfig);\n```\n### Step 3 - Invoke connector operation\n\n1. Lookup EAN barcode\n\n```ballerina\nbarcode:BarcodeLookupResponse|error bEvent = baseClient->barcodeEanLookup(\"4 605664 00005\");\n\nif (bEvent is barcode:BarcodeLookupResponse) {\n log:printInfo(\"Product data: \" + bEvent.toString());\n} else {\n log:printError(msg = bEvent.toString());\n}\n``` \n2. Use `bal run` command to compile and run the Ballerina program" + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "saps4hana.wls.screeninghits", + "version": "1.4.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/saps4hana.wls.screeninghits/1.4.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/saps4hana.wls.screeninghits/1.4.1/ballerinax-saps4hana.wls.screeninghits-any-1.4.1.bala?md5=uf4Pd0ezJOblXWNMCyjQhw&expires=1686819192", + "digest": "sha-256=d3a98e0d731444f172e2be56b97e511a52fcd4fd4ddc935b53427bc3f68ae341", + "summary": "Connects to [SAPS4HANA SAP Watch List Screening Hits API v1.7](https://api.sap.com/api/ScreeningHits/resource) from Ballerina", + "readme": "Connects to [SAPS4HANA SAP Watch List Screening Hits API v1.7](https:\/\/api.sap.com\/api\/ScreeningHits\/resource) from Ballerina\n\n## Package overview\nThe `ballerinax\/saps4hana.wls.screeninghits` is a [Ballerina](https:\/\/ballerina.io\/) connector for managing Screening Hits created by the Screening microservice and enabling users to decide whether they are true matches or false positives\n\n### Compatibility\n| | Version |\n|-----------------------------------|------------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1 |\n| SAPS4HANA WLS Screening Hits API | 1.7 |\n \n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/saps4hana.wls.screeninghits", + "keywords": [ + "Business Management/ERP", + "Cost/Paid" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_saps4hana.wls.screeninghits_1.4.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811435000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/saps4hana.wls.screeninghits/1.4.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/saps4hana.wls.screeninghits/1.4.1", + "name": "saps4hana.wls.screeninghits", + "summary": "This is a generated connector for [SAPS4HANA SAP Watch List Screening Hits API v1.7](https://api.sap.com/api/ScreeningHits/resource) OpenAPI specification. ", + "readme": "## Overview\nThis is a generated connector for [SAPS4HANA SAP Watch List Screening Hits API v1.7](https:\/\/api.sap.com\/api\/ScreeningHits\/resource) OpenAPI specification. \n\nThis microservice manages Screening Hits created by the Screening microservice and enables users to decide whether they are true matches or false positives. The Screening Hits are grouped in Screening Hit Collections. The Screening Hit Collection refers to a Business Context e.g. a Sales Order and contains one or more Screened Addresses.\n\n## Prerequisites\n\nBefore using this connector in your Ballerina application, complete the following:\n\n* Create and configure an OAuth2 client credentials by following [this guide](https:\/\/help.sap.com\/viewer\/b865ed651e414196b39f8922db2122c7\/LATEST\/en-US\/7aefa21a65f94b25b7e639c3931b6f83.html)." + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "hubspot.crm.pipeline", + "version": "2.3.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/hubspot.crm.pipeline/2.3.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/hubspot.crm.pipeline/2.3.1/ballerinax-hubspot.crm.pipeline-any-2.3.1.bala?md5=rWq7tvrs2i5b_NLdj8PXyQ&expires=1686819192", + "digest": "sha-256=9108e153832abc8f75b225fd6c72cd7d0977b658594235e8b6439728298564d0", + "summary": "Connects to [HubSpot CRM API](https://developers.hubspot.com/docs/api/overview) from Ballerina", + "readme": "Connects to [HubSpot CRM API](https:\/\/developers.hubspot.com\/docs\/api\/overview) from Ballerina\n\n## Package overview\nThe `ballerinax\/hubspot.crm` is a [Ballerina](https:\/\/ballerina.io\/) connector for connecting to HubSpot CRM.\n\n### Compatibility\n| | Version |\n|----------------------|----------------------------|\n| Ballerina Language | Ballerina Swan Lake 2201.4.1 |\n| HubSpot REST API | V3 | \n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/hubspot.crm.pipeline", + "keywords": [ + "Sales & CRM/Customer Relationship Management", + "Cost/Freemium" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_hubspot.crm.pipeline_2.3.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811431000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/hubspot.crm.pipeline/2.3.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/hubspot.crm.pipeline/2.3.1", + "name": "hubspot.crm.pipeline", + "summary": "This is a generated connector from [HubSpot](https://www.hubspot.com/) OpenAPI specification. ", + "readme": "## Overview\nThis is a generated connector from [HubSpot](https:\/\/www.hubspot.com\/) OpenAPI specification. \n\nThis API provides access to pipelines. Pipelines represent distinct stages in a workflow, like closing a deal or servicing a support ticket. These endpoints provide access to read and modify pipelines in HubSpot. They support `deals` and `tickets` object types.\n \n## Prerequisites\nBefore using this connector in your Ballerina application, complete the following:\n* Create a [HubSpot developer](https:\/\/developers.hubspot.com\/) account\n* Obtain tokens\n - Use [this](https:\/\/developers.hubspot.com\/docs\/api\/working-with-oauth4) guide to obtain the credentials which are needed to create the and \n\n## Quickstart\nTo use the HubSpot CRM Pipelines connector in your Ballerina application, update the .bal file as follows:\n### Step 1 - Import connector\nFirst, import the ballerinax\/hubspot.crm.pipeline module into the Ballerina project.\n```ballerina\nimport ballerinax\/hubspot.crm.pipeline;\n```\n\n### Step 2 - Create a new connector instance\nYou can now make the connection configuration using the access token.\n```ballerina\npipeline:ClientConfig clientConfig = {\n auth : {\n token: \n }\n};\n\npipeline:Client baseClient = check new Client(clientConfig);\n\n```\n\n### Step 3 - Invoke connector operation\n1. Create a pipeline instance\n\n```ballerina\npipeline:PipelineInput event = {\n stages: [\n {\n label: \"In progress\",\n displayOrder: 0,\n metadata: {\n \"ticketState\": \"OPEN\",\n \"probability\": 0.5\n }\n }\n ],\n label: \"My replaced pipeline\",\n displayOrder: 0\n};\n\npipeline:PipelineInput|error bEvent = baseClient->create(\"deals\", event);\n\nif (bEvent is pipeline:PipelineInput) {\n log:printInfo(\"Created the pipeline\" + bEvent.toString());\n} else {\n log:printError(msg = bEvent.toString());\n}\n```\n\n2. List pipelines\n\n```ballerina\npipeline:CollectionResponsePipeline|error bEvent = baseClient->getAll(\"deals\");\n\nif (bEvent is pipeline:CollectionResponsePipeline) {\n log:printInfo(\"Pipeline list\" + bEvent.toString());\n} else {\n log:printError(msg = bEvent.message());\n}\n```\n\n3. Use `bal run` command to compile and run the Ballerina program" + } + ], + "balToolId": "" + }, + { + "organization": "ballerinax", + "name": "workday.absencemanagement", + "version": "1.5.1", + "platform": "any", + "languageSpecificationVersion": "2022R4", + "isDeprecated": false, + "deprecateMessage": "", + "URL": "/ballerinax/workday.absencemanagement/1.5.1", + "balaVersion": "2.0.0", + "balaURL": "https://fileserver.central.ballerina.io/2.0/ballerinax/workday.absencemanagement/1.5.1/ballerinax-workday.absencemanagement-any-1.5.1.bala?md5=Hge9ZSwRJlNzYfoxKlpKZQ&expires=1686819192", + "digest": "sha-256=3d941ad90502c62d6ec2d475e20af6977be7f9fbd36470d3b64b76d69cb64bbe", + "summary": "Connects to [Workday Absence Management API v1](https://community.workday.com/sites/default/files/file-hosting/restapi/index.html) from Ballerina.", + "readme": "Connects to [Workday Absence Management API v1](https:\/\/community.workday.com\/sites\/default\/files\/file-hosting\/restapi\/index.html) from Ballerina.\n\n### Package Overview\n\nThe `ballerinax\/workday.absencemanagement` is a [Ballerina](https:\/\/ballerina.io\/) connector for Workday Absence Management API. \n\nThis package provides the capability to easily access Workday Absence Management related endpoints.\n\n#### Compatibility\n| | Version |\n|-------------------------------|----------------------------|\n| Ballerina Language Version | Ballerina Swan Lake 2201.4.1 |\n| API Version | v1 |\n\n## Report issues\nTo report bugs, request new features, start new discussions, view project boards, etc., go to the [Ballerina Extended Library repository](https:\/\/github.com\/ballerina-platform\/ballerina-extended-library)\n\n## Useful links\n- Discuss code changes of the Ballerina project in [ballerina-dev@googlegroups.com](mailto:ballerina-dev@googlegroups.com).\n- Chat live with us via our [Discord server](https:\/\/discord.gg\/ballerinalang).\n- Post all technical questions on Stack Overflow with the [#ballerina](https:\/\/stackoverflow.com\/questions\/tagged\/ballerina) tag", + "template": false, + "licenses": [ + "Apache-2.0" + ], + "authors": [ + "Ballerina" + ], + "sourceCodeLocation": "https://github.com/ballerina-platform/openapi-connectors/tree/main/openapi/workday.absencemanagement", + "keywords": [ + "Human Resources/HRMS", + "Cost/Paid" + ], + "ballerinaVersion": "2201.4.1", + "icon": "https://bcentral-packageicons.azureedge.net/images/ballerinax_workday.absencemanagement_1.5.1.png", + "ownerUUID": "9712bf21-e852-48ba-83f0-2c7c5262cb6d", + "createdDate": 1683811427000, + "pullCount": 0, + "visibility": "public", + "modules": [ + { + "packageURL": "/ballerinax/workday.absencemanagement/1.5.1", + "apiDocURL": "https://lib.ballerina.io/ballerinax/workday.absencemanagement/1.5.1", + "name": "workday.absencemanagement", + "summary": "This is a generated connector for [WorkDay AbsenceManagement REST API v1](https://community.workday.com/sites/default/files/file-hosting/restapi/index.html) OpenAPI specification.", + "readme": "## Overview\nThis is a generated connector for [WorkDay AbsenceManagement REST API v1](https:\/\/community.workday.com\/sites\/default\/files\/file-hosting\/restapi\/index.html) OpenAPI specification.\n\nThe Absence Management service enables applications to access worker information about leaves of absence and time off details.\n \n \n## Prerequisites\n \nBefore using this connector in your Ballerina application, complete the following:\n \n* Create a workday application in the [Credential Administrator console](https:\/\/credentials.workday.com\/docs\/cred-admin)\n* Obtain tokens by following [this guide](https:\/\/credentials.workday.com\/docs\/getting-started\/)" + } + ], + "balToolId": "" + } + ], + "count": 488, + "offset": 150, + "limit": 10 +} From 025e3d6199158f5e9824462568c9fdc9a102a53b Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 15 Jun 2023 09:19:24 +0530 Subject: [PATCH 097/122] Address more review suggestions --- .../ballerina/connector/CentralPackageListResult.java | 2 +- .../test/java/org/ballerinalang/langserver/AbstractLSTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java index e7dbbdb2b195..ef8a76504df1 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java @@ -22,7 +22,7 @@ /** * Central package list result. * - * @since 2201.6.0 + * @since 2201.7.0 */ public class CentralPackageListResult { diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java index 875976581af5..849b0a4cb973 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java @@ -48,6 +48,7 @@ @PrepareForTest({LSPackageLoader.class}) public abstract class AbstractLSTest { + private static final Gson gson = new Gson(); private static final Map REMOTE_PROJECTS = Map.of("project1", "main.bal", "project2", "main.bal"); private static final Map LOCAL_PROJECTS = Map.of("local_project1", "main.bal", "local_project2", "main.bal"); @@ -73,7 +74,7 @@ public abstract class AbstractLSTest { languageServer.getWorkspaceManager(), context).stream().map(LSPackageLoader.ModuleInfo::new) .collect(Collectors.toList())); FileReader fileReader = new FileReader(FileUtils.RES_DIR.resolve("central/centralPackages.json").toFile()); - CENTRAL_PACKAGES.addAll(new Gson().fromJson(fileReader, CentralPackageListResult.class).getPackages()); + CENTRAL_PACKAGES.addAll(gson.fromJson(fileReader, CentralPackageListResult.class).getPackages()); } catch (Exception e) { //ignore } finally { From 2a564e01bf3239b6429541f6933e8649214d2822 Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 15 Jun 2023 14:29:05 +0530 Subject: [PATCH 098/122] Add test cases --- .../langserver/LSPackageLoader.java | 70 ++++------------ .../context/ImportOrgNameNodeContext.java | 12 ++- .../langserver/AbstractLSTest.java | 11 ++- .../completion/ImportDeclarationTest.java | 8 ++ .../import_decl_with_ballerinax_org.json | 80 +++++++++++++++++++ .../import_decl_with_ballerinax_org.bal | 1 + 6 files changed, 120 insertions(+), 62 deletions(-) create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/import_decl/config/import_decl_with_ballerinax_org.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/import_decl/source/import_decl_with_ballerinax_org.bal diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index bf209f8dccc0..534f66df7538 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -32,12 +32,6 @@ import org.ballerinalang.langserver.common.utils.ModuleUtil; import org.ballerinalang.langserver.commons.DocumentServiceContext; import org.ballerinalang.langserver.commons.LanguageServerContext; -import org.ballerinalang.langserver.commons.client.ExtendedLanguageClient; -import org.eclipse.lsp4j.ProgressParams; -import org.eclipse.lsp4j.WorkDoneProgressBegin; -import org.eclipse.lsp4j.WorkDoneProgressCreateParams; -import org.eclipse.lsp4j.WorkDoneProgressEnd; -import org.eclipse.lsp4j.jsonrpc.messages.Either; import org.wso2.ballerinalang.compiler.util.Names; import java.nio.file.Path; @@ -49,8 +43,6 @@ import java.util.Map; import java.util.Optional; import java.util.Set; -import java.util.UUID; -import java.util.concurrent.CompletableFuture; import java.util.stream.Collectors; /** @@ -64,11 +56,7 @@ public class LSPackageLoader { private final List distRepoPackages; private final List remoteRepoPackages = new ArrayList<>(); private final List localRepoPackages = new ArrayList<>(); - private final List centralPackages = new ArrayList<>(); - - public List getCentralPackages() { - return centralPackages; - } + private final List centralPackages; private final LSClientLogger clientLogger; @@ -84,7 +72,7 @@ public static LSPackageLoader getInstance(LanguageServerContext context) { private LSPackageLoader(LanguageServerContext context) { this.clientLogger = LSClientLogger.getInstance(context); distRepoPackages = this.getDistributionRepoPackages(); - loadBallerinaxPackagesFromCentral(context); + centralPackages = getBallerinaxPackagesFromCentral(context); context.put(LS_PACKAGE_LOADER_KEY, this); } @@ -135,50 +123,20 @@ public List getDistributionRepoPackages() { Collections.emptySet())); } - private void loadBallerinaxPackagesFromCentral(LanguageServerContext lsContext) { - if (!this.centralPackages.isEmpty()) { - return; + public List getCentralPackages(LanguageServerContext context) { + if (this.centralPackages != null) { + return this.centralPackages; } + return this.getBallerinaxPackagesFromCentral(context); + } - String taskId = UUID.randomUUID().toString(); - ExtendedLanguageClient languageClient = lsContext.get(ExtendedLanguageClient.class); - LSClientLogger clientLogger = LSClientLogger.getInstance(lsContext); - CompletableFuture.runAsync(() -> { - if (languageClient != null) { - // Initialize progress notification - WorkDoneProgressCreateParams workDoneProgressCreateParams = new WorkDoneProgressCreateParams(); - workDoneProgressCreateParams.setToken(taskId); - languageClient.createProgress(workDoneProgressCreateParams); - - // Start progress - WorkDoneProgressBegin beginNotification = new WorkDoneProgressBegin(); - beginNotification.setTitle("Loading Ballerina Central Packages"); - beginNotification.setCancellable(false); - beginNotification.setMessage("Loading..."); - languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), - Either.forLeft(beginNotification))); - } - }).thenRunAsync(() -> { - CentralPackageDescriptorLoader.getInstance(lsContext).getPackagesFromCentral().forEach(packageInfo -> { - PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); - PackageName packageName = PackageName.from(packageInfo.getName()); - PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); - ModuleInfo moduleInfo = new ModuleInfo(packageOrg, packageName, packageVersion, null); - centralPackages.add(moduleInfo); - }); - }).thenRunAsync(() -> { - WorkDoneProgressEnd endNotification = new WorkDoneProgressEnd(); - endNotification.setMessage("Loaded Successfully!"); - languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), - Either.forLeft(endNotification))); - }).exceptionally(e -> { - WorkDoneProgressEnd endNotification = new WorkDoneProgressEnd(); - endNotification.setMessage("Loading Failed!"); - languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), - Either.forLeft(endNotification))); - clientLogger.logTrace("Failed loading ballerina central packages due to " + e.getMessage()); - return null; - }); + private List getBallerinaxPackagesFromCentral(LanguageServerContext lsContext) { + return CentralPackageDescriptorLoader.getInstance(lsContext).getPackagesFromCentral().stream().map(packageInfo -> { + PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); + PackageName packageName = PackageName.from(packageInfo.getName()); + PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); + return new ModuleInfo(packageOrg, packageName, packageVersion, null); + }).collect(Collectors.toList()); } /** diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java index fcb3016769c6..17c3b78d2063 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java @@ -30,6 +30,7 @@ import java.util.ArrayList; import java.util.List; +import java.util.stream.Collectors; /** * Completion provider for {@link ImportOrgNameNode} context. @@ -61,8 +62,15 @@ public List getCompletions(BallerinaCompletionContext ctx, Imp if (orgName.equals("ballerinax")) { List packagesFromCentral = LSPackageLoader.getInstance( - ctx.languageServercontext()).getCentralPackages(); - completionItems.addAll(moduleNameContextCompletions(ctx, "ballerinax", packagesFromCentral)); + ctx.languageServercontext()).getCentralPackages(ctx.languageServercontext()); + ArrayList packages = moduleNameContextCompletions(ctx, "ballerinax", packagesFromCentral); + completionItems.addAll(packages.stream() + .filter(lsCompletionItem -> completionItems.stream() + .filter(completionItem -> completionItem.getCompletionItem().getLabel() + .equals(lsCompletionItem.getCompletionItem().getLabel())) + .findFirst() + .isEmpty()) + .collect(Collectors.toList())); } this.sort(ctx, node, completionItems); diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java index 849b0a4cb973..b384520cc59e 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java @@ -45,7 +45,7 @@ * * @since 2201.1.0 */ -@PrepareForTest({LSPackageLoader.class}) +@PrepareForTest({LSPackageLoader.class, CentralPackageDescriptorLoader.class}) public abstract class AbstractLSTest { private static final Gson gson = new Gson(); @@ -60,6 +60,8 @@ public abstract class AbstractLSTest { private LSPackageLoader lsPackageLoader; + private CentralPackageDescriptorLoader descriptorLoader; + private BallerinaLanguageServer languageServer; static { @@ -75,6 +77,7 @@ public abstract class AbstractLSTest { .collect(Collectors.toList())); FileReader fileReader = new FileReader(FileUtils.RES_DIR.resolve("central/centralPackages.json").toFile()); CENTRAL_PACKAGES.addAll(gson.fromJson(fileReader, CentralPackageListResult.class).getPackages()); + int x = 0; } catch (Exception e) { //ignore } finally { @@ -103,17 +106,17 @@ protected void setupLanguageServer(TestUtil.LanguageServerBuilder builder) { public void setUp() { this.lsPackageLoader = Mockito.mock(LSPackageLoader.class, Mockito.withSettings().stubOnly()); - CentralPackageDescriptorLoader descriptorLoader = Mockito.mock( - CentralPackageDescriptorLoader.class, Mockito.withSettings().stubOnly()); + this.descriptorLoader = Mockito.mock(CentralPackageDescriptorLoader.class, Mockito.withSettings().stubOnly()); languageServer.getServerContext().put( CentralPackageDescriptorLoader.CENTRAL_PACKAGE_HOLDER_KEY, descriptorLoader); this.languageServer.getServerContext().put(LSPackageLoader.LS_PACKAGE_LOADER_KEY, this.lsPackageLoader); Mockito.when(this.lsPackageLoader.getRemoteRepoPackages(Mockito.any())).thenReturn(REMOTE_PACKAGES); Mockito.when(this.lsPackageLoader.getLocalRepoPackages(Mockito.any())).thenReturn(LOCAL_PACKAGES); + Mockito.when(this.descriptorLoader.getPackagesFromCentral()).thenReturn(CENTRAL_PACKAGES); + Mockito.when(this.lsPackageLoader.getCentralPackages(Mockito.any())).thenCallRealMethod(); Mockito.when(this.lsPackageLoader.getDistributionRepoPackages()).thenCallRealMethod(); Mockito.when(this.lsPackageLoader.getAllVisiblePackages(Mockito.any())).thenCallRealMethod(); Mockito.when(this.lsPackageLoader.getPackagesFromBallerinaUserHome(Mockito.any())).thenCallRealMethod(); - Mockito.when(descriptorLoader.getPackagesFromCentral()).thenReturn(CENTRAL_PACKAGES); } protected static List getPackages(Map projects, diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/ImportDeclarationTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/ImportDeclarationTest.java index 88a13c32110a..bd0c3777561e 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/ImportDeclarationTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/completion/ImportDeclarationTest.java @@ -18,6 +18,7 @@ package org.ballerinalang.langserver.completion; import org.ballerinalang.langserver.commons.workspace.WorkspaceDocumentException; +import org.testng.annotations.BeforeClass; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; @@ -32,6 +33,13 @@ */ public class ImportDeclarationTest extends CompletionTest { + @BeforeClass + @Override + public void init() throws Exception { + super.init(); + preLoadAndInit(); + } + @Test(dataProvider = "completion-data-provider") @Override public void test(String config, String configPath) throws WorkspaceDocumentException, IOException { diff --git a/language-server/modules/langserver-core/src/test/resources/completion/import_decl/config/import_decl_with_ballerinax_org.json b/language-server/modules/langserver-core/src/test/resources/completion/import_decl/config/import_decl_with_ballerinax_org.json new file mode 100644 index 000000000000..7c3778bfeded --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/import_decl/config/import_decl_with_ballerinax_org.json @@ -0,0 +1,80 @@ +{ + "position": { + "line": 0, + "character": 18 + }, + "source": "import_decl/source/import_decl_with_ballerinax_org.bal", + "description": "", + "items": [ + { + "label": "azure.ad", + "kind": "Module", + "detail": "Module", + "insertText": "azure.ad", + "insertTextFormat": "Snippet" + }, + { + "label": "hubspot.crm.quote", + "kind": "Module", + "detail": "Module", + "insertText": "hubspot.crm.quote", + "insertTextFormat": "Snippet" + }, + { + "label": "powertoolsdeveloper.datetime", + "kind": "Module", + "detail": "Module", + "insertText": "powertoolsdeveloper.datetime", + "insertTextFormat": "Snippet" + }, + { + "label": "azure.qnamaker", + "kind": "Module", + "detail": "Module", + "insertText": "azure.qnamaker", + "insertTextFormat": "Snippet" + }, + { + "label": "godaddy.aftermarket", + "kind": "Module", + "detail": "Module", + "insertText": "godaddy.aftermarket", + "insertTextFormat": "Snippet" + }, + { + "label": "googleapis.manufacturercenter", + "kind": "Module", + "detail": "Module", + "insertText": "googleapis.manufacturercenter", + "insertTextFormat": "Snippet" + }, + { + "label": "cloudmersive.barcode", + "kind": "Module", + "detail": "Module", + "insertText": "cloudmersive.barcode", + "insertTextFormat": "Snippet" + }, + { + "label": "saps4hana.wls.screeninghits", + "kind": "Module", + "detail": "Module", + "insertText": "saps4hana.wls.screeninghits", + "insertTextFormat": "Snippet" + }, + { + "label": "hubspot.crm.pipeline", + "kind": "Module", + "detail": "Module", + "insertText": "hubspot.crm.pipeline", + "insertTextFormat": "Snippet" + }, + { + "label": "workday.absencemanagement", + "kind": "Module", + "detail": "Module", + "insertText": "workday.absencemanagement", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/import_decl/source/import_decl_with_ballerinax_org.bal b/language-server/modules/langserver-core/src/test/resources/completion/import_decl/source/import_decl_with_ballerinax_org.bal new file mode 100644 index 000000000000..c452c091a6f0 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/import_decl/source/import_decl_with_ballerinax_org.bal @@ -0,0 +1 @@ +import ballerinax/ From 06164d921455e7ab3fb175453ffbca88414398b0 Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 15 Jun 2023 23:09:29 +0530 Subject: [PATCH 099/122] Fix CentralPackageDescriptorLoader --- .../langserver/BallerinaLanguageServer.java | 2 ++ .../CentralPackageDescriptorLoader.java | 19 ++++++++++- .../langserver/LSPackageLoader.java | 34 ++++++++----------- .../context/ImportOrgNameNodeContext.java | 18 ++++------ .../langserver/AbstractLSTest.java | 7 ++-- 5 files changed, 46 insertions(+), 34 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/BallerinaLanguageServer.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/BallerinaLanguageServer.java index a4f5ad11031f..ed591b394931 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/BallerinaLanguageServer.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/BallerinaLanguageServer.java @@ -218,6 +218,8 @@ public void initialized(InitializedParams params) { } //Initialize Service Template Generator. ServiceTemplateGenerator.getInstance(this.serverContext); + CentralPackageDescriptorLoader.getInstance(this.serverContext) + .loadBallerinaxPackagesFromCentral(this.serverContext); } /** diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java index 2ed57994b614..4b8a754586b1 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java @@ -29,6 +29,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.concurrent.CompletableFuture; /** * Central package descriptor holder. @@ -38,6 +39,8 @@ public class CentralPackageDescriptorLoader { public static final LanguageServerContext.Key CENTRAL_PACKAGE_HOLDER_KEY = new LanguageServerContext.Key<>(); + private static final List centralPackages = new ArrayList<>(); + private boolean isLoaded = false; public static CentralPackageDescriptorLoader getInstance(LanguageServerContext context) { CentralPackageDescriptorLoader centralPackageDescriptorLoader = context.get(CENTRAL_PACKAGE_HOLDER_KEY); @@ -51,7 +54,21 @@ private CentralPackageDescriptorLoader(LanguageServerContext context) { context.put(CENTRAL_PACKAGE_HOLDER_KEY, this); } - public List getPackagesFromCentral() { + public void loadBallerinaxPackagesFromCentral(LanguageServerContext lsContext) { + CompletableFuture.runAsync(() -> { + centralPackages.addAll(CentralPackageDescriptorLoader.getInstance(lsContext).getPackagesFromCentral()); + }); + isLoaded = true; + } + + public List getCentralPackages(LanguageServerContext context) { + if (!isLoaded) { + loadBallerinaxPackagesFromCentral(context); + } + return centralPackages; + } + + private List getPackagesFromCentral() { List packageList = new ArrayList<>(); try { for (int page = 0;; page++) { diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index 534f66df7538..7a80abff734c 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -53,10 +53,10 @@ public class LSPackageLoader { public static final LanguageServerContext.Key LS_PACKAGE_LOADER_KEY = new LanguageServerContext.Key<>(); - private final List distRepoPackages; + private List distRepoPackages = new ArrayList<>(); private final List remoteRepoPackages = new ArrayList<>(); private final List localRepoPackages = new ArrayList<>(); - private final List centralPackages; + private List centralPackages = new ArrayList<>(); private final LSClientLogger clientLogger; @@ -71,8 +71,6 @@ public static LSPackageLoader getInstance(LanguageServerContext context) { private LSPackageLoader(LanguageServerContext context) { this.clientLogger = LSClientLogger.getInstance(context); - distRepoPackages = this.getDistributionRepoPackages(); - centralPackages = getBallerinaxPackagesFromCentral(context); context.put(LS_PACKAGE_LOADER_KEY, this); } @@ -111,7 +109,7 @@ public List getRemoteRepoPackages(PackageRepository repository) { * @return {@link List} of distribution repo packages */ public List getDistributionRepoPackages() { - if (this.distRepoPackages != null) { + if (this.distRepoPackages != null && !this.distRepoPackages.isEmpty()) { return this.distRepoPackages; } DefaultEnvironment environment = new DefaultEnvironment(); @@ -119,24 +117,22 @@ public List getDistributionRepoPackages() { BallerinaDistribution ballerinaDistribution = BallerinaDistribution.from(environment); PackageRepository packageRepository = ballerinaDistribution.packageRepository(); List skippedLangLibs = Arrays.asList("lang.annotations", "lang.__internal", "lang.query"); - return Collections.unmodifiableList(checkAndResolvePackagesFromRepository(packageRepository, skippedLangLibs, - Collections.emptySet())); + this.distRepoPackages = checkAndResolvePackagesFromRepository(packageRepository, skippedLangLibs, + Collections.emptySet()); + return distRepoPackages; } public List getCentralPackages(LanguageServerContext context) { - if (this.centralPackages != null) { - return this.centralPackages; + if (centralPackages == null || centralPackages.isEmpty()) { + centralPackages = CentralPackageDescriptorLoader.getInstance(context).getCentralPackages(context).stream() + .map(packageInfo -> { + PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); + PackageName packageName = PackageName.from(packageInfo.getName()); + PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); + return new ModuleInfo(packageOrg, packageName, packageVersion, null); + }).collect(Collectors.toList()); } - return this.getBallerinaxPackagesFromCentral(context); - } - - private List getBallerinaxPackagesFromCentral(LanguageServerContext lsContext) { - return CentralPackageDescriptorLoader.getInstance(lsContext).getPackagesFromCentral().stream().map(packageInfo -> { - PackageOrg packageOrg = PackageOrg.from(packageInfo.getOrganization()); - PackageName packageName = PackageName.from(packageInfo.getName()); - PackageVersion packageVersion = PackageVersion.from(packageInfo.getVersion()); - return new ModuleInfo(packageOrg, packageName, packageVersion, null); - }).collect(Collectors.toList()); + return centralPackages; } /** diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java index 17c3b78d2063..0d46bdef26cd 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java @@ -30,7 +30,6 @@ import java.util.ArrayList; import java.util.List; -import java.util.stream.Collectors; /** * Completion provider for {@link ImportOrgNameNode} context. @@ -56,21 +55,16 @@ public List getCompletions(BallerinaCompletionContext ctx, Imp throw new AssertionError("ModuleName cannot be empty"); } - List moduleList = - new ArrayList<>(LSPackageLoader.getInstance(ctx.languageServercontext()).getAllVisiblePackages(ctx)); - ArrayList completionItems = moduleNameContextCompletions(ctx, orgName, moduleList); + ArrayList completionItems = new ArrayList<>(); if (orgName.equals("ballerinax")) { List packagesFromCentral = LSPackageLoader.getInstance( ctx.languageServercontext()).getCentralPackages(ctx.languageServercontext()); - ArrayList packages = moduleNameContextCompletions(ctx, "ballerinax", packagesFromCentral); - completionItems.addAll(packages.stream() - .filter(lsCompletionItem -> completionItems.stream() - .filter(completionItem -> completionItem.getCompletionItem().getLabel() - .equals(lsCompletionItem.getCompletionItem().getLabel())) - .findFirst() - .isEmpty()) - .collect(Collectors.toList())); + completionItems.addAll(moduleNameContextCompletions(ctx, "ballerinax", packagesFromCentral)); + } else { + List moduleList = new ArrayList<>( + LSPackageLoader.getInstance(ctx.languageServercontext()).getAllVisiblePackages(ctx)); + completionItems = moduleNameContextCompletions(ctx, orgName, moduleList); } this.sort(ctx, node, completionItems); diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java index b384520cc59e..40829a974a56 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java @@ -77,7 +77,6 @@ public abstract class AbstractLSTest { .collect(Collectors.toList())); FileReader fileReader = new FileReader(FileUtils.RES_DIR.resolve("central/centralPackages.json").toFile()); CENTRAL_PACKAGES.addAll(gson.fromJson(fileReader, CentralPackageListResult.class).getPackages()); - int x = 0; } catch (Exception e) { //ignore } finally { @@ -112,7 +111,7 @@ public void setUp() { this.languageServer.getServerContext().put(LSPackageLoader.LS_PACKAGE_LOADER_KEY, this.lsPackageLoader); Mockito.when(this.lsPackageLoader.getRemoteRepoPackages(Mockito.any())).thenReturn(REMOTE_PACKAGES); Mockito.when(this.lsPackageLoader.getLocalRepoPackages(Mockito.any())).thenReturn(LOCAL_PACKAGES); - Mockito.when(this.descriptorLoader.getPackagesFromCentral()).thenReturn(CENTRAL_PACKAGES); + Mockito.when(this.descriptorLoader.getCentralPackages(Mockito.any())).thenReturn(CENTRAL_PACKAGES); Mockito.when(this.lsPackageLoader.getCentralPackages(Mockito.any())).thenCallRealMethod(); Mockito.when(this.lsPackageLoader.getDistributionRepoPackages()).thenCallRealMethod(); Mockito.when(this.lsPackageLoader.getAllVisiblePackages(Mockito.any())).thenCallRealMethod(); @@ -138,6 +137,10 @@ public void cleanMocks() { Mockito.reset(this.lsPackageLoader); this.lsPackageLoader = null; } + if (this.descriptorLoader != null) { + Mockito.reset(this.descriptorLoader); + this.descriptorLoader = null; + } } @AfterClass From 2b5f9194ca78a4827734cf38678a5589034d90c5 Mon Sep 17 00:00:00 2001 From: mindula Date: Mon, 19 Jun 2023 09:43:26 +0530 Subject: [PATCH 100/122] Add work done progress notification for loading central packages --- .../CentralPackageDescriptorLoader.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java index 4b8a754586b1..702a821564a6 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java @@ -22,13 +22,19 @@ import org.ballerinalang.central.client.CentralAPIClient; import org.ballerinalang.central.client.model.Package; import org.ballerinalang.langserver.commons.LanguageServerContext; +import org.ballerinalang.langserver.commons.client.ExtendedLanguageClient; import org.ballerinalang.langserver.extensions.ballerina.connector.CentralPackageListResult; +import org.eclipse.lsp4j.ProgressParams; +import org.eclipse.lsp4j.WorkDoneProgressBegin; +import org.eclipse.lsp4j.WorkDoneProgressCreateParams; +import org.eclipse.lsp4j.jsonrpc.messages.Either; import org.wso2.ballerinalang.util.RepoUtils; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.UUID; import java.util.concurrent.CompletableFuture; /** @@ -55,7 +61,20 @@ private CentralPackageDescriptorLoader(LanguageServerContext context) { } public void loadBallerinaxPackagesFromCentral(LanguageServerContext lsContext) { + String taskId = UUID.randomUUID().toString(); + ExtendedLanguageClient languageClient = lsContext.get(ExtendedLanguageClient.class); CompletableFuture.runAsync(() -> { + WorkDoneProgressCreateParams workDoneProgressCreateParams = new WorkDoneProgressCreateParams(); + workDoneProgressCreateParams.setToken(taskId); + languageClient.createProgress(workDoneProgressCreateParams); + + WorkDoneProgressBegin beginNotification = new WorkDoneProgressBegin(); + beginNotification.setTitle("Loading Ballerina Central Packages"); + beginNotification.setCancellable(false); + beginNotification.setMessage("Loading..."); + languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), + Either.forLeft(beginNotification))); + }).thenRunAsync(() -> { centralPackages.addAll(CentralPackageDescriptorLoader.getInstance(lsContext).getPackagesFromCentral()); }); isLoaded = true; From df3d55da0375738847d104681b50662a950838c3 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 28 Jun 2023 08:42:19 +0530 Subject: [PATCH 101/122] Update version --- .../langserver/CentralPackageDescriptorLoader.java | 4 ++-- .../ballerina/connector/CentralPackageListResult.java | 2 +- .../java/org/ballerinalang/langserver/AbstractLSTest.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java index 702a821564a6..8253571d296e 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java @@ -40,12 +40,12 @@ /** * Central package descriptor holder. * - * @since 2201.7.0 + * @since 2201.8.0 */ public class CentralPackageDescriptorLoader { public static final LanguageServerContext.Key CENTRAL_PACKAGE_HOLDER_KEY = new LanguageServerContext.Key<>(); - private static final List centralPackages = new ArrayList<>(); + private final List centralPackages = new ArrayList<>(); private boolean isLoaded = false; public static CentralPackageDescriptorLoader getInstance(LanguageServerContext context) { diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java index ef8a76504df1..bbc1a8202259 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/extensions/ballerina/connector/CentralPackageListResult.java @@ -22,7 +22,7 @@ /** * Central package list result. * - * @since 2201.7.0 + * @since 2201.8.0 */ public class CentralPackageListResult { diff --git a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java index 40829a974a56..395c21952255 100644 --- a/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java +++ b/language-server/modules/langserver-core/src/test/java/org/ballerinalang/langserver/AbstractLSTest.java @@ -48,7 +48,7 @@ @PrepareForTest({LSPackageLoader.class, CentralPackageDescriptorLoader.class}) public abstract class AbstractLSTest { - private static final Gson gson = new Gson(); + private static final Gson GSON = new Gson(); private static final Map REMOTE_PROJECTS = Map.of("project1", "main.bal", "project2", "main.bal"); private static final Map LOCAL_PROJECTS = Map.of("local_project1", "main.bal", "local_project2", "main.bal"); @@ -76,7 +76,7 @@ public abstract class AbstractLSTest { languageServer.getWorkspaceManager(), context).stream().map(LSPackageLoader.ModuleInfo::new) .collect(Collectors.toList())); FileReader fileReader = new FileReader(FileUtils.RES_DIR.resolve("central/centralPackages.json").toFile()); - CENTRAL_PACKAGES.addAll(gson.fromJson(fileReader, CentralPackageListResult.class).getPackages()); + CENTRAL_PACKAGES.addAll(GSON.fromJson(fileReader, CentralPackageListResult.class).getPackages()); } catch (Exception e) { //ignore } finally { From c9d21b13144e369c5550d64cc803c4c2fff7e444 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 28 Jun 2023 16:23:50 +0530 Subject: [PATCH 102/122] Add end notification --- .../langserver/CentralPackageDescriptorLoader.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java index 8253571d296e..39235c10973b 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/CentralPackageDescriptorLoader.java @@ -27,6 +27,7 @@ import org.eclipse.lsp4j.ProgressParams; import org.eclipse.lsp4j.WorkDoneProgressBegin; import org.eclipse.lsp4j.WorkDoneProgressCreateParams; +import org.eclipse.lsp4j.WorkDoneProgressEnd; import org.eclipse.lsp4j.jsonrpc.messages.Either; import org.wso2.ballerinalang.util.RepoUtils; @@ -76,6 +77,11 @@ public void loadBallerinaxPackagesFromCentral(LanguageServerContext lsContext) { Either.forLeft(beginNotification))); }).thenRunAsync(() -> { centralPackages.addAll(CentralPackageDescriptorLoader.getInstance(lsContext).getPackagesFromCentral()); + }).thenRunAsync(() -> { + WorkDoneProgressEnd endNotification = new WorkDoneProgressEnd(); + endNotification.setMessage("Loaded Successfully!"); + languageClient.notifyProgress(new ProgressParams(Either.forLeft(taskId), + Either.forLeft(endNotification))); }); isLoaded = true; } From 517de19dd9a72f9d717ead2689c46eabc2cd5185 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 5 Jul 2023 14:41:49 +0530 Subject: [PATCH 103/122] Address review suggestions --- .../central/client/CentralAPIClient.java | 2 +- .../providers/context/ImportOrgNameNodeContext.java | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java index 8d95a9483042..a50517219dee 100644 --- a/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java +++ b/cli/central-client/src/main/java/org/ballerinalang/central/client/CentralAPIClient.java @@ -1159,7 +1159,7 @@ public JsonElement getPackages(Map params, String supportedPlatf ResponseBody responseBody = searchResponse.body(); body = responseBody != null ? Optional.of(responseBody) : Optional.empty(); if (body.isPresent()) { - MediaType contentType = body.get().contentType() != null ? body.get().contentType() : null; + MediaType contentType = body.get().contentType(); if (contentType != null && isApplicationJsonContentType(contentType.toString()) && searchResponse.code() == HttpsURLConnection.HTTP_OK) { return new Gson().toJsonTree(body.get().string()); diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java index 0d46bdef26cd..786f7b05080f 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/ImportOrgNameNodeContext.java @@ -55,17 +55,14 @@ public List getCompletions(BallerinaCompletionContext ctx, Imp throw new AssertionError("ModuleName cannot be empty"); } - ArrayList completionItems = new ArrayList<>(); - + List packages; if (orgName.equals("ballerinax")) { - List packagesFromCentral = LSPackageLoader.getInstance( - ctx.languageServercontext()).getCentralPackages(ctx.languageServercontext()); - completionItems.addAll(moduleNameContextCompletions(ctx, "ballerinax", packagesFromCentral)); + packages = LSPackageLoader.getInstance(ctx.languageServercontext()).getCentralPackages( + ctx.languageServercontext()); } else { - List moduleList = new ArrayList<>( - LSPackageLoader.getInstance(ctx.languageServercontext()).getAllVisiblePackages(ctx)); - completionItems = moduleNameContextCompletions(ctx, orgName, moduleList); + packages = LSPackageLoader.getInstance(ctx.languageServercontext()).getAllVisiblePackages(ctx); } + ArrayList completionItems = moduleNameContextCompletions(ctx, orgName, packages); this.sort(ctx, node, completionItems); From 16db2657a18c91450f4de08191324911f6e01934 Mon Sep 17 00:00:00 2001 From: Ushira Karunasena Date: Wed, 5 Jul 2023 15:24:58 +0530 Subject: [PATCH 104/122] Update TemplateNodeConfig.java --- .../internal/treegen/model/json/TemplateNodeConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java index 34f041fae5ef..96692985c0e0 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java @@ -20,7 +20,7 @@ /** * TemplateNodeConfig. * - * @since 2.8.0 + * @since 2201.8.0 */ public class TemplateNodeConfig { From 7e9a74b3d8088b5681fd66b51463947f9cf87e89 Mon Sep 17 00:00:00 2001 From: ushirask Date: Wed, 5 Jul 2023 15:43:07 +0530 Subject: [PATCH 105/122] Address review suggestions --- compiler/ballerina-treegen/README.md | 3 ++ .../compiler/internal/treegen/TreeGen.java | 34 +++++++++---------- .../internal/treegen/TreeGenConfig.java | 2 +- ...odeConfig.java => SyntaxNodeMetadata.java} | 10 +++--- .../treegen/model/template/TreeNodeClass.java | 8 ++--- .../internal/treegen/targets/Target.java | 12 +++---- .../targets/node/AbstractNodeTarget.java | 11 +++--- .../AbstractNodeVisitorTarget.java | 8 ++--- ...ig_data.json => syntax_node_metadata.json} | 0 .../main/resources/treegen_config.properties | 2 +- 10 files changed, 47 insertions(+), 43 deletions(-) rename compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/{TemplateNodeConfig.java => SyntaxNodeMetadata.java} (79%) rename compiler/ballerina-treegen/src/main/resources/{template_config_data.json => syntax_node_metadata.json} (100%) diff --git a/compiler/ballerina-treegen/README.md b/compiler/ballerina-treegen/README.md index 86ea539b703e..3c3d1ac52981 100644 --- a/compiler/ballerina-treegen/README.md +++ b/compiler/ballerina-treegen/README.md @@ -14,6 +14,9 @@ This tool generates source code required to work with Ballerina syntax trees. By Update the [`syntax_tree_descriptor.json`](src/main/resources/syntax_tree_descriptor.json) with the necessary changes. ### Step 2: +Update the [`syntax_node_metada.json`](src/main/resources/syntax_node_metadata.json) with the necessary changes. + +### Step 3: Run the following command. By default, the tool does an in-place update of the above-mentioned classes. ```bash ./gradle treegen diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java index dd3ccc04079d..11be9b79dd91 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGen.java @@ -19,8 +19,8 @@ import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; +import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeMetadata; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; import io.ballerinalang.compiler.internal.treegen.targets.Target; import io.ballerinalang.compiler.internal.treegen.targets.node.ExternalNodeTarget; @@ -47,8 +47,8 @@ import java.util.List; import java.util.Objects; +import static io.ballerinalang.compiler.internal.treegen.TreeGenConfig.SYNTAX_NODE_METADATA_KEY; import static io.ballerinalang.compiler.internal.treegen.TreeGenConfig.SYNTAX_TREE_DESCRIPTOR_KEY; -import static io.ballerinalang.compiler.internal.treegen.TreeGenConfig.TEMPLATE_CONFIG_DATA_KEY; /** * The driver of the treegen tool. @@ -62,12 +62,13 @@ public static void main(String[] args) { TreeGenConfig config = TreeGenConfig.getInstance(); // 2) Get the syntax tree model by parsing the descriptor SyntaxTree syntaxTree = getSyntaxTree(config); - HashMap templateConfig = getTemplateConfig(config); - // 3) Initialize the registered source code generation targets + // 3) Get the syntax node metadata by parsing the metadata descriptor + HashMap nodeMetadataMap = getNodeMetadataMap(config); + // 4) Initialize the registered source code generation targets List targetList = populateAvailableTargets(config); - // 4) Run above targets and write the content to files + // 5) Run above targets and write the content to files targetList.stream() - .map(target -> target.execute(syntaxTree, templateConfig)) + .map(target -> target.execute(syntaxTree, nodeMetadataMap)) .flatMap(Collection::stream) .forEach(TreeGen::writeSourceTextFile); } @@ -104,24 +105,23 @@ private static InputStream getSyntaxTreeStream(TreeGenConfig config) { return syntaxTreeStream; } - private static HashMap getTemplateConfig(TreeGenConfig config) { + private static HashMap getNodeMetadataMap(TreeGenConfig config) { try (InputStreamReader reader = - new InputStreamReader(getTemplateConfigStream(config), StandardCharsets.UTF_8)) { - - Type mapType = new TypeToken>() { }.getType(); + new InputStreamReader(getNodeMetadataMapStream(config), StandardCharsets.UTF_8)) { + Type mapType = new TypeToken>() { }.getType(); return new Gson().fromJson(reader, mapType); } catch (Throwable e) { - throw new TreeGenException("Failed to parse the template config. Reason: " + e.getMessage(), e); + throw new TreeGenException("Failed to parse syntax node metadata. Reason: " + e.getMessage(), e); } } - private static InputStream getTemplateConfigStream(TreeGenConfig config) { - String jsonFilePath = config.getOrThrow(TEMPLATE_CONFIG_DATA_KEY); - InputStream templateConfigStream = TreeGen.class.getClassLoader().getResourceAsStream(jsonFilePath); - if (Objects.isNull(templateConfigStream)) { - throw new TreeGenException("Template config data is not available. file-name: " + jsonFilePath); + private static InputStream getNodeMetadataMapStream(TreeGenConfig config) { + String jsonFilePath = config.getOrThrow(SYNTAX_NODE_METADATA_KEY); + InputStream nodeMetadataMapStream = TreeGen.class.getClassLoader().getResourceAsStream(jsonFilePath); + if (Objects.isNull(nodeMetadataMapStream)) { + throw new TreeGenException("Syntax node metadata is not available. file-name: " + jsonFilePath); } - return templateConfigStream; + return nodeMetadataMapStream; } private static void writeSourceTextFile(SourceText sourceText) { diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java index 62966eb99a21..9a74017a8086 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/TreeGenConfig.java @@ -49,7 +49,7 @@ public class TreeGenConfig { private static final String TREE_GEN_CONFIG_PROPERTIES = "treegen_config.properties"; - public static final String TEMPLATE_CONFIG_DATA_KEY = "template.config.data"; + public static final String SYNTAX_NODE_METADATA_KEY = "syntax.node.metadata"; private final Properties props; private static TreeGenConfig instance = new TreeGenConfig(loadConfig()); diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/SyntaxNodeMetadata.java similarity index 79% rename from compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java rename to compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/SyntaxNodeMetadata.java index 96692985c0e0..1de1aa7de30f 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/TemplateNodeConfig.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/json/SyntaxNodeMetadata.java @@ -18,16 +18,16 @@ package io.ballerinalang.compiler.internal.treegen.model.json; /** - * TemplateNodeConfig. + * Represents metadata related to a syntax node as per the syntax_node_metadata.json. * * @since 2201.8.0 */ -public class TemplateNodeConfig { +public class SyntaxNodeMetadata { - private String createdYear; - private String since; + private final String createdYear; + private final String since; - public TemplateNodeConfig(String createdYear, String since) { + public SyntaxNodeMetadata(String createdYear, String since) { this.createdYear = createdYear; this.since = since; } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java index 674ef9cfc937..fdc193f44627 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/model/template/TreeNodeClass.java @@ -17,7 +17,7 @@ */ package io.ballerinalang.compiler.internal.treegen.model.template; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; +import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeMetadata; import java.util.ArrayList; import java.util.Collections; @@ -54,7 +54,7 @@ public TreeNodeClass(String packageName, String superClassName, List fields, String syntaxKind, - TemplateNodeConfig templateNodeConfig) { + SyntaxNodeMetadata nodeMetadata) { this.packageName = packageName; this.isAbstract = isAbstract; this.superClassName = superClassName; @@ -62,8 +62,8 @@ public TreeNodeClass(String packageName, this.fields = fields; this.syntaxKind = syntaxKind; - this.createdYear = templateNodeConfig == null ? "2020" : templateNodeConfig.getCreatedYear(); - this.since = templateNodeConfig == null ? "2.0.0" : templateNodeConfig.getSince(); + this.createdYear = nodeMetadata == null ? "2020" : nodeMetadata.getCreatedYear(); + this.since = nodeMetadata == null ? "2.0.0" : nodeMetadata.getSince(); this.externalClassName = className; this.internalClassName = INTERNAL_NODE_CLASS_NAME_PREFIX + className; diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java index b891915d44a6..067f0c6e40ce 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/Target.java @@ -23,8 +23,8 @@ import io.ballerinalang.compiler.internal.treegen.TreeGenConfig; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNode; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeAttribute; +import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeMetadata; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.model.template.Field; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; @@ -57,19 +57,19 @@ public Target(TreeGenConfig config) { this.config = config; } - public abstract List execute(SyntaxTree syntaxTree, - HashMap templateConfig); + public abstract List execute(SyntaxTree syntaxTree, HashMap nodeMetadataMap); protected abstract String getTemplateName(); protected TreeNodeClass convertToTreeNodeClass(SyntaxNode syntaxNode, String packageName, List importClassNameList, - HashMap templateConfig) { - TemplateNodeConfig nodeConfig = templateConfig.get(syntaxNode.getName()); + HashMap nodeMetadataMap) { + SyntaxNodeMetadata nodeMetadata = nodeMetadataMap.get(syntaxNode.getName()); TreeNodeClass nodeClass = new TreeNodeClass(packageName, syntaxNode.getName(), syntaxNode.isAbstract(), syntaxNode.getBase(), - getFields(syntaxNode), syntaxNode.getKind(), nodeConfig); + getFields(syntaxNode), syntaxNode.getKind(), nodeMetadata); // TODO Can we pass this as part of the constructor nodeClass.addImports(importClassNameList); diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java index 6ff2013d339c..3f4509c5721a 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/node/AbstractNodeTarget.java @@ -19,8 +19,8 @@ import io.ballerinalang.compiler.internal.treegen.TreeGenConfig; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNode; +import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeMetadata; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; import io.ballerinalang.compiler.internal.treegen.targets.Target; @@ -52,16 +52,17 @@ public AbstractNodeTarget(TreeGenConfig config) { protected abstract List getImportClasses(SyntaxNode syntaxNode); @Override - public List execute(SyntaxTree syntaxTree, HashMap templateConfig) { + public List execute(SyntaxTree syntaxTree, HashMap nodeMetadataMap) { return syntaxTree.nodes() .stream() - .map(syntaxNode -> generateNodeClass(syntaxNode, templateConfig)) + .map(syntaxNode -> generateNodeClass(syntaxNode, nodeMetadataMap)) .map(treeNodeClass -> getSourceText(treeNodeClass, getOutputDir(), getClassName(treeNodeClass))) .collect(Collectors.toList()); } - private TreeNodeClass generateNodeClass(SyntaxNode syntaxNode, HashMap templateConfig) { + private TreeNodeClass generateNodeClass(SyntaxNode syntaxNode, HashMap nodeMetadataMap) { List importClassList = getImportClasses(syntaxNode); - return convertToTreeNodeClass(syntaxNode, getPackageName(), importClassList, templateConfig); + return convertToTreeNodeClass(syntaxNode, getPackageName(), importClassList, nodeMetadataMap); } } diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java index 7542961d256e..f8de0c1fc2b4 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java @@ -18,8 +18,8 @@ package io.ballerinalang.compiler.internal.treegen.targets.nodevisitor; import io.ballerinalang.compiler.internal.treegen.TreeGenConfig; +import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxNodeMetadata; import io.ballerinalang.compiler.internal.treegen.model.json.SyntaxTree; -import io.ballerinalang.compiler.internal.treegen.model.json.TemplateNodeConfig; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeClass; import io.ballerinalang.compiler.internal.treegen.model.template.TreeNodeVisitorClass; import io.ballerinalang.compiler.internal.treegen.targets.SourceText; @@ -55,20 +55,20 @@ public abstract class AbstractNodeVisitorTarget extends Target { } @Override - public List execute(SyntaxTree syntaxTree, HashMap templateConfig) { + public List execute(SyntaxTree syntaxTree, HashMap templateConfig) { TreeNodeVisitorClass treeNodeVisitorClass = generateNodeVisitorClass(syntaxTree, templateConfig); return Collections.singletonList( getSourceText(treeNodeVisitorClass, getOutputDir(), getClassName())); } private TreeNodeVisitorClass generateNodeVisitorClass(SyntaxTree syntaxTree, - HashMap templateConfig) { + HashMap templateConfig) { return new TreeNodeVisitorClass(getPackageName(), getClassName(), getSuperClassName(), getImportClasses(), generateNodeClasses(syntaxTree, templateConfig)); } private List generateNodeClasses(SyntaxTree syntaxTree, - HashMap templateConfig) { + HashMap templateConfig) { return syntaxTree.nodes() .stream() .map(syntaxNode -> convertToTreeNodeClass(syntaxNode, diff --git a/compiler/ballerina-treegen/src/main/resources/template_config_data.json b/compiler/ballerina-treegen/src/main/resources/syntax_node_metadata.json similarity index 100% rename from compiler/ballerina-treegen/src/main/resources/template_config_data.json rename to compiler/ballerina-treegen/src/main/resources/syntax_node_metadata.json diff --git a/compiler/ballerina-treegen/src/main/resources/treegen_config.properties b/compiler/ballerina-treegen/src/main/resources/treegen_config.properties index 395b295720eb..80ec6b920faa 100644 --- a/compiler/ballerina-treegen/src/main/resources/treegen_config.properties +++ b/compiler/ballerina-treegen/src/main/resources/treegen_config.properties @@ -13,4 +13,4 @@ external.node.transformer.template=external_node_transformer_template.mustache external.tree.modifier.template=external_tree_modifier_template.mustache external.node.factory.template=external_node_factory_template.mustache external.node.package=io.ballerina.compiler.syntax.tree -template.config.data=template_config_data.json +syntax.node.metadata=syntax_node_metadata.json From 6dd151fc0eb439ba838ad2707eba8bbcbb98ba69 Mon Sep 17 00:00:00 2001 From: gimantha Date: Wed, 5 Jul 2023 16:50:47 +0530 Subject: [PATCH 106/122] Fix returning null for attribute values when the xml is empty sequence --- .../runtime/internal/errors/ErrorCodes.java | 3 +- .../main/resources/MessagesBundle.properties | 1 + .../langlib/internal/GetAttribute.java | 4 +++ .../test/types/xml/XMLAttributesTest.java | 5 ++++ .../test-src/types/xml/xml-attributes.bal | 28 +++++++++++++++++++ 5 files changed, 40 insertions(+), 1 deletion(-) diff --git a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/errors/ErrorCodes.java b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/errors/ErrorCodes.java index fa77d011eaa5..a969630c6a83 100644 --- a/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/errors/ErrorCodes.java +++ b/bvm/ballerina-runtime/src/main/java/io/ballerina/runtime/internal/errors/ErrorCodes.java @@ -148,7 +148,8 @@ public enum ErrorCodes implements DiagnosticCode { REGEXP_INVALID_HEX_DIGIT("regexp.invalid.hex.digit", "RUNTIME_0120"), CONFIG_TOML_INVALID_MODULE_STRUCTURE_WITH_VARIABLE("config.toml.invalid.module.structure.with.variable", - "RUNTIME_0121"); + "RUNTIME_0121"), + EMPTY_XML_SEQUENCE_HAS_NO_ATTRIBUTES("empty.xml.sequence.no.attributes", "RUNTIME_0122"); private final String errorMsgKey; private final String errorCode; diff --git a/bvm/ballerina-runtime/src/main/resources/MessagesBundle.properties b/bvm/ballerina-runtime/src/main/resources/MessagesBundle.properties index cf283ee753e9..297d6b945c74 100644 --- a/bvm/ballerina-runtime/src/main/resources/MessagesBundle.properties +++ b/bvm/ballerina-runtime/src/main/resources/MessagesBundle.properties @@ -125,6 +125,7 @@ incorrect.action.invocation = invalid action invocation. connector variable expe invalid.var.assignment = invalid usage of 'var' xml.attribute.map.update.not.allowed = xml attributes cannot be updated as a collection. update attributes one at a time xml.qname.update.not.allowed = cannot assign values to an xml qualified name +empty.xml.sequence.no.attributes = empty xml sequence cannot have attributes undefined.namespace = undefined namespace ''{0}'' incorrect.function.arguments = incorrect arguments for function pointer - ''{0}'' server.connector.already.exist = server connector config with port - {0} already exist with different parameters diff --git a/langlib/lang.__internal/src/main/java/org/ballerinalang/langlib/internal/GetAttribute.java b/langlib/lang.__internal/src/main/java/org/ballerinalang/langlib/internal/GetAttribute.java index e2bfac4fe09e..5dc1885a69e1 100644 --- a/langlib/lang.__internal/src/main/java/org/ballerinalang/langlib/internal/GetAttribute.java +++ b/langlib/lang.__internal/src/main/java/org/ballerinalang/langlib/internal/GetAttribute.java @@ -37,6 +37,10 @@ public class GetAttribute { public static Object getAttribute(BXml xmlVal, BString attrName, boolean optionalFiledAccess) { if (xmlVal.getNodeType() == XmlNodeType.SEQUENCE && xmlVal.size() == 0) { + if (!optionalFiledAccess) { + return createError(XML_OPERATION_ERROR, ErrorHelper.getErrorDetails( + ErrorCodes.EMPTY_XML_SEQUENCE_HAS_NO_ATTRIBUTES)); + } return null; } if (!IsElement.isElement(xmlVal)) { diff --git a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/xml/XMLAttributesTest.java b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/xml/XMLAttributesTest.java index 5a2b8180b05f..4bf2f4ffe8c1 100644 --- a/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/xml/XMLAttributesTest.java +++ b/tests/jballerina-unit-test/src/test/java/org/ballerinalang/test/types/xml/XMLAttributesTest.java @@ -286,4 +286,9 @@ public void testPrintAttribMap() { System.setOut(original); } } + + @Test + public void testAttributesInEmptyXMLSequence() { + BRunUtil.invoke(xmlAttrProgFile, "testAttributesInEmptyXMLSequence"); + } } diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal index 926930b19cdf..0183ec66575e 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal @@ -239,6 +239,34 @@ function testCharacterReferencesInXmlAttributeValue() { panic error("Assertion error, expected `" + expected + "`, found `" + att + "`"); } +function testAttributesInEmptyXMLSequence() { + xml testXml = xml ` + + + + + + `; + + xml idElement = testXml/; + string|error idVal = idElement.root; + string? optionalIdVal = checkpanic idElement?.root; + assertEquality((), optionalIdVal); + if idVal is error { + error error(_, ...details) = idVal; + assertEquality("empty xml sequence cannot have attributes", details["message"]); + return; + } + panic error("expected 'error', found 'string'"); +} + public function print(any|error... values) = @java:Method { 'class: "org.ballerinalang.test.utils.interop.Utils" } external; + +function assertEquality(anydata expected, anydata actual) { + if expected == actual { + return; + } + panic error("expected '" + expected.toString() + "', found '" + actual.toString() + "'"); +} \ No newline at end of file From 63a94786b1062c15bb20eb3da4a8ccc21c01186c Mon Sep 17 00:00:00 2001 From: gimantha Date: Wed, 5 Jul 2023 16:55:12 +0530 Subject: [PATCH 107/122] Add new line --- .../src/test/resources/test-src/types/xml/xml-attributes.bal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal b/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal index 0183ec66575e..c004fe40ca2e 100644 --- a/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal +++ b/tests/jballerina-unit-test/src/test/resources/test-src/types/xml/xml-attributes.bal @@ -269,4 +269,4 @@ function assertEquality(anydata expected, anydata actual) { return; } panic error("expected '" + expected.toString() + "', found '" + actual.toString() + "'"); -} \ No newline at end of file +} From 4c8dfc18f265f5097121c4897879626ed85961b4 Mon Sep 17 00:00:00 2001 From: ushirask Date: Thu, 6 Jul 2023 08:53:53 +0530 Subject: [PATCH 108/122] Fix param names --- .../nodevisitor/AbstractNodeVisitorTarget.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java index f8de0c1fc2b4..c54603ddf91f 100644 --- a/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java +++ b/compiler/ballerina-treegen/src/main/java/io/ballerinalang/compiler/internal/treegen/targets/nodevisitor/AbstractNodeVisitorTarget.java @@ -55,24 +55,24 @@ public abstract class AbstractNodeVisitorTarget extends Target { } @Override - public List execute(SyntaxTree syntaxTree, HashMap templateConfig) { - TreeNodeVisitorClass treeNodeVisitorClass = generateNodeVisitorClass(syntaxTree, templateConfig); + public List execute(SyntaxTree syntaxTree, HashMap nodeMetadataMap) { + TreeNodeVisitorClass treeNodeVisitorClass = generateNodeVisitorClass(syntaxTree, nodeMetadataMap); return Collections.singletonList( getSourceText(treeNodeVisitorClass, getOutputDir(), getClassName())); } private TreeNodeVisitorClass generateNodeVisitorClass(SyntaxTree syntaxTree, - HashMap templateConfig) { + HashMap nodeMetadataMap) { return new TreeNodeVisitorClass(getPackageName(), getClassName(), - getSuperClassName(), getImportClasses(), generateNodeClasses(syntaxTree, templateConfig)); + getSuperClassName(), getImportClasses(), generateNodeClasses(syntaxTree, nodeMetadataMap)); } private List generateNodeClasses(SyntaxTree syntaxTree, - HashMap templateConfig) { + HashMap nodeMetadataMap) { return syntaxTree.nodes() .stream() .map(syntaxNode -> convertToTreeNodeClass(syntaxNode, - getPackageName(), new ArrayList<>(), templateConfig)) + getPackageName(), new ArrayList<>(), nodeMetadataMap)) .collect(Collectors.toList()); } From 67b2092688ee0a39caee001e2f82d59275721307 Mon Sep 17 00:00:00 2001 From: kavindu Date: Thu, 6 Jul 2023 11:44:23 +0530 Subject: [PATCH 109/122] Add comments for covering completions --- .../context/FunctionTypeDescriptorNodeContext.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java index bcf2a8baa99d..20271560f3b1 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/FunctionTypeDescriptorNodeContext.java @@ -82,6 +82,10 @@ public List getCompletions(BallerinaCompletionContext context, } else if (this.withinReturnKWContext(context, node)) { completionItems.add(new SnippetCompletionItem(context, Snippet.KW_RETURNS.get())); } else if (node.parent().kind() == SyntaxKind.OBJECT_FIELD) { + /* Covers the completions for init function in object constructor or class definition + * eg: object { function } + * object { public function } + */ SnippetCompletionItem initFuncCompletionItem = new SnippetCompletionItem(context, Snippet.DEF_INIT_FUNCTION.get()); Token funcKW = node.functionKeyword(); @@ -99,6 +103,11 @@ public List getCompletions(BallerinaCompletionContext context, } private int getEndPosWithoutNewLine(Token token) { + /* Purpose of this method to handle the following scenario specially + * eg: object { function } + * If we have single trailing minutiae, and it is a new line, then we need to consider `function` keyword as + * an existing token. + */ int end = token.textRangeWithMinutiae().endOffset(); MinutiaeList minutiaeList = token.trailingMinutiae(); int size = minutiaeList.size(); From 632810dc6ec1a5675e8642f2fc379086ea3bf0e1 Mon Sep 17 00:00:00 2001 From: Charuka Tharindu Date: Thu, 6 Jul 2023 13:42:54 +0530 Subject: [PATCH 110/122] Update lang version --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index db62e6cdb3de..5f08a76ab33b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ org.gradle.caching=true org.gradle.parallel=true org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.workers.max=3 -version=2201.7.0-SNAPSHOT +version=2201.8.0-SNAPSHOT group=org.ballerinalang bootstrappedOn=1.1.0-alpha specVersion=2023R1 From 1c1e86d0cfd0ceb4aef1d1bb74b596be7b272921 Mon Sep 17 00:00:00 2001 From: malinthar Date: Wed, 14 Jun 2023 01:17:14 +0530 Subject: [PATCH 111/122] Improve record field completions --- .../langserver/LSPackageLoader.java | 1 - .../langserver/common/RecordField.java | 91 +++++++++++++++++++ .../langserver/common/utils/RecordUtil.java | 61 ++++++++----- .../context/MappingContextProvider.java | 34 +++++-- .../mapping_constructor_expr_ctx_config7.json | 9 ++ .../mapping_constructor_expr_ctx_config8.json | 85 +++++++++++++++++ .../mapping_constructor_expr_ctx_source7.bal | 18 ++++ 7 files changed, 266 insertions(+), 33 deletions(-) create mode 100644 language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config8.json create mode 100644 language-server/modules/langserver-core/src/test/resources/completion/expression_context/source/mapping_constructor_expr_ctx_source7.bal diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index 7a80abff734c..4b3570db89c0 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -65,7 +65,6 @@ public static LSPackageLoader getInstance(LanguageServerContext context) { if (lsPackageLoader == null) { lsPackageLoader = new LSPackageLoader(context); } - return lsPackageLoader; } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java new file mode 100644 index 000000000000..8a9c63fb84ec --- /dev/null +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://wso2.com) 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.langserver.common; + +import io.ballerina.compiler.api.symbols.RecordFieldSymbol; +import io.ballerina.compiler.api.symbols.RecordTypeSymbol; +import io.ballerina.compiler.api.symbols.TypeSymbol; +import org.ballerinalang.langserver.common.utils.RawTypeSymbolWrapper; + +import java.util.Objects; + +/** + * Represents a record field. + * + * @since 2201.8.0 + */ +public class RecordField { + String name; + RecordFieldSymbol fieldSymbol; + RawTypeSymbolWrapper typeSymbolWrapper; + + public RecordField(String name, RecordFieldSymbol fieldSymbol, + RawTypeSymbolWrapper typeSymbolWrapper) { + this.name = name; + this.fieldSymbol = fieldSymbol; + this.typeSymbolWrapper = typeSymbolWrapper; + } + + public RawTypeSymbolWrapper getTypeSymbolWrapper() { + return typeSymbolWrapper; + } + + public String getName() { + return name; + } + + public RecordFieldSymbol getFieldSymbol() { + return fieldSymbol; + } + + /** + * Record Field Identifier. + * + * @since 2201.8.0 + */ + public static class RecordFieldIdentifier { + private String name; + private TypeSymbol typeSymbol; + + public RecordFieldIdentifier(String name, TypeSymbol typeSymbol) { + this.name = name; + this.typeSymbol = typeSymbol; + } + + @Override + public int hashCode() { + return Objects.hash(name, typeSymbol.signature()); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) { + return true; + } + if (!(obj instanceof RecordFieldIdentifier)) { + return false; + } + RecordFieldIdentifier other = (RecordFieldIdentifier) obj; + return other.name.equals(this.name) + && other.typeSymbol.signature().equals(this.typeSymbol.signature()); + } + + public String getName() { + return name; + } + } +} + diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java index c1179d1ffada..c27b9c5152f2 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java @@ -20,6 +20,7 @@ import io.ballerina.compiler.api.symbols.TypeDescKind; import io.ballerina.compiler.api.symbols.TypeSymbol; import io.ballerina.compiler.api.symbols.UnionTypeSymbol; +import org.ballerinalang.langserver.common.RecordField; import org.ballerinalang.langserver.commons.BallerinaCompletionContext; import org.ballerinalang.langserver.commons.SnippetContext; import org.ballerinalang.langserver.commons.completion.LSCompletionItem; @@ -50,37 +51,51 @@ public class RecordUtil { /** * Get completion items list for struct fields. * - * @param context Language server operation context - * @param fields Map of field descriptors - * @param wrapper Pair of Raw TypeSymbol and broader TypeSymbol + * @param context Language server operation context + * @param fieldsMap Map of identifier to record fields. * @return {@link List} List of completion items for the struct fields */ public static List getRecordFieldCompletionItems(BallerinaCompletionContext context, - Map fields, - RawTypeSymbolWrapper wrapper) { + Map> fieldsMap) { List completionItems = new ArrayList<>(); - fields.forEach((name, field) -> { - SnippetContext snippetContext = new SnippetContext(); - String insertText = getRecordFieldCompletionInsertText(field, snippetContext); + fieldsMap.forEach((recordFieldIdentifier, fields) -> { + completionItems.add(getRecordFieldCompletionItem(context, recordFieldIdentifier, fields)); + }); + + return completionItems; + } - String detail; - if (wrapper.getRawType().getName().isPresent()) { - detail = NameUtil.getModifiedTypeName(context, wrapper.getRawType()) + "." + name; + private static LSCompletionItem getRecordFieldCompletionItem(BallerinaCompletionContext context, + RecordField.RecordFieldIdentifier recordFieldIdentifier, + List fields) { + + //Assuming the record fields list is not empty at this level + RecordField recordField = fields.get(0); + String name = recordFieldIdentifier.getName(); + SnippetContext snippetContext = new SnippetContext(); + String insertText = getRecordFieldCompletionInsertText(recordField.getFieldSymbol(), snippetContext); + + String detail = fields.stream().map(field -> { + RawTypeSymbolWrapper wrapper = field.getTypeSymbolWrapper(); + if (recordField.getTypeSymbolWrapper().getRawType().getName().isPresent()) { + return NameUtil.getModifiedTypeName(context, wrapper.getRawType()) + "." + name; } else if (wrapper.getBroaderType().getName().isPresent()) { - detail = NameUtil.getModifiedTypeName(context, wrapper.getBroaderType()) + "." + name; + return NameUtil.getModifiedTypeName(context, wrapper.getBroaderType()) + "." + name; } else { - detail = "(" + wrapper.getRawType().signature() + ")." + name; + return "(" + wrapper.getRawType().signature() + ")." + name; } - CompletionItem fieldItem = new CompletionItem(); - fieldItem.setInsertText(insertText); - fieldItem.setInsertTextFormat(InsertTextFormat.Snippet); - fieldItem.setLabel(CommonUtil.escapeReservedKeyword(name)); - fieldItem.setKind(CompletionItemKind.Field); - fieldItem.setSortText(Priority.PRIORITY120.toString()); - completionItems.add(new RecordFieldCompletionItem(context, field, fieldItem, detail)); - }); + }).collect(Collectors.joining("|")); - return completionItems; + CompletionItem fieldItem = new CompletionItem(); + fieldItem.setInsertText(insertText); + fieldItem.setInsertTextFormat(InsertTextFormat.Snippet); + fieldItem.setLabel(CommonUtil.escapeReservedKeyword(name)); + fieldItem.setKind(CompletionItemKind.Field); + fieldItem.setSortText(Priority.PRIORITY120.toString()); + + //Use the RecordFieldSymbol of the first element to create the completion item. + return new RecordFieldCompletionItem(context, recordField.getFieldSymbol(), fieldItem, detail); } /** @@ -88,7 +103,7 @@ public static List getRecordFieldCompletionItems(BallerinaComp * * @param context Language Server Operation Context * @param fields A non empty map of fields - * @param wrapper A wrapper containing record type symbol and broader type symbol + * @param wrapper A wrapper containing record type symbol and broader type symbol * @return {@link Optional} Completion Item to fill all the options */ public static Optional getFillAllRecordFieldCompletionItems( diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/MappingContextProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/MappingContextProvider.java index b36459abc26a..9aefbb555127 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/MappingContextProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/completions/providers/context/MappingContextProvider.java @@ -32,6 +32,7 @@ import io.ballerina.compiler.syntax.tree.SyntaxKind; import io.ballerina.compiler.syntax.tree.Token; import io.ballerina.tools.text.LinePosition; +import org.ballerinalang.langserver.common.RecordField; import org.ballerinalang.langserver.common.utils.CommonUtil; import org.ballerinalang.langserver.common.utils.NameUtil; import org.ballerinalang.langserver.common.utils.RawTypeSymbolWrapper; @@ -152,24 +153,40 @@ protected List getFieldCompletionItems(BallerinaCompletionCont if (!this.hasReadonlyKW(evalNode)) { completionItems.add(new SnippetCompletionItem(context, Snippet.KW_READONLY.get())); } - List> recordTypeDesc = this.getRecordTypeDescs(context, node); + + List> recordTypeDescriptors = this.getRecordTypeDescs(context, node); List existingFields = getFields(node); List validFields = new ArrayList<>(); - for (RawTypeSymbolWrapper wrapper : recordTypeDesc) { + + //To create a single completion item for record fields with the same name and same type + Map> recordFieldMap = new HashMap<>(); + for (RawTypeSymbolWrapper wrapper : recordTypeDescriptors) { Map fields = RecordUtil.getRecordFields(wrapper, existingFields); - validFields.addAll(fields.values()); + fields.forEach((key, value) -> { + RecordField recordField = new RecordField(key, + value, wrapper); + RecordField.RecordFieldIdentifier identifier = new RecordField.RecordFieldIdentifier(key, + recordField.getFieldSymbol().typeDescriptor()); + if (!recordFieldMap.containsKey(identifier)) { + recordFieldMap.put(identifier, new ArrayList<>(List.of(recordField))); + } else { + recordFieldMap.get(identifier).add(recordField); + } + }); - completionItems.addAll(this.getSpreadFieldCompletionItemsForRecordFields(context, validFields)); - completionItems.addAll(RecordUtil.getRecordFieldCompletionItems(context, fields, wrapper)); + validFields.addAll(fields.values()); if (!fields.values().isEmpty()) { Optional fillAllStructFieldsItem = RecordUtil.getFillAllRecordFieldCompletionItems(context, fields, wrapper); fillAllStructFieldsItem.ifPresent(completionItems::add); } + + completionItems.addAll(this.getSpreadFieldCompletionItemsForRecordFields(context, validFields)); completionItems.addAll(this.getVariableCompletionsForFields(context, fields)); } + completionItems.addAll(RecordUtil.getRecordFieldCompletionItems(context, recordFieldMap)); - if (recordTypeDesc.isEmpty() || validFields.isEmpty()) { + if (recordTypeDescriptors.isEmpty() || validFields.isEmpty()) { /* This means that we are within a mapping constructor for a map. Therefore, we suggest the variables Eg: @@ -232,7 +249,7 @@ private List getSpreadFieldCompletionItemsForMap(MappingConstr return true; } // For nested maps, we have to treat specially - return resolvedType.get().typeKind() == TypeDescKind.MAP + return resolvedType.get().typeKind() == TypeDescKind.MAP && mapTypeSymbol.subtypeOf(resolvedType.get()); })).collect(Collectors.toList()); @@ -356,11 +373,10 @@ public void sort(BallerinaCompletionContext context, super.sort(context, node, completionItems); return; } - + completionItems.forEach(lsCItem -> { String sortText = SortingUtil.genSortTextByAssignability(context, lsCItem, contextType.get()); lsCItem.getCompletionItem().setSortText(sortText); }); } - } diff --git a/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json new file mode 100644 index 000000000000..77df553fada0 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json @@ -0,0 +1,9 @@ +{ + "position": { + "line": 19, + "character": 35 + }, + "source": "expression_context/source/mapping_constructor_expr_ctx_source7.bal", + "description": "", + "items": [] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config8.json b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config8.json new file mode 100644 index 000000000000..6a3d14d32b05 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config8.json @@ -0,0 +1,85 @@ +{ + "position": { + "line": 16, + "character": 43 + }, + "source": "expression_context/source/mapping_constructor_expr_ctx_source7.bal", + "description": "", + "items": [ + { + "label": "readonly", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "U", + "filterText": "readonly", + "insertText": "readonly ", + "insertTextFormat": "Snippet" + }, + { + "label": "Fill Type1 Required Fields", + "kind": "Property", + "detail": "Type1", + "sortText": "R", + "filterText": "fill", + "insertText": "field1: {},\nfield2: {}", + "insertTextFormat": "Snippet" + }, + { + "label": "Fill Type2 Required Fields", + "kind": "Property", + "detail": "Type2", + "sortText": "R", + "filterText": "fill", + "insertText": "field1: {},\nfield2: ${1:0.0}", + "insertTextFormat": "Snippet" + }, + { + "label": "rec1Field2", + "kind": "Field", + "detail": "module1:TestRecord1.rec1Field2", + "sortText": "K", + "insertText": "rec1Field2: ${1:\"\"}", + "insertTextFormat": "Snippet" + }, + { + "label": "field1", + "kind": "Field", + "detail": "Type1.field1|Type2.field1", + "sortText": "AG", + "insertText": "field1: {}", + "insertTextFormat": "Snippet" + }, + { + "label": "field2", + "kind": "Field", + "detail": "Type1.field2", + "sortText": "AG", + "insertText": "field2: {}", + "insertTextFormat": "Snippet" + }, + { + "label": "optionalInt", + "kind": "Field", + "detail": "module1:TestRecord1.optionalInt", + "sortText": "K", + "insertText": "optionalInt: ${1:0}", + "insertTextFormat": "Snippet" + }, + { + "label": "rec1Field1", + "kind": "Field", + "detail": "module1:TestRecord1.rec1Field1", + "sortText": "K", + "insertText": "rec1Field1: ${1:0}", + "insertTextFormat": "Snippet" + }, + { + "label": "field2", + "kind": "Field", + "detail": "Type2.field2", + "sortText": "K", + "insertText": "field2: ${1:0.0}", + "insertTextFormat": "Snippet" + } + ] +} diff --git a/language-server/modules/langserver-core/src/test/resources/completion/expression_context/source/mapping_constructor_expr_ctx_source7.bal b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/source/mapping_constructor_expr_ctx_source7.bal new file mode 100644 index 000000000000..3279c65d8e8a --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/source/mapping_constructor_expr_ctx_source7.bal @@ -0,0 +1,18 @@ +import ballerina/module1; + +public type Type1 record {| + module1:TestRecord1 field1; + module1:TestRecord1 field2; + int field2; +|}; + +public type Type2 record {| + module1:TestRecord1 field1; + float field2; +|}; + + + +public function main() { + Type1|module1:TestRecord1|Type2 rec = {}; +} From 649d7dbb46459a586ccdbe3a8af86c144e75a279 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 28 Jun 2023 12:14:42 +0530 Subject: [PATCH 112/122] Improve inlay hints support --- .../src/main/java/module-info.java | 1 + .../inlayhint/InlayHintProvider.java | 90 +++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/compiler/ballerina-lang/src/main/java/module-info.java b/compiler/ballerina-lang/src/main/java/module-info.java index 79dda2298a19..8c146cdc07f9 100644 --- a/compiler/ballerina-lang/src/main/java/module-info.java +++ b/compiler/ballerina-lang/src/main/java/module-info.java @@ -84,4 +84,5 @@ exports io.ballerina.projects.internal.configschema to org.ballerinalang.config.schema.generator, io.ballerina.language.server.core; exports io.ballerina.projects.plugins.completion; + exports io.ballerina.compiler.api.impl.symbols; } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index 1a2688ce7263..4b2fbe9073f8 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -15,26 +15,39 @@ */ package org.ballerinalang.langserver.inlayhint; +import io.ballerina.compiler.api.impl.symbols.BallerinaMethodSymbol; +import io.ballerina.compiler.api.impl.symbols.BallerinaResourceMethodSymbol; +import io.ballerina.compiler.api.symbols.ClassSymbol; import io.ballerina.compiler.api.symbols.FunctionSymbol; import io.ballerina.compiler.api.symbols.FunctionTypeSymbol; +import io.ballerina.compiler.api.symbols.MethodSymbol; import io.ballerina.compiler.api.symbols.ModuleSymbol; import io.ballerina.compiler.api.symbols.ParameterSymbol; import io.ballerina.compiler.api.symbols.Symbol; import io.ballerina.compiler.api.symbols.SymbolKind; +import io.ballerina.compiler.api.symbols.TypeDescKind; +import io.ballerina.compiler.api.symbols.TypeSymbol; +import io.ballerina.compiler.api.symbols.UnionTypeSymbol; +import io.ballerina.compiler.syntax.tree.ClientResourceAccessActionNode; +import io.ballerina.compiler.syntax.tree.ExplicitNewExpressionNode; import io.ballerina.compiler.syntax.tree.FunctionArgumentNode; import io.ballerina.compiler.syntax.tree.FunctionCallExpressionNode; +import io.ballerina.compiler.syntax.tree.ImplicitNewExpressionNode; import io.ballerina.compiler.syntax.tree.MethodCallExpressionNode; import io.ballerina.compiler.syntax.tree.Node; import io.ballerina.compiler.syntax.tree.NodeVisitor; import io.ballerina.compiler.syntax.tree.NonTerminalNode; +import io.ballerina.compiler.syntax.tree.ParenthesizedArgList; import io.ballerina.compiler.syntax.tree.PositionalArgumentNode; import io.ballerina.compiler.syntax.tree.QualifiedNameReferenceNode; +import io.ballerina.compiler.syntax.tree.RemoteMethodCallActionNode; import io.ballerina.compiler.syntax.tree.SeparatedNodeList; import io.ballerina.compiler.syntax.tree.SimpleNameReferenceNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; import io.ballerina.compiler.syntax.tree.Token; import io.ballerina.tools.text.LineRange; import org.apache.commons.lang3.tuple.Pair; +import org.ballerinalang.langserver.common.utils.CommonUtil; import org.ballerinalang.langserver.common.utils.SymbolUtil; import org.ballerinalang.langserver.common.utils.TypeResolverUtil; import org.ballerinalang.langserver.commons.InlayHintContext; @@ -128,12 +141,57 @@ private static Pair, Optional> getParamet // Since the method is a lang-lib function, skip the first parameter return Pair.of(libFunction.get().params().get().stream().skip(1).collect(Collectors.toList()), libFunction.get().restParam()); + } else if (invokableNode.kind() == SyntaxKind.CLIENT_RESOURCE_ACCESS_ACTION) { + ClientResourceAccessActionNode resourceAccessActionNode = (ClientResourceAccessActionNode) invokableNode; + Optional symbol = context.currentSemanticModel().get().symbol(resourceAccessActionNode); + List parameterSymbols = ((BallerinaResourceMethodSymbol) symbol.get()).typeDescriptor() + .params().get(); + return Pair.of(parameterSymbols, Optional.empty()); + } else if (invokableNode.kind() == SyntaxKind.REMOTE_METHOD_CALL_ACTION) { + RemoteMethodCallActionNode methodCallActionNode = (RemoteMethodCallActionNode) invokableNode; + Optional symbol = context.currentSemanticModel().get().symbol(methodCallActionNode); + List parameterSymbols = ((BallerinaMethodSymbol) symbol.get()).typeDescriptor() + .params().get(); + return Pair.of(parameterSymbols, Optional.empty()); + } else if (invokableNode.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION) { + return getParameterSymbolsForNewExpressions(context, invokableNode); + } else if (invokableNode.kind() == SyntaxKind.EXPLICIT_NEW_EXPRESSION) { + return getParameterSymbolsForNewExpressions(context, invokableNode); } else { FunctionCallExpressionNode functionCallExpressionNode = (FunctionCallExpressionNode) invokableNode; return getParameterSymbolsForFunctionCall(context, functionCallExpressionNode); } } + private static Pair, Optional> getParameterSymbolsForNewExpressions( + InlayHintContext context, + NonTerminalNode node) { + Optional symbol; + if (node.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION) { + ImplicitNewExpressionNode implicitNode = (ImplicitNewExpressionNode) node; + symbol = context.currentSemanticModel() + .flatMap(semanticModel -> semanticModel.typeOf(implicitNode)) + .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); + } else { + ExplicitNewExpressionNode explicitNode = (ExplicitNewExpressionNode) node; + symbol = context.currentSemanticModel() + .flatMap(semanticModel -> semanticModel.typeOf(explicitNode)) + .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); + } + if (symbol.isEmpty()) { + return Pair.of(Collections.emptyList(), Optional.empty()); + } + if (symbol.get().typeKind() == TypeDescKind.UNION) { + symbol = ((UnionTypeSymbol) symbol.get()).memberTypeDescriptors().stream() + .filter(typeSymbol -> + CommonUtil.getRawType(typeSymbol).typeKind() == TypeDescKind.OBJECT) + .map(CommonUtil::getRawType).findFirst(); + } + Optional methodSymbol = ((ClassSymbol) symbol.get()).initMethod(); + List parameterSymbols = methodSymbol.get().typeDescriptor().params().get(); + return Pair.of(parameterSymbols, Optional.empty()); + } + private static Pair, Optional> getParameterSymbolsForFunctionCall( InlayHintContext context, FunctionCallExpressionNode node) { @@ -202,6 +260,26 @@ public void visit(FunctionCallExpressionNode functionCallExpressionNode) { public void visit(MethodCallExpressionNode methodCallExpressionNode) { invokableNodeList.add(methodCallExpressionNode); } + + @Override + public void visit(ClientResourceAccessActionNode clientResourceAccessActionNode) { + invokableNodeList.add(clientResourceAccessActionNode); + } + + @Override + public void visit(RemoteMethodCallActionNode remoteMethodCallActionNode) { + invokableNodeList.add(remoteMethodCallActionNode); + } + + @Override + public void visit(ImplicitNewExpressionNode implicitNewExpressionNode) { + invokableNodeList.add(implicitNewExpressionNode); + } + + @Override + public void visit(ExplicitNewExpressionNode explicitNewExpressionNode) { + invokableNodeList.add(explicitNewExpressionNode); + } } /** @@ -234,6 +312,18 @@ public void visit(MethodCallExpressionNode methodCallExpressionNode) { methodCallExpressionNode.openParenToken()); } + @Override + public void visit(ParenthesizedArgList parenthesizedArgList) { + findInlayHintLocationsFromArgs(parenthesizedArgList.arguments(), + parenthesizedArgList.openParenToken()); + } + + @Override + public void visit(RemoteMethodCallActionNode remoteMethodCallActionNode) { + findInlayHintLocationsFromArgs(remoteMethodCallActionNode.arguments(), + remoteMethodCallActionNode.openParenToken()); + } + @Override public void visit(PositionalArgumentNode positionalArgumentNode) { argumentList.add(positionalArgumentNode); From 5b7687e68d4cf3859e408e600ff96a666f55c472 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 28 Jun 2023 12:15:13 +0530 Subject: [PATCH 113/122] Add unit tests --- .../resources/inlayhint/config/config3.json | 25 +++++++++ .../resources/inlayhint/config/config4.json | 34 ++++++++++++ .../resources/inlayhint/config/config5.json | 52 +++++++++++++++++++ .../resources/inlayhint/source/inlayhint3.bal | 10 ++++ .../resources/inlayhint/source/inlayhint4.bal | 20 +++++++ .../resources/inlayhint/source/inlayhint5.bal | 14 +++++ 6 files changed, 155 insertions(+) create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/config/config5.json create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint5.bal diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json new file mode 100644 index 000000000000..6bd7c399703f --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json @@ -0,0 +1,25 @@ +{ + "range": { + "start": { + "line": 7, + "character": 34 + }, + "end": { + "line": 7, + "character": 45 + } + }, + "source": "source/inlayhint3.bal", + "result": [ + { + "position": { + "line": 8, + "character": 34 + }, + "label": { + "left": "name: " + } + } + ], + "description": "inlay hints for client resource access actions" +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json new file mode 100644 index 000000000000..b05e3b31e4bd --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json @@ -0,0 +1,34 @@ +{ + "range": { + "start": { + "line": 18, + "character": 24 + }, + "end": { + "line": 18, + "character": 80 + } + }, + "source": "source/inlayhint4.bal", + "result": [ + { + "position": { + "line": 18, + "character": 24 + }, + "label": { + "left": "company: " + } + }, + { + "position": { + "line": 18, + "character": 56 + }, + "label": { + "left": "employee: " + } + } + ], + "description": "inlay hints for remote method calls" +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config5.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config5.json new file mode 100644 index 000000000000..9358c0ec1f92 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config5.json @@ -0,0 +1,52 @@ +{ + "range": { + "start": { + "line": 11, + "character": 25 + }, + "end": { + "line": 12, + "character": 44 + } + }, + "source": "source/inlayhint5.bal", + "result": [ + { + "position": { + "line": 11, + "character": 25 + }, + "label": { + "left": "name: " + } + }, + { + "position": { + "line": 11, + "character": 33 + }, + "label": { + "left": "age: " + } + }, + { + "position": { + "line": 12, + "character": 33 + }, + "label": { + "left": "name: " + } + }, + { + "position": { + "line": 12, + "character": 41 + }, + "label": { + "left": "age: " + } + } + ], + "description": "inlay hints for implicit and explicit new expressions" +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal new file mode 100644 index 000000000000..759c6af08562 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal @@ -0,0 +1,10 @@ +public client class Client { + resource function get hello(string name) returns string { + return "Hello" + name; + } +} + +public function test() { + Client cl = new(); + string result = cl -> /hello("Ballerina"); +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal new file mode 100644 index 000000000000..04b4ea786194 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal @@ -0,0 +1,20 @@ +type Company record { + string name; + string city; +}; + +type Employee record { + string name; + string age; +}; + +public isolated client class EmpDetails { + isolated remote function addDetails(Company company, Employee employee) { + + } +} + +public function test() { + EmpDetails details = new(); + details->addDetails({city: "Colombo", name: "WSO2"}, {name: "John", age: 24}); +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint5.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint5.bal new file mode 100644 index 000000000000..39827410c20c --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint5.bal @@ -0,0 +1,14 @@ +class Student { + private string name; + private int age; + + public function init(string name, int age) { + self.name = name; + self.age = age; + } +} + +function testFunction() { + Student james = new ("James", 25); + Student clarke = new Student("James", 25); +} From 78f915fc0a958d48afb41d0511beac50bbc7a331 Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 28 Jun 2023 12:17:18 +0530 Subject: [PATCH 114/122] Add a user setting to enable/disable inlay hint support --- .../capability/InitializationOptions.java | 12 ++++++++++++ .../langserver/LSClientCapabilitiesImpl.java | 16 +++++++++++++++- .../langserver/inlayhint/InlayHintProvider.java | 5 +++++ .../ballerinalang/langserver/util/TestUtil.java | 1 + 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java b/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java index 1603024a2253..67d6776d31a9 100644 --- a/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java +++ b/language-server/modules/langserver-commons/src/main/java/org/ballerinalang/langserver/commons/capability/InitializationOptions.java @@ -47,6 +47,11 @@ public interface InitializationOptions { */ String KEY_ENABLE_LIGHTWEIGHT_MODE = "enableLightWeightMode"; + /** + * Where the client supports inlay hints. + */ + String KEY_ENABLE_INLAY_HINTS = "enableInlayHints"; + /** * Return if the client support bala URI scheme. * @@ -80,4 +85,11 @@ public interface InitializationOptions { * @return True if enabled, false otherwise */ boolean isEnableLightWeightMode(); + + /** + * Returns if the client supports inlay hints. + * + * @return True if supported, false otherwise + */ + boolean isEnableInlayHints(); } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java index 428ac88e003e..da0c8c21289d 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSClientCapabilitiesImpl.java @@ -157,7 +157,12 @@ private InitializationOptions parseInitializationOptions(Map ini boolean enablePositionalRenameSupport = positionalRenameSupport != null && Boolean.parseBoolean(String.valueOf(positionalRenameSupport)); initializationOptions.setSupportPositionalRenamePopup(enablePositionalRenameSupport); - + + Object inlayHintsSupport = initOptions.get(InitializationOptions.KEY_ENABLE_INLAY_HINTS); + boolean enableInlayHintsSupport = inlayHintsSupport != null && + Boolean.parseBoolean(String.valueOf(inlayHintsSupport)); + initializationOptions.setEnableInlayHints(enableInlayHintsSupport); + return initializationOptions; } @@ -208,6 +213,7 @@ public static class InitializationOptionsImpl implements InitializationOptions { private boolean supportQuickPick = false; private boolean enableLSLightWeightMode = false; private boolean supportPositionalRenamePopup = false; + private boolean enableInlayHints = false; @Override public boolean isBalaSchemeSupported() { @@ -253,5 +259,13 @@ public void setSupportQuickPick(boolean supportQuickPick) { this.supportQuickPick = supportQuickPick; } + @Override + public boolean isEnableInlayHints() { + return enableInlayHints; + } + + public void setEnableInlayHints(boolean enableInlayHints) { + this.enableInlayHints = enableInlayHints; + } } } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index 4b2fbe9073f8..eb4093454fdb 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -51,6 +51,7 @@ import org.ballerinalang.langserver.common.utils.SymbolUtil; import org.ballerinalang.langserver.common.utils.TypeResolverUtil; import org.ballerinalang.langserver.commons.InlayHintContext; +import org.ballerinalang.langserver.commons.capability.LSClientCapabilities; import org.eclipse.lsp4j.InlayHint; import org.eclipse.lsp4j.Position; import org.eclipse.lsp4j.jsonrpc.messages.Either; @@ -70,6 +71,10 @@ */ public class InlayHintProvider { public static List getInlayHint(InlayHintContext context) { + LSClientCapabilities lsClientCapabilities = context.languageServercontext().get(LSClientCapabilities.class); + if (!lsClientCapabilities.getInitializationOptions().isEnableInlayHints()) { + return Collections.emptyList(); + } if (context.currentDocument().isEmpty()) { return Collections.emptyList(); } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/util/TestUtil.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/util/TestUtil.java index 00b570e3ec67..5cdc265086a0 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/util/TestUtil.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/util/TestUtil.java @@ -919,6 +919,7 @@ public Endpoint build() { Map initializationOptions = new HashMap<>(); initializationOptions.put(InitializationOptions.KEY_ENABLE_SEMANTIC_TOKENS, true); + initializationOptions.put(InitializationOptions.KEY_ENABLE_INLAY_HINTS, true); initializationOptions.put(InitializationOptions.KEY_BALA_SCHEME_SUPPORT, true); if (!initOptions.isEmpty()) { initializationOptions.putAll(initOptions); From ef22c690d2f201790c701e6f2ee1fa944e030015 Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 29 Jun 2023 13:20:13 +0530 Subject: [PATCH 115/122] Fix spotbugs --- compiler/ballerina-lang/src/main/java/module-info.java | 1 - .../langserver/inlayhint/InlayHintProvider.java | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/compiler/ballerina-lang/src/main/java/module-info.java b/compiler/ballerina-lang/src/main/java/module-info.java index 8c146cdc07f9..79dda2298a19 100644 --- a/compiler/ballerina-lang/src/main/java/module-info.java +++ b/compiler/ballerina-lang/src/main/java/module-info.java @@ -84,5 +84,4 @@ exports io.ballerina.projects.internal.configschema to org.ballerinalang.config.schema.generator, io.ballerina.language.server.core; exports io.ballerina.projects.plugins.completion; - exports io.ballerina.compiler.api.impl.symbols; } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index eb4093454fdb..1a93439978f4 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -15,14 +15,13 @@ */ package org.ballerinalang.langserver.inlayhint; -import io.ballerina.compiler.api.impl.symbols.BallerinaMethodSymbol; -import io.ballerina.compiler.api.impl.symbols.BallerinaResourceMethodSymbol; import io.ballerina.compiler.api.symbols.ClassSymbol; import io.ballerina.compiler.api.symbols.FunctionSymbol; import io.ballerina.compiler.api.symbols.FunctionTypeSymbol; import io.ballerina.compiler.api.symbols.MethodSymbol; import io.ballerina.compiler.api.symbols.ModuleSymbol; import io.ballerina.compiler.api.symbols.ParameterSymbol; +import io.ballerina.compiler.api.symbols.ResourceMethodSymbol; import io.ballerina.compiler.api.symbols.Symbol; import io.ballerina.compiler.api.symbols.SymbolKind; import io.ballerina.compiler.api.symbols.TypeDescKind; @@ -149,13 +148,13 @@ private static Pair, Optional> getParamet } else if (invokableNode.kind() == SyntaxKind.CLIENT_RESOURCE_ACCESS_ACTION) { ClientResourceAccessActionNode resourceAccessActionNode = (ClientResourceAccessActionNode) invokableNode; Optional symbol = context.currentSemanticModel().get().symbol(resourceAccessActionNode); - List parameterSymbols = ((BallerinaResourceMethodSymbol) symbol.get()).typeDescriptor() + List parameterSymbols = ((ResourceMethodSymbol) symbol.get()).typeDescriptor() .params().get(); return Pair.of(parameterSymbols, Optional.empty()); } else if (invokableNode.kind() == SyntaxKind.REMOTE_METHOD_CALL_ACTION) { RemoteMethodCallActionNode methodCallActionNode = (RemoteMethodCallActionNode) invokableNode; Optional symbol = context.currentSemanticModel().get().symbol(methodCallActionNode); - List parameterSymbols = ((BallerinaMethodSymbol) symbol.get()).typeDescriptor() + List parameterSymbols = ((MethodSymbol) symbol.get()).typeDescriptor() .params().get(); return Pair.of(parameterSymbols, Optional.empty()); } else if (invokableNode.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION) { From bb9a95615b13ab43314c40f099afecaddb8c4279 Mon Sep 17 00:00:00 2001 From: mindula Date: Fri, 30 Jun 2023 10:22:46 +0530 Subject: [PATCH 116/122] Support inlay hints for rest args --- .../inlayhint/InlayHintProvider.java | 19 +++++++---- .../resources/inlayhint/config/config6.json | 34 +++++++++++++++++++ .../resources/inlayhint/source/inlayhint6.bal | 10 ++++++ 3 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/config/config6.json create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint6.bal diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index 1a93439978f4..6f626e696057 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -40,6 +40,7 @@ import io.ballerina.compiler.syntax.tree.PositionalArgumentNode; import io.ballerina.compiler.syntax.tree.QualifiedNameReferenceNode; import io.ballerina.compiler.syntax.tree.RemoteMethodCallActionNode; +import io.ballerina.compiler.syntax.tree.RestArgumentNode; import io.ballerina.compiler.syntax.tree.SeparatedNodeList; import io.ballerina.compiler.syntax.tree.SimpleNameReferenceNode; import io.ballerina.compiler.syntax.tree.SyntaxKind; @@ -101,7 +102,7 @@ public static List getInlayHint(InlayHintContext context) { for (int argumentIndex = 0; argumentIndex < argList.size(); argumentIndex++) { //Find the inlay-hint location for the argument NonTerminalNode argument = argList.get(argumentIndex); - if (argument.kind() != SyntaxKind.POSITIONAL_ARG) { + if (argument.kind() != SyntaxKind.POSITIONAL_ARG && argument.kind() != SyntaxKind.REST_ARG) { break; } LineRange lineRange = inlayHintLocations.get(argument); @@ -148,9 +149,9 @@ private static Pair, Optional> getParamet } else if (invokableNode.kind() == SyntaxKind.CLIENT_RESOURCE_ACCESS_ACTION) { ClientResourceAccessActionNode resourceAccessActionNode = (ClientResourceAccessActionNode) invokableNode; Optional symbol = context.currentSemanticModel().get().symbol(resourceAccessActionNode); - List parameterSymbols = ((ResourceMethodSymbol) symbol.get()).typeDescriptor() - .params().get(); - return Pair.of(parameterSymbols, Optional.empty()); + FunctionTypeSymbol typeSymbol = ((ResourceMethodSymbol) symbol.get()).typeDescriptor(); + return symbol.map(methodSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), + typeSymbol.restParam())).orElse(Pair.of(Collections.emptyList(), Optional.empty())); } else if (invokableNode.kind() == SyntaxKind.REMOTE_METHOD_CALL_ACTION) { RemoteMethodCallActionNode methodCallActionNode = (RemoteMethodCallActionNode) invokableNode; Optional symbol = context.currentSemanticModel().get().symbol(methodCallActionNode); @@ -192,8 +193,9 @@ private static Pair, Optional> getParamet .map(CommonUtil::getRawType).findFirst(); } Optional methodSymbol = ((ClassSymbol) symbol.get()).initMethod(); - List parameterSymbols = methodSymbol.get().typeDescriptor().params().get(); - return Pair.of(parameterSymbols, Optional.empty()); + return symbol.map(typeSymbol -> Pair.of(methodSymbol.get().typeDescriptor().params() + .orElse(Collections.emptyList()), methodSymbol.get().typeDescriptor().restParam())) + .orElse(Pair.of(Collections.emptyList(), Optional.empty())); } private static Pair, Optional> getParameterSymbolsForFunctionCall( @@ -333,6 +335,11 @@ public void visit(PositionalArgumentNode positionalArgumentNode) { argumentList.add(positionalArgumentNode); } + @Override + public void visit(RestArgumentNode restArgumentNode) { + argumentList.add(restArgumentNode); + } + private void findInlayHintLocationsFromArgs(SeparatedNodeList argumentNodes, Token openParenToken) { for (int i = 0; i < argumentNodes.size(); i++) { diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config6.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config6.json new file mode 100644 index 000000000000..3c462072993c --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config6.json @@ -0,0 +1,34 @@ +{ + "range": { + "start": { + "line": 8, + "character": 30 + }, + "end": { + "line": 8, + "character": 39 + } + }, + "source": "source/inlayhint6.bal", + "result": [ + { + "position": { + "line": 8, + "character": 30 + }, + "label": { + "left": "x: " + } + }, + { + "position": { + "line": 8, + "character": 32 + }, + "label": { + "left": "...y: " + } + } + ], + "description": "inlay hints for rest parameters" +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint6.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint6.bal new file mode 100644 index 000000000000..cd2c9e573e5c --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint6.bal @@ -0,0 +1,10 @@ +class TestClass { + function init(int x, int... y) { + + } +} + +function testFunction() { + int arr = [1, 2, 3]; + TestClass testClass = new(0, ...arr); +} From ab818a53cead3e7b58044d4b27f71f1fd8e771b5 Mon Sep 17 00:00:00 2001 From: mindula Date: Sat, 1 Jul 2023 08:49:06 +0530 Subject: [PATCH 117/122] Address review suggestions --- .../inlayhint/InlayHintProvider.java | 52 +++++++++++-------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index 6f626e696057..0a0d06a0a067 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -102,7 +102,7 @@ public static List getInlayHint(InlayHintContext context) { for (int argumentIndex = 0; argumentIndex < argList.size(); argumentIndex++) { //Find the inlay-hint location for the argument NonTerminalNode argument = argList.get(argumentIndex); - if (argument.kind() != SyntaxKind.POSITIONAL_ARG && argument.kind() != SyntaxKind.REST_ARG) { + if (argument.kind() == SyntaxKind.NAMED_ARG) { break; } LineRange lineRange = inlayHintLocations.get(argument); @@ -151,38 +151,45 @@ private static Pair, Optional> getParamet Optional symbol = context.currentSemanticModel().get().symbol(resourceAccessActionNode); FunctionTypeSymbol typeSymbol = ((ResourceMethodSymbol) symbol.get()).typeDescriptor(); return symbol.map(methodSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), - typeSymbol.restParam())).orElse(Pair.of(Collections.emptyList(), Optional.empty())); + typeSymbol.restParam())).orElse(Pair.of(Collections.emptyList(), Optional.empty())); } else if (invokableNode.kind() == SyntaxKind.REMOTE_METHOD_CALL_ACTION) { RemoteMethodCallActionNode methodCallActionNode = (RemoteMethodCallActionNode) invokableNode; Optional symbol = context.currentSemanticModel().get().symbol(methodCallActionNode); - List parameterSymbols = ((MethodSymbol) symbol.get()).typeDescriptor() - .params().get(); - return Pair.of(parameterSymbols, Optional.empty()); + FunctionTypeSymbol typeSymbol = ((MethodSymbol) symbol.get()).typeDescriptor(); + return symbol.map(methodSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), + typeSymbol.restParam())).orElse(Pair.of(Collections.emptyList(), Optional.empty())); } else if (invokableNode.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION) { - return getParameterSymbolsForNewExpressions(context, invokableNode); + return getParameterSymbolsForImplicitExpressions(context, invokableNode); } else if (invokableNode.kind() == SyntaxKind.EXPLICIT_NEW_EXPRESSION) { - return getParameterSymbolsForNewExpressions(context, invokableNode); + return getParameterSymbolsForExplicitExpressions(context, invokableNode); } else { FunctionCallExpressionNode functionCallExpressionNode = (FunctionCallExpressionNode) invokableNode; return getParameterSymbolsForFunctionCall(context, functionCallExpressionNode); } } - private static Pair, Optional> getParameterSymbolsForNewExpressions( + private static Pair, Optional> getParameterSymbolsForImplicitExpressions( InlayHintContext context, NonTerminalNode node) { - Optional symbol; - if (node.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION) { - ImplicitNewExpressionNode implicitNode = (ImplicitNewExpressionNode) node; - symbol = context.currentSemanticModel() - .flatMap(semanticModel -> semanticModel.typeOf(implicitNode)) - .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); - } else { - ExplicitNewExpressionNode explicitNode = (ExplicitNewExpressionNode) node; - symbol = context.currentSemanticModel() - .flatMap(semanticModel -> semanticModel.typeOf(explicitNode)) - .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); - } + ImplicitNewExpressionNode implicitNode = (ImplicitNewExpressionNode) node; + Optional symbol = context.currentSemanticModel() + .flatMap(semanticModel -> semanticModel.typeOf(implicitNode)) + .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); + return getNewExpressionSymbols(symbol); + } + + private static Pair, Optional> getParameterSymbolsForExplicitExpressions( + InlayHintContext context, + NonTerminalNode node) { + ExplicitNewExpressionNode explicitNode = (ExplicitNewExpressionNode) node; + Optional symbol = context.currentSemanticModel() + .flatMap(semanticModel -> semanticModel.typeOf(explicitNode)) + .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); + return getNewExpressionSymbols(symbol); + } + + private static Pair, Optional> getNewExpressionSymbols( + Optional symbol) { if (symbol.isEmpty()) { return Pair.of(Collections.emptyList(), Optional.empty()); } @@ -192,7 +199,10 @@ private static Pair, Optional> getParamet CommonUtil.getRawType(typeSymbol).typeKind() == TypeDescKind.OBJECT) .map(CommonUtil::getRawType).findFirst(); } - Optional methodSymbol = ((ClassSymbol) symbol.get()).initMethod(); + Optional methodSymbol = symbol.flatMap(typeSymbol -> ((ClassSymbol) typeSymbol).initMethod()); + if (methodSymbol.isEmpty()) { + return Pair.of(Collections.emptyList(), Optional.empty()); + } return symbol.map(typeSymbol -> Pair.of(methodSymbol.get().typeDescriptor().params() .orElse(Collections.emptyList()), methodSymbol.get().typeDescriptor().restParam())) .orElse(Pair.of(Collections.emptyList(), Optional.empty())); From 871cadc976c558cb77a0cf18bbbf40101c25bb5b Mon Sep 17 00:00:00 2001 From: mindula Date: Wed, 5 Jul 2023 12:11:02 +0530 Subject: [PATCH 118/122] Address more review suggestions --- .../inlayhint/InlayHintProvider.java | 34 +++++++++---------- .../resources/inlayhint/config/config3.json | 11 +++++- .../resources/inlayhint/config/config4.json | 2 +- .../resources/inlayhint/source/inlayhint3.bal | 4 +-- .../resources/inlayhint/source/inlayhint4.bal | 4 +-- 5 files changed, 31 insertions(+), 24 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index 0a0d06a0a067..93734562a49f 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -72,10 +72,8 @@ public class InlayHintProvider { public static List getInlayHint(InlayHintContext context) { LSClientCapabilities lsClientCapabilities = context.languageServercontext().get(LSClientCapabilities.class); - if (!lsClientCapabilities.getInitializationOptions().isEnableInlayHints()) { - return Collections.emptyList(); - } - if (context.currentDocument().isEmpty()) { + if (!lsClientCapabilities.getInitializationOptions().isEnableInlayHints() || + context.currentDocument().isEmpty()) { return Collections.emptyList(); } InvokableNodeFinder invokableNodeFinder = new InvokableNodeFinder(); @@ -147,17 +145,19 @@ private static Pair, Optional> getParamet return Pair.of(libFunction.get().params().get().stream().skip(1).collect(Collectors.toList()), libFunction.get().restParam()); } else if (invokableNode.kind() == SyntaxKind.CLIENT_RESOURCE_ACCESS_ACTION) { - ClientResourceAccessActionNode resourceAccessActionNode = (ClientResourceAccessActionNode) invokableNode; - Optional symbol = context.currentSemanticModel().get().symbol(resourceAccessActionNode); - FunctionTypeSymbol typeSymbol = ((ResourceMethodSymbol) symbol.get()).typeDescriptor(); - return symbol.map(methodSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), - typeSymbol.restParam())).orElse(Pair.of(Collections.emptyList(), Optional.empty())); + return context.currentSemanticModel().get() + .symbol(invokableNode) + .map(symbol -> ((ResourceMethodSymbol) symbol).typeDescriptor()) + .map(typeSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), + typeSymbol.restParam())) + .orElse(Pair.of(Collections.emptyList(), Optional.empty())); } else if (invokableNode.kind() == SyntaxKind.REMOTE_METHOD_CALL_ACTION) { - RemoteMethodCallActionNode methodCallActionNode = (RemoteMethodCallActionNode) invokableNode; - Optional symbol = context.currentSemanticModel().get().symbol(methodCallActionNode); - FunctionTypeSymbol typeSymbol = ((MethodSymbol) symbol.get()).typeDescriptor(); - return symbol.map(methodSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), - typeSymbol.restParam())).orElse(Pair.of(Collections.emptyList(), Optional.empty())); + return context.currentSemanticModel().get() + .symbol(invokableNode) + .map(symbol -> ((MethodSymbol) symbol).typeDescriptor()) + .map(typeSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), + typeSymbol.restParam())) + .orElse(Pair.of(Collections.emptyList(), Optional.empty())); } else if (invokableNode.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION) { return getParameterSymbolsForImplicitExpressions(context, invokableNode); } else if (invokableNode.kind() == SyntaxKind.EXPLICIT_NEW_EXPRESSION) { @@ -171,9 +171,8 @@ private static Pair, Optional> getParamet private static Pair, Optional> getParameterSymbolsForImplicitExpressions( InlayHintContext context, NonTerminalNode node) { - ImplicitNewExpressionNode implicitNode = (ImplicitNewExpressionNode) node; Optional symbol = context.currentSemanticModel() - .flatMap(semanticModel -> semanticModel.typeOf(implicitNode)) + .flatMap(semanticModel -> semanticModel.typeOf(node)) .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); return getNewExpressionSymbols(symbol); } @@ -181,9 +180,8 @@ private static Pair, Optional> getParamet private static Pair, Optional> getParameterSymbolsForExplicitExpressions( InlayHintContext context, NonTerminalNode node) { - ExplicitNewExpressionNode explicitNode = (ExplicitNewExpressionNode) node; Optional symbol = context.currentSemanticModel() - .flatMap(semanticModel -> semanticModel.typeOf(explicitNode)) + .flatMap(semanticModel -> semanticModel.typeOf(node)) .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); return getNewExpressionSymbols(symbol); } diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json index 6bd7c399703f..b87db54fdf64 100644 --- a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config3.json @@ -17,7 +17,16 @@ "character": 34 }, "label": { - "left": "name: " + "left": "hello: " + } + }, + { + "position": { + "line": 8, + "character": 42 + }, + "label": { + "left": "...name: " } } ], diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json index b05e3b31e4bd..e0788c9bcb69 100644 --- a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config4.json @@ -26,7 +26,7 @@ "character": 56 }, "label": { - "left": "employee: " + "left": "...employee: " } } ], diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal index 759c6af08562..1bc5783f16a2 100644 --- a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint3.bal @@ -1,10 +1,10 @@ public client class Client { - resource function get hello(string name) returns string { + resource function get hello(string hello, string... name) returns string { return "Hello" + name; } } public function test() { Client cl = new(); - string result = cl -> /hello("Ballerina"); + string result = cl -> /hello("Hello", "Ballerina"); } diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal index 04b4ea786194..09692d7c95cc 100644 --- a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint4.bal @@ -5,11 +5,11 @@ type Company record { type Employee record { string name; - string age; + int age; }; public isolated client class EmpDetails { - isolated remote function addDetails(Company company, Employee employee) { + isolated remote function addDetails(Company company, Employee... employee) { } } From b5bce24516ecb7058f23f72f193fad09d92fa047 Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 6 Jul 2023 17:49:03 +0530 Subject: [PATCH 119/122] Fix suggesting inlayHints for rest args --- .../inlayhint/InlayHintProvider.java | 56 +++++++++---------- .../resources/inlayhint/config/config7.json | 25 +++++++++ .../resources/inlayhint/source/inlayhint7.bal | 16 ++++++ 3 files changed, 68 insertions(+), 29 deletions(-) create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/config/config7.json create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint7.bal diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index 93734562a49f..e3cfadb8ff6e 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -111,6 +111,16 @@ public static List getInlayHint(InlayHintContext context) { int startChar = lineRange.endLine().offset(); Position position = new Position(startLine, startChar); + if (argument.kind() == SyntaxKind.REST_ARG) { + if (parameterSymbols.getRight().isEmpty()) { + break; + } + String label = "..." + parameterSymbols.getRight().get().getName().get(); + InlayHint inlayHint = new InlayHint(position, Either.forLeft(label + ": ")); + inlayHints.add(inlayHint); + break; + } + //Find the corresponding parameter symbol for the argument and create inlay-hint if (parameterSymbols.getLeft().size() <= argumentIndex) { if (parameterSymbols.getRight().isPresent() @@ -158,52 +168,40 @@ private static Pair, Optional> getParamet .map(typeSymbol -> Pair.of(typeSymbol.params().orElse(Collections.emptyList()), typeSymbol.restParam())) .orElse(Pair.of(Collections.emptyList(), Optional.empty())); - } else if (invokableNode.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION) { - return getParameterSymbolsForImplicitExpressions(context, invokableNode); - } else if (invokableNode.kind() == SyntaxKind.EXPLICIT_NEW_EXPRESSION) { - return getParameterSymbolsForExplicitExpressions(context, invokableNode); + } else if (invokableNode.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION || invokableNode.kind() == + SyntaxKind.EXPLICIT_NEW_EXPRESSION) { + return getParameterSymbolsForNewExpressions(context, invokableNode); } else { FunctionCallExpressionNode functionCallExpressionNode = (FunctionCallExpressionNode) invokableNode; return getParameterSymbolsForFunctionCall(context, functionCallExpressionNode); } } - private static Pair, Optional> getParameterSymbolsForImplicitExpressions( + private static Pair, Optional> getParameterSymbolsForNewExpressions( InlayHintContext context, NonTerminalNode node) { Optional symbol = context.currentSemanticModel() .flatMap(semanticModel -> semanticModel.typeOf(node)) .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); - return getNewExpressionSymbols(symbol); - } - - private static Pair, Optional> getParameterSymbolsForExplicitExpressions( - InlayHintContext context, - NonTerminalNode node) { - Optional symbol = context.currentSemanticModel() - .flatMap(semanticModel -> semanticModel.typeOf(node)) - .flatMap(typeSymbol -> Optional.of(CommonUtil.getRawType(typeSymbol))).stream().findFirst(); - return getNewExpressionSymbols(symbol); - } - - private static Pair, Optional> getNewExpressionSymbols( - Optional symbol) { if (symbol.isEmpty()) { return Pair.of(Collections.emptyList(), Optional.empty()); } - if (symbol.get().typeKind() == TypeDescKind.UNION) { - symbol = ((UnionTypeSymbol) symbol.get()).memberTypeDescriptors().stream() + return getParametersOfNewExpression(symbol.get()); + } + + private static Pair, Optional> getParametersOfNewExpression( + TypeSymbol symbol) { + if (symbol.typeKind() == TypeDescKind.UNION) { + symbol = ((UnionTypeSymbol) symbol).memberTypeDescriptors().stream() .filter(typeSymbol -> CommonUtil.getRawType(typeSymbol).typeKind() == TypeDescKind.OBJECT) - .map(CommonUtil::getRawType).findFirst(); - } - Optional methodSymbol = symbol.flatMap(typeSymbol -> ((ClassSymbol) typeSymbol).initMethod()); - if (methodSymbol.isEmpty()) { - return Pair.of(Collections.emptyList(), Optional.empty()); + .map(CommonUtil::getRawType).findFirst().get(); } - return symbol.map(typeSymbol -> Pair.of(methodSymbol.get().typeDescriptor().params() - .orElse(Collections.emptyList()), methodSymbol.get().typeDescriptor().restParam())) - .orElse(Pair.of(Collections.emptyList(), Optional.empty())); + TypeSymbol typeSymbol = CommonUtil.getRawType(symbol); + Optional methodSymbol = ((ClassSymbol) typeSymbol).initMethod(); + return methodSymbol.map(value -> Pair.of(value.typeDescriptor().params() + .orElse(Collections.emptyList()), value.typeDescriptor().restParam())).orElseGet(() -> + Pair.of(Collections.emptyList(), Optional.empty())); } private static Pair, Optional> getParameterSymbolsForFunctionCall( diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config7.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config7.json new file mode 100644 index 000000000000..7ef0acdf0dfb --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config7.json @@ -0,0 +1,25 @@ +{ + "range": { + "start": { + "line": 10, + "character": 29 + }, + "end": { + "line": 10, + "character": 37 + } + }, + "source": "source/inlayhint7.bal", + "result": [ + { + "position": { + "line": 10, + "character": 29 + }, + "label": { + "left": "kind: " + } + } + ], + "description": "inlay hints for rest arguments" +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint7.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint7.bal new file mode 100644 index 000000000000..6392053c4dad --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint7.bal @@ -0,0 +1,16 @@ +type Person record {| + string name; + int age; +|}; + +public function main() { + Person p = { + name: "", + age: 0 + }; + string testResult = test(10, ...p); +} + +function test(int kind, string name, int age) returns string { + return "Hello"; +} From ac60869fa723f9bb91d758f5296b553f62a917cd Mon Sep 17 00:00:00 2001 From: malinthar Date: Thu, 6 Jul 2023 23:00:01 +0530 Subject: [PATCH 120/122] Address review suggestions --- .../langserver/LSPackageLoader.java | 1 + .../langserver/common/RecordField.java | 5 +- .../langserver/common/utils/RecordUtil.java | 4 +- .../mapping_constructor_expr_ctx_config7.json | 84 ++++++++++++++++++- 4 files changed, 84 insertions(+), 10 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java index 4b3570db89c0..7a80abff734c 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/LSPackageLoader.java @@ -65,6 +65,7 @@ public static LSPackageLoader getInstance(LanguageServerContext context) { if (lsPackageLoader == null) { lsPackageLoader = new LSPackageLoader(context); } + return lsPackageLoader; } diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java index 8a9c63fb84ec..da6fa9ef2919 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/RecordField.java @@ -31,9 +31,9 @@ public class RecordField { String name; RecordFieldSymbol fieldSymbol; RawTypeSymbolWrapper typeSymbolWrapper; - + public RecordField(String name, RecordFieldSymbol fieldSymbol, - RawTypeSymbolWrapper typeSymbolWrapper) { + RawTypeSymbolWrapper typeSymbolWrapper) { this.name = name; this.fieldSymbol = fieldSymbol; this.typeSymbolWrapper = typeSymbolWrapper; @@ -88,4 +88,3 @@ public String getName() { } } } - diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java index c27b9c5152f2..6613f3eb1ab0 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/common/utils/RecordUtil.java @@ -78,9 +78,7 @@ private static LSCompletionItem getRecordFieldCompletionItem(BallerinaCompletion String detail = fields.stream().map(field -> { RawTypeSymbolWrapper wrapper = field.getTypeSymbolWrapper(); - if (recordField.getTypeSymbolWrapper().getRawType().getName().isPresent()) { - return NameUtil.getModifiedTypeName(context, wrapper.getRawType()) + "." + name; - } else if (wrapper.getBroaderType().getName().isPresent()) { + if (wrapper.getBroaderType().getName().isPresent()) { return NameUtil.getModifiedTypeName(context, wrapper.getBroaderType()) + "." + name; } else { return "(" + wrapper.getRawType().signature() + ")." + name; diff --git a/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json index 77df553fada0..21ed59e8c2aa 100644 --- a/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json +++ b/language-server/modules/langserver-core/src/test/resources/completion/expression_context/config/mapping_constructor_expr_ctx_config7.json @@ -1,9 +1,85 @@ { "position": { - "line": 19, - "character": 35 + "line": 16, + "character": 43 }, "source": "expression_context/source/mapping_constructor_expr_ctx_source7.bal", - "description": "", - "items": [] + "description": "Tests record fields completions when there are multiple fields with the same name", + "items": [ + { + "label": "readonly", + "kind": "Keyword", + "detail": "Keyword", + "sortText": "U", + "filterText": "readonly", + "insertText": "readonly ", + "insertTextFormat": "Snippet" + }, + { + "label": "Fill Type1 Required Fields", + "kind": "Property", + "detail": "Type1", + "sortText": "R", + "filterText": "fill", + "insertText": "field1: {},\nfield2: {}", + "insertTextFormat": "Snippet" + }, + { + "label": "Fill Type2 Required Fields", + "kind": "Property", + "detail": "Type2", + "sortText": "R", + "filterText": "fill", + "insertText": "field1: {},\nfield2: ${1:0.0}", + "insertTextFormat": "Snippet" + }, + { + "label": "rec1Field2", + "kind": "Field", + "detail": "module1:TestRecord1.rec1Field2", + "sortText": "K", + "insertText": "rec1Field2: ${1:\"\"}", + "insertTextFormat": "Snippet" + }, + { + "label": "field1", + "kind": "Field", + "detail": "Type1.field1|Type2.field1", + "sortText": "AG", + "insertText": "field1: {}", + "insertTextFormat": "Snippet" + }, + { + "label": "field2", + "kind": "Field", + "detail": "Type1.field2", + "sortText": "AG", + "insertText": "field2: {}", + "insertTextFormat": "Snippet" + }, + { + "label": "optionalInt", + "kind": "Field", + "detail": "module1:TestRecord1.optionalInt", + "sortText": "K", + "insertText": "optionalInt: ${1:0}", + "insertTextFormat": "Snippet" + }, + { + "label": "rec1Field1", + "kind": "Field", + "detail": "module1:TestRecord1.rec1Field1", + "sortText": "K", + "insertText": "rec1Field1: ${1:0}", + "insertTextFormat": "Snippet" + }, + { + "label": "field2", + "kind": "Field", + "detail": "Type2.field2", + "sortText": "K", + "insertText": "field2: ${1:0.0}", + "insertTextFormat": "Snippet" + } + ] } From f84f3b66fba5ab7d6a26da329a4a1c71ab65f5d3 Mon Sep 17 00:00:00 2001 From: mindula Date: Thu, 6 Jul 2023 18:13:50 +0530 Subject: [PATCH 121/122] Avoid suggesting inlayHints for missing nodes --- .../langserver/inlayhint/InlayHintProvider.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index e3cfadb8ff6e..67e18aff20f6 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -112,7 +112,8 @@ public static List getInlayHint(InlayHintContext context) { Position position = new Position(startLine, startChar); if (argument.kind() == SyntaxKind.REST_ARG) { - if (parameterSymbols.getRight().isEmpty()) { + if (parameterSymbols.getRight().isEmpty() || + parameterSymbols.getRight().get().getName().get().startsWith("$")) { break; } String label = "..." + parameterSymbols.getRight().get().getName().get(); @@ -130,8 +131,9 @@ public static List getInlayHint(InlayHintContext context) { inlayHints.add(inlayHint); } break; - } else if (parameterSymbols.getLeft().get(argumentIndex).getName().isEmpty()) { - break; + } else if (parameterSymbols.getLeft().get(argumentIndex).getName().isEmpty() + || parameterSymbols.getLeft().get(argumentIndex).getName().get().startsWith("$")) { + continue; } String label = parameterSymbols.getLeft().get(argumentIndex).getName().get(); InlayHint inlayHint = new InlayHint(position, Either.forLeft(label + ": ")); @@ -170,14 +172,14 @@ private static Pair, Optional> getParamet .orElse(Pair.of(Collections.emptyList(), Optional.empty())); } else if (invokableNode.kind() == SyntaxKind.IMPLICIT_NEW_EXPRESSION || invokableNode.kind() == SyntaxKind.EXPLICIT_NEW_EXPRESSION) { - return getParameterSymbolsForNewExpressions(context, invokableNode); + return getParameterSymbolsForNewExpression(context, invokableNode); } else { FunctionCallExpressionNode functionCallExpressionNode = (FunctionCallExpressionNode) invokableNode; return getParameterSymbolsForFunctionCall(context, functionCallExpressionNode); } } - private static Pair, Optional> getParameterSymbolsForNewExpressions( + private static Pair, Optional> getParameterSymbolsForNewExpression( InlayHintContext context, NonTerminalNode node) { Optional symbol = context.currentSemanticModel() From 0e0c84a97b1ea57ef7724deba8b152ff185526e9 Mon Sep 17 00:00:00 2001 From: mindula Date: Fri, 7 Jul 2023 10:04:01 +0530 Subject: [PATCH 122/122] Add tests for missing arguments --- .../langserver/inlayhint/InlayHintProvider.java | 2 +- .../test/resources/inlayhint/config/config8.json | 15 +++++++++++++++ .../test/resources/inlayhint/source/inlayhint.bal | 2 +- .../resources/inlayhint/source/inlayhint8.bal | 7 +++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/config/config8.json create mode 100644 language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint8.bal diff --git a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java index 67e18aff20f6..a99621bb7de2 100644 --- a/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java +++ b/language-server/modules/langserver-core/src/main/java/org/ballerinalang/langserver/inlayhint/InlayHintProvider.java @@ -133,7 +133,7 @@ public static List getInlayHint(InlayHintContext context) { break; } else if (parameterSymbols.getLeft().get(argumentIndex).getName().isEmpty() || parameterSymbols.getLeft().get(argumentIndex).getName().get().startsWith("$")) { - continue; + break; } String label = parameterSymbols.getLeft().get(argumentIndex).getName().get(); InlayHint inlayHint = new InlayHint(position, Either.forLeft(label + ": ")); diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config8.json b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config8.json new file mode 100644 index 000000000000..b21b9273973e --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/config/config8.json @@ -0,0 +1,15 @@ +{ + "range": { + "start": { + "line": 1, + "character": 34 + }, + "end": { + "line": 1, + "character": 47 + } + }, + "source": "source/inlayhint8.bal", + "result": [], + "description": "inlay hints for missing arguments" +} diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint.bal index 1f4614c8d841..d4a8b69ed73e 100644 --- a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint.bal +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint.bal @@ -2,7 +2,7 @@ function testFunction() { string fullName = getFullName("John", "Doe"); } -function getFullName(string firstName, string lastName) { +function getFullName(string firstName, string lastName) returns string { return firstName + " " + lastName.substring(0, 1); } diff --git a/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint8.bal b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint8.bal new file mode 100644 index 000000000000..6339dc3cf5e9 --- /dev/null +++ b/language-server/modules/langserver-core/src/test/resources/inlayhint/source/inlayhint8.bal @@ -0,0 +1,7 @@ +function testFunction() { + string fullName = getFullName("John", "Doe", 24); +} + +function getPerson(string , string lastName, int age) returns string { + return ""; +}