From bb3b42cfc3c4d70d9afcc34bf3df5880f47257e7 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Sun, 22 Jan 2017 12:45:21 +0530 Subject: [PATCH 01/36] Add .bal file type support --- .gitignore | 17 + .idea/checkstyle-idea.xml | 10 + .idea/misc.xml | 22 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 706 ++++++++++++++++++ ballerina-idea-plugin.iml | 13 + resources/META-INF/plugin.xml | 36 + src/org/ballerinalang/BallerinaFileType.java | 54 ++ .../BallerinaFileTypeFactory.java | 26 + src/org/ballerinalang/BallerinaIcons.java | 25 + src/org/ballerinalang/BallerinaLanguage.java | 26 + src/org/ballerinalang/icons/flag.png | Bin 0 -> 503 bytes 13 files changed, 949 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/checkstyle-idea.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 ballerina-idea-plugin.iml create mode 100644 resources/META-INF/plugin.xml create mode 100644 src/org/ballerinalang/BallerinaFileType.java create mode 100644 src/org/ballerinalang/BallerinaFileTypeFactory.java create mode 100644 src/org/ballerinalang/BallerinaIcons.java create mode 100644 src/org/ballerinalang/BallerinaLanguage.java create mode 100644 src/org/ballerinalang/icons/flag.png diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..6975ae137f97 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# Created by .ignore support plugin (hsz.mobi) +### Java template +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +/out/ diff --git a/.idea/checkstyle-idea.xml b/.idea/checkstyle-idea.xml new file mode 100644 index 000000000000..9d5b48d87353 --- /dev/null +++ b/.idea/checkstyle-idea.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000000..108be1f6ae29 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,22 @@ + + + + + + + + + + 1.8 + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000000..77bdac28d84a --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000000..94a25f7f4cb4 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 000000000000..9e7f3ca53083 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,706 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1485066942335 + + + 1485069321466 + + + 1485069375741 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ballerina-idea-plugin.iml b/ballerina-idea-plugin.iml new file mode 100644 index 000000000000..e025b203cd57 --- /dev/null +++ b/ballerina-idea-plugin.iml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml new file mode 100644 index 000000000000..eda1e9070a43 --- /dev/null +++ b/resources/META-INF/plugin.xml @@ -0,0 +1,36 @@ + + org.wso2 + Ballerina + 0.1 + WSO2 + + + most HTML tags may be used + ]]> + + + most HTML tags may be used + ]]> + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/org/ballerinalang/BallerinaFileType.java b/src/org/ballerinalang/BallerinaFileType.java new file mode 100644 index 000000000000..882ee097658f --- /dev/null +++ b/src/org/ballerinalang/BallerinaFileType.java @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang; + +import com.intellij.openapi.fileTypes.LanguageFileType; +import org.jetbrains.annotations.*; + +import javax.swing.*; + +public class BallerinaFileType extends LanguageFileType { + public static final BallerinaFileType INSTANCE = new BallerinaFileType(); + + private BallerinaFileType() { + super(BallerinaLanguage.INSTANCE); + } + + @NotNull + @Override + public String getName() { + return "Ballerina file"; + } + + @NotNull + @Override + public String getDescription() { + return "Ballerina language file"; + } + + @NotNull + @Override + public String getDefaultExtension() { + return "bal"; + } + + @Nullable + @Override + public Icon getIcon() { + return BallerinaIcons.FILE; + } +} diff --git a/src/org/ballerinalang/BallerinaFileTypeFactory.java b/src/org/ballerinalang/BallerinaFileTypeFactory.java new file mode 100644 index 000000000000..f72a6151f63c --- /dev/null +++ b/src/org/ballerinalang/BallerinaFileTypeFactory.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.ballerinalang; + +import com.intellij.openapi.fileTypes.*; + import org.jetbrains.annotations.NotNull; + +public class BallerinaFileTypeFactory extends FileTypeFactory { + @Override + public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { + fileTypeConsumer.consume(BallerinaFileType.INSTANCE, "bal"); + } +} \ No newline at end of file diff --git a/src/org/ballerinalang/BallerinaIcons.java b/src/org/ballerinalang/BallerinaIcons.java new file mode 100644 index 000000000000..e14fd9b0e9cd --- /dev/null +++ b/src/org/ballerinalang/BallerinaIcons.java @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang; + +import com.intellij.openapi.util.IconLoader; + +import javax.swing.*; + +public class BallerinaIcons { + public static final Icon FILE = IconLoader.getIcon("/org/ballerinalang/icons/flag.png"); +} diff --git a/src/org/ballerinalang/BallerinaLanguage.java b/src/org/ballerinalang/BallerinaLanguage.java new file mode 100644 index 000000000000..2aeec24e441a --- /dev/null +++ b/src/org/ballerinalang/BallerinaLanguage.java @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.ballerinalang; + +import com.intellij.lang.Language; + +public class BallerinaLanguage extends Language { + public static final BallerinaLanguage INSTANCE = new BallerinaLanguage(); + + private BallerinaLanguage() { + super("Ballerina"); + } +} diff --git a/src/org/ballerinalang/icons/flag.png b/src/org/ballerinalang/icons/flag.png new file mode 100644 index 0000000000000000000000000000000000000000..f68d185ff9d438d402a9a3ba41a35fbb43ebb781 GIT binary patch literal 503 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJbFq_W2nPqp?T7vkfLzW3kH}&m zoe#o{9~a$m1~Mc|Tq8&MSiAOGI^@e7bU<o{0qpP@ZfL%{Xesw{@(iG zOUK=RZFl}R?7r66(A>1=TJ!l2Ew}%-HZ`@~{@2mm)N%c1=hg3BEsYa59i7xzGwIB$ zDF@EZI&yFJ(_eF*{aSVH`ubZ>*FS%?rKSjI?6##F&rI&SICJ{dvb0+T@wb=HxwCxE z-4%15C-}TAP5l^R|1sS8XL{hD{0JMpwV<#OEeY}qW?*Deb1SHCSigDe{sXt4y?FKc z+uwg_hmXDkDwyTz;usVvA&&^^`J!Korcqx8P_A-Vus#9*K+-dl$y5+Cc pvo8*_;zKX=rF!SDoO8aZ{=*g5_l_K=dVsEE@O1TaS?83{1OUGH0t5g6 literal 0 HcmV?d00001 From 376463147abf6969d40ad0cc5b923507cf0635d2 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Sun, 22 Jan 2017 13:12:57 +0530 Subject: [PATCH 02/36] Move icon to resources --- {src/org/ballerinalang => resources}/icons/flag.png | Bin src/org/ballerinalang/BallerinaIcons.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {src/org/ballerinalang => resources}/icons/flag.png (100%) diff --git a/src/org/ballerinalang/icons/flag.png b/resources/icons/flag.png similarity index 100% rename from src/org/ballerinalang/icons/flag.png rename to resources/icons/flag.png diff --git a/src/org/ballerinalang/BallerinaIcons.java b/src/org/ballerinalang/BallerinaIcons.java index e14fd9b0e9cd..c0f9d0caecf3 100644 --- a/src/org/ballerinalang/BallerinaIcons.java +++ b/src/org/ballerinalang/BallerinaIcons.java @@ -21,5 +21,5 @@ import javax.swing.*; public class BallerinaIcons { - public static final Icon FILE = IconLoader.getIcon("/org/ballerinalang/icons/flag.png"); + public static final Icon FILE = IconLoader.findIcon("/icons/flag.png"); } From 610f146c175db6bd8ce87501499a6c0e6645b276 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Sun, 22 Jan 2017 13:13:24 +0530 Subject: [PATCH 03/36] Add workspace.xml file to .gitignore Remove workspace.xml file from git Remove workspace.xml file form git --- .gitignore | 1 + .idea/workspace.xml | 706 -------------------------------------------- 2 files changed, 1 insertion(+), 706 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.gitignore b/.gitignore index 6975ae137f97..620af66e434e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ hs_err_pid* /out/ +/.idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 9e7f3ca53083..000000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,706 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1485066942335 - - - 1485069321466 - - - 1485069375741 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file From 36d09068ec1842ae725aedd358dd90b30ced59f2 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Mon, 23 Jan 2017 19:48:45 +0530 Subject: [PATCH 04/36] Add language grammar --- src/org/ballerinalang/Ballerina.bnf | 877 ++++++++++++++++++++++++++++ 1 file changed, 877 insertions(+) create mode 100644 src/org/ballerinalang/Ballerina.bnf diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf new file mode 100644 index 000000000000..3eb2caf207bd --- /dev/null +++ b/src/org/ballerinalang/Ballerina.bnf @@ -0,0 +1,877 @@ +{ + parserClass="org.ballerinalang.parser.BallerinaParser" + + extends="com.intellij.extapi.psi.ASTWrapperPsiElement" + + psiClassPrefix="Ballerina" + psiImplClassSuffix="Impl" + psiPackage="org.ballerinalang.psi" + psiImplPackage="org.ballerinalang.psi.impl" + + elementTypeHolderClass="org.ballerinalang.psi.BallerinaTypes" + elementTypeClass="org.ballerinalang.psi.BallerinaElementType" + tokenTypeClass="org.ballerinalang.psi.BallerinaTokenType" + + tokens=[ + ACTION = 'action'; + BREAK = 'break'; + CATCH = 'catch'; + CONNECTOR = 'connector'; + CONST = 'const'; + ELSE = 'else'; + FORK = 'fork'; + FUNCTION = 'function'; + IF = 'if'; + IMPORT = 'import'; + ITERATE = 'iterate'; + JOIN = 'join'; + NEW = 'new'; + PACKAGE = 'package'; + REPLY = 'reply'; + RESOURCE = 'resource'; + RETURN = 'return'; + SERVICE = 'service'; + THROW = 'throw'; + THROWS = 'throws'; + TRY = 'try'; + TYPE = 'type'; + TYPECONVERTOR = 'typeconvertor'; + WHILE = 'while'; + WORKER = 'worker'; + BACKTICK = '`'; + VERSION = 'version'; + PUBLIC = 'public'; + ANY = 'any'; + ALL = 'all'; + AS = 'as'; + TIMEOUT = 'timeout'; + SENDARROW = '->'; + RECEIVEARROW = '<-'; + + // §3.11 Separators + + LPAREN = '('; + RPAREN = ')'; + LBRACE = '{'; + RBRACE = '}'; + LBRACK = '['; + RBRACK = ']'; + SEMI = ';'; + COMMA = ','; + DOT = '.'; + + // §3.12 Operators + + ASSIGN = '='; + GT = '>'; + LT = '<'; + BANG = '!'; + TILDE = '~'; + QUESTION = '?'; + COLON = ':'; + EQUAL = '=='; + LE = '<='; + GE = '>='; + NOTEQUAL = '!='; + AND = '&&'; + OR = '||'; + ADD = '+'; + SUB = '-'; + MUL = '*'; + DIV = '/'; + BITAND = '&'; + BITOR = '|'; + CARET = '^'; + MOD = '%'; + DOLLAR_SIGN = '$'; + + NullLiteral = "null" + + + IntegerLiteral = "regexp:0|[1-9][0-9]*" + + FloatingPointLiteral = "regexp:(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF]" + + BooleanLiteral="regexp:true|false" + + QuotedStringLiteral ='regexp:\"([^\\\"\r\n]|\\[^\r\n])*(\"|\\)?' + + ValidBackTickStringCharacters ='regexp:`[^`]*`' + + Identifier = "regexp:[a-zA-Z$_][a-zA-Z0-9$_]*" +// + Letter = "regexp:[a-zA-Z$_]" +// + LetterOrDigit = "regexp:[a-zA-Z0-9$_]" + + WHITE_SPACE = 'regexp:[ \t\r\n\u000C]+' + + LINE_COMMENT = 'regexp://[^\r\n]*' + + + +// FloatLiteral = "regexp:(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF]" +// DoubleLiteral = "regexp:((([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?" +// +// FLit1 = ([0-9]+\.[0-9]*) +// FLit2 = (\.[0-9]+) +// FLit3 = ([0-9]+) +// Exponent = ([eE][+-]?[0-9]+) + ] +} + +//simpleFile ::= (property|COMMENT)* +// +//property ::= (KEY SEPARATOR VALUE?)|KEY { +// pin=3 +// recoverWhile="recover_property" +// mixin="com.simpleplugin.psi.impl.SimpleNamedElementImpl" +// implements="com.simpleplugin.psi.SimpleNamedElement" +// methods=[getKey getValue getName setName getNameIdentifier getPresentation] +//} +// +//private recover_property ::= !(KEY|SEPARATOR|COMMENT) + + +compilationUnit + ::= packageDeclaration? + importDeclaration* + ( serviceDefinition + | functionDefinition + | connectorDefinition + | structDefinition + | typeConvertorDefinition + | constantDefinition + )+ + +packageDeclaration + ::= 'package' packageName ';' + +importDeclaration + ::= 'import' packageName ('as' Identifier)? ';' + +serviceDefinition + ::= annotation* 'service' Identifier serviceBody + +serviceBody + ::= '{' serviceBodyDeclaration '}' + +serviceBodyDeclaration + ::= connectorDeclaration* variableDeclaration* resourceDefinition+ + +resourceDefinition + ::= annotation* 'resource' Identifier '(' parameterList ')' functionBody + +functionDefinition + ::= annotation* 'public'? 'function' Identifier '(' parameterList? ')' returnParameters? ('throws' Identifier)? functionBody + +functionBody + ::= '{' connectorDeclaration* variableDeclaration* workerDeclaration* statement+ '}' + +connectorDefinition + ::= annotation* 'connector' Identifier '(' parameterList ')' connectorBody + +connectorBody + ::= '{' connectorDeclaration* variableDeclaration* actionDefinition+ '}' + +actionDefinition + ::= annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? functionBody + +connectorDeclaration + ::= qualifiedReference Identifier '=' 'new' qualifiedReference '(' expressionList? ')'';' + +structDefinition + ::= 'public'? 'type' Identifier structDefinitionBody + +structDefinitionBody + ::= '{' (typeName Identifier ';')+ '}' + +typeConvertorDefinition + ::= 'typeconvertor' Identifier '(' typeConverterTypes Identifier ')' '('typeConverterTypes')' typeConvertorBody + +typeConvertorBody + ::= '{' variableDeclaration* statement+ '}' + +constantDefinition + ::= 'const' typeName Identifier '=' literalValue ';' + +variableDeclaration + ::= typeName Identifier ';' + +// typeName below is only 'message' type +workerDeclaration + ::= 'worker' Identifier '(' typeName Identifier ')' '{' variableDeclaration* statement+ '}' + +returnParameters + ::= '(' (namedParameterList | returnTypeList) ')' + +namedParameterList + ::= namedParameter (',' namedParameter)* + +namedParameter + ::= typeName Identifier + +returnTypeList + ::= typeName (',' typeName)* + +qualifiedTypeName + ::= packageName ':' unqualifiedTypeName + +typeConverterTypes + ::= simpleType + | withFullSchemaType + | withSchemaIdType + | withScheamURLType + +unqualifiedTypeName + ::= simpleTypeArray + | simpleTypeIterate + | withFullSchemaType + | withFullSchemaTypeArray + | withFullSchemaTypeIterate + | withScheamURLType + | withSchemaURLTypeArray + | withSchemaURLTypeIterate + | withSchemaIdType + | withScheamIdTypeArray + | withScheamIdTypeIterate + | simpleType + +simpleType + ::= Identifier + +simpleTypeArray + ::= Identifier '[' ']'//todo + +simpleTypeIterate + ::= Identifier '~' + +withFullSchemaType + ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' + +withFullSchemaTypeArray + ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '[' ']'//todo + +withFullSchemaTypeIterate + ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '~' + +withScheamURLType + ::= Identifier '<' '{' QuotedStringLiteral '}' '>' + +withSchemaURLTypeArray + ::= Identifier '<' '{' QuotedStringLiteral '}' '>' '[' ']'//todo + +withSchemaURLTypeIterate + ::= Identifier '<' '{' QuotedStringLiteral '}' '>' '~' + +withSchemaIdType + ::= Identifier '<' Identifier '>' + +withScheamIdTypeArray + ::= Identifier '<' Identifier '>' '[' ']' //todo + +withScheamIdTypeIterate + ::= Identifier '<' Identifier '>' '~' + +typeName + ::= unqualifiedTypeName + | qualifiedTypeName + +qualifiedReference + ::= packageName ':' Identifier + +parameterList + ::= parameter (',' parameter )* + +parameter + ::= annotation* typeName Identifier + +packageName + ::= Identifier ('.' Identifier)* + +literalValue + ::= IntegerLiteral + | FloatingPointLiteral + | QuotedStringLiteral + | BooleanLiteral + | NullLiteral + + //============================================================================================================ + // ANNOTATIONS + + annotation + ::= '@' annotationName ( '(' ( elementValuePairs | elementValue )? ')' )? + + annotationName ::= Identifier + + elementValuePairs + ::= elementValuePair (',' elementValuePair)* + + elementValuePair + ::= Identifier '=' elementValue + + elementValue + ::= expression + | annotation + | elementValueArrayInitializer + + elementValueArrayInitializer + ::= '{' (elementValue (',' elementValue)*)? (',')? '}' + + //============================================================================================================ +// STATEMENTS / BLOCKS + +statement + ::= functionInvocationStatement + | ifElseStatement + | iterateStatement + | whileStatement + | breakStatement + | forkJoinStatement + | tryCatchStatement + | throwStatement + | returnStatement + | replyStatement + | workerInteractionStatement + | commentStatement + | actionInvocationStatement + | assignmentStatement + +assignmentStatement + ::= variableReferenceList '=' expression ';' + +variableReferenceList + ::= variableReference (',' variableReference)* + +ifElseStatement + ::= 'if' '(' expression ')' '{' statement* '}' elseIfClause* elseClause? + +elseIfClause + ::= 'else' 'if' '(' expression ')' '{' statement* '}' + +elseClause + ::= 'else' '{' statement*'}' + +iterateStatement + ::= 'iterate' '(' typeName Identifier ':' expression ')' '{' statement+ '}' + +whileStatement + ::= 'while' '(' expression ')' '{' statement+ '}' + +breakStatement + ::= 'break' ';' + +// typeName is only message +forkJoinStatement + ::= 'fork' '(' typeName Identifier ')' '{' workerDeclaration+ '}' joinClause? timeoutClause? + +// below typeName is only 'message[]' +joinClause + ::= 'join' '(' joinConditions ')' '(' typeName Identifier ')' '{' statement+ '}' + +joinConditions + ::= 'any' IntegerLiteral (Identifier (',' Identifier)*)? + | 'all' (Identifier (',' Identifier)*)? + +// below typeName is only 'message[]' +timeoutClause + ::= 'timeout' '(' expression ')' '(' typeName Identifier ')' '{' statement+ '}' + +tryCatchStatement + ::= 'try' '{' statement+ '}' catchClause + +// below tyeName is only 'exception' +catchClause + ::= 'catch' '(' typeName Identifier ')' '{' statement+ '}' + +throwStatement + ::= 'throw' expression ';' + +returnStatement + ::= 'return' expressionList? ';' + +// below Identifier is only a type of 'message' +replyStatement + ::= 'reply' expression ';' + +workerInteractionStatement + ::= triggerWorker + | workerReply + +// below left Identifier is of type 'message' and the right Identifier is of type 'worker' +triggerWorker + ::= Identifier '->' Identifier ';' + +// below left Identifier is of type 'worker' and the right Identifier is of type 'message' +workerReply + ::= Identifier '<-' Identifier ';' + +commentStatement + ::= LINE_COMMENT + +actionInvocationStatement + ::= actionInvocation argumentList ';' + +variableReference + ::= + Identifier '['expression']' // mapArrayVariableIdentifier// array and map reference +// | variableReference ('.' variableReference)+ // structFieldIdentifier// struct field reference +| Identifier // simpleVariableIdentifier// simple identifier +argumentList + ::= '(' expressionList? ')' + +expressionList + ::= expression (',' expression)* + +functionInvocationStatement + ::= functionName argumentList ';' + +functionName + ::= (packageName ':')? Identifier + +actionInvocation + ::= packageName ':' Identifier '.' Identifier + +backtickString + ::= ValidBackTickStringCharacters + + +// 1 ------------------------------------------ +// +////todo 23/01/2017: This was introduce to prevent left recursion +//private basicExpression::= +// functionName argumentList // functionInvocationExpression +// | backtickString // templateExpression +// | actionInvocation argumentList // actionInvocationExpression +// | '[' expressionList ']' // arrayInitializerExpression +// | '{' mapInitKeyValueList '}' // mapInitializerExpression +// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression +// | literalValue // literalExpression +// | variableReference // variableReferenceExpression +// | basicExpression_ +// +//basicExpression_ ::= +//'(' typeName ')' basicExpression +// | ('+'|'-'|'!') basicExpression +//| '(' basicExpression ')' +// | basicExpression ('^') basicExpression +// +// +//expression +// ::= +// '(' typeName ')' basicExpression // typeCastingExpression +// | ('+'|'-'|'!') basicExpression // unaryExpression +// | '(' basicExpression ')' // bracedExpression +// | basicExpression ('^') basicExpression // binaryPowExpression +// | basicExpression ('/') basicExpression // binaryDivisionExpression +// | basicExpression ('*') basicExpression // binaryMultiplicationExpression +// | basicExpression ('%') basicExpression // binaryModExpression +// | basicExpression ('&&') basicExpression // binaryAndExpression +// | basicExpression ('+') basicExpression // binaryAddExpression +// | basicExpression ('-') basicExpression // binarySubExpression +// | basicExpression ('||') basicExpression // binaryOrExpression +// | basicExpression ('>') basicExpression // binaryGTExpression +// | basicExpression ('>=') basicExpression // binaryGEExpression +// | basicExpression ('<') basicExpression // binaryLTExpression +// | basicExpression ('<=') basicExpression // binaryLEExpression +// | basicExpression ('==') basicExpression // binaryEqualExpression +// | basicExpression ('!=') basicExpression // binaryNotEqualExpression +// | basicExpression +// + +//2-------------------------------------- +// simpleExpression +// ::= +// functionName argumentList // functionInvocationExpression +// +// | backtickString // templateExpression +// | actionInvocation argumentList // actionInvocationExpression +// | '[' expressionList ']' // arrayInitializerExpression +// | '{' mapInitKeyValueList '}' // mapInitializerExpression +// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression +// | literalValue // literalExpression +// | variableReference // variableReferenceExpression +// +// expression::= ('(' typeName ')' simpleExpression+ ) | (('+'|'-'|'!') simpleExpression+) | ('(' simpleExpression+ ')') | (simpleExpression+ ('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!='| simpleExpression) simpleExpression+ ) +// +// +// +// +////basicExpression::= +//// backtickString // templateExpression +//// | functionName argumentList // functionInvocationExpression +//// | actionInvocation argumentList // actionInvocationExpression +//// | '[' expressionList ']' // arrayInitializerExpression +//// | '{' mapInitKeyValueList '}' // mapInitializerExpression +//// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression +//// | literalValue // literalExpression +//// | variableReference // variableReferenceExpression + +// 3 --------------------------------------- + + +//expression::= +// +// '(' typeName ')' basicExpression // typeCastingExpression +// | ('+'|'-'|'!') basicExpression // unaryExpression +// | '(' basicExpression ')' // bracedExpression +// | basicExpression ('^') basicExpression // binaryPowExpression +// | basicExpression ('/') basicExpression // binaryDivisionExpression +// | basicExpression ('*') basicExpression // binaryMultiplicationExpression +// | basicExpression ('%') basicExpression // binaryModExpression +// | basicExpression ('&&') basicExpression // binaryAndExpression +// | basicExpression ('+') basicExpression // binaryAddExpression +// | basicExpression ('-') basicExpression // binarySubExpression +// | basicExpression ('||') basicExpression // binaryOrExpression +// | basicExpression ('>') basicExpression // binaryGTExpression +// | basicExpression ('>=') basicExpression // binaryGEExpression +// | basicExpression ('<') basicExpression // binaryLTExpression +// | basicExpression ('<=') basicExpression // binaryLEExpression +// | basicExpression ('==') basicExpression // binaryEqualExpression +// | basicExpression ('!=') basicExpression // binaryNotEqualExpression +// | basicExpression +// +// +// +//basicExpression::= +// backtickString // templateExpression +// | functionName argumentList // functionInvocationExpression +// | actionInvocation argumentList // actionInvocationExpression +// | '[' expressionList ']' // arrayInitializerExpression +// | '{' mapInitKeyValueList '}' // mapInitializerExpression +// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression +// | literalValue // literalExpression +// | variableReference // variableReferenceExpression + +// 4 --------------------------- + +expression::= + + '(' typeName ')' basicExpression + | ('+'|'-'|'!') basicExpression + | '(' basicExpression ')' + | basicExpression (('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!=') basicExpression ) * + + + + + +private basicExpression::= + backtickString // templateExpression + | functionName argumentList // functionInvocationExpression + | actionInvocation argumentList // actionInvocationExpression + | '[' expressionList ']' // arrayInitializerExpression + | '{' mapInitKeyValueList '}' // mapInitializerExpression + | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression + | literalValue // literalExpression + | variableReference + + + + + + + +mapInitKeyValueList + ::= mapInitKeyValue (',' mapInitKeyValue)* + +mapInitKeyValue + ::= QuotedStringLiteral ':' expression + + +// +//// §3.10.1 Integer Literals +//IntegerLiteral +// ::= DecimalIntegerLiteral +// | HexIntegerLiteral +// | OctalIntegerLiteral +// | BinaryIntegerLiteral +// ; +// +////fragment +//DecimalIntegerLiteral +// ::= DecimalNumeral IntegerTypeSuffix? +// ; +// +////fragment +//HexIntegerLiteral +// ::= HexNumeral IntegerTypeSuffix? +// ; +// +////fragment +//OctalIntegerLiteral +// ::= OctalNumeral IntegerTypeSuffix? +// ; +// +////fragment +//BinaryIntegerLiteral +// ::= BinaryNumeral IntegerTypeSuffix? +// ; +// +////fragment +//IntegerTypeSuffix +// ::= [lL] +// ; +// +////fragment +//DecimalNumeral +// ::= '0' +// | NonZeroDigit (Digits? | Underscores Digits) +// ; +// +////fragment +//Digits +// ::= Digit (DigitOrUnderscore* Digit)? +// ; +// +////fragment +//Digit +// ::= '0' +// | NonZeroDigit +// ; +// +////fragment +//NonZeroDigit +// ::= [1-9] +// ; +// +////fragment +//DigitOrUnderscore +// ::= Digit +// | '_' +// ; +// +////fragment +//Underscores +// ::= '_'+ +// ; +// +////fragment +//HexNumeral +// ::= '0' [xX] HexDigits +// ; +// +////fragment +//HexDigits +// ::= HexDigit (HexDigitOrUnderscore* HexDigit)? +// ; +// +////fragment +//HexDigit +// ::= [0-9a-fA-F] +// ; +// +////fragment +//HexDigitOrUnderscore +// ::= HexDigit +// | '_' +// ; +// +////fragment +//OctalNumeral +// ::= '0' Underscores? OctalDigits +// ; +// +////fragment +//OctalDigits +// ::= OctalDigit (OctalDigitOrUnderscore* OctalDigit)? +// ; +// +////fragment +//OctalDigit +// ::= [0-7] +// ; +// +////fragment +//OctalDigitOrUnderscore +// ::= OctalDigit +// | '_' +// ; +// +////fragment +//BinaryNumeral +// ::= '0' [bB] BinaryDigits +// ; +// +////fragment +//BinaryDigits +// ::= BinaryDigit (BinaryDigitOrUnderscore* BinaryDigit)? +// ; +// +////fragment +//BinaryDigit +// ::= [01] +// ; +// +////fragment +//BinaryDigitOrUnderscore +// ::= BinaryDigit +// | '_' +// ; +// +//// §3.10.2 Floating-Point Literals +// +//FloatingPointLiteral +// ::= DecimalFloatingPointLiteral +// | HexadecimalFloatingPointLiteral +// ; +// +////fragment +//DecimalFloatingPointLiteral +// ::= Digits '.' Digits? ExponentPart? FloatTypeSuffix? +// | '.' Digits ExponentPart? FloatTypeSuffix? +// | Digits ExponentPart FloatTypeSuffix? +// | Digits FloatTypeSuffix +// ; +// +////fragment +//ExponentPart +// ::= ExponentIndicator SignedInteger +// ; +// +////fragment +//ExponentIndicator +// ::= [eE] +// ; +// +////fragment +//SignedInteger +// ::= Sign? Digits +// ; +// +////fragment +//Sign +// ::= [+-] +// ; +// +////fragment +//FloatTypeSuffix +// ::= [fFdD] +// ; +// +////fragment +//HexadecimalFloatingPointLiteral +// ::= HexSignificand BinaryExponent FloatTypeSuffix? +// ; +// +////fragment +//HexSignificand +// ::= HexNumeral '.'? +// | '0' [xX] HexDigits? '.' HexDigits +// ; +// +////fragment +//BinaryExponent +// ::= BinaryExponentIndicator SignedInteger +// ; +// +////fragment +//BinaryExponentIndicator +// ::= [pP] +// ; +// +//// §3.10.3 Boolean Literals +// +//BooleanLiteral +// ::= 'true' +// | 'false' +// ; +// +//// §3.10.5 String Literals +// +//QuotedStringLiteral +// ::= '"' StringCharacters? '"' +// ; +// +//BacktickStringLiteral +// ::= '`' ValidBackTickStringCharacters '`' +// ; +////fragment +//ValidBackTickStringCharacters +// ::= ValidBackTickStringCharacter+ +// ; +// +////fragment +//ValidBackTickStringCharacter +// ::= ~[`] +// | '\\' [btnfr\\] +// | OctalEscape +// | UnicodeEscape +// ; +// +////fragment +//StringCharacters +// ::= StringCharacter+ +// ; +// +////fragment +//StringCharacter +// ::= ~["\\] +// | EscapeSequence +// ; + +// §3.10.6 Escape Sequences for Character and String Literals + +////fragment +//EscapeSequence +// ::= '\\' [btnfr"'\\] +// | OctalEscape +// | UnicodeEscape +// ; +// +////fragment +//OctalEscape +// ::= '\\' OctalDigit +// | '\\' OctalDigit OctalDigit +// | '\\' ZeroToThree OctalDigit OctalDigit +// ; +// +////fragment +//UnicodeEscape +// ::= '\\' 'u' HexDigit HexDigit HexDigit HexDigit +// ; +// +////fragment +//ZeroToThree +// ::= [0-3] +// ; + +// §3.10.7 The Null Literal + +NullLiteral + ::= 'null' + ; + +//Identifier +// ::= Letter LetterOrDigit* +// ; + +////fragment +//Letter +// ::= [a-zA-Z$_] // these are the "letters" below 0x7F +// | // covers all characters above 0x7F which are not a surrogate +// ~[\u0000-\u007F\uD800-\uDBFF] +// | // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF +// [\uD800-\uDBFF] [\uDC00-\uDFFF] +// ; + +////fragment +//LetterOrDigit +// ::= [a-zA-Z0-9$_] // these are the "letters or digits" below 0x7F +// | // covers all characters above 0x7F which are not a surrogate +// ~[\u0000-\u007F\uD800-\uDBFF] +// | // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF +// [\uD800-\uDBFF] [\uDC00-\uDFFF] +// ; + +// +// Whitespace and comments +// +// +//WS ::= [ \t\r\n\u000C]+ -> skip +// ; +// +//LINE_COMMENT +// ::= '//' ~[\r\n]* -> skip +// ; + From fa3f0c061facb091c98bc5a9713238455d37d137 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Mon, 23 Jan 2017 20:10:12 +0530 Subject: [PATCH 05/36] Change QuotedStringLiteral regex --- src/org/ballerinalang/Ballerina.bnf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index 3eb2caf207bd..713ed8422188 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -94,7 +94,7 @@ BooleanLiteral="regexp:true|false" - QuotedStringLiteral ='regexp:\"([^\\\"\r\n]|\\[^\r\n])*(\"|\\)?' + QuotedStringLiteral ='regexp:"(?:[^"\\]|\\.)*"' ValidBackTickStringCharacters ='regexp:`[^`]*`' From 3c29f04cc8e9d6cd157a3e2feb23ff8a3c8664b5 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Mon, 23 Jan 2017 21:10:48 +0530 Subject: [PATCH 06/36] Add auto generated files --- .idea/misc.xml | 16 ---------------- ballerina-idea-plugin.iml | 1 + 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 108be1f6ae29..1ccc365f8d28 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -3,20 +3,4 @@ - - - - - 1.8 - - - - - - - \ No newline at end of file diff --git a/ballerina-idea-plugin.iml b/ballerina-idea-plugin.iml index e025b203cd57..d8686fbf0409 100644 --- a/ballerina-idea-plugin.iml +++ b/ballerina-idea-plugin.iml @@ -6,6 +6,7 @@ + From 386374136fb12cf21ee871d3e72d90c5948dd632 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Mon, 23 Jan 2017 21:12:18 +0530 Subject: [PATCH 07/36] Add uiDesigner.xml to .gitignore file --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 620af66e434e..86a9c5870c97 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ hs_err_pid* /out/ /.idea/workspace.xml +/.idea/uiDesigner.xml From d7a1a62d4feaebfa4dfb532f862f5ee79e0da072 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Mon, 23 Jan 2017 21:14:28 +0530 Subject: [PATCH 08/36] Add lexer and parser definiton --- gen/org/ballerinalang/BallerinaLexer.java | 1057 ++++++ gen/org/ballerinalang/BallerinaLexer.java~ | 1059 +++++++ .../ballerinalang/parser/BallerinaParser.java | 2819 +++++++++++++++++ .../psi/BallerinaActionDefinition.java | 22 + .../psi/BallerinaActionInvocation.java | 13 + .../BallerinaActionInvocationStatement.java | 16 + .../psi/BallerinaAnnotation.java | 19 + .../psi/BallerinaAnnotationName.java | 13 + .../psi/BallerinaArgumentList.java | 13 + .../psi/BallerinaAssignmentStatement.java | 16 + .../psi/BallerinaBacktickString.java | 13 + .../psi/BallerinaBreakStatement.java | 10 + .../psi/BallerinaCatchClause.java | 19 + .../psi/BallerinaCommentStatement.java | 13 + .../psi/BallerinaConnectorBody.java | 19 + .../psi/BallerinaConnectorDeclaration.java | 19 + .../psi/BallerinaConnectorDefinition.java | 22 + .../psi/BallerinaConstantDefinition.java | 19 + .../psi/BallerinaElementValue.java | 19 + ...BallerinaElementValueArrayInitializer.java | 13 + .../psi/BallerinaElementValuePair.java | 16 + .../psi/BallerinaElementValuePairs.java | 13 + .../psi/BallerinaElseClause.java | 13 + .../psi/BallerinaElseIfClause.java | 16 + .../psi/BallerinaExpression.java | 40 + .../psi/BallerinaExpressionList.java | 13 + .../psi/BallerinaForkJoinStatement.java | 25 + .../psi/BallerinaFunctionBody.java | 22 + .../psi/BallerinaFunctionDefinition.java | 22 + .../BallerinaFunctionInvocationStatement.java | 16 + .../psi/BallerinaFunctionName.java | 16 + .../psi/BallerinaIfElseStatement.java | 22 + .../psi/BallerinaImportDeclaration.java | 16 + .../psi/BallerinaIterateStatement.java | 22 + .../psi/BallerinaJoinClause.java | 22 + .../psi/BallerinaJoinConditions.java | 13 + .../psi/BallerinaLiteralValue.java | 25 + .../psi/BallerinaMapInitKeyValue.java | 16 + .../psi/BallerinaMapInitKeyValueList.java | 13 + .../psi/BallerinaNamedParameter.java | 16 + .../psi/BallerinaNamedParameterList.java | 13 + .../psi/BallerinaNullLiteral.java | 10 + .../psi/BallerinaPackageDeclaration.java | 13 + .../psi/BallerinaPackageName.java | 10 + .../ballerinalang/psi/BallerinaParameter.java | 19 + .../psi/BallerinaParameterList.java | 13 + .../psi/BallerinaQualifiedReference.java | 16 + .../psi/BallerinaQualifiedTypeName.java | 16 + .../psi/BallerinaReplyStatement.java | 13 + .../psi/BallerinaResourceDefinition.java | 22 + .../psi/BallerinaReturnParameters.java | 16 + .../psi/BallerinaReturnStatement.java | 13 + .../psi/BallerinaReturnTypeList.java | 13 + .../psi/BallerinaServiceBody.java | 13 + .../psi/BallerinaServiceBodyDeclaration.java | 19 + .../psi/BallerinaServiceDefinition.java | 19 + .../psi/BallerinaSimpleType.java | 13 + .../psi/BallerinaSimpleTypeArray.java | 13 + .../psi/BallerinaSimpleTypeIterate.java | 13 + .../ballerinalang/psi/BallerinaStatement.java | 52 + .../psi/BallerinaStructDefinition.java | 16 + .../psi/BallerinaStructDefinitionBody.java | 13 + .../psi/BallerinaThrowStatement.java | 13 + .../psi/BallerinaTimeoutClause.java | 22 + .../psi/BallerinaTriggerWorker.java | 10 + .../psi/BallerinaTryCatchStatement.java | 16 + .../psi/BallerinaTypeConverterTypes.java | 22 + .../psi/BallerinaTypeConvertorBody.java | 16 + .../psi/BallerinaTypeConvertorDefinition.java | 16 + .../ballerinalang/psi/BallerinaTypeName.java | 16 + gen/org/ballerinalang/psi/BallerinaTypes.java | 430 +++ .../psi/BallerinaUnqualifiedTypeName.java | 46 + .../psi/BallerinaVariableDeclaration.java | 16 + .../psi/BallerinaVariableReference.java | 16 + .../psi/BallerinaVariableReferenceList.java | 13 + .../ballerinalang/psi/BallerinaVisitor.java | 350 ++ .../psi/BallerinaWhileStatement.java | 16 + .../psi/BallerinaWithFullSchemaType.java | 13 + .../psi/BallerinaWithFullSchemaTypeArray.java | 13 + .../BallerinaWithFullSchemaTypeIterate.java | 13 + .../psi/BallerinaWithScheamIdTypeArray.java | 10 + .../psi/BallerinaWithScheamIdTypeIterate.java | 10 + .../psi/BallerinaWithScheamURLType.java | 16 + .../psi/BallerinaWithSchemaIdType.java | 10 + .../psi/BallerinaWithSchemaURLTypeArray.java | 16 + .../BallerinaWithSchemaURLTypeIterate.java | 16 + .../psi/BallerinaWorkerDeclaration.java | 19 + .../BallerinaWorkerInteractionStatement.java | 16 + .../psi/BallerinaWorkerReply.java | 10 + .../impl/BallerinaActionDefinitionImpl.java | 53 + .../impl/BallerinaActionInvocationImpl.java | 35 + ...allerinaActionInvocationStatementImpl.java | 41 + .../psi/impl/BallerinaAnnotationImpl.java | 47 + .../psi/impl/BallerinaAnnotationNameImpl.java | 35 + .../psi/impl/BallerinaArgumentListImpl.java | 35 + .../BallerinaAssignmentStatementImpl.java | 41 + .../psi/impl/BallerinaBacktickStringImpl.java | 35 + .../psi/impl/BallerinaBreakStatementImpl.java | 29 + .../psi/impl/BallerinaCatchClauseImpl.java | 47 + .../impl/BallerinaCommentStatementImpl.java | 35 + .../psi/impl/BallerinaConnectorBodyImpl.java | 47 + .../BallerinaConnectorDeclarationImpl.java | 47 + .../BallerinaConnectorDefinitionImpl.java | 53 + .../impl/BallerinaConstantDefinitionImpl.java | 47 + ...erinaElementValueArrayInitializerImpl.java | 35 + .../psi/impl/BallerinaElementValueImpl.java | 47 + .../impl/BallerinaElementValuePairImpl.java | 41 + .../impl/BallerinaElementValuePairsImpl.java | 35 + .../psi/impl/BallerinaElseClauseImpl.java | 35 + .../psi/impl/BallerinaElseIfClauseImpl.java | 41 + .../psi/impl/BallerinaExpressionImpl.java | 89 + .../psi/impl/BallerinaExpressionListImpl.java | 35 + .../impl/BallerinaForkJoinStatementImpl.java | 59 + .../psi/impl/BallerinaFunctionBodyImpl.java | 53 + .../impl/BallerinaFunctionDefinitionImpl.java | 53 + ...lerinaFunctionInvocationStatementImpl.java | 41 + .../psi/impl/BallerinaFunctionNameImpl.java | 41 + .../impl/BallerinaIfElseStatementImpl.java | 53 + .../impl/BallerinaImportDeclarationImpl.java | 41 + .../impl/BallerinaIterateStatementImpl.java | 53 + .../psi/impl/BallerinaJoinClauseImpl.java | 53 + .../psi/impl/BallerinaJoinConditionsImpl.java | 35 + .../psi/impl/BallerinaLiteralValueImpl.java | 59 + .../impl/BallerinaMapInitKeyValueImpl.java | 41 + .../BallerinaMapInitKeyValueListImpl.java | 35 + .../psi/impl/BallerinaNamedParameterImpl.java | 41 + .../impl/BallerinaNamedParameterListImpl.java | 35 + .../psi/impl/BallerinaNullLiteralImpl.java | 29 + .../impl/BallerinaPackageDeclarationImpl.java | 35 + .../psi/impl/BallerinaPackageNameImpl.java | 29 + .../psi/impl/BallerinaParameterImpl.java | 47 + .../psi/impl/BallerinaParameterListImpl.java | 35 + .../impl/BallerinaQualifiedReferenceImpl.java | 41 + .../impl/BallerinaQualifiedTypeNameImpl.java | 41 + .../psi/impl/BallerinaReplyStatementImpl.java | 35 + .../impl/BallerinaResourceDefinitionImpl.java | 53 + .../impl/BallerinaReturnParametersImpl.java | 41 + .../impl/BallerinaReturnStatementImpl.java | 35 + .../psi/impl/BallerinaReturnTypeListImpl.java | 35 + .../BallerinaServiceBodyDeclarationImpl.java | 47 + .../psi/impl/BallerinaServiceBodyImpl.java | 35 + .../impl/BallerinaServiceDefinitionImpl.java | 47 + .../impl/BallerinaSimpleTypeArrayImpl.java | 35 + .../psi/impl/BallerinaSimpleTypeImpl.java | 35 + .../impl/BallerinaSimpleTypeIterateImpl.java | 35 + .../psi/impl/BallerinaStatementImpl.java | 113 + .../BallerinaStructDefinitionBodyImpl.java | 35 + .../impl/BallerinaStructDefinitionImpl.java | 41 + .../psi/impl/BallerinaThrowStatementImpl.java | 35 + .../psi/impl/BallerinaTimeoutClauseImpl.java | 53 + .../psi/impl/BallerinaTriggerWorkerImpl.java | 29 + .../impl/BallerinaTryCatchStatementImpl.java | 41 + .../impl/BallerinaTypeConverterTypesImpl.java | 53 + .../impl/BallerinaTypeConvertorBodyImpl.java | 41 + .../BallerinaTypeConvertorDefinitionImpl.java | 41 + .../psi/impl/BallerinaTypeNameImpl.java | 41 + .../BallerinaUnqualifiedTypeNameImpl.java | 101 + .../BallerinaVariableDeclarationImpl.java | 41 + .../impl/BallerinaVariableReferenceImpl.java | 41 + .../BallerinaVariableReferenceListImpl.java | 35 + .../psi/impl/BallerinaWhileStatementImpl.java | 41 + .../BallerinaWithFullSchemaTypeArrayImpl.java | 35 + .../impl/BallerinaWithFullSchemaTypeImpl.java | 35 + ...allerinaWithFullSchemaTypeIterateImpl.java | 35 + .../BallerinaWithScheamIdTypeArrayImpl.java | 29 + .../BallerinaWithScheamIdTypeIterateImpl.java | 29 + .../impl/BallerinaWithScheamURLTypeImpl.java | 41 + .../impl/BallerinaWithSchemaIdTypeImpl.java | 29 + .../BallerinaWithSchemaURLTypeArrayImpl.java | 41 + ...BallerinaWithSchemaURLTypeIterateImpl.java | 41 + .../impl/BallerinaWorkerDeclarationImpl.java | 47 + ...llerinaWorkerInteractionStatementImpl.java | 41 + .../psi/impl/BallerinaWorkerReplyImpl.java | 29 + resources/META-INF/plugin.xml | 1 + src/org/ballerinalang/Ballerina.bnf | 2 +- src/org/ballerinalang/Ballerina.flex | 111 + src/org/ballerinalang/BallerinaFileType.java | 5 +- .../BallerinaFileTypeFactory.java | 5 +- src/org/ballerinalang/BallerinaIcons.java | 2 +- src/org/ballerinalang/BallerinaLanguage.java | 1 + .../ballerinalang/BallerinaLexerAdapter.java | 27 + .../BallerinaParserDefinition.java | 80 + .../psi/BallerinaElementType.java | 27 + src/org/ballerinalang/psi/BallerinaFile.java | 48 + .../ballerinalang/psi/BallerinaTokenType.java | 32 + 185 files changed, 11045 insertions(+), 6 deletions(-) create mode 100644 gen/org/ballerinalang/BallerinaLexer.java create mode 100644 gen/org/ballerinalang/BallerinaLexer.java~ create mode 100644 gen/org/ballerinalang/parser/BallerinaParser.java create mode 100644 gen/org/ballerinalang/psi/BallerinaActionDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaActionInvocation.java create mode 100644 gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaAnnotation.java create mode 100644 gen/org/ballerinalang/psi/BallerinaAnnotationName.java create mode 100644 gen/org/ballerinalang/psi/BallerinaArgumentList.java create mode 100644 gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaBacktickString.java create mode 100644 gen/org/ballerinalang/psi/BallerinaBreakStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaCatchClause.java create mode 100644 gen/org/ballerinalang/psi/BallerinaCommentStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaConnectorBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java create mode 100644 gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaConstantDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElementValue.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElementValuePair.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElementValuePairs.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElseClause.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElseIfClause.java create mode 100644 gen/org/ballerinalang/psi/BallerinaExpression.java create mode 100644 gen/org/ballerinalang/psi/BallerinaExpressionList.java create mode 100644 gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaFunctionBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaFunctionName.java create mode 100644 gen/org/ballerinalang/psi/BallerinaIfElseStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaImportDeclaration.java create mode 100644 gen/org/ballerinalang/psi/BallerinaIterateStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaJoinClause.java create mode 100644 gen/org/ballerinalang/psi/BallerinaJoinConditions.java create mode 100644 gen/org/ballerinalang/psi/BallerinaLiteralValue.java create mode 100644 gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java create mode 100644 gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java create mode 100644 gen/org/ballerinalang/psi/BallerinaNamedParameter.java create mode 100644 gen/org/ballerinalang/psi/BallerinaNamedParameterList.java create mode 100644 gen/org/ballerinalang/psi/BallerinaNullLiteral.java create mode 100644 gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java create mode 100644 gen/org/ballerinalang/psi/BallerinaPackageName.java create mode 100644 gen/org/ballerinalang/psi/BallerinaParameter.java create mode 100644 gen/org/ballerinalang/psi/BallerinaParameterList.java create mode 100644 gen/org/ballerinalang/psi/BallerinaQualifiedReference.java create mode 100644 gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java create mode 100644 gen/org/ballerinalang/psi/BallerinaReplyStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaResourceDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaReturnParameters.java create mode 100644 gen/org/ballerinalang/psi/BallerinaReturnStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaReturnTypeList.java create mode 100644 gen/org/ballerinalang/psi/BallerinaServiceBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java create mode 100644 gen/org/ballerinalang/psi/BallerinaServiceDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaSimpleType.java create mode 100644 gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java create mode 100644 gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java create mode 100644 gen/org/ballerinalang/psi/BallerinaStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaStructDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaThrowStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTimeoutClause.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTriggerWorker.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTypeName.java create mode 100644 gen/org/ballerinalang/psi/BallerinaTypes.java create mode 100644 gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java create mode 100644 gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java create mode 100644 gen/org/ballerinalang/psi/BallerinaVariableReference.java create mode 100644 gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java create mode 100644 gen/org/ballerinalang/psi/BallerinaVisitor.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWhileStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java create mode 100644 gen/org/ballerinalang/psi/BallerinaWorkerReply.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java create mode 100644 src/org/ballerinalang/Ballerina.flex create mode 100644 src/org/ballerinalang/BallerinaLexerAdapter.java create mode 100644 src/org/ballerinalang/BallerinaParserDefinition.java create mode 100644 src/org/ballerinalang/psi/BallerinaElementType.java create mode 100644 src/org/ballerinalang/psi/BallerinaFile.java create mode 100644 src/org/ballerinalang/psi/BallerinaTokenType.java diff --git a/gen/org/ballerinalang/BallerinaLexer.java b/gen/org/ballerinalang/BallerinaLexer.java new file mode 100644 index 000000000000..4b518b02555b --- /dev/null +++ b/gen/org/ballerinalang/BallerinaLexer.java @@ -0,0 +1,1057 @@ +/* The following code was generated by JFlex 1.7.0-SNAPSHOT tweaked for IntelliJ platform */ + +package org.ballerinalang; + +import com.intellij.lexer.FlexLexer; +import com.intellij.psi.tree.IElementType; +import org.ballerinalang.psi.BallerinaTypes; +import com.intellij.psi.TokenType; + + +/** + * This class is a scanner generated by + * JFlex 1.7.0-SNAPSHOT + * from the specification file Ballerina.flex + */ +class BallerinaLexer implements FlexLexer { + + /** This character denotes the end of file */ + public static final int YYEOF = -1; + + /** initial size of the lookahead buffer */ + private static final int ZZ_BUFFERSIZE = 16384; + + /** lexical states */ + public static final int YYINITIAL = 0; + + /** + * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l + * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l + * at the beginning of a line + * l is of the form l = 2*k, k a non negative integer + */ + private static final int ZZ_LEXSTATE[] = { + 0, 0 + }; + + /** + * Translates characters to character classes + * Chosen bits are [7, 7, 7] + * Total runtime size is 1928 bytes + */ + public static int ZZ_CMAP(int ch) { + return ZZ_CMAP_A[(ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>14]|((ch>>7)&0x7f)]<<7)|(ch&0x7f)]; + } + + /* The ZZ_CMAP_Z table has 68 entries */ + static final char ZZ_CMAP_Z[] = zzUnpackCMap( + "\1\0\103\200"); + + /* The ZZ_CMAP_Y table has 256 entries */ + static final char ZZ_CMAP_Y[] = zzUnpackCMap( + "\1\0\1\1\53\2\1\3\22\2\1\4\37\2\1\3\237\2"); + + /* The ZZ_CMAP_A table has 640 entries */ + static final char ZZ_CMAP_A[] = zzUnpackCMap( + "\11\0\1\1\1\2\2\1\1\2\22\0\1\1\1\60\1\21\1\0\1\71\1\70\1\64\1\0\1\47\1\50"+ + "\1\66\1\7\1\56\1\44\1\5\1\25\1\3\11\4\1\63\1\55\1\46\1\57\1\45\1\62\1\0\4"+ + "\24\1\6\1\10\24\24\1\53\1\22\1\54\1\67\1\24\1\23\1\16\1\32\1\26\1\24\1\14"+ + "\1\15\1\41\1\34\1\27\1\37\1\33\1\17\1\35\1\31\1\30\1\36\1\24\1\12\1\20\1\11"+ + "\1\13\1\43\1\40\1\24\1\42\1\24\1\51\1\65\1\52\1\61\6\0\1\1\32\0\1\1\337\0"+ + "\1\1\177\0\13\1\35\0\2\1\5\0\1\1\57\0\1\1\40\0"); + + /** + * Translates DFA states to action switch labels. + */ + private static final int [] ZZ_ACTION = zzUnpackAction(); + + private static final String ZZ_ACTION_PACKED_0 = + "\1\0\1\1\1\2\2\3\1\4\1\5\1\6\6\5"+ + "\1\1\1\7\1\10\10\5\1\11\1\12\1\13\1\14"+ + "\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24"+ + "\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34"+ + "\1\35\1\36\3\0\1\37\12\5\1\40\3\5\1\0"+ + "\1\41\2\0\1\42\1\43\3\5\1\44\12\5\1\45"+ + "\1\46\1\47\1\50\1\51\1\52\1\53\1\54\2\0"+ + "\1\5\1\55\12\5\1\56\1\5\1\57\6\5\1\60"+ + "\7\5\1\61\2\5\1\62\3\5\1\63\1\5\1\64"+ + "\7\5\1\65\3\5\1\66\4\5\1\67\3\5\1\70"+ + "\3\5\1\71\1\72\3\5\1\73\3\5\1\74\2\5"+ + "\1\75\1\5\1\76\2\5\1\77\3\5\1\100\1\101"+ + "\1\5\1\102\1\5\1\103\3\5\1\104\1\5\1\105"+ + "\1\106\1\107\1\5\1\110\1\111\2\5\1\112\3\5"+ + "\1\113"; + + private static int [] zzUnpackAction() { + int [] result = new int[203]; + int offset = 0; + offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackAction(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + + /** + * Translates a state to a row index in the transition table + */ + private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); + + private static final String ZZ_ROWMAP_PACKED_0 = + "\0\0\0\72\0\164\0\256\0\350\0\u0122\0\u015c\0\72"+ + "\0\u0196\0\u01d0\0\u020a\0\u0244\0\u027e\0\u02b8\0\u02f2\0\u032c"+ + "\0\u0366\0\u03a0\0\u03da\0\u0414\0\u044e\0\u0488\0\u04c2\0\u04fc"+ + "\0\u0536\0\u0570\0\u05aa\0\u05e4\0\72\0\72\0\72\0\72"+ + "\0\72\0\72\0\72\0\72\0\u061e\0\u0658\0\72\0\72"+ + "\0\72\0\u0692\0\u06cc\0\72\0\72\0\72\0\u015c\0\256"+ + "\0\u0706\0\u0740\0\72\0\u077a\0\u07b4\0\u07ee\0\u0828\0\u0862"+ + "\0\u089c\0\u08d6\0\u0910\0\u094a\0\u0984\0\u015c\0\u09be\0\u09f8"+ + "\0\u0a32\0\u02f2\0\72\0\u0a6c\0\u032c\0\72\0\u0aa6\0\u0ae0"+ + "\0\u0b1a\0\u0b54\0\u015c\0\u0b8e\0\u0bc8\0\u0c02\0\u0c3c\0\u0c76"+ + "\0\u0cb0\0\u0cea\0\u0d24\0\u0d5e\0\u0d98\0\72\0\72\0\72"+ + "\0\72\0\72\0\72\0\72\0\72\0\u0dd2\0\u0e0c\0\u0e46"+ + "\0\u015c\0\u0e80\0\u0eba\0\u0ef4\0\u0f2e\0\u0f68\0\u0fa2\0\u0fdc"+ + "\0\u1016\0\u1050\0\u108a\0\u015c\0\u10c4\0\u015c\0\u10fe\0\u1138"+ + "\0\u1172\0\u11ac\0\u11e6\0\u1220\0\u015c\0\u125a\0\u1294\0\u12ce"+ + "\0\u1308\0\u1342\0\u137c\0\u13b6\0\u015c\0\u13f0\0\u142a\0\u1464"+ + "\0\u149e\0\u14d8\0\u1512\0\u015c\0\u154c\0\u015c\0\u1586\0\u15c0"+ + "\0\u15fa\0\u1634\0\u166e\0\u16a8\0\u16e2\0\u015c\0\u171c\0\u1756"+ + "\0\u1790\0\u015c\0\u17ca\0\u1804\0\u183e\0\u1878\0\u18b2\0\u18ec"+ + "\0\u1926\0\u1960\0\u015c\0\u199a\0\u19d4\0\u1a0e\0\u015c\0\u015c"+ + "\0\u1a48\0\u1a82\0\u1abc\0\u015c\0\u1af6\0\u1b30\0\u1b6a\0\u015c"+ + "\0\u1ba4\0\u1bde\0\u015c\0\u1c18\0\u015c\0\u1c52\0\u1c8c\0\u015c"+ + "\0\u1cc6\0\u1d00\0\u1d3a\0\u015c\0\u015c\0\u1d74\0\u015c\0\u1dae"+ + "\0\u015c\0\u1de8\0\u1e22\0\u1e5c\0\u015c\0\u1e96\0\u015c\0\u015c"+ + "\0\u015c\0\u1ed0\0\u015c\0\u015c\0\u1f0a\0\u1f44\0\u015c\0\u1f7e"+ + "\0\u1fb8\0\u1ff2\0\u015c"; + + private static int [] zzUnpackRowMap() { + int [] result = new int[203]; + int offset = 0; + offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackRowMap(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int high = packed.charAt(i++) << 16; + result[j++] = high | packed.charAt(i++); + } + return j; + } + + /** + * The transition table of the DFA + */ + private static final int [] ZZ_TRANS = zzUnpackTrans(); + + private static final String ZZ_TRANS_PACKED_0 = + "\1\2\2\3\1\4\1\5\1\6\1\7\1\10\1\7"+ + "\1\11\1\12\1\7\1\13\1\14\1\15\1\7\1\16"+ + "\1\17\1\2\1\20\1\7\1\21\1\22\1\23\1\7"+ + "\1\24\1\25\3\7\1\26\1\27\1\30\2\7\1\31"+ + "\1\32\1\33\1\34\1\35\1\36\1\37\1\40\1\41"+ + "\1\42\1\43\1\44\1\45\1\46\1\47\1\50\1\51"+ + "\1\52\1\53\1\54\1\55\1\56\1\57\73\0\2\3"+ + "\72\0\2\60\1\61\1\62\1\0\1\63\3\0\1\62"+ + "\1\63\57\0\2\5\1\61\1\62\1\0\1\63\3\0"+ + "\1\62\1\63\57\0\2\61\70\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\2\7\1\64\6\7"+ + "\3\0\1\7\1\0\1\7\1\65\4\7\1\66\5\7"+ + "\1\67\1\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\70\4\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\71\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\3\7\1\72\2\7"+ + "\1\73\2\7\3\0\1\7\1\0\2\7\1\74\13\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\75\1\76\3\0\1\7\1\0\1\77\2\7\1\100"+ + "\12\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\4\7\1\101\4\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\2\102\1\0\16\102\1\103\1\104\47\102\23\105"+ + "\1\106\46\105\25\0\1\107\47\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\110\2\7\3\0\1\7\1\0\2\7"+ + "\1\111\13\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\1\7\1\112\3\7\1\113\3\7\3\0\1\7"+ + "\1\0\7\7\1\114\6\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\3\7\1\115\1\116\4\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\2\7\1\117\6\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\3\7\1\120\2\7\1\121\2\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\2\7\1\122\13\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\2\7\1\123\3\7\1\124\7\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\4\7\1\125"+ + "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\45\0"+ + "\1\126\103\0\1\127\56\0\1\130\12\0\1\131\71\0"+ + "\1\132\71\0\1\133\76\0\1\134\72\0\1\135\7\0"+ + "\2\61\1\0\1\62\1\0\1\63\3\0\1\62\1\63"+ + "\57\0\2\136\2\0\1\137\34\0\1\137\30\0\2\7"+ + "\1\0\1\7\1\0\3\7\1\140\5\7\3\0\1\7"+ + "\1\0\14\7\1\141\1\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\7\7"+ + "\1\142\6\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\143\6\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\10\7\1\144\5\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\1\7\1\145\6\7"+ + "\1\146\3\0\1\7\1\0\10\7\1\147\5\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\10\7\1\150"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\3\7"+ + "\1\151\12\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\7\7\1\152\1\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\153\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\7\7\1\154\1\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\1\7\1\155\7\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\14\7\1\156\1\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\157\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\2\102\1\0\67\102\2\107\1\0\67\107\3\0\2\7"+ + "\1\0\1\7\1\0\1\7\1\160\7\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\3\7\1\161\12\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\4\7"+ + "\1\162\4\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\10\7\1\163\5\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\7\7\1\164\1\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\12\7\1\165\3\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\4\7"+ + "\1\166\4\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\4\7\1\167\11\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\170"+ + "\15\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\1\7\1\171\14\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\2\7\1\172"+ + "\6\7\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ + "\1\7\1\173\14\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\2\7\1\174\6\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\3\0\2\136\3\0\1\63\4\0"+ + "\1\63\57\0\2\136\70\0\2\7\1\0\1\7\1\0"+ + "\4\7\1\175\4\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\4\7\1\176"+ + "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ + "\2\7\1\177\13\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\200\4\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\3\7\1\201\5\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\2\7\1\202\13\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\7\7\1\203\1\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\204\4\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\1\205\15\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\10\7\1\140\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\5\7\1\206"+ + "\10\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\1\7\1\207\14\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\15\7\1\210\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\211"+ + "\15\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\10\7\1\212\3\0\1\7\1\0\3\7\1\213\12\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\214\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\2\7\1\215\13\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\7\7\1\216\1\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\217\2\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\220\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\5\7\1\221\10\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\3\7"+ + "\1\222\12\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\5\7\1\223\10\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\224\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\10\7\1\225\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\2\7\1\226"+ + "\13\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\12\7\1\227\3\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\1\230\15\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\2\7\1\231\6\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\3\7\1\232\5\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\14\7\1\233\1\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\1\7\1\234\7\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\2\7"+ + "\1\235\13\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\1\7\1\236\14\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\6\7\1\237\7\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\1\7\1\240\7\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\4\7\1\241\4\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\242\2\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\243\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\5\7\1\244\10\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\7"+ + "\1\245\14\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\246\2\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\4\7"+ + "\1\247\4\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\4\7\1\250\4\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\7"+ + "\1\251\14\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\3\7\1\252\5\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\10\7"+ + "\1\253\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ + "\2\7\1\254\13\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\3\7\1\255"+ + "\12\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\2\7\1\256\6\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\1\7\1\257\14\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ + "\3\7\1\260\12\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\1\261\15\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\1\262\15\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\1\7\1\263\7\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\1\7\1\264\7\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\1\265\15\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\13\7\1\266\2\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\2\7\1\267\6\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\2\7\1\270\13\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\1\7"+ + "\1\271\7\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\3\7\1\272\12\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\273"+ + "\15\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\2\7\1\274\13\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\4\7\1\275"+ + "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\1\7\1\276\7\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\277\4\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ + "\4\7\1\300\4\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\3\7\1\301\12\7\25\0\1\7\3\0"+ + "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ + "\15\7\1\302\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\303\4\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\3\7\1\304\12\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\2\7\1\305\13\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\4\7\1\306\4\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\307\6\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\310\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\3\0\2\7\1\0\1\7\1\0\1\7\1\311\7\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\2\7"+ + "\1\312\13\7\25\0\1\7\3\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\313\6\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7"; + + private static int [] zzUnpackTrans() { + int [] result = new int[8236]; + int offset = 0; + offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackTrans(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + value--; + do result[j++] = value; while (--count > 0); + } + return j; + } + + + /* error codes */ + private static final int ZZ_UNKNOWN_ERROR = 0; + private static final int ZZ_NO_MATCH = 1; + private static final int ZZ_PUSHBACK_2BIG = 2; + + /* error messages for the codes above */ + private static final String[] ZZ_ERROR_MSG = { + "Unknown internal scanner error", + "Error: could not match input", + "Error: pushback value was too large" + }; + + /** + * ZZ_ATTRIBUTE[aState] contains the attributes of state aState + */ + private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); + + private static final String ZZ_ATTRIBUTE_PACKED_0 = + "\1\0\1\11\5\1\1\11\24\1\10\11\2\1\3\11"+ + "\2\1\3\11\1\1\3\0\1\11\16\1\1\0\1\11"+ + "\2\0\1\11\17\1\10\11\2\0\154\1"; + + private static int [] zzUnpackAttribute() { + int [] result = new int[203]; + int offset = 0; + offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackAttribute(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + /** the input device */ + private java.io.Reader zzReader; + + /** the current state of the DFA */ + private int zzState; + + /** the current lexical state */ + private int zzLexicalState = YYINITIAL; + + /** this buffer contains the current text to be matched and is + the source of the yytext() string */ + private CharSequence zzBuffer = ""; + + /** the textposition at the last accepting state */ + private int zzMarkedPos; + + /** the current text position in the buffer */ + private int zzCurrentPos; + + /** startRead marks the beginning of the yytext() string in the buffer */ + private int zzStartRead; + + /** endRead marks the last character in the buffer, that has been read + from input */ + private int zzEndRead; + + /** + * zzAtBOL == true <=> the scanner is currently at the beginning of a line + */ + private boolean zzAtBOL = true; + + /** zzAtEOF == true <=> the scanner is at the EOF */ + private boolean zzAtEOF; + + /** denotes if the user-EOF-code has already been executed */ + private boolean zzEOFDone; + + + /** + * Creates a new scanner + * + * @param in the java.io.Reader to read input from. + */ + BallerinaLexer(java.io.Reader in) { + this.zzReader = in; + } + + + /** + * Unpacks the compressed character translation table. + * + * @param packed the packed character translation table + * @return the unpacked character translation table + */ + private static char [] zzUnpackCMap(String packed) { + int size = 0; + for (int i = 0, length = packed.length(); i < length; i += 2) { + size += packed.charAt(i); + } + char[] map = new char[size]; + int i = 0; /* index in packed string */ + int j = 0; /* index in unpacked array */ + while (i < packed.length()) { + int count = packed.charAt(i++); + char value = packed.charAt(i++); + do map[j++] = value; while (--count > 0); + } + return map; + } + + public final int getTokenStart() { + return zzStartRead; + } + + public final int getTokenEnd() { + return getTokenStart() + yylength(); + } + + public void reset(CharSequence buffer, int start, int end, int initialState) { + zzBuffer = buffer; + zzCurrentPos = zzMarkedPos = zzStartRead = start; + zzAtEOF = false; + zzAtBOL = true; + zzEndRead = end; + yybegin(initialState); + } + + /** + * Refills the input buffer. + * + * @return false, iff there was new input. + * + * @exception java.io.IOException if any I/O-Error occurs + */ + private boolean zzRefill() throws java.io.IOException { + return true; + } + + + /** + * Returns the current lexical state. + */ + public final int yystate() { + return zzLexicalState; + } + + + /** + * Enters a new lexical state + * + * @param newState the new lexical state + */ + public final void yybegin(int newState) { + zzLexicalState = newState; + } + + + /** + * Returns the text matched by the current regular expression. + */ + public final CharSequence yytext() { + return zzBuffer.subSequence(zzStartRead, zzMarkedPos); + } + + + /** + * Returns the character at position pos from the + * matched text. + * + * It is equivalent to yytext().charAt(pos), but faster + * + * @param pos the position of the character to fetch. + * A value from 0 to yylength()-1. + * + * @return the character at position pos + */ + public final char yycharat(int pos) { + return zzBuffer.charAt(zzStartRead+pos); + } + + + /** + * Returns the length of the matched text region. + */ + public final int yylength() { + return zzMarkedPos-zzStartRead; + } + + + /** + * Reports an error that occured while scanning. + * + * In a wellformed scanner (no or only correct usage of + * yypushback(int) and a match-all fallback rule) this method + * will only be called with things that "Can't Possibly Happen". + * If this method is called, something is seriously wrong + * (e.g. a JFlex bug producing a faulty scanner etc.). + * + * Usual syntax/scanner level error handling should be done + * in error fallback rules. + * + * @param errorCode the code of the errormessage to display + */ + private void zzScanError(int errorCode) { + String message; + try { + message = ZZ_ERROR_MSG[errorCode]; + } + catch (ArrayIndexOutOfBoundsException e) { + message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; + } + + throw new Error(message); + } + + + /** + * Pushes the specified amount of characters back into the input stream. + * + * They will be read again by then next call of the scanning method + * + * @param number the number of characters to be read again. + * This number must not be greater than yylength()! + */ + public void yypushback(int number) { + if ( number > yylength() ) + zzScanError(ZZ_PUSHBACK_2BIG); + + zzMarkedPos -= number; + } + + + /** + * Contains user EOF-code, which will be executed exactly once, + * when the end of file is reached + */ + private void zzDoEOF() { + if (!zzEOFDone) { + zzEOFDone = true; + + } + } + + + /** + * Resumes scanning until the next regular expression is matched, + * the end of input is encountered or an I/O-Error occurs. + * + * @return the next token + * @exception java.io.IOException if any I/O-Error occurs + */ + public IElementType advance() throws java.io.IOException { + int zzInput; + int zzAction; + + // cached fields: + int zzCurrentPosL; + int zzMarkedPosL; + int zzEndReadL = zzEndRead; + CharSequence zzBufferL = zzBuffer; + + int [] zzTransL = ZZ_TRANS; + int [] zzRowMapL = ZZ_ROWMAP; + int [] zzAttrL = ZZ_ATTRIBUTE; + + while (true) { + zzMarkedPosL = zzMarkedPos; + + zzAction = -1; + + zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; + + zzState = ZZ_LEXSTATE[zzLexicalState]; + + // set up zzAction for empty match case: + int zzAttributes = zzAttrL[zzState]; + if ( (zzAttributes & 1) == 1 ) { + zzAction = zzState; + } + + + zzForAction: { + while (true) { + + if (zzCurrentPosL < zzEndReadL) { + zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); + zzCurrentPosL += Character.charCount(zzInput); + } + else if (zzAtEOF) { + zzInput = YYEOF; + break zzForAction; + } + else { + // store back cached positions + zzCurrentPos = zzCurrentPosL; + zzMarkedPos = zzMarkedPosL; + boolean eof = zzRefill(); + // get translated positions and possibly new buffer + zzCurrentPosL = zzCurrentPos; + zzMarkedPosL = zzMarkedPos; + zzBufferL = zzBuffer; + zzEndReadL = zzEndRead; + if (eof) { + zzInput = YYEOF; + break zzForAction; + } + else { + zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); + zzCurrentPosL += Character.charCount(zzInput); + } + } + int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ]; + if (zzNext == -1) break zzForAction; + zzState = zzNext; + + zzAttributes = zzAttrL[zzState]; + if ( (zzAttributes & 1) == 1 ) { + zzAction = zzState; + zzMarkedPosL = zzCurrentPosL; + if ( (zzAttributes & 8) == 8 ) break zzForAction; + } + + } + } + + // store back cached position + zzMarkedPos = zzMarkedPosL; + + if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { + zzAtEOF = true; + zzDoEOF(); + return null; + } + else { + switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { + case 1: + { return TokenType.BAD_CHARACTER; + } + case 76: break; + case 2: + { return TokenType.WHITE_SPACE; + } + case 77: break; + case 3: + { return BallerinaTypes.INTEGERLITERAL; + } + case 78: break; + case 4: + { return BallerinaTypes.DOT; + } + case 79: break; + case 5: + { return BallerinaTypes.IDENTIFIER; + } + case 80: break; + case 6: + { return BallerinaTypes.ADD; + } + case 81: break; + case 7: + { return BallerinaTypes.BACKTICK; + } + case 82: break; + case 8: + { return BallerinaTypes.DIV; + } + case 83: break; + case 9: + { return BallerinaTypes.SUB; + } + case 84: break; + case 10: + { return BallerinaTypes.GT; + } + case 85: break; + case 11: + { return BallerinaTypes.LT; + } + case 86: break; + case 12: + { return BallerinaTypes.LPAREN; + } + case 87: break; + case 13: + { return BallerinaTypes.RPAREN; + } + case 88: break; + case 14: + { return BallerinaTypes.LBRACE; + } + case 89: break; + case 15: + { return BallerinaTypes.RBRACE; + } + case 90: break; + case 16: + { return BallerinaTypes.LBRACK; + } + case 91: break; + case 17: + { return BallerinaTypes.RBRACK; + } + case 92: break; + case 18: + { return BallerinaTypes.SEMI; + } + case 93: break; + case 19: + { return BallerinaTypes.COMMA; + } + case 94: break; + case 20: + { return BallerinaTypes.ASSIGN; + } + case 95: break; + case 21: + { return BallerinaTypes.BANG; + } + case 96: break; + case 22: + { return BallerinaTypes.TILDE; + } + case 97: break; + case 23: + { return BallerinaTypes.QUESTION; + } + case 98: break; + case 24: + { return BallerinaTypes.COLON; + } + case 99: break; + case 25: + { return BallerinaTypes.BITAND; + } + case 100: break; + case 26: + { return BallerinaTypes.BITOR; + } + case 101: break; + case 27: + { return BallerinaTypes.MUL; + } + case 102: break; + case 28: + { return BallerinaTypes.CARET; + } + case 103: break; + case 29: + { return BallerinaTypes.MOD; + } + case 104: break; + case 30: + { return BallerinaTypes.DOLLAR_SIGN; + } + case 105: break; + case 31: + { return BallerinaTypes.FLOATINGPOINTLITERAL; + } + case 106: break; + case 32: + { return BallerinaTypes.AS; + } + case 107: break; + case 33: + { return BallerinaTypes.QUOTEDSTRINGLITERAL; + } + case 108: break; + case 34: + { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; + } + case 109: break; + case 35: + { return BallerinaTypes.LINE_COMMENT; + } + case 110: break; + case 36: + { return BallerinaTypes.IF; + } + case 111: break; + case 37: + { return BallerinaTypes.SENDARROW; + } + case 112: break; + case 38: + { return BallerinaTypes.GE; + } + case 113: break; + case 39: + { return BallerinaTypes.RECEIVEARROW; + } + case 114: break; + case 40: + { return BallerinaTypes.LE; + } + case 115: break; + case 41: + { return BallerinaTypes.EQUAL; + } + case 116: break; + case 42: + { return BallerinaTypes.NOTEQUAL; + } + case 117: break; + case 43: + { return BallerinaTypes.AND; + } + case 118: break; + case 44: + { return BallerinaTypes.OR; + } + case 119: break; + case 45: + { return BallerinaTypes.TRY; + } + case 120: break; + case 46: + { return BallerinaTypes.ALL; + } + case 121: break; + case 47: + { return BallerinaTypes.ANY; + } + case 122: break; + case 48: + { return BallerinaTypes.NEW; + } + case 123: break; + case 49: + { return BallerinaTypes.BOOLEANLITERAL; + } + case 124: break; + case 50: + { return BallerinaTypes.TYPE; + } + case 125: break; + case 51: + { return BallerinaTypes.ELSE; + } + case 126: break; + case 52: + { return BallerinaTypes.FORK; + } + case 127: break; + case 53: + { return BallerinaTypes.NULLLITERAL; + } + case 128: break; + case 54: + { return BallerinaTypes.JOIN; + } + case 129: break; + case 55: + { return BallerinaTypes.THROW; + } + case 130: break; + case 56: + { return BallerinaTypes.REPLY; + } + case 131: break; + case 57: + { return BallerinaTypes.CATCH; + } + case 132: break; + case 58: + { return BallerinaTypes.CONST; + } + case 133: break; + case 59: + { return BallerinaTypes.BREAK; + } + case 134: break; + case 60: + { return BallerinaTypes.WHILE; + } + case 135: break; + case 61: + { return BallerinaTypes.THROWS; + } + case 136: break; + case 62: + { return BallerinaTypes.RETURN; + } + case 137: break; + case 63: + { return BallerinaTypes.ACTION; + } + case 138: break; + case 64: + { return BallerinaTypes.IMPORT; + } + case 139: break; + case 65: + { return BallerinaTypes.PUBLIC; + } + case 140: break; + case 66: + { return BallerinaTypes.WORKER; + } + case 141: break; + case 67: + { return BallerinaTypes.TIMEOUT; + } + case 142: break; + case 68: + { return BallerinaTypes.SERVICE; + } + case 143: break; + case 69: + { return BallerinaTypes.ITERATE; + } + case 144: break; + case 70: + { return BallerinaTypes.PACKAGE; + } + case 145: break; + case 71: + { return BallerinaTypes.VERSION; + } + case 146: break; + case 72: + { return BallerinaTypes.RESOURCE; + } + case 147: break; + case 73: + { return BallerinaTypes.FUNCTION; + } + case 148: break; + case 74: + { return BallerinaTypes.CONNECTOR; + } + case 149: break; + case 75: + { return BallerinaTypes.TYPECONVERTOR; + } + case 150: break; + default: + zzScanError(ZZ_NO_MATCH); + } + } + } + } + + +} diff --git a/gen/org/ballerinalang/BallerinaLexer.java~ b/gen/org/ballerinalang/BallerinaLexer.java~ new file mode 100644 index 000000000000..72a47205c7e1 --- /dev/null +++ b/gen/org/ballerinalang/BallerinaLexer.java~ @@ -0,0 +1,1059 @@ +/* The following code was generated by JFlex 1.7.0-SNAPSHOT tweaked for IntelliJ platform */ + +package org.ballerinalang; + +import com.intellij.lexer.FlexLexer; +import com.intellij.psi.tree.IElementType; +import org.ballerinalang.psi.BallerinaTypes; +import com.intellij.psi.TokenType; + + +/** + * This class is a scanner generated by + * JFlex 1.7.0-SNAPSHOT + * from the specification file Ballerina.flex + */ +class BallerinaLexer implements FlexLexer { + + /** This character denotes the end of file */ + public static final int YYEOF = -1; + + /** initial size of the lookahead buffer */ + private static final int ZZ_BUFFERSIZE = 16384; + + /** lexical states */ + public static final int YYINITIAL = 0; + + /** + * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l + * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l + * at the beginning of a line + * l is of the form l = 2*k, k a non negative integer + */ + private static final int ZZ_LEXSTATE[] = { + 0, 0 + }; + + /** + * Translates characters to character classes + * Chosen bits are [7, 7, 7] + * Total runtime size is 1928 bytes + */ + public static int ZZ_CMAP(int ch) { + return ZZ_CMAP_A[(ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>14]|((ch>>7)&0x7f)]<<7)|(ch&0x7f)]; + } + + /* The ZZ_CMAP_Z table has 68 entries */ + static final char ZZ_CMAP_Z[] = zzUnpackCMap( + "\1\0\103\200"); + + /* The ZZ_CMAP_Y table has 256 entries */ + static final char ZZ_CMAP_Y[] = zzUnpackCMap( + "\1\0\1\1\53\2\1\3\22\2\1\4\37\2\1\3\237\2"); + + /* The ZZ_CMAP_A table has 640 entries */ + static final char ZZ_CMAP_A[] = zzUnpackCMap( + "\11\0\1\3\1\2\2\1\1\2\22\0\1\3\1\63\1\22\1\0\1\72\1\71\1\65\1\0\1\52\1\53"+ + "\1\67\1\10\1\61\1\47\1\6\1\30\1\4\11\5\1\24\1\60\1\51\1\62\1\50\1\23\1\0\4"+ + "\27\1\7\1\11\24\27\1\56\1\25\1\57\1\70\1\27\1\26\1\17\1\35\1\31\1\27\1\15"+ + "\1\16\1\44\1\37\1\32\1\42\1\36\1\20\1\40\1\34\1\33\1\41\1\27\1\13\1\21\1\12"+ + "\1\14\1\46\1\43\1\27\1\45\1\27\1\54\1\66\1\55\1\64\6\0\1\1\32\0\1\3\337\0"+ + "\1\3\177\0\13\3\35\0\2\1\5\0\1\3\57\0\1\3\40\0"); + + /** + * Translates DFA states to action switch labels. + */ + private static final int [] ZZ_ACTION = zzUnpackAction(); + + private static final String ZZ_ACTION_PACKED_0 = + "\1\0\1\1\1\2\2\3\1\4\1\5\1\6\6\5"+ + "\1\1\1\7\1\10\1\11\1\12\10\5\1\13\1\14"+ + "\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24"+ + "\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34"+ + "\1\35\1\36\3\0\1\37\12\5\1\40\3\5\1\41"+ + "\3\0\1\42\1\43\3\5\1\44\12\5\1\45\1\46"+ + "\1\47\1\50\1\51\1\52\1\53\1\54\2\0\1\5"+ + "\1\55\12\5\1\56\1\5\1\57\1\5\2\0\5\5"+ + "\1\60\7\5\1\61\2\5\1\62\3\5\1\63\1\5"+ + "\1\64\7\5\1\65\3\5\1\66\4\5\1\67\3\5"+ + "\1\70\3\5\1\71\1\72\3\5\1\73\3\5\1\74"+ + "\2\5\1\75\1\5\1\76\2\5\1\77\3\5\1\100"+ + "\1\101\1\5\1\102\1\5\1\103\3\5\1\104\1\5"+ + "\1\105\1\106\1\107\1\5\1\110\1\111\2\5\1\112"+ + "\3\5\1\113"; + + private static int [] zzUnpackAction() { + int [] result = new int[205]; + int offset = 0; + offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackAction(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + + /** + * Translates a state to a row index in the transition table + */ + private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); + + private static final String ZZ_ROWMAP_PACKED_0 = + "\0\0\0\73\0\166\0\261\0\354\0\u0127\0\u0162\0\73"+ + "\0\u019d\0\u01d8\0\u0213\0\u024e\0\u0289\0\u02c4\0\u02ff\0\73"+ + "\0\73\0\u033a\0\u0375\0\u03b0\0\u03eb\0\u0426\0\u0461\0\u049c"+ + "\0\u04d7\0\u0512\0\u054d\0\u0588\0\u05c3\0\u05fe\0\73\0\73"+ + "\0\73\0\73\0\73\0\73\0\73\0\73\0\u0639\0\u0674"+ + "\0\73\0\u06af\0\u06ea\0\73\0\73\0\73\0\u0162\0\261"+ + "\0\u0725\0\u0760\0\73\0\u079b\0\u07d6\0\u0811\0\u084c\0\u0887"+ + "\0\u08c2\0\u08fd\0\u0938\0\u0973\0\u09ae\0\u0162\0\u09e9\0\u0a24"+ + "\0\u0a5f\0\73\0\u0a9a\0\u0ad5\0\u033a\0\73\0\u0b10\0\u0b4b"+ + "\0\u0b86\0\u0bc1\0\u0162\0\u0bfc\0\u0c37\0\u0c72\0\u0cad\0\u0ce8"+ + "\0\u0d23\0\u0d5e\0\u0d99\0\u0dd4\0\u0e0f\0\73\0\73\0\73"+ + "\0\73\0\73\0\73\0\73\0\73\0\u0e4a\0\u0e85\0\u0ec0"+ + "\0\u0162\0\u0efb\0\u0f36\0\u0f71\0\u0fac\0\u0fe7\0\u1022\0\u105d"+ + "\0\u1098\0\u10d3\0\u110e\0\u0162\0\u1149\0\u0162\0\u1184\0\u11bf"+ + "\0\u02ff\0\u11fa\0\u1235\0\u1270\0\u12ab\0\u12e6\0\u0162\0\u1321"+ + "\0\u135c\0\u1397\0\u13d2\0\u140d\0\u1448\0\u1483\0\u0162\0\u14be"+ + "\0\u14f9\0\u1534\0\u156f\0\u15aa\0\u15e5\0\u0162\0\u1620\0\u0162"+ + "\0\u165b\0\u1696\0\u16d1\0\u170c\0\u1747\0\u1782\0\u17bd\0\u0162"+ + "\0\u17f8\0\u1833\0\u186e\0\u0162\0\u18a9\0\u18e4\0\u191f\0\u195a"+ + "\0\u1995\0\u19d0\0\u1a0b\0\u1a46\0\u0162\0\u1a81\0\u1abc\0\u1af7"+ + "\0\u0162\0\u0162\0\u1b32\0\u1b6d\0\u1ba8\0\u0162\0\u1be3\0\u1c1e"+ + "\0\u1c59\0\u0162\0\u1c94\0\u1ccf\0\u0162\0\u1d0a\0\u0162\0\u1d45"+ + "\0\u1d80\0\u0162\0\u1dbb\0\u1df6\0\u1e31\0\u0162\0\u0162\0\u1e6c"+ + "\0\u0162\0\u1ea7\0\u0162\0\u1ee2\0\u1f1d\0\u1f58\0\u0162\0\u1f93"+ + "\0\u0162\0\u0162\0\u0162\0\u1fce\0\u0162\0\u0162\0\u2009\0\u2044"+ + "\0\u0162\0\u207f\0\u20ba\0\u20f5\0\u0162"; + + private static int [] zzUnpackRowMap() { + int [] result = new int[205]; + int offset = 0; + offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackRowMap(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int high = packed.charAt(i++) << 16; + result[j++] = high | packed.charAt(i++); + } + return j; + } + + /** + * The transition table of the DFA + */ + private static final int [] ZZ_TRANS = zzUnpackTrans(); + + private static final String ZZ_TRANS_PACKED_0 = + "\1\2\3\3\1\4\1\5\1\6\1\7\1\10\1\7"+ + "\1\11\1\12\1\7\1\13\1\14\1\15\1\7\1\16"+ + "\1\17\1\20\1\21\1\2\1\22\1\7\1\23\1\24"+ + "\1\25\1\7\1\26\1\27\3\7\1\30\1\31\1\32"+ + "\2\7\1\33\1\34\1\35\1\36\1\37\1\40\1\41"+ + "\1\42\1\43\1\44\1\45\1\46\1\47\1\50\1\51"+ + "\1\52\1\53\1\54\1\55\1\56\1\57\74\0\3\3"+ + "\73\0\2\60\1\61\1\62\1\0\1\63\3\0\1\62"+ + "\1\63\60\0\2\5\1\61\1\62\1\0\1\63\3\0"+ + "\1\62\1\63\60\0\2\61\71\0\2\7\1\0\1\7"+ + "\1\0\11\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\2\7\1\64\6\7"+ + "\5\0\1\7\1\0\1\7\1\65\4\7\1\66\5\7"+ + "\1\67\1\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\70\4\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\71\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\3\7\1\72\2\7"+ + "\1\73\2\7\5\0\1\7\1\0\2\7\1\74\13\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\75\1\76\5\0\1\7\1\0\1\77\2\7\1\100"+ + "\12\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\4\7\1\101\4\7\5\0\1\7\1\0\16\7\23\0"+ + "\1\7\22\0\1\102\1\103\1\0\1\104\45\0\26\105"+ + "\1\106\44\105\30\0\1\107\46\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\110\2\7\5\0\1\7\1\0\2\7"+ + "\1\111\13\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\1\7\1\112\3\7\1\113\3\7\5\0\1\7"+ + "\1\0\7\7\1\114\6\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\3\7\1\115\1\116\4\7\5\0"+ + "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\2\7\1\117\6\7\5\0\1\7\1\0"+ + "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\3\7\1\120\2\7\1\121\2\7\5\0\1\7\1\0"+ + "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\5\0\1\7\1\0\2\7\1\122\13\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ + "\1\7\1\0\2\7\1\123\3\7\1\124\7\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\4\7\1\125"+ + "\4\7\5\0\1\7\1\0\16\7\23\0\1\7\50\0"+ + "\1\126\104\0\1\127\57\0\1\130\12\0\1\131\72\0"+ + "\1\132\72\0\1\133\75\0\1\134\73\0\1\135\10\0"+ + "\2\61\1\0\1\62\1\0\1\63\3\0\1\62\1\63"+ + "\60\0\2\136\2\0\1\137\36\0\1\137\27\0\2\7"+ + "\1\0\1\7\1\0\3\7\1\140\5\7\5\0\1\7"+ + "\1\0\14\7\1\141\1\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\7\7"+ + "\1\142\6\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\143\6\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\5\0\1\7\1\0\10\7\1\144\5\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\1\7\1\145\6\7"+ + "\1\146\5\0\1\7\1\0\10\7\1\147\5\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\10\7\1\150"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\3\7"+ + "\1\151\12\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\7\7\1\152\1\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\153\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\7\7\1\154\1\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\1\7\1\155\7\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\5\0\1\7\1\0\14\7\1\156\1\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\157\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\24\0\1\160\46\0\1\161\2\0\70\161\2\107\1\0"+ + "\70\107\4\0\2\7\1\0\1\7\1\0\1\7\1\162"+ + "\7\7\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ + "\3\7\1\163\12\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\164\4\7\5\0\1\7\1\0"+ + "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\5\0\1\7\1\0\10\7\1\165\5\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\7\7\1\166"+ + "\1\7\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ + "\12\7\1\167\3\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\170\4\7\5\0\1\7\1\0"+ + "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\5\0\1\7\1\0\4\7\1\171\11\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ + "\1\7\1\0\1\172\15\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ + "\1\173\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\174\6\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\5\0\1\7\1\0\1\7\1\175\14\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\2\7\1\176\6\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\136"+ + "\3\0\1\63\4\0\1\63\60\0\2\136\71\0\2\7"+ + "\1\0\1\7\1\0\4\7\1\177\4\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\200\4\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\5\0\1\7\1\0\2\7\1\201\13\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\4\7\1\202\4\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\3\7\1\203\5\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\5\0\1\7\1\0\2\7\1\204\13\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\205\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\4\7\1\206\4\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\207"+ + "\15\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\10\7\1\140\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ + "\1\0\5\7\1\210\10\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ + "\1\211\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\5\0\1\7\1\0\15\7\1\212\23\0"+ + "\1\7\22\161\1\0\2\161\1\0\45\161\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\213"+ + "\15\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\10\7\1\214\5\0\1\7\1\0\3\7\1\215\12\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\216\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ + "\1\0\2\7\1\217\13\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\7\7\1\220\1\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\221\2\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\222\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ + "\1\0\5\7\1\223\10\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\3\7"+ + "\1\224\12\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\5\0\1\7\1\0\5\7\1\225\10\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\226\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\10\7\1\227\5\0"+ + "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\5\0\1\7\1\0\2\7\1\230"+ + "\13\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\5\0\1\7\1\0\12\7\1\231\3\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ + "\1\7\1\0\1\232\15\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\2\7\1\233\6\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\3\7\1\234\5\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\5\0\1\7\1\0\14\7\1\235\1\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\1\7\1\236\7\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\2\7"+ + "\1\237\13\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\5\0\1\7\1\0\1\7\1\240\14\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\5\0\1\7\1\0\6\7\1\241\7\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\1\7\1\242\7\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\4\7\1\243\4\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\244\2\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\245\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ + "\1\0\5\7\1\246\10\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ + "\1\247\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\6\7\1\250\2\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\4\7"+ + "\1\251\4\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\4\7\1\252\4\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ + "\1\253\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\3\7\1\254\5\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\10\7"+ + "\1\255\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ + "\2\7\1\256\13\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\5\0\1\7\1\0\3\7\1\257"+ + "\12\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\2\7\1\260\6\7\5\0\1\7\1\0\16\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ + "\1\7\1\0\1\7\1\261\14\7\23\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ + "\3\7\1\262\12\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\5\0\1\7\1\0\1\263\15\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\5\0\1\7\1\0\1\264\15\7\23\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\1\7\1\265\7\7\5\0"+ + "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\1\7\1\266\7\7\5\0\1\7\1\0"+ + "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\5\0\1\7\1\0\1\267\15\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ + "\1\0\13\7\1\270\2\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\2\7\1\271\6\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\5\0\1\7\1\0\2\7\1\272\13\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\1\7"+ + "\1\273\7\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ + "\1\0\3\7\1\274\12\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\275"+ + "\15\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\5\0\1\7\1\0\2\7\1\276\13\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\4\7\1\277"+ + "\4\7\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\1\7\1\300\7\7\5\0"+ + "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\301\4\7\5\0\1\7\1\0"+ + "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\4\7\1\302\4\7\5\0\1\7\1\0\16\7\23\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ + "\1\7\1\0\3\7\1\303\12\7\23\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ + "\15\7\1\304\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\305\4\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\5\0\1\7\1\0\3\7\1\306\12\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ + "\1\0\2\7\1\307\13\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\4\7\1\310\4\7\5\0\1\7"+ + "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\311\6\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ + "\1\312\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\1\7\1\313\7\7"+ + "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\2\7"+ + "\1\314\13\7\23\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\315\6\7\5\0\1\7\1\0\16\7"+ + "\23\0\1\7"; + + private static int [] zzUnpackTrans() { + int [] result = new int[8496]; + int offset = 0; + offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackTrans(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + value--; + do result[j++] = value; while (--count > 0); + } + return j; + } + + + /* error codes */ + private static final int ZZ_UNKNOWN_ERROR = 0; + private static final int ZZ_NO_MATCH = 1; + private static final int ZZ_PUSHBACK_2BIG = 2; + + /* error messages for the codes above */ + private static final String[] ZZ_ERROR_MSG = { + "Unknown internal scanner error", + "Error: could not match input", + "Error: pushback value was too large" + }; + + /** + * ZZ_ATTRIBUTE[aState] contains the attributes of state aState + */ + private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); + + private static final String ZZ_ATTRIBUTE_PACKED_0 = + "\1\0\1\11\5\1\1\11\7\1\2\11\15\1\10\11"+ + "\2\1\1\11\2\1\3\11\1\1\3\0\1\11\16\1"+ + "\1\11\3\0\1\11\17\1\10\11\2\0\20\1\2\0"+ + "\134\1"; + + private static int [] zzUnpackAttribute() { + int [] result = new int[205]; + int offset = 0; + offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); + return result; + } + + private static int zzUnpackAttribute(String packed, int offset, int [] result) { + int i = 0; /* index in packed string */ + int j = offset; /* index in unpacked array */ + int l = packed.length(); + while (i < l) { + int count = packed.charAt(i++); + int value = packed.charAt(i++); + do result[j++] = value; while (--count > 0); + } + return j; + } + + /** the input device */ + private java.io.Reader zzReader; + + /** the current state of the DFA */ + private int zzState; + + /** the current lexical state */ + private int zzLexicalState = YYINITIAL; + + /** this buffer contains the current text to be matched and is + the source of the yytext() string */ + private CharSequence zzBuffer = ""; + + /** the textposition at the last accepting state */ + private int zzMarkedPos; + + /** the current text position in the buffer */ + private int zzCurrentPos; + + /** startRead marks the beginning of the yytext() string in the buffer */ + private int zzStartRead; + + /** endRead marks the last character in the buffer, that has been read + from input */ + private int zzEndRead; + + /** + * zzAtBOL == true <=> the scanner is currently at the beginning of a line + */ + private boolean zzAtBOL = true; + + /** zzAtEOF == true <=> the scanner is at the EOF */ + private boolean zzAtEOF; + + /** denotes if the user-EOF-code has already been executed */ + private boolean zzEOFDone; + + + /** + * Creates a new scanner + * + * @param in the java.io.Reader to read input from. + */ + BallerinaLexer(java.io.Reader in) { + this.zzReader = in; + } + + + /** + * Unpacks the compressed character translation table. + * + * @param packed the packed character translation table + * @return the unpacked character translation table + */ + private static char [] zzUnpackCMap(String packed) { + int size = 0; + for (int i = 0, length = packed.length(); i < length; i += 2) { + size += packed.charAt(i); + } + char[] map = new char[size]; + int i = 0; /* index in packed string */ + int j = 0; /* index in unpacked array */ + while (i < packed.length()) { + int count = packed.charAt(i++); + char value = packed.charAt(i++); + do map[j++] = value; while (--count > 0); + } + return map; + } + + public final int getTokenStart() { + return zzStartRead; + } + + public final int getTokenEnd() { + return getTokenStart() + yylength(); + } + + public void reset(CharSequence buffer, int start, int end, int initialState) { + zzBuffer = buffer; + zzCurrentPos = zzMarkedPos = zzStartRead = start; + zzAtEOF = false; + zzAtBOL = true; + zzEndRead = end; + yybegin(initialState); + } + + /** + * Refills the input buffer. + * + * @return false, iff there was new input. + * + * @exception java.io.IOException if any I/O-Error occurs + */ + private boolean zzRefill() throws java.io.IOException { + return true; + } + + + /** + * Returns the current lexical state. + */ + public final int yystate() { + return zzLexicalState; + } + + + /** + * Enters a new lexical state + * + * @param newState the new lexical state + */ + public final void yybegin(int newState) { + zzLexicalState = newState; + } + + + /** + * Returns the text matched by the current regular expression. + */ + public final CharSequence yytext() { + return zzBuffer.subSequence(zzStartRead, zzMarkedPos); + } + + + /** + * Returns the character at position pos from the + * matched text. + * + * It is equivalent to yytext().charAt(pos), but faster + * + * @param pos the position of the character to fetch. + * A value from 0 to yylength()-1. + * + * @return the character at position pos + */ + public final char yycharat(int pos) { + return zzBuffer.charAt(zzStartRead+pos); + } + + + /** + * Returns the length of the matched text region. + */ + public final int yylength() { + return zzMarkedPos-zzStartRead; + } + + + /** + * Reports an error that occured while scanning. + * + * In a wellformed scanner (no or only correct usage of + * yypushback(int) and a match-all fallback rule) this method + * will only be called with things that "Can't Possibly Happen". + * If this method is called, something is seriously wrong + * (e.g. a JFlex bug producing a faulty scanner etc.). + * + * Usual syntax/scanner level error handling should be done + * in error fallback rules. + * + * @param errorCode the code of the errormessage to display + */ + private void zzScanError(int errorCode) { + String message; + try { + message = ZZ_ERROR_MSG[errorCode]; + } + catch (ArrayIndexOutOfBoundsException e) { + message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; + } + + throw new Error(message); + } + + + /** + * Pushes the specified amount of characters back into the input stream. + * + * They will be read again by then next call of the scanning method + * + * @param number the number of characters to be read again. + * This number must not be greater than yylength()! + */ + public void yypushback(int number) { + if ( number > yylength() ) + zzScanError(ZZ_PUSHBACK_2BIG); + + zzMarkedPos -= number; + } + + + /** + * Contains user EOF-code, which will be executed exactly once, + * when the end of file is reached + */ + private void zzDoEOF() { + if (!zzEOFDone) { + zzEOFDone = true; + + } + } + + + /** + * Resumes scanning until the next regular expression is matched, + * the end of input is encountered or an I/O-Error occurs. + * + * @return the next token + * @exception java.io.IOException if any I/O-Error occurs + */ + public IElementType advance() throws java.io.IOException { + int zzInput; + int zzAction; + + // cached fields: + int zzCurrentPosL; + int zzMarkedPosL; + int zzEndReadL = zzEndRead; + CharSequence zzBufferL = zzBuffer; + + int [] zzTransL = ZZ_TRANS; + int [] zzRowMapL = ZZ_ROWMAP; + int [] zzAttrL = ZZ_ATTRIBUTE; + + while (true) { + zzMarkedPosL = zzMarkedPos; + + zzAction = -1; + + zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; + + zzState = ZZ_LEXSTATE[zzLexicalState]; + + // set up zzAction for empty match case: + int zzAttributes = zzAttrL[zzState]; + if ( (zzAttributes & 1) == 1 ) { + zzAction = zzState; + } + + + zzForAction: { + while (true) { + + if (zzCurrentPosL < zzEndReadL) { + zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); + zzCurrentPosL += Character.charCount(zzInput); + } + else if (zzAtEOF) { + zzInput = YYEOF; + break zzForAction; + } + else { + // store back cached positions + zzCurrentPos = zzCurrentPosL; + zzMarkedPos = zzMarkedPosL; + boolean eof = zzRefill(); + // get translated positions and possibly new buffer + zzCurrentPosL = zzCurrentPos; + zzMarkedPosL = zzMarkedPos; + zzBufferL = zzBuffer; + zzEndReadL = zzEndRead; + if (eof) { + zzInput = YYEOF; + break zzForAction; + } + else { + zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); + zzCurrentPosL += Character.charCount(zzInput); + } + } + int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ]; + if (zzNext == -1) break zzForAction; + zzState = zzNext; + + zzAttributes = zzAttrL[zzState]; + if ( (zzAttributes & 1) == 1 ) { + zzAction = zzState; + zzMarkedPosL = zzCurrentPosL; + if ( (zzAttributes & 8) == 8 ) break zzForAction; + } + + } + } + + // store back cached position + zzMarkedPos = zzMarkedPosL; + + if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { + zzAtEOF = true; + zzDoEOF(); + return null; + } + else { + switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { + case 1: + { return TokenType.BAD_CHARACTER; + } + case 76: break; + case 2: + { return TokenType.WHITE_SPACE; + } + case 77: break; + case 3: + { return BallerinaTypes.INTEGERLITERAL; + } + case 78: break; + case 4: + { return BallerinaTypes.DOT; + } + case 79: break; + case 5: + { return BallerinaTypes.IDENTIFIER; + } + case 80: break; + case 6: + { return BallerinaTypes.ADD; + } + case 81: break; + case 7: + { return BallerinaTypes.QUESTION; + } + case 82: break; + case 8: + { return BallerinaTypes.COLON; + } + case 83: break; + case 9: + { return BallerinaTypes.BACKTICK; + } + case 84: break; + case 10: + { return BallerinaTypes.DIV; + } + case 85: break; + case 11: + { return BallerinaTypes.SUB; + } + case 86: break; + case 12: + { return BallerinaTypes.GT; + } + case 87: break; + case 13: + { return BallerinaTypes.LT; + } + case 88: break; + case 14: + { return BallerinaTypes.LPAREN; + } + case 89: break; + case 15: + { return BallerinaTypes.RPAREN; + } + case 90: break; + case 16: + { return BallerinaTypes.LBRACE; + } + case 91: break; + case 17: + { return BallerinaTypes.RBRACE; + } + case 92: break; + case 18: + { return BallerinaTypes.LBRACK; + } + case 93: break; + case 19: + { return BallerinaTypes.RBRACK; + } + case 94: break; + case 20: + { return BallerinaTypes.SEMI; + } + case 95: break; + case 21: + { return BallerinaTypes.COMMA; + } + case 96: break; + case 22: + { return BallerinaTypes.ASSIGN; + } + case 97: break; + case 23: + { return BallerinaTypes.BANG; + } + case 98: break; + case 24: + { return BallerinaTypes.TILDE; + } + case 99: break; + case 25: + { return BallerinaTypes.BITAND; + } + case 100: break; + case 26: + { return BallerinaTypes.BITOR; + } + case 101: break; + case 27: + { return BallerinaTypes.MUL; + } + case 102: break; + case 28: + { return BallerinaTypes.CARET; + } + case 103: break; + case 29: + { return BallerinaTypes.MOD; + } + case 104: break; + case 30: + { return BallerinaTypes.DOLLAR_SIGN; + } + case 105: break; + case 31: + { return BallerinaTypes.FLOATINGPOINTLITERAL; + } + case 106: break; + case 32: + { return BallerinaTypes.AS; + } + case 107: break; + case 33: + { return BallerinaTypes.QUOTEDSTRINGLITERAL; + } + case 108: break; + case 34: + { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; + } + case 109: break; + case 35: + { return BallerinaTypes.LINE_COMMENT; + } + case 110: break; + case 36: + { return BallerinaTypes.IF; + } + case 111: break; + case 37: + { return BallerinaTypes.SENDARROW; + } + case 112: break; + case 38: + { return BallerinaTypes.GE; + } + case 113: break; + case 39: + { return BallerinaTypes.RECEIVEARROW; + } + case 114: break; + case 40: + { return BallerinaTypes.LE; + } + case 115: break; + case 41: + { return BallerinaTypes.EQUAL; + } + case 116: break; + case 42: + { return BallerinaTypes.NOTEQUAL; + } + case 117: break; + case 43: + { return BallerinaTypes.AND; + } + case 118: break; + case 44: + { return BallerinaTypes.OR; + } + case 119: break; + case 45: + { return BallerinaTypes.TRY; + } + case 120: break; + case 46: + { return BallerinaTypes.ALL; + } + case 121: break; + case 47: + { return BallerinaTypes.ANY; + } + case 122: break; + case 48: + { return BallerinaTypes.NEW; + } + case 123: break; + case 49: + { return BallerinaTypes.BOOLEANLITERAL; + } + case 124: break; + case 50: + { return BallerinaTypes.TYPE; + } + case 125: break; + case 51: + { return BallerinaTypes.ELSE; + } + case 126: break; + case 52: + { return BallerinaTypes.FORK; + } + case 127: break; + case 53: + { return BallerinaTypes.NULLLITERAL; + } + case 128: break; + case 54: + { return BallerinaTypes.JOIN; + } + case 129: break; + case 55: + { return BallerinaTypes.THROW; + } + case 130: break; + case 56: + { return BallerinaTypes.REPLY; + } + case 131: break; + case 57: + { return BallerinaTypes.CATCH; + } + case 132: break; + case 58: + { return BallerinaTypes.CONST; + } + case 133: break; + case 59: + { return BallerinaTypes.BREAK; + } + case 134: break; + case 60: + { return BallerinaTypes.WHILE; + } + case 135: break; + case 61: + { return BallerinaTypes.THROWS; + } + case 136: break; + case 62: + { return BallerinaTypes.RETURN; + } + case 137: break; + case 63: + { return BallerinaTypes.ACTION; + } + case 138: break; + case 64: + { return BallerinaTypes.IMPORT; + } + case 139: break; + case 65: + { return BallerinaTypes.PUBLIC; + } + case 140: break; + case 66: + { return BallerinaTypes.WORKER; + } + case 141: break; + case 67: + { return BallerinaTypes.TIMEOUT; + } + case 142: break; + case 68: + { return BallerinaTypes.SERVICE; + } + case 143: break; + case 69: + { return BallerinaTypes.ITERATE; + } + case 144: break; + case 70: + { return BallerinaTypes.PACKAGE; + } + case 145: break; + case 71: + { return BallerinaTypes.VERSION; + } + case 146: break; + case 72: + { return BallerinaTypes.RESOURCE; + } + case 147: break; + case 73: + { return BallerinaTypes.FUNCTION; + } + case 148: break; + case 74: + { return BallerinaTypes.CONNECTOR; + } + case 149: break; + case 75: + { return BallerinaTypes.TYPECONVERTOR; + } + case 150: break; + default: + zzScanError(ZZ_NO_MATCH); + } + } + } + } + + +} diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/parser/BallerinaParser.java new file mode 100644 index 000000000000..bad1962146f9 --- /dev/null +++ b/gen/org/ballerinalang/parser/BallerinaParser.java @@ -0,0 +1,2819 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.parser; + +import com.intellij.lang.PsiBuilder; +import com.intellij.lang.PsiBuilder.Marker; +import static org.ballerinalang.psi.BallerinaTypes.*; +import static com.intellij.lang.parser.GeneratedParserUtilBase.*; +import com.intellij.psi.tree.IElementType; +import com.intellij.lang.ASTNode; +import com.intellij.psi.tree.TokenSet; +import com.intellij.lang.PsiParser; +import com.intellij.lang.LightPsiParser; + +@SuppressWarnings({"SimplifiableIfStatement", "UnusedAssignment"}) +public class BallerinaParser implements PsiParser, LightPsiParser { + + public ASTNode parse(IElementType t, PsiBuilder b) { + parseLight(t, b); + return b.getTreeBuilt(); + } + + public void parseLight(IElementType t, PsiBuilder b) { + boolean r; + b = adapt_builder_(t, b, this, null); + Marker m = enter_section_(b, 0, _COLLAPSE_, null); + if (t == NULL_LITERAL) { + r = NullLiteral(b, 0); + } + else if (t == ACTION_DEFINITION) { + r = actionDefinition(b, 0); + } + else if (t == ACTION_INVOCATION) { + r = actionInvocation(b, 0); + } + else if (t == ACTION_INVOCATION_STATEMENT) { + r = actionInvocationStatement(b, 0); + } + else if (t == ANNOTATION) { + r = annotation(b, 0); + } + else if (t == ANNOTATION_NAME) { + r = annotationName(b, 0); + } + else if (t == ARGUMENT_LIST) { + r = argumentList(b, 0); + } + else if (t == ASSIGNMENT_STATEMENT) { + r = assignmentStatement(b, 0); + } + else if (t == BACKTICK_STRING) { + r = backtickString(b, 0); + } + else if (t == BREAK_STATEMENT) { + r = breakStatement(b, 0); + } + else if (t == CATCH_CLAUSE) { + r = catchClause(b, 0); + } + else if (t == COMMENT_STATEMENT) { + r = commentStatement(b, 0); + } + else if (t == CONNECTOR_BODY) { + r = connectorBody(b, 0); + } + else if (t == CONNECTOR_DECLARATION) { + r = connectorDeclaration(b, 0); + } + else if (t == CONNECTOR_DEFINITION) { + r = connectorDefinition(b, 0); + } + else if (t == CONSTANT_DEFINITION) { + r = constantDefinition(b, 0); + } + else if (t == ELEMENT_VALUE) { + r = elementValue(b, 0); + } + else if (t == ELEMENT_VALUE_ARRAY_INITIALIZER) { + r = elementValueArrayInitializer(b, 0); + } + else if (t == ELEMENT_VALUE_PAIR) { + r = elementValuePair(b, 0); + } + else if (t == ELEMENT_VALUE_PAIRS) { + r = elementValuePairs(b, 0); + } + else if (t == ELSE_CLAUSE) { + r = elseClause(b, 0); + } + else if (t == ELSE_IF_CLAUSE) { + r = elseIfClause(b, 0); + } + else if (t == EXPRESSION) { + r = expression(b, 0); + } + else if (t == EXPRESSION_LIST) { + r = expressionList(b, 0); + } + else if (t == FORK_JOIN_STATEMENT) { + r = forkJoinStatement(b, 0); + } + else if (t == FUNCTION_BODY) { + r = functionBody(b, 0); + } + else if (t == FUNCTION_DEFINITION) { + r = functionDefinition(b, 0); + } + else if (t == FUNCTION_INVOCATION_STATEMENT) { + r = functionInvocationStatement(b, 0); + } + else if (t == FUNCTION_NAME) { + r = functionName(b, 0); + } + else if (t == IF_ELSE_STATEMENT) { + r = ifElseStatement(b, 0); + } + else if (t == IMPORT_DECLARATION) { + r = importDeclaration(b, 0); + } + else if (t == ITERATE_STATEMENT) { + r = iterateStatement(b, 0); + } + else if (t == JOIN_CLAUSE) { + r = joinClause(b, 0); + } + else if (t == JOIN_CONDITIONS) { + r = joinConditions(b, 0); + } + else if (t == LITERAL_VALUE) { + r = literalValue(b, 0); + } + else if (t == MAP_INIT_KEY_VALUE) { + r = mapInitKeyValue(b, 0); + } + else if (t == MAP_INIT_KEY_VALUE_LIST) { + r = mapInitKeyValueList(b, 0); + } + else if (t == NAMED_PARAMETER) { + r = namedParameter(b, 0); + } + else if (t == NAMED_PARAMETER_LIST) { + r = namedParameterList(b, 0); + } + else if (t == PACKAGE_DECLARATION) { + r = packageDeclaration(b, 0); + } + else if (t == PACKAGE_NAME) { + r = packageName(b, 0); + } + else if (t == PARAMETER) { + r = parameter(b, 0); + } + else if (t == PARAMETER_LIST) { + r = parameterList(b, 0); + } + else if (t == QUALIFIED_REFERENCE) { + r = qualifiedReference(b, 0); + } + else if (t == QUALIFIED_TYPE_NAME) { + r = qualifiedTypeName(b, 0); + } + else if (t == REPLY_STATEMENT) { + r = replyStatement(b, 0); + } + else if (t == RESOURCE_DEFINITION) { + r = resourceDefinition(b, 0); + } + else if (t == RETURN_PARAMETERS) { + r = returnParameters(b, 0); + } + else if (t == RETURN_STATEMENT) { + r = returnStatement(b, 0); + } + else if (t == RETURN_TYPE_LIST) { + r = returnTypeList(b, 0); + } + else if (t == SERVICE_BODY) { + r = serviceBody(b, 0); + } + else if (t == SERVICE_BODY_DECLARATION) { + r = serviceBodyDeclaration(b, 0); + } + else if (t == SERVICE_DEFINITION) { + r = serviceDefinition(b, 0); + } + else if (t == SIMPLE_TYPE) { + r = simpleType(b, 0); + } + else if (t == SIMPLE_TYPE_ARRAY) { + r = simpleTypeArray(b, 0); + } + else if (t == SIMPLE_TYPE_ITERATE) { + r = simpleTypeIterate(b, 0); + } + else if (t == STATEMENT) { + r = statement(b, 0); + } + else if (t == STRUCT_DEFINITION) { + r = structDefinition(b, 0); + } + else if (t == STRUCT_DEFINITION_BODY) { + r = structDefinitionBody(b, 0); + } + else if (t == THROW_STATEMENT) { + r = throwStatement(b, 0); + } + else if (t == TIMEOUT_CLAUSE) { + r = timeoutClause(b, 0); + } + else if (t == TRIGGER_WORKER) { + r = triggerWorker(b, 0); + } + else if (t == TRY_CATCH_STATEMENT) { + r = tryCatchStatement(b, 0); + } + else if (t == TYPE_CONVERTER_TYPES) { + r = typeConverterTypes(b, 0); + } + else if (t == TYPE_CONVERTOR_BODY) { + r = typeConvertorBody(b, 0); + } + else if (t == TYPE_CONVERTOR_DEFINITION) { + r = typeConvertorDefinition(b, 0); + } + else if (t == TYPE_NAME) { + r = typeName(b, 0); + } + else if (t == UNQUALIFIED_TYPE_NAME) { + r = unqualifiedTypeName(b, 0); + } + else if (t == VARIABLE_DECLARATION) { + r = variableDeclaration(b, 0); + } + else if (t == VARIABLE_REFERENCE) { + r = variableReference(b, 0); + } + else if (t == VARIABLE_REFERENCE_LIST) { + r = variableReferenceList(b, 0); + } + else if (t == WHILE_STATEMENT) { + r = whileStatement(b, 0); + } + else if (t == WITH_FULL_SCHEMA_TYPE) { + r = withFullSchemaType(b, 0); + } + else if (t == WITH_FULL_SCHEMA_TYPE_ARRAY) { + r = withFullSchemaTypeArray(b, 0); + } + else if (t == WITH_FULL_SCHEMA_TYPE_ITERATE) { + r = withFullSchemaTypeIterate(b, 0); + } + else if (t == WITH_SCHEAM_ID_TYPE_ARRAY) { + r = withScheamIdTypeArray(b, 0); + } + else if (t == WITH_SCHEAM_ID_TYPE_ITERATE) { + r = withScheamIdTypeIterate(b, 0); + } + else if (t == WITH_SCHEAM_URL_TYPE) { + r = withScheamURLType(b, 0); + } + else if (t == WITH_SCHEMA_ID_TYPE) { + r = withSchemaIdType(b, 0); + } + else if (t == WITH_SCHEMA_URL_TYPE_ARRAY) { + r = withSchemaURLTypeArray(b, 0); + } + else if (t == WITH_SCHEMA_URL_TYPE_ITERATE) { + r = withSchemaURLTypeIterate(b, 0); + } + else if (t == WORKER_DECLARATION) { + r = workerDeclaration(b, 0); + } + else if (t == WORKER_INTERACTION_STATEMENT) { + r = workerInteractionStatement(b, 0); + } + else if (t == WORKER_REPLY) { + r = workerReply(b, 0); + } + else { + r = parse_root_(t, b, 0); + } + exit_section_(b, 0, m, t, r, true, TRUE_CONDITION); + } + + protected boolean parse_root_(IElementType t, PsiBuilder b, int l) { + return compilationUnit(b, l + 1); + } + + /* ********************************************************** */ + // 'null' + public static boolean NullLiteral(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "NullLiteral")) return false; + if (!nextTokenIs(b, NULLLITERAL)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, NULLLITERAL); + exit_section_(b, m, NULL_LITERAL, r); + return r; + } + + /* ********************************************************** */ + // annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? functionBody + public static boolean actionDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "actionDefinition")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, ACTION_DEFINITION, ""); + r = actionDefinition_0(b, l + 1); + r = r && consumeTokens(b, 0, ACTION, IDENTIFIER, LPAREN); + r = r && parameterList(b, l + 1); + r = r && consumeToken(b, RPAREN); + r = r && actionDefinition_6(b, l + 1); + r = r && actionDefinition_7(b, l + 1); + r = r && functionBody(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // annotation* + private static boolean actionDefinition_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "actionDefinition_0")) return false; + int c = current_position_(b); + while (true) { + if (!annotation(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "actionDefinition_0", c)) break; + c = current_position_(b); + } + return true; + } + + // returnParameters? + private static boolean actionDefinition_6(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "actionDefinition_6")) return false; + returnParameters(b, l + 1); + return true; + } + + // ('throws' Identifier)? + private static boolean actionDefinition_7(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "actionDefinition_7")) return false; + actionDefinition_7_0(b, l + 1); + return true; + } + + // 'throws' Identifier + private static boolean actionDefinition_7_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "actionDefinition_7_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, THROWS, IDENTIFIER); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // packageName ':' Identifier '.' Identifier + public static boolean actionInvocation(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "actionInvocation")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = packageName(b, l + 1); + r = r && consumeTokens(b, 0, COLON, IDENTIFIER, DOT, IDENTIFIER); + exit_section_(b, m, ACTION_INVOCATION, r); + return r; + } + + /* ********************************************************** */ + // actionInvocation argumentList ';' + public static boolean actionInvocationStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "actionInvocationStatement")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = actionInvocation(b, l + 1); + r = r && argumentList(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, ACTION_INVOCATION_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // '@' annotationName ( '(' ( elementValuePairs | elementValue )? ')' )? + public static boolean annotation(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "annotation")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, ANNOTATION, ""); + r = consumeToken(b, "@"); + r = r && annotationName(b, l + 1); + r = r && annotation_2(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // ( '(' ( elementValuePairs | elementValue )? ')' )? + private static boolean annotation_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "annotation_2")) return false; + annotation_2_0(b, l + 1); + return true; + } + + // '(' ( elementValuePairs | elementValue )? ')' + private static boolean annotation_2_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "annotation_2_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && annotation_2_0_1(b, l + 1); + r = r && consumeToken(b, RPAREN); + exit_section_(b, m, null, r); + return r; + } + + // ( elementValuePairs | elementValue )? + private static boolean annotation_2_0_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "annotation_2_0_1")) return false; + annotation_2_0_1_0(b, l + 1); + return true; + } + + // elementValuePairs | elementValue + private static boolean annotation_2_0_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "annotation_2_0_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = elementValuePairs(b, l + 1); + if (!r) r = elementValue(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // Identifier + public static boolean annotationName(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "annotationName")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, IDENTIFIER); + exit_section_(b, m, ANNOTATION_NAME, r); + return r; + } + + /* ********************************************************** */ + // '(' expressionList? ')' + public static boolean argumentList(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "argumentList")) return false; + if (!nextTokenIs(b, LPAREN)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && argumentList_1(b, l + 1); + r = r && consumeToken(b, RPAREN); + exit_section_(b, m, ARGUMENT_LIST, r); + return r; + } + + // expressionList? + private static boolean argumentList_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "argumentList_1")) return false; + expressionList(b, l + 1); + return true; + } + + /* ********************************************************** */ + // variableReferenceList '=' expression ';' + public static boolean assignmentStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "assignmentStatement")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = variableReferenceList(b, l + 1); + r = r && consumeToken(b, ASSIGN); + r = r && expression(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, ASSIGNMENT_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // ValidBackTickStringCharacters + public static boolean backtickString(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "backtickString")) return false; + if (!nextTokenIs(b, VALIDBACKTICKSTRINGCHARACTERS)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, VALIDBACKTICKSTRINGCHARACTERS); + exit_section_(b, m, BACKTICK_STRING, r); + return r; + } + + /* ********************************************************** */ + // backtickString // templateExpression + // | functionName argumentList // functionInvocationExpression + // | actionInvocation argumentList // actionInvocationExpression + // | '[' expressionList ']' // arrayInitializerExpression + // | '{' mapInitKeyValueList '}' // mapInitializerExpression + // | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression + // | literalValue // literalExpression + // | variableReference + static boolean basicExpression(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression")) return false; + boolean r; + Marker m = enter_section_(b); + r = backtickString(b, l + 1); + if (!r) r = basicExpression_1(b, l + 1); + if (!r) r = basicExpression_2(b, l + 1); + if (!r) r = basicExpression_3(b, l + 1); + if (!r) r = basicExpression_4(b, l + 1); + if (!r) r = basicExpression_5(b, l + 1); + if (!r) r = literalValue(b, l + 1); + if (!r) r = variableReference(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // functionName argumentList + private static boolean basicExpression_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_1")) return false; + boolean r; + Marker m = enter_section_(b); + r = functionName(b, l + 1); + r = r && argumentList(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // actionInvocation argumentList + private static boolean basicExpression_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_2")) return false; + boolean r; + Marker m = enter_section_(b); + r = actionInvocation(b, l + 1); + r = r && argumentList(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // '[' expressionList ']' + private static boolean basicExpression_3(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_3")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACK); + r = r && expressionList(b, l + 1); + r = r && consumeToken(b, RBRACK); + exit_section_(b, m, null, r); + return r; + } + + // '{' mapInitKeyValueList '}' + private static boolean basicExpression_4(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_4")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACE); + r = r && mapInitKeyValueList(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, null, r); + return r; + } + + // 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? + private static boolean basicExpression_5(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_5")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, NEW); + r = r && basicExpression_5_1(b, l + 1); + r = r && consumeToken(b, IDENTIFIER); + r = r && basicExpression_5_3(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (packageName ':' )? + private static boolean basicExpression_5_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_5_1")) return false; + basicExpression_5_1_0(b, l + 1); + return true; + } + + // packageName ':' + private static boolean basicExpression_5_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_5_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = packageName(b, l + 1); + r = r && consumeToken(b, COLON); + exit_section_(b, m, null, r); + return r; + } + + // ('(' expressionList? ')')? + private static boolean basicExpression_5_3(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_5_3")) return false; + basicExpression_5_3_0(b, l + 1); + return true; + } + + // '(' expressionList? ')' + private static boolean basicExpression_5_3_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_5_3_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && basicExpression_5_3_0_1(b, l + 1); + r = r && consumeToken(b, RPAREN); + exit_section_(b, m, null, r); + return r; + } + + // expressionList? + private static boolean basicExpression_5_3_0_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_5_3_0_1")) return false; + expressionList(b, l + 1); + return true; + } + + /* ********************************************************** */ + // 'break' ';' + public static boolean breakStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "breakStatement")) return false; + if (!nextTokenIs(b, BREAK)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, BREAK, SEMI); + exit_section_(b, m, BREAK_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // 'catch' '(' typeName Identifier ')' '{' statement+ '}' + public static boolean catchClause(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "catchClause")) return false; + if (!nextTokenIs(b, CATCH)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, CATCH, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, RPAREN, LBRACE); + r = r && catchClause_6(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, CATCH_CLAUSE, r); + return r; + } + + // statement+ + private static boolean catchClause_6(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "catchClause_6")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "catchClause_6", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // LINE_COMMENT + public static boolean commentStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "commentStatement")) return false; + if (!nextTokenIs(b, LINE_COMMENT)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LINE_COMMENT); + exit_section_(b, m, COMMENT_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // packageDeclaration? + // importDeclaration* + // ( serviceDefinition + // | functionDefinition + // | connectorDefinition + // | structDefinition + // | typeConvertorDefinition + // | constantDefinition + // )+ + static boolean compilationUnit(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "compilationUnit")) return false; + boolean r; + Marker m = enter_section_(b); + r = compilationUnit_0(b, l + 1); + r = r && compilationUnit_1(b, l + 1); + r = r && compilationUnit_2(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // packageDeclaration? + private static boolean compilationUnit_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "compilationUnit_0")) return false; + packageDeclaration(b, l + 1); + return true; + } + + // importDeclaration* + private static boolean compilationUnit_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "compilationUnit_1")) return false; + int c = current_position_(b); + while (true) { + if (!importDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "compilationUnit_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ( serviceDefinition + // | functionDefinition + // | connectorDefinition + // | structDefinition + // | typeConvertorDefinition + // | constantDefinition + // )+ + private static boolean compilationUnit_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "compilationUnit_2")) return false; + boolean r; + Marker m = enter_section_(b); + r = compilationUnit_2_0(b, l + 1); + int c = current_position_(b); + while (r) { + if (!compilationUnit_2_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "compilationUnit_2", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + // serviceDefinition + // | functionDefinition + // | connectorDefinition + // | structDefinition + // | typeConvertorDefinition + // | constantDefinition + private static boolean compilationUnit_2_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "compilationUnit_2_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = serviceDefinition(b, l + 1); + if (!r) r = functionDefinition(b, l + 1); + if (!r) r = connectorDefinition(b, l + 1); + if (!r) r = structDefinition(b, l + 1); + if (!r) r = typeConvertorDefinition(b, l + 1); + if (!r) r = constantDefinition(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // '{' connectorDeclaration* variableDeclaration* actionDefinition+ '}' + public static boolean connectorBody(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorBody")) return false; + if (!nextTokenIs(b, LBRACE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACE); + r = r && connectorBody_1(b, l + 1); + r = r && connectorBody_2(b, l + 1); + r = r && connectorBody_3(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, CONNECTOR_BODY, r); + return r; + } + + // connectorDeclaration* + private static boolean connectorBody_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorBody_1")) return false; + int c = current_position_(b); + while (true) { + if (!connectorDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "connectorBody_1", c)) break; + c = current_position_(b); + } + return true; + } + + // variableDeclaration* + private static boolean connectorBody_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorBody_2")) return false; + int c = current_position_(b); + while (true) { + if (!variableDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "connectorBody_2", c)) break; + c = current_position_(b); + } + return true; + } + + // actionDefinition+ + private static boolean connectorBody_3(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorBody_3")) return false; + boolean r; + Marker m = enter_section_(b); + r = actionDefinition(b, l + 1); + int c = current_position_(b); + while (r) { + if (!actionDefinition(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "connectorBody_3", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // qualifiedReference Identifier '=' 'new' qualifiedReference '(' expressionList? ')'';' + public static boolean connectorDeclaration(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorDeclaration")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = qualifiedReference(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, ASSIGN, NEW); + r = r && qualifiedReference(b, l + 1); + r = r && consumeToken(b, LPAREN); + r = r && connectorDeclaration_6(b, l + 1); + r = r && consumeTokens(b, 0, RPAREN, SEMI); + exit_section_(b, m, CONNECTOR_DECLARATION, r); + return r; + } + + // expressionList? + private static boolean connectorDeclaration_6(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorDeclaration_6")) return false; + expressionList(b, l + 1); + return true; + } + + /* ********************************************************** */ + // annotation* 'connector' Identifier '(' parameterList ')' connectorBody + public static boolean connectorDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorDefinition")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, CONNECTOR_DEFINITION, ""); + r = connectorDefinition_0(b, l + 1); + r = r && consumeTokens(b, 0, CONNECTOR, IDENTIFIER, LPAREN); + r = r && parameterList(b, l + 1); + r = r && consumeToken(b, RPAREN); + r = r && connectorBody(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // annotation* + private static boolean connectorDefinition_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorDefinition_0")) return false; + int c = current_position_(b); + while (true) { + if (!annotation(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "connectorDefinition_0", c)) break; + c = current_position_(b); + } + return true; + } + + /* ********************************************************** */ + // 'const' typeName Identifier '=' literalValue ';' + public static boolean constantDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "constantDefinition")) return false; + if (!nextTokenIs(b, CONST)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, CONST); + r = r && typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, ASSIGN); + r = r && literalValue(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, CONSTANT_DEFINITION, r); + return r; + } + + /* ********************************************************** */ + // expression + // | annotation + // | elementValueArrayInitializer + public static boolean elementValue(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValue")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, ELEMENT_VALUE, ""); + r = expression(b, l + 1); + if (!r) r = annotation(b, l + 1); + if (!r) r = elementValueArrayInitializer(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + /* ********************************************************** */ + // '{' (elementValue (',' elementValue)*)? (',')? '}' + public static boolean elementValueArrayInitializer(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValueArrayInitializer")) return false; + if (!nextTokenIs(b, LBRACE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACE); + r = r && elementValueArrayInitializer_1(b, l + 1); + r = r && elementValueArrayInitializer_2(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, ELEMENT_VALUE_ARRAY_INITIALIZER, r); + return r; + } + + // (elementValue (',' elementValue)*)? + private static boolean elementValueArrayInitializer_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValueArrayInitializer_1")) return false; + elementValueArrayInitializer_1_0(b, l + 1); + return true; + } + + // elementValue (',' elementValue)* + private static boolean elementValueArrayInitializer_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValueArrayInitializer_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = elementValue(b, l + 1); + r = r && elementValueArrayInitializer_1_0_1(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (',' elementValue)* + private static boolean elementValueArrayInitializer_1_0_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValueArrayInitializer_1_0_1")) return false; + int c = current_position_(b); + while (true) { + if (!elementValueArrayInitializer_1_0_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "elementValueArrayInitializer_1_0_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' elementValue + private static boolean elementValueArrayInitializer_1_0_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValueArrayInitializer_1_0_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && elementValue(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (',')? + private static boolean elementValueArrayInitializer_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValueArrayInitializer_2")) return false; + consumeToken(b, COMMA); + return true; + } + + /* ********************************************************** */ + // Identifier '=' elementValue + public static boolean elementValuePair(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValuePair")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, ASSIGN); + r = r && elementValue(b, l + 1); + exit_section_(b, m, ELEMENT_VALUE_PAIR, r); + return r; + } + + /* ********************************************************** */ + // elementValuePair (',' elementValuePair)* + public static boolean elementValuePairs(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValuePairs")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = elementValuePair(b, l + 1); + r = r && elementValuePairs_1(b, l + 1); + exit_section_(b, m, ELEMENT_VALUE_PAIRS, r); + return r; + } + + // (',' elementValuePair)* + private static boolean elementValuePairs_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValuePairs_1")) return false; + int c = current_position_(b); + while (true) { + if (!elementValuePairs_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "elementValuePairs_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' elementValuePair + private static boolean elementValuePairs_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elementValuePairs_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && elementValuePair(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'else' '{' statement*'}' + public static boolean elseClause(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elseClause")) return false; + if (!nextTokenIs(b, ELSE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, ELSE, LBRACE); + r = r && elseClause_2(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, ELSE_CLAUSE, r); + return r; + } + + // statement* + private static boolean elseClause_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elseClause_2")) return false; + int c = current_position_(b); + while (true) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "elseClause_2", c)) break; + c = current_position_(b); + } + return true; + } + + /* ********************************************************** */ + // 'else' 'if' '(' expression ')' '{' statement* '}' + public static boolean elseIfClause(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elseIfClause")) return false; + if (!nextTokenIs(b, ELSE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, ELSE, IF, LPAREN); + r = r && expression(b, l + 1); + r = r && consumeTokens(b, 0, RPAREN, LBRACE); + r = r && elseIfClause_6(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, ELSE_IF_CLAUSE, r); + return r; + } + + // statement* + private static boolean elseIfClause_6(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "elseIfClause_6")) return false; + int c = current_position_(b); + while (true) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "elseIfClause_6", c)) break; + c = current_position_(b); + } + return true; + } + + /* ********************************************************** */ + // '(' typeName ')' basicExpression + // | ('+'|'-'|'!') basicExpression + // | '(' basicExpression ')' + // | basicExpression (('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!=') basicExpression ) * + public static boolean expression(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, EXPRESSION, ""); + r = expression_0(b, l + 1); + if (!r) r = expression_1(b, l + 1); + if (!r) r = expression_2(b, l + 1); + if (!r) r = expression_3(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // '(' typeName ')' basicExpression + private static boolean expression_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeToken(b, RPAREN); + r = r && basicExpression(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // ('+'|'-'|'!') basicExpression + private static boolean expression_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_1")) return false; + boolean r; + Marker m = enter_section_(b); + r = expression_1_0(b, l + 1); + r = r && basicExpression(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // '+'|'-'|'!' + private static boolean expression_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, ADD); + if (!r) r = consumeToken(b, SUB); + if (!r) r = consumeToken(b, BANG); + exit_section_(b, m, null, r); + return r; + } + + // '(' basicExpression ')' + private static boolean expression_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_2")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && basicExpression(b, l + 1); + r = r && consumeToken(b, RPAREN); + exit_section_(b, m, null, r); + return r; + } + + // basicExpression (('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!=') basicExpression ) * + private static boolean expression_3(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_3")) return false; + boolean r; + Marker m = enter_section_(b); + r = basicExpression(b, l + 1); + r = r && expression_3_1(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!=') basicExpression ) * + private static boolean expression_3_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_3_1")) return false; + int c = current_position_(b); + while (true) { + if (!expression_3_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "expression_3_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!=') basicExpression + private static boolean expression_3_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_3_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = expression_3_1_0_0(b, l + 1); + r = r && basicExpression(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // '^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!=' + private static boolean expression_3_1_0_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expression_3_1_0_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, CARET); + if (!r) r = consumeToken(b, DIV); + if (!r) r = consumeToken(b, MUL); + if (!r) r = consumeToken(b, MOD); + if (!r) r = consumeToken(b, AND); + if (!r) r = consumeToken(b, ADD); + if (!r) r = consumeToken(b, SUB); + if (!r) r = consumeToken(b, OR); + if (!r) r = consumeToken(b, GT); + if (!r) r = consumeToken(b, GE); + if (!r) r = consumeToken(b, LT); + if (!r) r = consumeToken(b, LE); + if (!r) r = consumeToken(b, EQUAL); + if (!r) r = consumeToken(b, NOTEQUAL); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // expression (',' expression)* + public static boolean expressionList(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expressionList")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, EXPRESSION_LIST, ""); + r = expression(b, l + 1); + r = r && expressionList_1(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // (',' expression)* + private static boolean expressionList_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expressionList_1")) return false; + int c = current_position_(b); + while (true) { + if (!expressionList_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "expressionList_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' expression + private static boolean expressionList_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "expressionList_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && expression(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'fork' '(' typeName Identifier ')' '{' workerDeclaration+ '}' joinClause? timeoutClause? + public static boolean forkJoinStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "forkJoinStatement")) return false; + if (!nextTokenIs(b, FORK)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, FORK, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, RPAREN, LBRACE); + r = r && forkJoinStatement_6(b, l + 1); + r = r && consumeToken(b, RBRACE); + r = r && forkJoinStatement_8(b, l + 1); + r = r && forkJoinStatement_9(b, l + 1); + exit_section_(b, m, FORK_JOIN_STATEMENT, r); + return r; + } + + // workerDeclaration+ + private static boolean forkJoinStatement_6(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "forkJoinStatement_6")) return false; + boolean r; + Marker m = enter_section_(b); + r = workerDeclaration(b, l + 1); + int c = current_position_(b); + while (r) { + if (!workerDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "forkJoinStatement_6", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + // joinClause? + private static boolean forkJoinStatement_8(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "forkJoinStatement_8")) return false; + joinClause(b, l + 1); + return true; + } + + // timeoutClause? + private static boolean forkJoinStatement_9(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "forkJoinStatement_9")) return false; + timeoutClause(b, l + 1); + return true; + } + + /* ********************************************************** */ + // '{' connectorDeclaration* variableDeclaration* workerDeclaration* statement+ '}' + public static boolean functionBody(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody")) return false; + if (!nextTokenIs(b, LBRACE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACE); + r = r && functionBody_1(b, l + 1); + r = r && functionBody_2(b, l + 1); + r = r && functionBody_3(b, l + 1); + r = r && functionBody_4(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, FUNCTION_BODY, r); + return r; + } + + // connectorDeclaration* + private static boolean functionBody_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_1")) return false; + int c = current_position_(b); + while (true) { + if (!connectorDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "functionBody_1", c)) break; + c = current_position_(b); + } + return true; + } + + // variableDeclaration* + private static boolean functionBody_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_2")) return false; + int c = current_position_(b); + while (true) { + if (!variableDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "functionBody_2", c)) break; + c = current_position_(b); + } + return true; + } + + // workerDeclaration* + private static boolean functionBody_3(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_3")) return false; + int c = current_position_(b); + while (true) { + if (!workerDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "functionBody_3", c)) break; + c = current_position_(b); + } + return true; + } + + // statement+ + private static boolean functionBody_4(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_4")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "functionBody_4", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // annotation* 'public'? 'function' Identifier '(' parameterList? ')' returnParameters? ('throws' Identifier)? functionBody + public static boolean functionDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionDefinition")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, FUNCTION_DEFINITION, ""); + r = functionDefinition_0(b, l + 1); + r = r && functionDefinition_1(b, l + 1); + r = r && consumeTokens(b, 0, FUNCTION, IDENTIFIER, LPAREN); + r = r && functionDefinition_5(b, l + 1); + r = r && consumeToken(b, RPAREN); + r = r && functionDefinition_7(b, l + 1); + r = r && functionDefinition_8(b, l + 1); + r = r && functionBody(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // annotation* + private static boolean functionDefinition_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionDefinition_0")) return false; + int c = current_position_(b); + while (true) { + if (!annotation(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "functionDefinition_0", c)) break; + c = current_position_(b); + } + return true; + } + + // 'public'? + private static boolean functionDefinition_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionDefinition_1")) return false; + consumeToken(b, PUBLIC); + return true; + } + + // parameterList? + private static boolean functionDefinition_5(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionDefinition_5")) return false; + parameterList(b, l + 1); + return true; + } + + // returnParameters? + private static boolean functionDefinition_7(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionDefinition_7")) return false; + returnParameters(b, l + 1); + return true; + } + + // ('throws' Identifier)? + private static boolean functionDefinition_8(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionDefinition_8")) return false; + functionDefinition_8_0(b, l + 1); + return true; + } + + // 'throws' Identifier + private static boolean functionDefinition_8_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionDefinition_8_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, THROWS, IDENTIFIER); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // functionName argumentList ';' + public static boolean functionInvocationStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionInvocationStatement")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = functionName(b, l + 1); + r = r && argumentList(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, FUNCTION_INVOCATION_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // (packageName ':')? Identifier + public static boolean functionName(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionName")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = functionName_0(b, l + 1); + r = r && consumeToken(b, IDENTIFIER); + exit_section_(b, m, FUNCTION_NAME, r); + return r; + } + + // (packageName ':')? + private static boolean functionName_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionName_0")) return false; + functionName_0_0(b, l + 1); + return true; + } + + // packageName ':' + private static boolean functionName_0_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionName_0_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = packageName(b, l + 1); + r = r && consumeToken(b, COLON); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'if' '(' expression ')' '{' statement* '}' elseIfClause* elseClause? + public static boolean ifElseStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "ifElseStatement")) return false; + if (!nextTokenIs(b, IF)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IF, LPAREN); + r = r && expression(b, l + 1); + r = r && consumeTokens(b, 0, RPAREN, LBRACE); + r = r && ifElseStatement_5(b, l + 1); + r = r && consumeToken(b, RBRACE); + r = r && ifElseStatement_7(b, l + 1); + r = r && ifElseStatement_8(b, l + 1); + exit_section_(b, m, IF_ELSE_STATEMENT, r); + return r; + } + + // statement* + private static boolean ifElseStatement_5(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "ifElseStatement_5")) return false; + int c = current_position_(b); + while (true) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "ifElseStatement_5", c)) break; + c = current_position_(b); + } + return true; + } + + // elseIfClause* + private static boolean ifElseStatement_7(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "ifElseStatement_7")) return false; + int c = current_position_(b); + while (true) { + if (!elseIfClause(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "ifElseStatement_7", c)) break; + c = current_position_(b); + } + return true; + } + + // elseClause? + private static boolean ifElseStatement_8(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "ifElseStatement_8")) return false; + elseClause(b, l + 1); + return true; + } + + /* ********************************************************** */ + // 'import' packageName ('as' Identifier)? ';' + public static boolean importDeclaration(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "importDeclaration")) return false; + if (!nextTokenIs(b, IMPORT)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, IMPORT); + r = r && packageName(b, l + 1); + r = r && importDeclaration_2(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, IMPORT_DECLARATION, r); + return r; + } + + // ('as' Identifier)? + private static boolean importDeclaration_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "importDeclaration_2")) return false; + importDeclaration_2_0(b, l + 1); + return true; + } + + // 'as' Identifier + private static boolean importDeclaration_2_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "importDeclaration_2_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, AS, IDENTIFIER); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'iterate' '(' typeName Identifier ':' expression ')' '{' statement+ '}' + public static boolean iterateStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "iterateStatement")) return false; + if (!nextTokenIs(b, ITERATE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, ITERATE, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, COLON); + r = r && expression(b, l + 1); + r = r && consumeTokens(b, 0, RPAREN, LBRACE); + r = r && iterateStatement_8(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, ITERATE_STATEMENT, r); + return r; + } + + // statement+ + private static boolean iterateStatement_8(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "iterateStatement_8")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "iterateStatement_8", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'join' '(' joinConditions ')' '(' typeName Identifier ')' '{' statement+ '}' + public static boolean joinClause(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinClause")) return false; + if (!nextTokenIs(b, JOIN)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, JOIN, LPAREN); + r = r && joinConditions(b, l + 1); + r = r && consumeTokens(b, 0, RPAREN, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, RPAREN, LBRACE); + r = r && joinClause_9(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, JOIN_CLAUSE, r); + return r; + } + + // statement+ + private static boolean joinClause_9(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinClause_9")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "joinClause_9", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'any' IntegerLiteral (Identifier (',' Identifier)*)? + // | 'all' (Identifier (',' Identifier)*)? + public static boolean joinConditions(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions")) return false; + if (!nextTokenIs(b, "", ALL, ANY)) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, JOIN_CONDITIONS, ""); + r = joinConditions_0(b, l + 1); + if (!r) r = joinConditions_1(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // 'any' IntegerLiteral (Identifier (',' Identifier)*)? + private static boolean joinConditions_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, ANY, INTEGERLITERAL); + r = r && joinConditions_0_2(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (Identifier (',' Identifier)*)? + private static boolean joinConditions_0_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_0_2")) return false; + joinConditions_0_2_0(b, l + 1); + return true; + } + + // Identifier (',' Identifier)* + private static boolean joinConditions_0_2_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_0_2_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, IDENTIFIER); + r = r && joinConditions_0_2_0_1(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (',' Identifier)* + private static boolean joinConditions_0_2_0_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_0_2_0_1")) return false; + int c = current_position_(b); + while (true) { + if (!joinConditions_0_2_0_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "joinConditions_0_2_0_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' Identifier + private static boolean joinConditions_0_2_0_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_0_2_0_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, COMMA, IDENTIFIER); + exit_section_(b, m, null, r); + return r; + } + + // 'all' (Identifier (',' Identifier)*)? + private static boolean joinConditions_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_1")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, ALL); + r = r && joinConditions_1_1(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (Identifier (',' Identifier)*)? + private static boolean joinConditions_1_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_1_1")) return false; + joinConditions_1_1_0(b, l + 1); + return true; + } + + // Identifier (',' Identifier)* + private static boolean joinConditions_1_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_1_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, IDENTIFIER); + r = r && joinConditions_1_1_0_1(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // (',' Identifier)* + private static boolean joinConditions_1_1_0_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_1_1_0_1")) return false; + int c = current_position_(b); + while (true) { + if (!joinConditions_1_1_0_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "joinConditions_1_1_0_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' Identifier + private static boolean joinConditions_1_1_0_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "joinConditions_1_1_0_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, COMMA, IDENTIFIER); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // IntegerLiteral + // | FloatingPointLiteral + // | QuotedStringLiteral + // | BooleanLiteral + // | NullLiteral + public static boolean literalValue(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "literalValue")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, LITERAL_VALUE, ""); + r = consumeToken(b, INTEGERLITERAL); + if (!r) r = consumeToken(b, FLOATINGPOINTLITERAL); + if (!r) r = consumeToken(b, QUOTEDSTRINGLITERAL); + if (!r) r = consumeToken(b, BOOLEANLITERAL); + if (!r) r = NullLiteral(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + /* ********************************************************** */ + // QuotedStringLiteral ':' expression + public static boolean mapInitKeyValue(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "mapInitKeyValue")) return false; + if (!nextTokenIs(b, QUOTEDSTRINGLITERAL)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, QUOTEDSTRINGLITERAL, COLON); + r = r && expression(b, l + 1); + exit_section_(b, m, MAP_INIT_KEY_VALUE, r); + return r; + } + + /* ********************************************************** */ + // mapInitKeyValue (',' mapInitKeyValue)* + public static boolean mapInitKeyValueList(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "mapInitKeyValueList")) return false; + if (!nextTokenIs(b, QUOTEDSTRINGLITERAL)) return false; + boolean r; + Marker m = enter_section_(b); + r = mapInitKeyValue(b, l + 1); + r = r && mapInitKeyValueList_1(b, l + 1); + exit_section_(b, m, MAP_INIT_KEY_VALUE_LIST, r); + return r; + } + + // (',' mapInitKeyValue)* + private static boolean mapInitKeyValueList_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "mapInitKeyValueList_1")) return false; + int c = current_position_(b); + while (true) { + if (!mapInitKeyValueList_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "mapInitKeyValueList_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' mapInitKeyValue + private static boolean mapInitKeyValueList_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "mapInitKeyValueList_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && mapInitKeyValue(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // typeName Identifier + public static boolean namedParameter(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "namedParameter")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = typeName(b, l + 1); + r = r && consumeToken(b, IDENTIFIER); + exit_section_(b, m, NAMED_PARAMETER, r); + return r; + } + + /* ********************************************************** */ + // namedParameter (',' namedParameter)* + public static boolean namedParameterList(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "namedParameterList")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = namedParameter(b, l + 1); + r = r && namedParameterList_1(b, l + 1); + exit_section_(b, m, NAMED_PARAMETER_LIST, r); + return r; + } + + // (',' namedParameter)* + private static boolean namedParameterList_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "namedParameterList_1")) return false; + int c = current_position_(b); + while (true) { + if (!namedParameterList_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "namedParameterList_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' namedParameter + private static boolean namedParameterList_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "namedParameterList_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && namedParameter(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'package' packageName ';' + public static boolean packageDeclaration(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "packageDeclaration")) return false; + if (!nextTokenIs(b, PACKAGE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, PACKAGE); + r = r && packageName(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, PACKAGE_DECLARATION, r); + return r; + } + + /* ********************************************************** */ + // Identifier ('.' Identifier)* + public static boolean packageName(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "packageName")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, IDENTIFIER); + r = r && packageName_1(b, l + 1); + exit_section_(b, m, PACKAGE_NAME, r); + return r; + } + + // ('.' Identifier)* + private static boolean packageName_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "packageName_1")) return false; + int c = current_position_(b); + while (true) { + if (!packageName_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "packageName_1", c)) break; + c = current_position_(b); + } + return true; + } + + // '.' Identifier + private static boolean packageName_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "packageName_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, DOT, IDENTIFIER); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // annotation* typeName Identifier + public static boolean parameter(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "parameter")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, PARAMETER, ""); + r = parameter_0(b, l + 1); + r = r && typeName(b, l + 1); + r = r && consumeToken(b, IDENTIFIER); + exit_section_(b, l, m, r, false, null); + return r; + } + + // annotation* + private static boolean parameter_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "parameter_0")) return false; + int c = current_position_(b); + while (true) { + if (!annotation(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "parameter_0", c)) break; + c = current_position_(b); + } + return true; + } + + /* ********************************************************** */ + // parameter (',' parameter )* + public static boolean parameterList(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "parameterList")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, PARAMETER_LIST, ""); + r = parameter(b, l + 1); + r = r && parameterList_1(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // (',' parameter )* + private static boolean parameterList_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "parameterList_1")) return false; + int c = current_position_(b); + while (true) { + if (!parameterList_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "parameterList_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' parameter + private static boolean parameterList_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "parameterList_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && parameter(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // packageName ':' Identifier + public static boolean qualifiedReference(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "qualifiedReference")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = packageName(b, l + 1); + r = r && consumeTokens(b, 0, COLON, IDENTIFIER); + exit_section_(b, m, QUALIFIED_REFERENCE, r); + return r; + } + + /* ********************************************************** */ + // packageName ':' unqualifiedTypeName + public static boolean qualifiedTypeName(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "qualifiedTypeName")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = packageName(b, l + 1); + r = r && consumeToken(b, COLON); + r = r && unqualifiedTypeName(b, l + 1); + exit_section_(b, m, QUALIFIED_TYPE_NAME, r); + return r; + } + + /* ********************************************************** */ + // 'reply' expression ';' + public static boolean replyStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "replyStatement")) return false; + if (!nextTokenIs(b, REPLY)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, REPLY); + r = r && expression(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, REPLY_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // annotation* 'resource' Identifier '(' parameterList ')' functionBody + public static boolean resourceDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "resourceDefinition")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, RESOURCE_DEFINITION, ""); + r = resourceDefinition_0(b, l + 1); + r = r && consumeTokens(b, 0, RESOURCE, IDENTIFIER, LPAREN); + r = r && parameterList(b, l + 1); + r = r && consumeToken(b, RPAREN); + r = r && functionBody(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // annotation* + private static boolean resourceDefinition_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "resourceDefinition_0")) return false; + int c = current_position_(b); + while (true) { + if (!annotation(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "resourceDefinition_0", c)) break; + c = current_position_(b); + } + return true; + } + + /* ********************************************************** */ + // '(' (namedParameterList | returnTypeList) ')' + public static boolean returnParameters(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "returnParameters")) return false; + if (!nextTokenIs(b, LPAREN)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && returnParameters_1(b, l + 1); + r = r && consumeToken(b, RPAREN); + exit_section_(b, m, RETURN_PARAMETERS, r); + return r; + } + + // namedParameterList | returnTypeList + private static boolean returnParameters_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "returnParameters_1")) return false; + boolean r; + Marker m = enter_section_(b); + r = namedParameterList(b, l + 1); + if (!r) r = returnTypeList(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'return' expressionList? ';' + public static boolean returnStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "returnStatement")) return false; + if (!nextTokenIs(b, RETURN)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, RETURN); + r = r && returnStatement_1(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, RETURN_STATEMENT, r); + return r; + } + + // expressionList? + private static boolean returnStatement_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "returnStatement_1")) return false; + expressionList(b, l + 1); + return true; + } + + /* ********************************************************** */ + // typeName (',' typeName)* + public static boolean returnTypeList(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "returnTypeList")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = typeName(b, l + 1); + r = r && returnTypeList_1(b, l + 1); + exit_section_(b, m, RETURN_TYPE_LIST, r); + return r; + } + + // (',' typeName)* + private static boolean returnTypeList_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "returnTypeList_1")) return false; + int c = current_position_(b); + while (true) { + if (!returnTypeList_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "returnTypeList_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' typeName + private static boolean returnTypeList_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "returnTypeList_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && typeName(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // '{' serviceBodyDeclaration '}' + public static boolean serviceBody(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "serviceBody")) return false; + if (!nextTokenIs(b, LBRACE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACE); + r = r && serviceBodyDeclaration(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, SERVICE_BODY, r); + return r; + } + + /* ********************************************************** */ + // connectorDeclaration* variableDeclaration* resourceDefinition+ + public static boolean serviceBodyDeclaration(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "serviceBodyDeclaration")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, SERVICE_BODY_DECLARATION, ""); + r = serviceBodyDeclaration_0(b, l + 1); + r = r && serviceBodyDeclaration_1(b, l + 1); + r = r && serviceBodyDeclaration_2(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // connectorDeclaration* + private static boolean serviceBodyDeclaration_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "serviceBodyDeclaration_0")) return false; + int c = current_position_(b); + while (true) { + if (!connectorDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "serviceBodyDeclaration_0", c)) break; + c = current_position_(b); + } + return true; + } + + // variableDeclaration* + private static boolean serviceBodyDeclaration_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "serviceBodyDeclaration_1")) return false; + int c = current_position_(b); + while (true) { + if (!variableDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "serviceBodyDeclaration_1", c)) break; + c = current_position_(b); + } + return true; + } + + // resourceDefinition+ + private static boolean serviceBodyDeclaration_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "serviceBodyDeclaration_2")) return false; + boolean r; + Marker m = enter_section_(b); + r = resourceDefinition(b, l + 1); + int c = current_position_(b); + while (r) { + if (!resourceDefinition(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "serviceBodyDeclaration_2", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // annotation* 'service' Identifier serviceBody + public static boolean serviceDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "serviceDefinition")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, SERVICE_DEFINITION, ""); + r = serviceDefinition_0(b, l + 1); + r = r && consumeTokens(b, 0, SERVICE, IDENTIFIER); + r = r && serviceBody(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // annotation* + private static boolean serviceDefinition_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "serviceDefinition_0")) return false; + int c = current_position_(b); + while (true) { + if (!annotation(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "serviceDefinition_0", c)) break; + c = current_position_(b); + } + return true; + } + + /* ********************************************************** */ + // Identifier + public static boolean simpleType(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "simpleType")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, IDENTIFIER); + exit_section_(b, m, SIMPLE_TYPE, r); + return r; + } + + /* ********************************************************** */ + // Identifier '[' ']' + public static boolean simpleTypeArray(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "simpleTypeArray")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LBRACK, RBRACK); + exit_section_(b, m, SIMPLE_TYPE_ARRAY, r); + return r; + } + + /* ********************************************************** */ + // Identifier '~' + public static boolean simpleTypeIterate(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "simpleTypeIterate")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, TILDE); + exit_section_(b, m, SIMPLE_TYPE_ITERATE, r); + return r; + } + + /* ********************************************************** */ + // functionInvocationStatement + // | ifElseStatement + // | iterateStatement + // | whileStatement + // | breakStatement + // | forkJoinStatement + // | tryCatchStatement + // | throwStatement + // | returnStatement + // | replyStatement + // | workerInteractionStatement + // | commentStatement + // | actionInvocationStatement + // | assignmentStatement + public static boolean statement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "statement")) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, STATEMENT, ""); + r = functionInvocationStatement(b, l + 1); + if (!r) r = ifElseStatement(b, l + 1); + if (!r) r = iterateStatement(b, l + 1); + if (!r) r = whileStatement(b, l + 1); + if (!r) r = breakStatement(b, l + 1); + if (!r) r = forkJoinStatement(b, l + 1); + if (!r) r = tryCatchStatement(b, l + 1); + if (!r) r = throwStatement(b, l + 1); + if (!r) r = returnStatement(b, l + 1); + if (!r) r = replyStatement(b, l + 1); + if (!r) r = workerInteractionStatement(b, l + 1); + if (!r) r = commentStatement(b, l + 1); + if (!r) r = actionInvocationStatement(b, l + 1); + if (!r) r = assignmentStatement(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + /* ********************************************************** */ + // 'public'? 'type' Identifier structDefinitionBody + public static boolean structDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "structDefinition")) return false; + if (!nextTokenIs(b, "", PUBLIC, TYPE)) return false; + boolean r; + Marker m = enter_section_(b, l, _NONE_, STRUCT_DEFINITION, ""); + r = structDefinition_0(b, l + 1); + r = r && consumeTokens(b, 0, TYPE, IDENTIFIER); + r = r && structDefinitionBody(b, l + 1); + exit_section_(b, l, m, r, false, null); + return r; + } + + // 'public'? + private static boolean structDefinition_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "structDefinition_0")) return false; + consumeToken(b, PUBLIC); + return true; + } + + /* ********************************************************** */ + // '{' (typeName Identifier ';')+ '}' + public static boolean structDefinitionBody(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "structDefinitionBody")) return false; + if (!nextTokenIs(b, LBRACE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACE); + r = r && structDefinitionBody_1(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, STRUCT_DEFINITION_BODY, r); + return r; + } + + // (typeName Identifier ';')+ + private static boolean structDefinitionBody_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "structDefinitionBody_1")) return false; + boolean r; + Marker m = enter_section_(b); + r = structDefinitionBody_1_0(b, l + 1); + int c = current_position_(b); + while (r) { + if (!structDefinitionBody_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "structDefinitionBody_1", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + // typeName Identifier ';' + private static boolean structDefinitionBody_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "structDefinitionBody_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, SEMI); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'throw' expression ';' + public static boolean throwStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "throwStatement")) return false; + if (!nextTokenIs(b, THROW)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, THROW); + r = r && expression(b, l + 1); + r = r && consumeToken(b, SEMI); + exit_section_(b, m, THROW_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // 'timeout' '(' expression ')' '(' typeName Identifier ')' '{' statement+ '}' + public static boolean timeoutClause(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "timeoutClause")) return false; + if (!nextTokenIs(b, TIMEOUT)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, TIMEOUT, LPAREN); + r = r && expression(b, l + 1); + r = r && consumeTokens(b, 0, RPAREN, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, RPAREN, LBRACE); + r = r && timeoutClause_9(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, TIMEOUT_CLAUSE, r); + return r; + } + + // statement+ + private static boolean timeoutClause_9(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "timeoutClause_9")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "timeoutClause_9", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // Identifier '->' Identifier ';' + public static boolean triggerWorker(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "triggerWorker")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, SENDARROW, IDENTIFIER, SEMI); + exit_section_(b, m, TRIGGER_WORKER, r); + return r; + } + + /* ********************************************************** */ + // 'try' '{' statement+ '}' catchClause + public static boolean tryCatchStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "tryCatchStatement")) return false; + if (!nextTokenIs(b, TRY)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, TRY, LBRACE); + r = r && tryCatchStatement_2(b, l + 1); + r = r && consumeToken(b, RBRACE); + r = r && catchClause(b, l + 1); + exit_section_(b, m, TRY_CATCH_STATEMENT, r); + return r; + } + + // statement+ + private static boolean tryCatchStatement_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "tryCatchStatement_2")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "tryCatchStatement_2", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // simpleType + // | withFullSchemaType + // | withSchemaIdType + // | withScheamURLType + public static boolean typeConverterTypes(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "typeConverterTypes")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = simpleType(b, l + 1); + if (!r) r = withFullSchemaType(b, l + 1); + if (!r) r = withSchemaIdType(b, l + 1); + if (!r) r = withScheamURLType(b, l + 1); + exit_section_(b, m, TYPE_CONVERTER_TYPES, r); + return r; + } + + /* ********************************************************** */ + // '{' variableDeclaration* statement+ '}' + public static boolean typeConvertorBody(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "typeConvertorBody")) return false; + if (!nextTokenIs(b, LBRACE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LBRACE); + r = r && typeConvertorBody_1(b, l + 1); + r = r && typeConvertorBody_2(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, TYPE_CONVERTOR_BODY, r); + return r; + } + + // variableDeclaration* + private static boolean typeConvertorBody_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "typeConvertorBody_1")) return false; + int c = current_position_(b); + while (true) { + if (!variableDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "typeConvertorBody_1", c)) break; + c = current_position_(b); + } + return true; + } + + // statement+ + private static boolean typeConvertorBody_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "typeConvertorBody_2")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "typeConvertorBody_2", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'typeconvertor' Identifier '(' typeConverterTypes Identifier ')' '('typeConverterTypes')' typeConvertorBody + public static boolean typeConvertorDefinition(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "typeConvertorDefinition")) return false; + if (!nextTokenIs(b, TYPECONVERTOR)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, TYPECONVERTOR, IDENTIFIER, LPAREN); + r = r && typeConverterTypes(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, RPAREN, LPAREN); + r = r && typeConverterTypes(b, l + 1); + r = r && consumeToken(b, RPAREN); + r = r && typeConvertorBody(b, l + 1); + exit_section_(b, m, TYPE_CONVERTOR_DEFINITION, r); + return r; + } + + /* ********************************************************** */ + // unqualifiedTypeName + // | qualifiedTypeName + public static boolean typeName(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "typeName")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = unqualifiedTypeName(b, l + 1); + if (!r) r = qualifiedTypeName(b, l + 1); + exit_section_(b, m, TYPE_NAME, r); + return r; + } + + /* ********************************************************** */ + // simpleTypeArray + // | simpleTypeIterate + // | withFullSchemaType + // | withFullSchemaTypeArray + // | withFullSchemaTypeIterate + // | withScheamURLType + // | withSchemaURLTypeArray + // | withSchemaURLTypeIterate + // | withSchemaIdType + // | withScheamIdTypeArray + // | withScheamIdTypeIterate + // | simpleType + public static boolean unqualifiedTypeName(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "unqualifiedTypeName")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = simpleTypeArray(b, l + 1); + if (!r) r = simpleTypeIterate(b, l + 1); + if (!r) r = withFullSchemaType(b, l + 1); + if (!r) r = withFullSchemaTypeArray(b, l + 1); + if (!r) r = withFullSchemaTypeIterate(b, l + 1); + if (!r) r = withScheamURLType(b, l + 1); + if (!r) r = withSchemaURLTypeArray(b, l + 1); + if (!r) r = withSchemaURLTypeIterate(b, l + 1); + if (!r) r = withSchemaIdType(b, l + 1); + if (!r) r = withScheamIdTypeArray(b, l + 1); + if (!r) r = withScheamIdTypeIterate(b, l + 1); + if (!r) r = simpleType(b, l + 1); + exit_section_(b, m, UNQUALIFIED_TYPE_NAME, r); + return r; + } + + /* ********************************************************** */ + // typeName Identifier ';' + public static boolean variableDeclaration(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "variableDeclaration")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, SEMI); + exit_section_(b, m, VARIABLE_DECLARATION, r); + return r; + } + + /* ********************************************************** */ + // Identifier '['expression']' // mapArrayVariableIdentifier// array and map reference + // // | variableReference ('.' variableReference)+ // structFieldIdentifier// struct field reference + // | Identifier + public static boolean variableReference(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "variableReference")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = variableReference_0(b, l + 1); + if (!r) r = consumeToken(b, IDENTIFIER); + exit_section_(b, m, VARIABLE_REFERENCE, r); + return r; + } + + // Identifier '['expression']' + private static boolean variableReference_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "variableReference_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LBRACK); + r = r && expression(b, l + 1); + r = r && consumeToken(b, RBRACK); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // variableReference (',' variableReference)* + public static boolean variableReferenceList(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "variableReferenceList")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = variableReference(b, l + 1); + r = r && variableReferenceList_1(b, l + 1); + exit_section_(b, m, VARIABLE_REFERENCE_LIST, r); + return r; + } + + // (',' variableReference)* + private static boolean variableReferenceList_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "variableReferenceList_1")) return false; + int c = current_position_(b); + while (true) { + if (!variableReferenceList_1_0(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "variableReferenceList_1", c)) break; + c = current_position_(b); + } + return true; + } + + // ',' variableReference + private static boolean variableReferenceList_1_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "variableReferenceList_1_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, COMMA); + r = r && variableReference(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // 'while' '(' expression ')' '{' statement+ '}' + public static boolean whileStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "whileStatement")) return false; + if (!nextTokenIs(b, WHILE)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, WHILE, LPAREN); + r = r && expression(b, l + 1); + r = r && consumeTokens(b, 0, RPAREN, LBRACE); + r = r && whileStatement_5(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, WHILE_STATEMENT, r); + return r; + } + + // statement+ + private static boolean whileStatement_5(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "whileStatement_5")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "whileStatement_5", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' + public static boolean withFullSchemaType(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withFullSchemaType")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, LBRACE, QUOTEDSTRINGLITERAL, RBRACE, IDENTIFIER, GT); + exit_section_(b, m, WITH_FULL_SCHEMA_TYPE, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '[' ']' + public static boolean withFullSchemaTypeArray(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withFullSchemaTypeArray")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, LBRACE, QUOTEDSTRINGLITERAL, RBRACE, IDENTIFIER, GT, LBRACK, RBRACK); + exit_section_(b, m, WITH_FULL_SCHEMA_TYPE_ARRAY, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '~' + public static boolean withFullSchemaTypeIterate(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withFullSchemaTypeIterate")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, LBRACE, QUOTEDSTRINGLITERAL, RBRACE, IDENTIFIER, GT, TILDE); + exit_section_(b, m, WITH_FULL_SCHEMA_TYPE_ITERATE, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' Identifier '>' '[' ']' + public static boolean withScheamIdTypeArray(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withScheamIdTypeArray")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, IDENTIFIER, GT, LBRACK, RBRACK); + exit_section_(b, m, WITH_SCHEAM_ID_TYPE_ARRAY, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' Identifier '>' '~' + public static boolean withScheamIdTypeIterate(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withScheamIdTypeIterate")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, IDENTIFIER, GT, TILDE); + exit_section_(b, m, WITH_SCHEAM_ID_TYPE_ITERATE, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' '{' QuotedStringLiteral '}' '>' + public static boolean withScheamURLType(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withScheamURLType")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, LBRACE, QUOTEDSTRINGLITERAL, RBRACE, GT); + exit_section_(b, m, WITH_SCHEAM_URL_TYPE, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' Identifier '>' + public static boolean withSchemaIdType(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withSchemaIdType")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, IDENTIFIER, GT); + exit_section_(b, m, WITH_SCHEMA_ID_TYPE, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' '{' QuotedStringLiteral '}' '>' '[' ']' + public static boolean withSchemaURLTypeArray(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withSchemaURLTypeArray")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, LBRACE, QUOTEDSTRINGLITERAL, RBRACE, GT, LBRACK, RBRACK); + exit_section_(b, m, WITH_SCHEMA_URL_TYPE_ARRAY, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<' '{' QuotedStringLiteral '}' '>' '~' + public static boolean withSchemaURLTypeIterate(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "withSchemaURLTypeIterate")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, LT, LBRACE, QUOTEDSTRINGLITERAL, RBRACE, GT, TILDE); + exit_section_(b, m, WITH_SCHEMA_URL_TYPE_ITERATE, r); + return r; + } + + /* ********************************************************** */ + // 'worker' Identifier '(' typeName Identifier ')' '{' variableDeclaration* statement+ '}' + public static boolean workerDeclaration(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "workerDeclaration")) return false; + if (!nextTokenIs(b, WORKER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, WORKER, IDENTIFIER, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeTokens(b, 0, IDENTIFIER, RPAREN, LBRACE); + r = r && workerDeclaration_7(b, l + 1); + r = r && workerDeclaration_8(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, WORKER_DECLARATION, r); + return r; + } + + // variableDeclaration* + private static boolean workerDeclaration_7(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "workerDeclaration_7")) return false; + int c = current_position_(b); + while (true) { + if (!variableDeclaration(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "workerDeclaration_7", c)) break; + c = current_position_(b); + } + return true; + } + + // statement+ + private static boolean workerDeclaration_8(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "workerDeclaration_8")) return false; + boolean r; + Marker m = enter_section_(b); + r = statement(b, l + 1); + int c = current_position_(b); + while (r) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "workerDeclaration_8", c)) break; + c = current_position_(b); + } + exit_section_(b, m, null, r); + return r; + } + + /* ********************************************************** */ + // triggerWorker + // | workerReply + public static boolean workerInteractionStatement(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "workerInteractionStatement")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = triggerWorker(b, l + 1); + if (!r) r = workerReply(b, l + 1); + exit_section_(b, m, WORKER_INTERACTION_STATEMENT, r); + return r; + } + + /* ********************************************************** */ + // Identifier '<-' Identifier ';' + public static boolean workerReply(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "workerReply")) return false; + if (!nextTokenIs(b, IDENTIFIER)) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeTokens(b, 0, IDENTIFIER, RECEIVEARROW, IDENTIFIER, SEMI); + exit_section_(b, m, WORKER_REPLY, r); + return r; + } + +} diff --git a/gen/org/ballerinalang/psi/BallerinaActionDefinition.java b/gen/org/ballerinalang/psi/BallerinaActionDefinition.java new file mode 100644 index 000000000000..7410b15d41e2 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaActionDefinition.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaActionDefinition extends PsiElement { + + @NotNull + List getAnnotationList(); + + @NotNull + BallerinaFunctionBody getFunctionBody(); + + @NotNull + BallerinaParameterList getParameterList(); + + @Nullable + BallerinaReturnParameters getReturnParameters(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaActionInvocation.java b/gen/org/ballerinalang/psi/BallerinaActionInvocation.java new file mode 100644 index 000000000000..a9c263da4c9d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaActionInvocation.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaActionInvocation extends PsiElement { + + @NotNull + BallerinaPackageName getPackageName(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java b/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java new file mode 100644 index 000000000000..e63b312c4c53 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaActionInvocationStatement extends PsiElement { + + @NotNull + BallerinaActionInvocation getActionInvocation(); + + @NotNull + BallerinaArgumentList getArgumentList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaAnnotation.java b/gen/org/ballerinalang/psi/BallerinaAnnotation.java new file mode 100644 index 000000000000..400cdb51233a --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaAnnotation.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaAnnotation extends PsiElement { + + @NotNull + BallerinaAnnotationName getAnnotationName(); + + @Nullable + BallerinaElementValue getElementValue(); + + @Nullable + BallerinaElementValuePairs getElementValuePairs(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaAnnotationName.java b/gen/org/ballerinalang/psi/BallerinaAnnotationName.java new file mode 100644 index 000000000000..5f017fb2529d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaAnnotationName.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaAnnotationName extends PsiElement { + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaArgumentList.java b/gen/org/ballerinalang/psi/BallerinaArgumentList.java new file mode 100644 index 000000000000..b982b9190ef6 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaArgumentList.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaArgumentList extends PsiElement { + + @Nullable + BallerinaExpressionList getExpressionList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java b/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java new file mode 100644 index 000000000000..163245f247e2 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaAssignmentStatement extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + + @NotNull + BallerinaVariableReferenceList getVariableReferenceList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaBacktickString.java b/gen/org/ballerinalang/psi/BallerinaBacktickString.java new file mode 100644 index 000000000000..c866148c4352 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaBacktickString.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaBacktickString extends PsiElement { + + @NotNull + PsiElement getValidBackTickStringCharacters(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaBreakStatement.java b/gen/org/ballerinalang/psi/BallerinaBreakStatement.java new file mode 100644 index 000000000000..07d9792c7805 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaBreakStatement.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaBreakStatement extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/BallerinaCatchClause.java b/gen/org/ballerinalang/psi/BallerinaCatchClause.java new file mode 100644 index 000000000000..63f87d8893b2 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaCatchClause.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaCatchClause extends PsiElement { + + @NotNull + List getStatementList(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaCommentStatement.java b/gen/org/ballerinalang/psi/BallerinaCommentStatement.java new file mode 100644 index 000000000000..3449b24c9e83 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaCommentStatement.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaCommentStatement extends PsiElement { + + @NotNull + PsiElement getLineComment(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorBody.java b/gen/org/ballerinalang/psi/BallerinaConnectorBody.java new file mode 100644 index 000000000000..b761db80a1d4 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaConnectorBody.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaConnectorBody extends PsiElement { + + @NotNull + List getActionDefinitionList(); + + @NotNull + List getConnectorDeclarationList(); + + @NotNull + List getVariableDeclarationList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java b/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java new file mode 100644 index 000000000000..04b7aaae59c7 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaConnectorDeclaration extends PsiElement { + + @Nullable + BallerinaExpressionList getExpressionList(); + + @NotNull + List getQualifiedReferenceList(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java b/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java new file mode 100644 index 000000000000..810db036522d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaConnectorDefinition extends PsiElement { + + @NotNull + List getAnnotationList(); + + @NotNull + BallerinaConnectorBody getConnectorBody(); + + @NotNull + BallerinaParameterList getParameterList(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java b/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java new file mode 100644 index 000000000000..2c1494e7be9c --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaConstantDefinition extends PsiElement { + + @NotNull + BallerinaLiteralValue getLiteralValue(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElementValue.java b/gen/org/ballerinalang/psi/BallerinaElementValue.java new file mode 100644 index 000000000000..b4a9eab2e9cb --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElementValue.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElementValue extends PsiElement { + + @Nullable + BallerinaAnnotation getAnnotation(); + + @Nullable + BallerinaElementValueArrayInitializer getElementValueArrayInitializer(); + + @Nullable + BallerinaExpression getExpression(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java b/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java new file mode 100644 index 000000000000..fd27f866eeb4 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElementValueArrayInitializer extends PsiElement { + + @NotNull + List getElementValueList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElementValuePair.java b/gen/org/ballerinalang/psi/BallerinaElementValuePair.java new file mode 100644 index 000000000000..91797c1152ce --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElementValuePair.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElementValuePair extends PsiElement { + + @NotNull + BallerinaElementValue getElementValue(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java b/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java new file mode 100644 index 000000000000..7e51f50fa212 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElementValuePairs extends PsiElement { + + @NotNull + List getElementValuePairList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElseClause.java b/gen/org/ballerinalang/psi/BallerinaElseClause.java new file mode 100644 index 000000000000..081e6684c420 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElseClause.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElseClause extends PsiElement { + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClause.java b/gen/org/ballerinalang/psi/BallerinaElseIfClause.java new file mode 100644 index 000000000000..e857b0725cb1 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElseIfClause.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElseIfClause extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaExpression.java b/gen/org/ballerinalang/psi/BallerinaExpression.java new file mode 100644 index 000000000000..e7c0e93f48d6 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaExpression.java @@ -0,0 +1,40 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaExpression extends PsiElement { + + @NotNull + List getActionInvocationList(); + + @NotNull + List getArgumentListList(); + + @NotNull + List getBacktickStringList(); + + @NotNull + List getExpressionListList(); + + @NotNull + List getFunctionNameList(); + + @NotNull + List getLiteralValueList(); + + @NotNull + List getMapInitKeyValueListList(); + + @NotNull + List getPackageNameList(); + + @Nullable + BallerinaTypeName getTypeName(); + + @NotNull + List getVariableReferenceList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaExpressionList.java b/gen/org/ballerinalang/psi/BallerinaExpressionList.java new file mode 100644 index 000000000000..2bf78818c11e --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaExpressionList.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaExpressionList extends PsiElement { + + @NotNull + List getExpressionList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java b/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java new file mode 100644 index 000000000000..35d713a2fb57 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java @@ -0,0 +1,25 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaForkJoinStatement extends PsiElement { + + @Nullable + BallerinaJoinClause getJoinClause(); + + @Nullable + BallerinaTimeoutClause getTimeoutClause(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + List getWorkerDeclarationList(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionBody.java b/gen/org/ballerinalang/psi/BallerinaFunctionBody.java new file mode 100644 index 000000000000..b6aad9cb5ec1 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaFunctionBody.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaFunctionBody extends PsiElement { + + @NotNull + List getConnectorDeclarationList(); + + @NotNull + List getStatementList(); + + @NotNull + List getVariableDeclarationList(); + + @NotNull + List getWorkerDeclarationList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java b/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java new file mode 100644 index 000000000000..bafab940b19d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaFunctionDefinition extends PsiElement { + + @NotNull + List getAnnotationList(); + + @NotNull + BallerinaFunctionBody getFunctionBody(); + + @Nullable + BallerinaParameterList getParameterList(); + + @Nullable + BallerinaReturnParameters getReturnParameters(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java b/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java new file mode 100644 index 000000000000..832324b4104d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaFunctionInvocationStatement extends PsiElement { + + @NotNull + BallerinaArgumentList getArgumentList(); + + @NotNull + BallerinaFunctionName getFunctionName(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionName.java b/gen/org/ballerinalang/psi/BallerinaFunctionName.java new file mode 100644 index 000000000000..8f30999082f5 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaFunctionName.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaFunctionName extends PsiElement { + + @Nullable + BallerinaPackageName getPackageName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java b/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java new file mode 100644 index 000000000000..cdddf2a24ca0 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaIfElseStatement extends PsiElement { + + @Nullable + BallerinaElseClause getElseClause(); + + @NotNull + List getElseIfClauseList(); + + @NotNull + BallerinaExpression getExpression(); + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java b/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java new file mode 100644 index 000000000000..faf26932057c --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaImportDeclaration extends PsiElement { + + @NotNull + BallerinaPackageName getPackageName(); + + @Nullable + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaIterateStatement.java b/gen/org/ballerinalang/psi/BallerinaIterateStatement.java new file mode 100644 index 000000000000..6c7a927faaaa --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaIterateStatement.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaIterateStatement extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + + @NotNull + List getStatementList(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaJoinClause.java b/gen/org/ballerinalang/psi/BallerinaJoinClause.java new file mode 100644 index 000000000000..fcaedeb3b253 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaJoinClause.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaJoinClause extends PsiElement { + + @NotNull + BallerinaJoinConditions getJoinConditions(); + + @NotNull + List getStatementList(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaJoinConditions.java b/gen/org/ballerinalang/psi/BallerinaJoinConditions.java new file mode 100644 index 000000000000..ad09cb90151d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaJoinConditions.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaJoinConditions extends PsiElement { + + @Nullable + PsiElement getIntegerLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaLiteralValue.java b/gen/org/ballerinalang/psi/BallerinaLiteralValue.java new file mode 100644 index 000000000000..7caa470e370f --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaLiteralValue.java @@ -0,0 +1,25 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaLiteralValue extends PsiElement { + + @Nullable + BallerinaNullLiteral getNullLiteral(); + + @Nullable + PsiElement getBooleanLiteral(); + + @Nullable + PsiElement getFloatingPointLiteral(); + + @Nullable + PsiElement getIntegerLiteral(); + + @Nullable + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java new file mode 100644 index 000000000000..fdeeda52fb7e --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaMapInitKeyValue extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + + @NotNull + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java new file mode 100644 index 000000000000..437062a1b265 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaMapInitKeyValueList extends PsiElement { + + @NotNull + List getMapInitKeyValueList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaNamedParameter.java b/gen/org/ballerinalang/psi/BallerinaNamedParameter.java new file mode 100644 index 000000000000..543a9739eb26 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaNamedParameter.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaNamedParameter extends PsiElement { + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java b/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java new file mode 100644 index 000000000000..7198e238efcc --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaNamedParameterList extends PsiElement { + + @NotNull + List getNamedParameterList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaNullLiteral.java b/gen/org/ballerinalang/psi/BallerinaNullLiteral.java new file mode 100644 index 000000000000..9af4f430dd21 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaNullLiteral.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaNullLiteral extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java b/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java new file mode 100644 index 000000000000..83abbc5775dd --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaPackageDeclaration extends PsiElement { + + @NotNull + BallerinaPackageName getPackageName(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaPackageName.java b/gen/org/ballerinalang/psi/BallerinaPackageName.java new file mode 100644 index 000000000000..0aa4065bdc4b --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaPackageName.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaPackageName extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/BallerinaParameter.java b/gen/org/ballerinalang/psi/BallerinaParameter.java new file mode 100644 index 000000000000..8a913f7c41ac --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaParameter.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaParameter extends PsiElement { + + @NotNull + List getAnnotationList(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaParameterList.java b/gen/org/ballerinalang/psi/BallerinaParameterList.java new file mode 100644 index 000000000000..310bd1925593 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaParameterList.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaParameterList extends PsiElement { + + @NotNull + List getParameterList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java b/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java new file mode 100644 index 000000000000..fa0a6698a2cd --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaQualifiedReference extends PsiElement { + + @NotNull + BallerinaPackageName getPackageName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java b/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java new file mode 100644 index 000000000000..ff96d1c7f0d7 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaQualifiedTypeName extends PsiElement { + + @NotNull + BallerinaPackageName getPackageName(); + + @NotNull + BallerinaUnqualifiedTypeName getUnqualifiedTypeName(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaReplyStatement.java b/gen/org/ballerinalang/psi/BallerinaReplyStatement.java new file mode 100644 index 000000000000..11ca25fd3166 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaReplyStatement.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaReplyStatement extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java b/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java new file mode 100644 index 000000000000..e2ce998b7809 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaResourceDefinition extends PsiElement { + + @NotNull + List getAnnotationList(); + + @NotNull + BallerinaFunctionBody getFunctionBody(); + + @NotNull + BallerinaParameterList getParameterList(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaReturnParameters.java b/gen/org/ballerinalang/psi/BallerinaReturnParameters.java new file mode 100644 index 000000000000..d1259286bf4a --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaReturnParameters.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaReturnParameters extends PsiElement { + + @Nullable + BallerinaNamedParameterList getNamedParameterList(); + + @Nullable + BallerinaReturnTypeList getReturnTypeList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaReturnStatement.java b/gen/org/ballerinalang/psi/BallerinaReturnStatement.java new file mode 100644 index 000000000000..1885e0a26642 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaReturnStatement.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaReturnStatement extends PsiElement { + + @Nullable + BallerinaExpressionList getExpressionList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java b/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java new file mode 100644 index 000000000000..ab11e9c01cb2 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaReturnTypeList extends PsiElement { + + @NotNull + List getTypeNameList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaServiceBody.java b/gen/org/ballerinalang/psi/BallerinaServiceBody.java new file mode 100644 index 000000000000..6151c3dcc84f --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaServiceBody.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaServiceBody extends PsiElement { + + @NotNull + BallerinaServiceBodyDeclaration getServiceBodyDeclaration(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java b/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java new file mode 100644 index 000000000000..a0cdfebd2012 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaServiceBodyDeclaration extends PsiElement { + + @NotNull + List getConnectorDeclarationList(); + + @NotNull + List getResourceDefinitionList(); + + @NotNull + List getVariableDeclarationList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java b/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java new file mode 100644 index 000000000000..b795d906f48d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaServiceDefinition extends PsiElement { + + @NotNull + List getAnnotationList(); + + @NotNull + BallerinaServiceBody getServiceBody(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleType.java b/gen/org/ballerinalang/psi/BallerinaSimpleType.java new file mode 100644 index 000000000000..bad659ca5bf5 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaSimpleType.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaSimpleType extends PsiElement { + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java b/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java new file mode 100644 index 000000000000..bf6d5b245e3e --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaSimpleTypeArray extends PsiElement { + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java new file mode 100644 index 000000000000..c855c4fab165 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaSimpleTypeIterate extends PsiElement { + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaStatement.java b/gen/org/ballerinalang/psi/BallerinaStatement.java new file mode 100644 index 000000000000..ad8fffb07ff4 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaStatement.java @@ -0,0 +1,52 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaStatement extends PsiElement { + + @Nullable + BallerinaActionInvocationStatement getActionInvocationStatement(); + + @Nullable + BallerinaAssignmentStatement getAssignmentStatement(); + + @Nullable + BallerinaBreakStatement getBreakStatement(); + + @Nullable + BallerinaCommentStatement getCommentStatement(); + + @Nullable + BallerinaForkJoinStatement getForkJoinStatement(); + + @Nullable + BallerinaFunctionInvocationStatement getFunctionInvocationStatement(); + + @Nullable + BallerinaIfElseStatement getIfElseStatement(); + + @Nullable + BallerinaIterateStatement getIterateStatement(); + + @Nullable + BallerinaReplyStatement getReplyStatement(); + + @Nullable + BallerinaReturnStatement getReturnStatement(); + + @Nullable + BallerinaThrowStatement getThrowStatement(); + + @Nullable + BallerinaTryCatchStatement getTryCatchStatement(); + + @Nullable + BallerinaWhileStatement getWhileStatement(); + + @Nullable + BallerinaWorkerInteractionStatement getWorkerInteractionStatement(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaStructDefinition.java b/gen/org/ballerinalang/psi/BallerinaStructDefinition.java new file mode 100644 index 000000000000..98513fea1709 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaStructDefinition.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaStructDefinition extends PsiElement { + + @NotNull + BallerinaStructDefinitionBody getStructDefinitionBody(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java b/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java new file mode 100644 index 000000000000..ee3a85a4e9aa --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaStructDefinitionBody extends PsiElement { + + @NotNull + List getTypeNameList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaThrowStatement.java b/gen/org/ballerinalang/psi/BallerinaThrowStatement.java new file mode 100644 index 000000000000..e08778e91546 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaThrowStatement.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaThrowStatement extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java b/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java new file mode 100644 index 000000000000..18ab01a45ec6 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaTimeoutClause extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + + @NotNull + List getStatementList(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java b/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java new file mode 100644 index 000000000000..ef5a94cb8005 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaTriggerWorker extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java b/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java new file mode 100644 index 000000000000..b4658e82683f --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaTryCatchStatement extends PsiElement { + + @NotNull + BallerinaCatchClause getCatchClause(); + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java b/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java new file mode 100644 index 000000000000..ce32f2371b8a --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java @@ -0,0 +1,22 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaTypeConverterTypes extends PsiElement { + + @Nullable + BallerinaSimpleType getSimpleType(); + + @Nullable + BallerinaWithFullSchemaType getWithFullSchemaType(); + + @Nullable + BallerinaWithScheamURLType getWithScheamURLType(); + + @Nullable + BallerinaWithSchemaIdType getWithSchemaIdType(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java b/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java new file mode 100644 index 000000000000..84c67d793f33 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaTypeConvertorBody extends PsiElement { + + @NotNull + List getStatementList(); + + @NotNull + List getVariableDeclarationList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java b/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java new file mode 100644 index 000000000000..8819ad2167ef --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaTypeConvertorDefinition extends PsiElement { + + @NotNull + List getTypeConverterTypesList(); + + @NotNull + BallerinaTypeConvertorBody getTypeConvertorBody(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTypeName.java b/gen/org/ballerinalang/psi/BallerinaTypeName.java new file mode 100644 index 000000000000..85211bd527c3 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTypeName.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaTypeName extends PsiElement { + + @Nullable + BallerinaQualifiedTypeName getQualifiedTypeName(); + + @Nullable + BallerinaUnqualifiedTypeName getUnqualifiedTypeName(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaTypes.java b/gen/org/ballerinalang/psi/BallerinaTypes.java new file mode 100644 index 000000000000..1d8880e81b0c --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaTypes.java @@ -0,0 +1,430 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import com.intellij.psi.tree.IElementType; +import com.intellij.psi.PsiElement; +import com.intellij.lang.ASTNode; +import org.ballerinalang.psi.impl.*; + +public interface BallerinaTypes { + + IElementType ACTION_DEFINITION = new BallerinaElementType("ACTION_DEFINITION"); + IElementType ACTION_INVOCATION = new BallerinaElementType("ACTION_INVOCATION"); + IElementType ACTION_INVOCATION_STATEMENT = new BallerinaElementType("ACTION_INVOCATION_STATEMENT"); + IElementType ANNOTATION = new BallerinaElementType("ANNOTATION"); + IElementType ANNOTATION_NAME = new BallerinaElementType("ANNOTATION_NAME"); + IElementType ARGUMENT_LIST = new BallerinaElementType("ARGUMENT_LIST"); + IElementType ASSIGNMENT_STATEMENT = new BallerinaElementType("ASSIGNMENT_STATEMENT"); + IElementType BACKTICK_STRING = new BallerinaElementType("BACKTICK_STRING"); + IElementType BREAK_STATEMENT = new BallerinaElementType("BREAK_STATEMENT"); + IElementType CATCH_CLAUSE = new BallerinaElementType("CATCH_CLAUSE"); + IElementType COMMENT_STATEMENT = new BallerinaElementType("COMMENT_STATEMENT"); + IElementType CONNECTOR_BODY = new BallerinaElementType("CONNECTOR_BODY"); + IElementType CONNECTOR_DECLARATION = new BallerinaElementType("CONNECTOR_DECLARATION"); + IElementType CONNECTOR_DEFINITION = new BallerinaElementType("CONNECTOR_DEFINITION"); + IElementType CONSTANT_DEFINITION = new BallerinaElementType("CONSTANT_DEFINITION"); + IElementType ELEMENT_VALUE = new BallerinaElementType("ELEMENT_VALUE"); + IElementType ELEMENT_VALUE_ARRAY_INITIALIZER = new BallerinaElementType("ELEMENT_VALUE_ARRAY_INITIALIZER"); + IElementType ELEMENT_VALUE_PAIR = new BallerinaElementType("ELEMENT_VALUE_PAIR"); + IElementType ELEMENT_VALUE_PAIRS = new BallerinaElementType("ELEMENT_VALUE_PAIRS"); + IElementType ELSE_CLAUSE = new BallerinaElementType("ELSE_CLAUSE"); + IElementType ELSE_IF_CLAUSE = new BallerinaElementType("ELSE_IF_CLAUSE"); + IElementType EXPRESSION = new BallerinaElementType("EXPRESSION"); + IElementType EXPRESSION_LIST = new BallerinaElementType("EXPRESSION_LIST"); + IElementType FORK_JOIN_STATEMENT = new BallerinaElementType("FORK_JOIN_STATEMENT"); + IElementType FUNCTION_BODY = new BallerinaElementType("FUNCTION_BODY"); + IElementType FUNCTION_DEFINITION = new BallerinaElementType("FUNCTION_DEFINITION"); + IElementType FUNCTION_INVOCATION_STATEMENT = new BallerinaElementType("FUNCTION_INVOCATION_STATEMENT"); + IElementType FUNCTION_NAME = new BallerinaElementType("FUNCTION_NAME"); + IElementType IF_ELSE_STATEMENT = new BallerinaElementType("IF_ELSE_STATEMENT"); + IElementType IMPORT_DECLARATION = new BallerinaElementType("IMPORT_DECLARATION"); + IElementType ITERATE_STATEMENT = new BallerinaElementType("ITERATE_STATEMENT"); + IElementType JOIN_CLAUSE = new BallerinaElementType("JOIN_CLAUSE"); + IElementType JOIN_CONDITIONS = new BallerinaElementType("JOIN_CONDITIONS"); + IElementType LITERAL_VALUE = new BallerinaElementType("LITERAL_VALUE"); + IElementType MAP_INIT_KEY_VALUE = new BallerinaElementType("MAP_INIT_KEY_VALUE"); + IElementType MAP_INIT_KEY_VALUE_LIST = new BallerinaElementType("MAP_INIT_KEY_VALUE_LIST"); + IElementType NAMED_PARAMETER = new BallerinaElementType("NAMED_PARAMETER"); + IElementType NAMED_PARAMETER_LIST = new BallerinaElementType("NAMED_PARAMETER_LIST"); + IElementType NULL_LITERAL = new BallerinaElementType("NULL_LITERAL"); + IElementType PACKAGE_DECLARATION = new BallerinaElementType("PACKAGE_DECLARATION"); + IElementType PACKAGE_NAME = new BallerinaElementType("PACKAGE_NAME"); + IElementType PARAMETER = new BallerinaElementType("PARAMETER"); + IElementType PARAMETER_LIST = new BallerinaElementType("PARAMETER_LIST"); + IElementType QUALIFIED_REFERENCE = new BallerinaElementType("QUALIFIED_REFERENCE"); + IElementType QUALIFIED_TYPE_NAME = new BallerinaElementType("QUALIFIED_TYPE_NAME"); + IElementType REPLY_STATEMENT = new BallerinaElementType("REPLY_STATEMENT"); + IElementType RESOURCE_DEFINITION = new BallerinaElementType("RESOURCE_DEFINITION"); + IElementType RETURN_PARAMETERS = new BallerinaElementType("RETURN_PARAMETERS"); + IElementType RETURN_STATEMENT = new BallerinaElementType("RETURN_STATEMENT"); + IElementType RETURN_TYPE_LIST = new BallerinaElementType("RETURN_TYPE_LIST"); + IElementType SERVICE_BODY = new BallerinaElementType("SERVICE_BODY"); + IElementType SERVICE_BODY_DECLARATION = new BallerinaElementType("SERVICE_BODY_DECLARATION"); + IElementType SERVICE_DEFINITION = new BallerinaElementType("SERVICE_DEFINITION"); + IElementType SIMPLE_TYPE = new BallerinaElementType("SIMPLE_TYPE"); + IElementType SIMPLE_TYPE_ARRAY = new BallerinaElementType("SIMPLE_TYPE_ARRAY"); + IElementType SIMPLE_TYPE_ITERATE = new BallerinaElementType("SIMPLE_TYPE_ITERATE"); + IElementType STATEMENT = new BallerinaElementType("STATEMENT"); + IElementType STRUCT_DEFINITION = new BallerinaElementType("STRUCT_DEFINITION"); + IElementType STRUCT_DEFINITION_BODY = new BallerinaElementType("STRUCT_DEFINITION_BODY"); + IElementType THROW_STATEMENT = new BallerinaElementType("THROW_STATEMENT"); + IElementType TIMEOUT_CLAUSE = new BallerinaElementType("TIMEOUT_CLAUSE"); + IElementType TRIGGER_WORKER = new BallerinaElementType("TRIGGER_WORKER"); + IElementType TRY_CATCH_STATEMENT = new BallerinaElementType("TRY_CATCH_STATEMENT"); + IElementType TYPE_CONVERTER_TYPES = new BallerinaElementType("TYPE_CONVERTER_TYPES"); + IElementType TYPE_CONVERTOR_BODY = new BallerinaElementType("TYPE_CONVERTOR_BODY"); + IElementType TYPE_CONVERTOR_DEFINITION = new BallerinaElementType("TYPE_CONVERTOR_DEFINITION"); + IElementType TYPE_NAME = new BallerinaElementType("TYPE_NAME"); + IElementType UNQUALIFIED_TYPE_NAME = new BallerinaElementType("UNQUALIFIED_TYPE_NAME"); + IElementType VARIABLE_DECLARATION = new BallerinaElementType("VARIABLE_DECLARATION"); + IElementType VARIABLE_REFERENCE = new BallerinaElementType("VARIABLE_REFERENCE"); + IElementType VARIABLE_REFERENCE_LIST = new BallerinaElementType("VARIABLE_REFERENCE_LIST"); + IElementType WHILE_STATEMENT = new BallerinaElementType("WHILE_STATEMENT"); + IElementType WITH_FULL_SCHEMA_TYPE = new BallerinaElementType("WITH_FULL_SCHEMA_TYPE"); + IElementType WITH_FULL_SCHEMA_TYPE_ARRAY = new BallerinaElementType("WITH_FULL_SCHEMA_TYPE_ARRAY"); + IElementType WITH_FULL_SCHEMA_TYPE_ITERATE = new BallerinaElementType("WITH_FULL_SCHEMA_TYPE_ITERATE"); + IElementType WITH_SCHEAM_ID_TYPE_ARRAY = new BallerinaElementType("WITH_SCHEAM_ID_TYPE_ARRAY"); + IElementType WITH_SCHEAM_ID_TYPE_ITERATE = new BallerinaElementType("WITH_SCHEAM_ID_TYPE_ITERATE"); + IElementType WITH_SCHEAM_URL_TYPE = new BallerinaElementType("WITH_SCHEAM_URL_TYPE"); + IElementType WITH_SCHEMA_ID_TYPE = new BallerinaElementType("WITH_SCHEMA_ID_TYPE"); + IElementType WITH_SCHEMA_URL_TYPE_ARRAY = new BallerinaElementType("WITH_SCHEMA_URL_TYPE_ARRAY"); + IElementType WITH_SCHEMA_URL_TYPE_ITERATE = new BallerinaElementType("WITH_SCHEMA_URL_TYPE_ITERATE"); + IElementType WORKER_DECLARATION = new BallerinaElementType("WORKER_DECLARATION"); + IElementType WORKER_INTERACTION_STATEMENT = new BallerinaElementType("WORKER_INTERACTION_STATEMENT"); + IElementType WORKER_REPLY = new BallerinaElementType("WORKER_REPLY"); + + IElementType ACTION = new BallerinaTokenType("action"); + IElementType ADD = new BallerinaTokenType("+"); + IElementType ALL = new BallerinaTokenType("all"); + IElementType AND = new BallerinaTokenType("&&"); + IElementType ANY = new BallerinaTokenType("any"); + IElementType AS = new BallerinaTokenType("as"); + IElementType ASSIGN = new BallerinaTokenType("="); + IElementType BACKTICK = new BallerinaTokenType("`"); + IElementType BANG = new BallerinaTokenType("!"); + IElementType BITAND = new BallerinaTokenType("&"); + IElementType BITOR = new BallerinaTokenType("|"); + IElementType BOOLEANLITERAL = new BallerinaTokenType("BooleanLiteral"); + IElementType BREAK = new BallerinaTokenType("break"); + IElementType CARET = new BallerinaTokenType("^"); + IElementType CATCH = new BallerinaTokenType("catch"); + IElementType COLON = new BallerinaTokenType(":"); + IElementType COMMA = new BallerinaTokenType(","); + IElementType CONNECTOR = new BallerinaTokenType("connector"); + IElementType CONST = new BallerinaTokenType("const"); + IElementType DIV = new BallerinaTokenType("/"); + IElementType DOLLAR_SIGN = new BallerinaTokenType("$"); + IElementType DOT = new BallerinaTokenType("."); + IElementType ELSE = new BallerinaTokenType("else"); + IElementType EQUAL = new BallerinaTokenType("=="); + IElementType FLOATINGPOINTLITERAL = new BallerinaTokenType("FloatingPointLiteral"); + IElementType FORK = new BallerinaTokenType("fork"); + IElementType FUNCTION = new BallerinaTokenType("function"); + IElementType GE = new BallerinaTokenType(">="); + IElementType GT = new BallerinaTokenType(">"); + IElementType IDENTIFIER = new BallerinaTokenType("Identifier"); + IElementType IF = new BallerinaTokenType("if"); + IElementType IMPORT = new BallerinaTokenType("import"); + IElementType INTEGERLITERAL = new BallerinaTokenType("IntegerLiteral"); + IElementType ITERATE = new BallerinaTokenType("iterate"); + IElementType JOIN = new BallerinaTokenType("join"); + IElementType LBRACE = new BallerinaTokenType("{"); + IElementType LBRACK = new BallerinaTokenType("["); + IElementType LE = new BallerinaTokenType("<="); + IElementType LETTER = new BallerinaTokenType("Letter"); + IElementType LETTERORDIGIT = new BallerinaTokenType("LetterOrDigit"); + IElementType LINE_COMMENT = new BallerinaTokenType("LINE_COMMENT"); + IElementType LPAREN = new BallerinaTokenType("("); + IElementType LT = new BallerinaTokenType("<"); + IElementType MOD = new BallerinaTokenType("%"); + IElementType MUL = new BallerinaTokenType("*"); + IElementType NEW = new BallerinaTokenType("new"); + IElementType NOTEQUAL = new BallerinaTokenType("!="); + IElementType NULLLITERAL = new BallerinaTokenType("null"); + IElementType OR = new BallerinaTokenType("||"); + IElementType PACKAGE = new BallerinaTokenType("package"); + IElementType PUBLIC = new BallerinaTokenType("public"); + IElementType QUESTION = new BallerinaTokenType("?"); + IElementType QUOTEDSTRINGLITERAL = new BallerinaTokenType("QuotedStringLiteral"); + IElementType RBRACE = new BallerinaTokenType("}"); + IElementType RBRACK = new BallerinaTokenType("]"); + IElementType RECEIVEARROW = new BallerinaTokenType("<-"); + IElementType REPLY = new BallerinaTokenType("reply"); + IElementType RESOURCE = new BallerinaTokenType("resource"); + IElementType RETURN = new BallerinaTokenType("return"); + IElementType RPAREN = new BallerinaTokenType(")"); + IElementType SEMI = new BallerinaTokenType(";"); + IElementType SENDARROW = new BallerinaTokenType("->"); + IElementType SERVICE = new BallerinaTokenType("service"); + IElementType SUB = new BallerinaTokenType("-"); + IElementType THROW = new BallerinaTokenType("throw"); + IElementType THROWS = new BallerinaTokenType("throws"); + IElementType TILDE = new BallerinaTokenType("~"); + IElementType TIMEOUT = new BallerinaTokenType("timeout"); + IElementType TRY = new BallerinaTokenType("try"); + IElementType TYPE = new BallerinaTokenType("type"); + IElementType TYPECONVERTOR = new BallerinaTokenType("typeconvertor"); + IElementType VALIDBACKTICKSTRINGCHARACTERS = new BallerinaTokenType("ValidBackTickStringCharacters"); + IElementType VERSION = new BallerinaTokenType("version"); + IElementType WHILE = new BallerinaTokenType("while"); + IElementType WORKER = new BallerinaTokenType("worker"); + + class Factory { + public static PsiElement createElement(ASTNode node) { + IElementType type = node.getElementType(); + if (type == ACTION_DEFINITION) { + return new BallerinaActionDefinitionImpl(node); + } + else if (type == ACTION_INVOCATION) { + return new BallerinaActionInvocationImpl(node); + } + else if (type == ACTION_INVOCATION_STATEMENT) { + return new BallerinaActionInvocationStatementImpl(node); + } + else if (type == ANNOTATION) { + return new BallerinaAnnotationImpl(node); + } + else if (type == ANNOTATION_NAME) { + return new BallerinaAnnotationNameImpl(node); + } + else if (type == ARGUMENT_LIST) { + return new BallerinaArgumentListImpl(node); + } + else if (type == ASSIGNMENT_STATEMENT) { + return new BallerinaAssignmentStatementImpl(node); + } + else if (type == BACKTICK_STRING) { + return new BallerinaBacktickStringImpl(node); + } + else if (type == BREAK_STATEMENT) { + return new BallerinaBreakStatementImpl(node); + } + else if (type == CATCH_CLAUSE) { + return new BallerinaCatchClauseImpl(node); + } + else if (type == COMMENT_STATEMENT) { + return new BallerinaCommentStatementImpl(node); + } + else if (type == CONNECTOR_BODY) { + return new BallerinaConnectorBodyImpl(node); + } + else if (type == CONNECTOR_DECLARATION) { + return new BallerinaConnectorDeclarationImpl(node); + } + else if (type == CONNECTOR_DEFINITION) { + return new BallerinaConnectorDefinitionImpl(node); + } + else if (type == CONSTANT_DEFINITION) { + return new BallerinaConstantDefinitionImpl(node); + } + else if (type == ELEMENT_VALUE) { + return new BallerinaElementValueImpl(node); + } + else if (type == ELEMENT_VALUE_ARRAY_INITIALIZER) { + return new BallerinaElementValueArrayInitializerImpl(node); + } + else if (type == ELEMENT_VALUE_PAIR) { + return new BallerinaElementValuePairImpl(node); + } + else if (type == ELEMENT_VALUE_PAIRS) { + return new BallerinaElementValuePairsImpl(node); + } + else if (type == ELSE_CLAUSE) { + return new BallerinaElseClauseImpl(node); + } + else if (type == ELSE_IF_CLAUSE) { + return new BallerinaElseIfClauseImpl(node); + } + else if (type == EXPRESSION) { + return new BallerinaExpressionImpl(node); + } + else if (type == EXPRESSION_LIST) { + return new BallerinaExpressionListImpl(node); + } + else if (type == FORK_JOIN_STATEMENT) { + return new BallerinaForkJoinStatementImpl(node); + } + else if (type == FUNCTION_BODY) { + return new BallerinaFunctionBodyImpl(node); + } + else if (type == FUNCTION_DEFINITION) { + return new BallerinaFunctionDefinitionImpl(node); + } + else if (type == FUNCTION_INVOCATION_STATEMENT) { + return new BallerinaFunctionInvocationStatementImpl(node); + } + else if (type == FUNCTION_NAME) { + return new BallerinaFunctionNameImpl(node); + } + else if (type == IF_ELSE_STATEMENT) { + return new BallerinaIfElseStatementImpl(node); + } + else if (type == IMPORT_DECLARATION) { + return new BallerinaImportDeclarationImpl(node); + } + else if (type == ITERATE_STATEMENT) { + return new BallerinaIterateStatementImpl(node); + } + else if (type == JOIN_CLAUSE) { + return new BallerinaJoinClauseImpl(node); + } + else if (type == JOIN_CONDITIONS) { + return new BallerinaJoinConditionsImpl(node); + } + else if (type == LITERAL_VALUE) { + return new BallerinaLiteralValueImpl(node); + } + else if (type == MAP_INIT_KEY_VALUE) { + return new BallerinaMapInitKeyValueImpl(node); + } + else if (type == MAP_INIT_KEY_VALUE_LIST) { + return new BallerinaMapInitKeyValueListImpl(node); + } + else if (type == NAMED_PARAMETER) { + return new BallerinaNamedParameterImpl(node); + } + else if (type == NAMED_PARAMETER_LIST) { + return new BallerinaNamedParameterListImpl(node); + } + else if (type == NULL_LITERAL) { + return new BallerinaNullLiteralImpl(node); + } + else if (type == PACKAGE_DECLARATION) { + return new BallerinaPackageDeclarationImpl(node); + } + else if (type == PACKAGE_NAME) { + return new BallerinaPackageNameImpl(node); + } + else if (type == PARAMETER) { + return new BallerinaParameterImpl(node); + } + else if (type == PARAMETER_LIST) { + return new BallerinaParameterListImpl(node); + } + else if (type == QUALIFIED_REFERENCE) { + return new BallerinaQualifiedReferenceImpl(node); + } + else if (type == QUALIFIED_TYPE_NAME) { + return new BallerinaQualifiedTypeNameImpl(node); + } + else if (type == REPLY_STATEMENT) { + return new BallerinaReplyStatementImpl(node); + } + else if (type == RESOURCE_DEFINITION) { + return new BallerinaResourceDefinitionImpl(node); + } + else if (type == RETURN_PARAMETERS) { + return new BallerinaReturnParametersImpl(node); + } + else if (type == RETURN_STATEMENT) { + return new BallerinaReturnStatementImpl(node); + } + else if (type == RETURN_TYPE_LIST) { + return new BallerinaReturnTypeListImpl(node); + } + else if (type == SERVICE_BODY) { + return new BallerinaServiceBodyImpl(node); + } + else if (type == SERVICE_BODY_DECLARATION) { + return new BallerinaServiceBodyDeclarationImpl(node); + } + else if (type == SERVICE_DEFINITION) { + return new BallerinaServiceDefinitionImpl(node); + } + else if (type == SIMPLE_TYPE) { + return new BallerinaSimpleTypeImpl(node); + } + else if (type == SIMPLE_TYPE_ARRAY) { + return new BallerinaSimpleTypeArrayImpl(node); + } + else if (type == SIMPLE_TYPE_ITERATE) { + return new BallerinaSimpleTypeIterateImpl(node); + } + else if (type == STATEMENT) { + return new BallerinaStatementImpl(node); + } + else if (type == STRUCT_DEFINITION) { + return new BallerinaStructDefinitionImpl(node); + } + else if (type == STRUCT_DEFINITION_BODY) { + return new BallerinaStructDefinitionBodyImpl(node); + } + else if (type == THROW_STATEMENT) { + return new BallerinaThrowStatementImpl(node); + } + else if (type == TIMEOUT_CLAUSE) { + return new BallerinaTimeoutClauseImpl(node); + } + else if (type == TRIGGER_WORKER) { + return new BallerinaTriggerWorkerImpl(node); + } + else if (type == TRY_CATCH_STATEMENT) { + return new BallerinaTryCatchStatementImpl(node); + } + else if (type == TYPE_CONVERTER_TYPES) { + return new BallerinaTypeConverterTypesImpl(node); + } + else if (type == TYPE_CONVERTOR_BODY) { + return new BallerinaTypeConvertorBodyImpl(node); + } + else if (type == TYPE_CONVERTOR_DEFINITION) { + return new BallerinaTypeConvertorDefinitionImpl(node); + } + else if (type == TYPE_NAME) { + return new BallerinaTypeNameImpl(node); + } + else if (type == UNQUALIFIED_TYPE_NAME) { + return new BallerinaUnqualifiedTypeNameImpl(node); + } + else if (type == VARIABLE_DECLARATION) { + return new BallerinaVariableDeclarationImpl(node); + } + else if (type == VARIABLE_REFERENCE) { + return new BallerinaVariableReferenceImpl(node); + } + else if (type == VARIABLE_REFERENCE_LIST) { + return new BallerinaVariableReferenceListImpl(node); + } + else if (type == WHILE_STATEMENT) { + return new BallerinaWhileStatementImpl(node); + } + else if (type == WITH_FULL_SCHEMA_TYPE) { + return new BallerinaWithFullSchemaTypeImpl(node); + } + else if (type == WITH_FULL_SCHEMA_TYPE_ARRAY) { + return new BallerinaWithFullSchemaTypeArrayImpl(node); + } + else if (type == WITH_FULL_SCHEMA_TYPE_ITERATE) { + return new BallerinaWithFullSchemaTypeIterateImpl(node); + } + else if (type == WITH_SCHEAM_ID_TYPE_ARRAY) { + return new BallerinaWithScheamIdTypeArrayImpl(node); + } + else if (type == WITH_SCHEAM_ID_TYPE_ITERATE) { + return new BallerinaWithScheamIdTypeIterateImpl(node); + } + else if (type == WITH_SCHEAM_URL_TYPE) { + return new BallerinaWithScheamURLTypeImpl(node); + } + else if (type == WITH_SCHEMA_ID_TYPE) { + return new BallerinaWithSchemaIdTypeImpl(node); + } + else if (type == WITH_SCHEMA_URL_TYPE_ARRAY) { + return new BallerinaWithSchemaURLTypeArrayImpl(node); + } + else if (type == WITH_SCHEMA_URL_TYPE_ITERATE) { + return new BallerinaWithSchemaURLTypeIterateImpl(node); + } + else if (type == WORKER_DECLARATION) { + return new BallerinaWorkerDeclarationImpl(node); + } + else if (type == WORKER_INTERACTION_STATEMENT) { + return new BallerinaWorkerInteractionStatementImpl(node); + } + else if (type == WORKER_REPLY) { + return new BallerinaWorkerReplyImpl(node); + } + throw new AssertionError("Unknown element type: " + type); + } + } +} diff --git a/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java b/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java new file mode 100644 index 000000000000..a1bb3e5bd6af --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java @@ -0,0 +1,46 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaUnqualifiedTypeName extends PsiElement { + + @Nullable + BallerinaSimpleType getSimpleType(); + + @Nullable + BallerinaSimpleTypeArray getSimpleTypeArray(); + + @Nullable + BallerinaSimpleTypeIterate getSimpleTypeIterate(); + + @Nullable + BallerinaWithFullSchemaType getWithFullSchemaType(); + + @Nullable + BallerinaWithFullSchemaTypeArray getWithFullSchemaTypeArray(); + + @Nullable + BallerinaWithFullSchemaTypeIterate getWithFullSchemaTypeIterate(); + + @Nullable + BallerinaWithScheamIdTypeArray getWithScheamIdTypeArray(); + + @Nullable + BallerinaWithScheamIdTypeIterate getWithScheamIdTypeIterate(); + + @Nullable + BallerinaWithScheamURLType getWithScheamURLType(); + + @Nullable + BallerinaWithSchemaIdType getWithSchemaIdType(); + + @Nullable + BallerinaWithSchemaURLTypeArray getWithSchemaURLTypeArray(); + + @Nullable + BallerinaWithSchemaURLTypeIterate getWithSchemaURLTypeIterate(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java b/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java new file mode 100644 index 000000000000..5ccec74e6ef1 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaVariableDeclaration extends PsiElement { + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaVariableReference.java b/gen/org/ballerinalang/psi/BallerinaVariableReference.java new file mode 100644 index 000000000000..6b64d2c8b3b1 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaVariableReference.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaVariableReference extends PsiElement { + + @Nullable + BallerinaExpression getExpression(); + + @NotNull + PsiElement getIdentifier(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java b/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java new file mode 100644 index 000000000000..4f5a92fb2581 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaVariableReferenceList extends PsiElement { + + @NotNull + List getVariableReferenceList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaVisitor.java b/gen/org/ballerinalang/psi/BallerinaVisitor.java new file mode 100644 index 000000000000..ea0a88977565 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaVisitor.java @@ -0,0 +1,350 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.PsiElement; + +public class BallerinaVisitor extends PsiElementVisitor { + + public void visitNullLiteral(@NotNull BallerinaNullLiteral o) { + visitPsiElement(o); + } + + public void visitActionDefinition(@NotNull BallerinaActionDefinition o) { + visitPsiElement(o); + } + + public void visitActionInvocation(@NotNull BallerinaActionInvocation o) { + visitPsiElement(o); + } + + public void visitActionInvocationStatement(@NotNull BallerinaActionInvocationStatement o) { + visitPsiElement(o); + } + + public void visitAnnotation(@NotNull BallerinaAnnotation o) { + visitPsiElement(o); + } + + public void visitAnnotationName(@NotNull BallerinaAnnotationName o) { + visitPsiElement(o); + } + + public void visitArgumentList(@NotNull BallerinaArgumentList o) { + visitPsiElement(o); + } + + public void visitAssignmentStatement(@NotNull BallerinaAssignmentStatement o) { + visitPsiElement(o); + } + + public void visitBacktickString(@NotNull BallerinaBacktickString o) { + visitPsiElement(o); + } + + public void visitBreakStatement(@NotNull BallerinaBreakStatement o) { + visitPsiElement(o); + } + + public void visitCatchClause(@NotNull BallerinaCatchClause o) { + visitPsiElement(o); + } + + public void visitCommentStatement(@NotNull BallerinaCommentStatement o) { + visitPsiElement(o); + } + + public void visitConnectorBody(@NotNull BallerinaConnectorBody o) { + visitPsiElement(o); + } + + public void visitConnectorDeclaration(@NotNull BallerinaConnectorDeclaration o) { + visitPsiElement(o); + } + + public void visitConnectorDefinition(@NotNull BallerinaConnectorDefinition o) { + visitPsiElement(o); + } + + public void visitConstantDefinition(@NotNull BallerinaConstantDefinition o) { + visitPsiElement(o); + } + + public void visitElementValue(@NotNull BallerinaElementValue o) { + visitPsiElement(o); + } + + public void visitElementValueArrayInitializer(@NotNull BallerinaElementValueArrayInitializer o) { + visitPsiElement(o); + } + + public void visitElementValuePair(@NotNull BallerinaElementValuePair o) { + visitPsiElement(o); + } + + public void visitElementValuePairs(@NotNull BallerinaElementValuePairs o) { + visitPsiElement(o); + } + + public void visitElseClause(@NotNull BallerinaElseClause o) { + visitPsiElement(o); + } + + public void visitElseIfClause(@NotNull BallerinaElseIfClause o) { + visitPsiElement(o); + } + + public void visitExpression(@NotNull BallerinaExpression o) { + visitPsiElement(o); + } + + public void visitExpressionList(@NotNull BallerinaExpressionList o) { + visitPsiElement(o); + } + + public void visitForkJoinStatement(@NotNull BallerinaForkJoinStatement o) { + visitPsiElement(o); + } + + public void visitFunctionBody(@NotNull BallerinaFunctionBody o) { + visitPsiElement(o); + } + + public void visitFunctionDefinition(@NotNull BallerinaFunctionDefinition o) { + visitPsiElement(o); + } + + public void visitFunctionInvocationStatement(@NotNull BallerinaFunctionInvocationStatement o) { + visitPsiElement(o); + } + + public void visitFunctionName(@NotNull BallerinaFunctionName o) { + visitPsiElement(o); + } + + public void visitIfElseStatement(@NotNull BallerinaIfElseStatement o) { + visitPsiElement(o); + } + + public void visitImportDeclaration(@NotNull BallerinaImportDeclaration o) { + visitPsiElement(o); + } + + public void visitIterateStatement(@NotNull BallerinaIterateStatement o) { + visitPsiElement(o); + } + + public void visitJoinClause(@NotNull BallerinaJoinClause o) { + visitPsiElement(o); + } + + public void visitJoinConditions(@NotNull BallerinaJoinConditions o) { + visitPsiElement(o); + } + + public void visitLiteralValue(@NotNull BallerinaLiteralValue o) { + visitPsiElement(o); + } + + public void visitMapInitKeyValue(@NotNull BallerinaMapInitKeyValue o) { + visitPsiElement(o); + } + + public void visitMapInitKeyValueList(@NotNull BallerinaMapInitKeyValueList o) { + visitPsiElement(o); + } + + public void visitNamedParameter(@NotNull BallerinaNamedParameter o) { + visitPsiElement(o); + } + + public void visitNamedParameterList(@NotNull BallerinaNamedParameterList o) { + visitPsiElement(o); + } + + public void visitPackageDeclaration(@NotNull BallerinaPackageDeclaration o) { + visitPsiElement(o); + } + + public void visitPackageName(@NotNull BallerinaPackageName o) { + visitPsiElement(o); + } + + public void visitParameter(@NotNull BallerinaParameter o) { + visitPsiElement(o); + } + + public void visitParameterList(@NotNull BallerinaParameterList o) { + visitPsiElement(o); + } + + public void visitQualifiedReference(@NotNull BallerinaQualifiedReference o) { + visitPsiElement(o); + } + + public void visitQualifiedTypeName(@NotNull BallerinaQualifiedTypeName o) { + visitPsiElement(o); + } + + public void visitReplyStatement(@NotNull BallerinaReplyStatement o) { + visitPsiElement(o); + } + + public void visitResourceDefinition(@NotNull BallerinaResourceDefinition o) { + visitPsiElement(o); + } + + public void visitReturnParameters(@NotNull BallerinaReturnParameters o) { + visitPsiElement(o); + } + + public void visitReturnStatement(@NotNull BallerinaReturnStatement o) { + visitPsiElement(o); + } + + public void visitReturnTypeList(@NotNull BallerinaReturnTypeList o) { + visitPsiElement(o); + } + + public void visitServiceBody(@NotNull BallerinaServiceBody o) { + visitPsiElement(o); + } + + public void visitServiceBodyDeclaration(@NotNull BallerinaServiceBodyDeclaration o) { + visitPsiElement(o); + } + + public void visitServiceDefinition(@NotNull BallerinaServiceDefinition o) { + visitPsiElement(o); + } + + public void visitSimpleType(@NotNull BallerinaSimpleType o) { + visitPsiElement(o); + } + + public void visitSimpleTypeArray(@NotNull BallerinaSimpleTypeArray o) { + visitPsiElement(o); + } + + public void visitSimpleTypeIterate(@NotNull BallerinaSimpleTypeIterate o) { + visitPsiElement(o); + } + + public void visitStatement(@NotNull BallerinaStatement o) { + visitPsiElement(o); + } + + public void visitStructDefinition(@NotNull BallerinaStructDefinition o) { + visitPsiElement(o); + } + + public void visitStructDefinitionBody(@NotNull BallerinaStructDefinitionBody o) { + visitPsiElement(o); + } + + public void visitThrowStatement(@NotNull BallerinaThrowStatement o) { + visitPsiElement(o); + } + + public void visitTimeoutClause(@NotNull BallerinaTimeoutClause o) { + visitPsiElement(o); + } + + public void visitTriggerWorker(@NotNull BallerinaTriggerWorker o) { + visitPsiElement(o); + } + + public void visitTryCatchStatement(@NotNull BallerinaTryCatchStatement o) { + visitPsiElement(o); + } + + public void visitTypeConverterTypes(@NotNull BallerinaTypeConverterTypes o) { + visitPsiElement(o); + } + + public void visitTypeConvertorBody(@NotNull BallerinaTypeConvertorBody o) { + visitPsiElement(o); + } + + public void visitTypeConvertorDefinition(@NotNull BallerinaTypeConvertorDefinition o) { + visitPsiElement(o); + } + + public void visitTypeName(@NotNull BallerinaTypeName o) { + visitPsiElement(o); + } + + public void visitUnqualifiedTypeName(@NotNull BallerinaUnqualifiedTypeName o) { + visitPsiElement(o); + } + + public void visitVariableDeclaration(@NotNull BallerinaVariableDeclaration o) { + visitPsiElement(o); + } + + public void visitVariableReference(@NotNull BallerinaVariableReference o) { + visitPsiElement(o); + } + + public void visitVariableReferenceList(@NotNull BallerinaVariableReferenceList o) { + visitPsiElement(o); + } + + public void visitWhileStatement(@NotNull BallerinaWhileStatement o) { + visitPsiElement(o); + } + + public void visitWithFullSchemaType(@NotNull BallerinaWithFullSchemaType o) { + visitPsiElement(o); + } + + public void visitWithFullSchemaTypeArray(@NotNull BallerinaWithFullSchemaTypeArray o) { + visitPsiElement(o); + } + + public void visitWithFullSchemaTypeIterate(@NotNull BallerinaWithFullSchemaTypeIterate o) { + visitPsiElement(o); + } + + public void visitWithScheamIdTypeArray(@NotNull BallerinaWithScheamIdTypeArray o) { + visitPsiElement(o); + } + + public void visitWithScheamIdTypeIterate(@NotNull BallerinaWithScheamIdTypeIterate o) { + visitPsiElement(o); + } + + public void visitWithScheamURLType(@NotNull BallerinaWithScheamURLType o) { + visitPsiElement(o); + } + + public void visitWithSchemaIdType(@NotNull BallerinaWithSchemaIdType o) { + visitPsiElement(o); + } + + public void visitWithSchemaURLTypeArray(@NotNull BallerinaWithSchemaURLTypeArray o) { + visitPsiElement(o); + } + + public void visitWithSchemaURLTypeIterate(@NotNull BallerinaWithSchemaURLTypeIterate o) { + visitPsiElement(o); + } + + public void visitWorkerDeclaration(@NotNull BallerinaWorkerDeclaration o) { + visitPsiElement(o); + } + + public void visitWorkerInteractionStatement(@NotNull BallerinaWorkerInteractionStatement o) { + visitPsiElement(o); + } + + public void visitWorkerReply(@NotNull BallerinaWorkerReply o) { + visitPsiElement(o); + } + + public void visitPsiElement(@NotNull PsiElement o) { + visitElement(o); + } + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWhileStatement.java b/gen/org/ballerinalang/psi/BallerinaWhileStatement.java new file mode 100644 index 000000000000..523ee388574d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWhileStatement.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWhileStatement extends PsiElement { + + @NotNull + BallerinaExpression getExpression(); + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java new file mode 100644 index 000000000000..b560e5771c9d --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithFullSchemaType extends PsiElement { + + @NotNull + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java new file mode 100644 index 000000000000..e90f83e90579 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithFullSchemaTypeArray extends PsiElement { + + @NotNull + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java new file mode 100644 index 000000000000..5e750f278153 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java @@ -0,0 +1,13 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithFullSchemaTypeIterate extends PsiElement { + + @NotNull + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java new file mode 100644 index 000000000000..2a3449edcf85 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithScheamIdTypeArray extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java new file mode 100644 index 000000000000..4017b46eb3f0 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithScheamIdTypeIterate extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java b/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java new file mode 100644 index 000000000000..b3d93aac3130 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithScheamURLType extends PsiElement { + + @NotNull + PsiElement getIdentifier(); + + @NotNull + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java b/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java new file mode 100644 index 000000000000..89887cca8973 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithSchemaIdType extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java new file mode 100644 index 000000000000..27c24239b4b2 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithSchemaURLTypeArray extends PsiElement { + + @NotNull + PsiElement getIdentifier(); + + @NotNull + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java new file mode 100644 index 000000000000..3d884e25d16a --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWithSchemaURLTypeIterate extends PsiElement { + + @NotNull + PsiElement getIdentifier(); + + @NotNull + PsiElement getQuotedStringLiteral(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java b/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java new file mode 100644 index 000000000000..c61a0c616454 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java @@ -0,0 +1,19 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWorkerDeclaration extends PsiElement { + + @NotNull + List getStatementList(); + + @NotNull + BallerinaTypeName getTypeName(); + + @NotNull + List getVariableDeclarationList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java b/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java new file mode 100644 index 000000000000..565bbbb40b08 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java @@ -0,0 +1,16 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWorkerInteractionStatement extends PsiElement { + + @Nullable + BallerinaTriggerWorker getTriggerWorker(); + + @Nullable + BallerinaWorkerReply getWorkerReply(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerReply.java b/gen/org/ballerinalang/psi/BallerinaWorkerReply.java new file mode 100644 index 000000000000..062f0acf0442 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWorkerReply.java @@ -0,0 +1,10 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWorkerReply extends PsiElement { + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java new file mode 100644 index 000000000000..23f6447be810 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaActionDefinitionImpl extends ASTWrapperPsiElement implements BallerinaActionDefinition { + + public BallerinaActionDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitActionDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getAnnotationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaAnnotation.class); + } + + @Override + @NotNull + public BallerinaFunctionBody getFunctionBody() { + return findNotNullChildByClass(BallerinaFunctionBody.class); + } + + @Override + @NotNull + public BallerinaParameterList getParameterList() { + return findNotNullChildByClass(BallerinaParameterList.class); + } + + @Override + @Nullable + public BallerinaReturnParameters getReturnParameters() { + return findChildByClass(BallerinaReturnParameters.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java new file mode 100644 index 000000000000..a4d7fc874bb5 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaActionInvocationImpl extends ASTWrapperPsiElement implements BallerinaActionInvocation { + + public BallerinaActionInvocationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitActionInvocation(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaPackageName getPackageName() { + return findNotNullChildByClass(BallerinaPackageName.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java new file mode 100644 index 000000000000..f9e7804cb46c --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaActionInvocationStatementImpl extends ASTWrapperPsiElement implements BallerinaActionInvocationStatement { + + public BallerinaActionInvocationStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitActionInvocationStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaActionInvocation getActionInvocation() { + return findNotNullChildByClass(BallerinaActionInvocation.class); + } + + @Override + @NotNull + public BallerinaArgumentList getArgumentList() { + return findNotNullChildByClass(BallerinaArgumentList.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java new file mode 100644 index 000000000000..bcbb5e8a9703 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaAnnotationImpl extends ASTWrapperPsiElement implements BallerinaAnnotation { + + public BallerinaAnnotationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitAnnotation(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaAnnotationName getAnnotationName() { + return findNotNullChildByClass(BallerinaAnnotationName.class); + } + + @Override + @Nullable + public BallerinaElementValue getElementValue() { + return findChildByClass(BallerinaElementValue.class); + } + + @Override + @Nullable + public BallerinaElementValuePairs getElementValuePairs() { + return findChildByClass(BallerinaElementValuePairs.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java new file mode 100644 index 000000000000..f16a799fdb8b --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaAnnotationNameImpl extends ASTWrapperPsiElement implements BallerinaAnnotationName { + + public BallerinaAnnotationNameImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitAnnotationName(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java new file mode 100644 index 000000000000..0e12df5cf51c --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaArgumentListImpl extends ASTWrapperPsiElement implements BallerinaArgumentList { + + public BallerinaArgumentListImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitArgumentList(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaExpressionList getExpressionList() { + return findChildByClass(BallerinaExpressionList.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java new file mode 100644 index 000000000000..6dc880c064ee --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaAssignmentStatementImpl extends ASTWrapperPsiElement implements BallerinaAssignmentStatement { + + public BallerinaAssignmentStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitAssignmentStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public BallerinaVariableReferenceList getVariableReferenceList() { + return findNotNullChildByClass(BallerinaVariableReferenceList.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java new file mode 100644 index 000000000000..a0af58ca3e74 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaBacktickStringImpl extends ASTWrapperPsiElement implements BallerinaBacktickString { + + public BallerinaBacktickStringImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitBacktickString(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getValidBackTickStringCharacters() { + return findNotNullChildByType(VALIDBACKTICKSTRINGCHARACTERS); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java new file mode 100644 index 000000000000..9cc12a876949 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaBreakStatementImpl extends ASTWrapperPsiElement implements BallerinaBreakStatement { + + public BallerinaBreakStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitBreakStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java new file mode 100644 index 000000000000..e7a83d2f0286 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaCatchClauseImpl extends ASTWrapperPsiElement implements BallerinaCatchClause { + + public BallerinaCatchClauseImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitCatchClause(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java new file mode 100644 index 000000000000..28d8587382b0 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaCommentStatementImpl extends ASTWrapperPsiElement implements BallerinaCommentStatement { + + public BallerinaCommentStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitCommentStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getLineComment() { + return findNotNullChildByType(LINE_COMMENT); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java new file mode 100644 index 000000000000..0d0652ec83ac --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaConnectorBodyImpl extends ASTWrapperPsiElement implements BallerinaConnectorBody { + + public BallerinaConnectorBodyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitConnectorBody(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getActionDefinitionList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaActionDefinition.class); + } + + @Override + @NotNull + public List getConnectorDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaConnectorDeclaration.class); + } + + @Override + @NotNull + public List getVariableDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaVariableDeclaration.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java new file mode 100644 index 000000000000..eaf353616d34 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaConnectorDeclarationImpl extends ASTWrapperPsiElement implements BallerinaConnectorDeclaration { + + public BallerinaConnectorDeclarationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitConnectorDeclaration(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaExpressionList getExpressionList() { + return findChildByClass(BallerinaExpressionList.class); + } + + @Override + @NotNull + public List getQualifiedReferenceList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaQualifiedReference.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java new file mode 100644 index 000000000000..601f6c860aef --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaConnectorDefinitionImpl extends ASTWrapperPsiElement implements BallerinaConnectorDefinition { + + public BallerinaConnectorDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitConnectorDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getAnnotationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaAnnotation.class); + } + + @Override + @NotNull + public BallerinaConnectorBody getConnectorBody() { + return findNotNullChildByClass(BallerinaConnectorBody.class); + } + + @Override + @NotNull + public BallerinaParameterList getParameterList() { + return findNotNullChildByClass(BallerinaParameterList.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java new file mode 100644 index 000000000000..29f5417fb6b3 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaConstantDefinitionImpl extends ASTWrapperPsiElement implements BallerinaConstantDefinition { + + public BallerinaConstantDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitConstantDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaLiteralValue getLiteralValue() { + return findNotNullChildByClass(BallerinaLiteralValue.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java new file mode 100644 index 000000000000..142699495803 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaElementValueArrayInitializerImpl extends ASTWrapperPsiElement implements BallerinaElementValueArrayInitializer { + + public BallerinaElementValueArrayInitializerImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitElementValueArrayInitializer(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getElementValueList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaElementValue.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java new file mode 100644 index 000000000000..af136ce6d642 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaElementValueImpl extends ASTWrapperPsiElement implements BallerinaElementValue { + + public BallerinaElementValueImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitElementValue(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaAnnotation getAnnotation() { + return findChildByClass(BallerinaAnnotation.class); + } + + @Override + @Nullable + public BallerinaElementValueArrayInitializer getElementValueArrayInitializer() { + return findChildByClass(BallerinaElementValueArrayInitializer.class); + } + + @Override + @Nullable + public BallerinaExpression getExpression() { + return findChildByClass(BallerinaExpression.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java new file mode 100644 index 000000000000..dff72f738f45 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaElementValuePairImpl extends ASTWrapperPsiElement implements BallerinaElementValuePair { + + public BallerinaElementValuePairImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitElementValuePair(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaElementValue getElementValue() { + return findNotNullChildByClass(BallerinaElementValue.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java new file mode 100644 index 000000000000..d61b27eebc86 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaElementValuePairsImpl extends ASTWrapperPsiElement implements BallerinaElementValuePairs { + + public BallerinaElementValuePairsImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitElementValuePairs(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getElementValuePairList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaElementValuePair.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java new file mode 100644 index 000000000000..d1e51b60d75b --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaElseClauseImpl extends ASTWrapperPsiElement implements BallerinaElseClause { + + public BallerinaElseClauseImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitElseClause(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java new file mode 100644 index 000000000000..5d56f9902130 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaElseIfClauseImpl extends ASTWrapperPsiElement implements BallerinaElseIfClause { + + public BallerinaElseIfClauseImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitElseIfClause(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java new file mode 100644 index 000000000000..f6b75c790eaf --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java @@ -0,0 +1,89 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaExpressionImpl extends ASTWrapperPsiElement implements BallerinaExpression { + + public BallerinaExpressionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitExpression(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getActionInvocationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaActionInvocation.class); + } + + @Override + @NotNull + public List getArgumentListList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaArgumentList.class); + } + + @Override + @NotNull + public List getBacktickStringList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaBacktickString.class); + } + + @Override + @NotNull + public List getExpressionListList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaExpressionList.class); + } + + @Override + @NotNull + public List getFunctionNameList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaFunctionName.class); + } + + @Override + @NotNull + public List getLiteralValueList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaLiteralValue.class); + } + + @Override + @NotNull + public List getMapInitKeyValueListList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaMapInitKeyValueList.class); + } + + @Override + @NotNull + public List getPackageNameList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaPackageName.class); + } + + @Override + @Nullable + public BallerinaTypeName getTypeName() { + return findChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public List getVariableReferenceList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaVariableReference.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java new file mode 100644 index 000000000000..2e0b200b327d --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaExpressionListImpl extends ASTWrapperPsiElement implements BallerinaExpressionList { + + public BallerinaExpressionListImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitExpressionList(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getExpressionList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaExpression.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java new file mode 100644 index 000000000000..8f0bb3fbce53 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java @@ -0,0 +1,59 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaForkJoinStatementImpl extends ASTWrapperPsiElement implements BallerinaForkJoinStatement { + + public BallerinaForkJoinStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitForkJoinStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaJoinClause getJoinClause() { + return findChildByClass(BallerinaJoinClause.class); + } + + @Override + @Nullable + public BallerinaTimeoutClause getTimeoutClause() { + return findChildByClass(BallerinaTimeoutClause.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public List getWorkerDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaWorkerDeclaration.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java new file mode 100644 index 000000000000..acb6e87c3c84 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaFunctionBodyImpl extends ASTWrapperPsiElement implements BallerinaFunctionBody { + + public BallerinaFunctionBodyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitFunctionBody(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getConnectorDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaConnectorDeclaration.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + + @Override + @NotNull + public List getVariableDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaVariableDeclaration.class); + } + + @Override + @NotNull + public List getWorkerDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaWorkerDeclaration.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java new file mode 100644 index 000000000000..1aff1121ebab --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaFunctionDefinitionImpl extends ASTWrapperPsiElement implements BallerinaFunctionDefinition { + + public BallerinaFunctionDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitFunctionDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getAnnotationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaAnnotation.class); + } + + @Override + @NotNull + public BallerinaFunctionBody getFunctionBody() { + return findNotNullChildByClass(BallerinaFunctionBody.class); + } + + @Override + @Nullable + public BallerinaParameterList getParameterList() { + return findChildByClass(BallerinaParameterList.class); + } + + @Override + @Nullable + public BallerinaReturnParameters getReturnParameters() { + return findChildByClass(BallerinaReturnParameters.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java new file mode 100644 index 000000000000..5b163674bcc8 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaFunctionInvocationStatementImpl extends ASTWrapperPsiElement implements BallerinaFunctionInvocationStatement { + + public BallerinaFunctionInvocationStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitFunctionInvocationStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaArgumentList getArgumentList() { + return findNotNullChildByClass(BallerinaArgumentList.class); + } + + @Override + @NotNull + public BallerinaFunctionName getFunctionName() { + return findNotNullChildByClass(BallerinaFunctionName.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java new file mode 100644 index 000000000000..a9c6b507a229 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaFunctionNameImpl extends ASTWrapperPsiElement implements BallerinaFunctionName { + + public BallerinaFunctionNameImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitFunctionName(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaPackageName getPackageName() { + return findChildByClass(BallerinaPackageName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java new file mode 100644 index 000000000000..405d50a761ab --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaIfElseStatementImpl extends ASTWrapperPsiElement implements BallerinaIfElseStatement { + + public BallerinaIfElseStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitIfElseStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaElseClause getElseClause() { + return findChildByClass(BallerinaElseClause.class); + } + + @Override + @NotNull + public List getElseIfClauseList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaElseIfClause.class); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java new file mode 100644 index 000000000000..de59e9c3765a --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaImportDeclarationImpl extends ASTWrapperPsiElement implements BallerinaImportDeclaration { + + public BallerinaImportDeclarationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitImportDeclaration(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaPackageName getPackageName() { + return findNotNullChildByClass(BallerinaPackageName.class); + } + + @Override + @Nullable + public PsiElement getIdentifier() { + return findChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java new file mode 100644 index 000000000000..7bc64be8c74b --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaIterateStatementImpl extends ASTWrapperPsiElement implements BallerinaIterateStatement { + + public BallerinaIterateStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitIterateStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java new file mode 100644 index 000000000000..4972c7e73269 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaJoinClauseImpl extends ASTWrapperPsiElement implements BallerinaJoinClause { + + public BallerinaJoinClauseImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitJoinClause(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaJoinConditions getJoinConditions() { + return findNotNullChildByClass(BallerinaJoinConditions.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java new file mode 100644 index 000000000000..3b24e4fb92b7 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaJoinConditionsImpl extends ASTWrapperPsiElement implements BallerinaJoinConditions { + + public BallerinaJoinConditionsImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitJoinConditions(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public PsiElement getIntegerLiteral() { + return findChildByType(INTEGERLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java new file mode 100644 index 000000000000..1012ab5b2f5a --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java @@ -0,0 +1,59 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaLiteralValueImpl extends ASTWrapperPsiElement implements BallerinaLiteralValue { + + public BallerinaLiteralValueImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitLiteralValue(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaNullLiteral getNullLiteral() { + return findChildByClass(BallerinaNullLiteral.class); + } + + @Override + @Nullable + public PsiElement getBooleanLiteral() { + return findChildByType(BOOLEANLITERAL); + } + + @Override + @Nullable + public PsiElement getFloatingPointLiteral() { + return findChildByType(FLOATINGPOINTLITERAL); + } + + @Override + @Nullable + public PsiElement getIntegerLiteral() { + return findChildByType(INTEGERLITERAL); + } + + @Override + @Nullable + public PsiElement getQuotedStringLiteral() { + return findChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java new file mode 100644 index 000000000000..2267398a01c7 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaMapInitKeyValueImpl extends ASTWrapperPsiElement implements BallerinaMapInitKeyValue { + + public BallerinaMapInitKeyValueImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitMapInitKeyValue(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public PsiElement getQuotedStringLiteral() { + return findNotNullChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java new file mode 100644 index 000000000000..d19fc84d373d --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaMapInitKeyValueListImpl extends ASTWrapperPsiElement implements BallerinaMapInitKeyValueList { + + public BallerinaMapInitKeyValueListImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitMapInitKeyValueList(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getMapInitKeyValueList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaMapInitKeyValue.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java new file mode 100644 index 000000000000..5c6601288421 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaNamedParameterImpl extends ASTWrapperPsiElement implements BallerinaNamedParameter { + + public BallerinaNamedParameterImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitNamedParameter(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java new file mode 100644 index 000000000000..3b904b9d108a --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaNamedParameterListImpl extends ASTWrapperPsiElement implements BallerinaNamedParameterList { + + public BallerinaNamedParameterListImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitNamedParameterList(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getNamedParameterList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaNamedParameter.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java new file mode 100644 index 000000000000..9e743bfc442e --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaNullLiteralImpl extends ASTWrapperPsiElement implements BallerinaNullLiteral { + + public BallerinaNullLiteralImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitNullLiteral(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java new file mode 100644 index 000000000000..9ad5e11bbb6c --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaPackageDeclarationImpl extends ASTWrapperPsiElement implements BallerinaPackageDeclaration { + + public BallerinaPackageDeclarationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitPackageDeclaration(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaPackageName getPackageName() { + return findNotNullChildByClass(BallerinaPackageName.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java new file mode 100644 index 000000000000..c3b329822a17 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaPackageNameImpl extends ASTWrapperPsiElement implements BallerinaPackageName { + + public BallerinaPackageNameImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitPackageName(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java new file mode 100644 index 000000000000..f4f96c117fb0 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaParameterImpl extends ASTWrapperPsiElement implements BallerinaParameter { + + public BallerinaParameterImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitParameter(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getAnnotationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaAnnotation.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java new file mode 100644 index 000000000000..e2d8296fb29c --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaParameterListImpl extends ASTWrapperPsiElement implements BallerinaParameterList { + + public BallerinaParameterListImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitParameterList(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getParameterList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaParameter.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java new file mode 100644 index 000000000000..3a45e1a4556c --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaQualifiedReferenceImpl extends ASTWrapperPsiElement implements BallerinaQualifiedReference { + + public BallerinaQualifiedReferenceImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitQualifiedReference(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaPackageName getPackageName() { + return findNotNullChildByClass(BallerinaPackageName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java new file mode 100644 index 000000000000..a59bcb0f9cbd --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaQualifiedTypeNameImpl extends ASTWrapperPsiElement implements BallerinaQualifiedTypeName { + + public BallerinaQualifiedTypeNameImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitQualifiedTypeName(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaPackageName getPackageName() { + return findNotNullChildByClass(BallerinaPackageName.class); + } + + @Override + @NotNull + public BallerinaUnqualifiedTypeName getUnqualifiedTypeName() { + return findNotNullChildByClass(BallerinaUnqualifiedTypeName.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java new file mode 100644 index 000000000000..666e4c760b60 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaReplyStatementImpl extends ASTWrapperPsiElement implements BallerinaReplyStatement { + + public BallerinaReplyStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitReplyStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java new file mode 100644 index 000000000000..7a0c4f40a1fc --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaResourceDefinitionImpl extends ASTWrapperPsiElement implements BallerinaResourceDefinition { + + public BallerinaResourceDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitResourceDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getAnnotationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaAnnotation.class); + } + + @Override + @NotNull + public BallerinaFunctionBody getFunctionBody() { + return findNotNullChildByClass(BallerinaFunctionBody.class); + } + + @Override + @NotNull + public BallerinaParameterList getParameterList() { + return findNotNullChildByClass(BallerinaParameterList.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java new file mode 100644 index 000000000000..d51133f3e060 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaReturnParametersImpl extends ASTWrapperPsiElement implements BallerinaReturnParameters { + + public BallerinaReturnParametersImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitReturnParameters(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaNamedParameterList getNamedParameterList() { + return findChildByClass(BallerinaNamedParameterList.class); + } + + @Override + @Nullable + public BallerinaReturnTypeList getReturnTypeList() { + return findChildByClass(BallerinaReturnTypeList.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java new file mode 100644 index 000000000000..cc7dd2eb6fd3 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaReturnStatementImpl extends ASTWrapperPsiElement implements BallerinaReturnStatement { + + public BallerinaReturnStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitReturnStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaExpressionList getExpressionList() { + return findChildByClass(BallerinaExpressionList.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java new file mode 100644 index 000000000000..2d4c13b185cf --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaReturnTypeListImpl extends ASTWrapperPsiElement implements BallerinaReturnTypeList { + + public BallerinaReturnTypeListImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitReturnTypeList(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getTypeNameList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaTypeName.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java new file mode 100644 index 000000000000..1975f6da9508 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaServiceBodyDeclarationImpl extends ASTWrapperPsiElement implements BallerinaServiceBodyDeclaration { + + public BallerinaServiceBodyDeclarationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitServiceBodyDeclaration(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getConnectorDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaConnectorDeclaration.class); + } + + @Override + @NotNull + public List getResourceDefinitionList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaResourceDefinition.class); + } + + @Override + @NotNull + public List getVariableDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaVariableDeclaration.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java new file mode 100644 index 000000000000..d68429a01648 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaServiceBodyImpl extends ASTWrapperPsiElement implements BallerinaServiceBody { + + public BallerinaServiceBodyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitServiceBody(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaServiceBodyDeclaration getServiceBodyDeclaration() { + return findNotNullChildByClass(BallerinaServiceBodyDeclaration.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java new file mode 100644 index 000000000000..38b0b6f34288 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaServiceDefinitionImpl extends ASTWrapperPsiElement implements BallerinaServiceDefinition { + + public BallerinaServiceDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitServiceDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getAnnotationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaAnnotation.class); + } + + @Override + @NotNull + public BallerinaServiceBody getServiceBody() { + return findNotNullChildByClass(BallerinaServiceBody.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java new file mode 100644 index 000000000000..362bbf4f7d7b --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaSimpleTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaSimpleTypeArray { + + public BallerinaSimpleTypeArrayImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitSimpleTypeArray(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java new file mode 100644 index 000000000000..b67dc40ba2e0 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaSimpleTypeImpl extends ASTWrapperPsiElement implements BallerinaSimpleType { + + public BallerinaSimpleTypeImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitSimpleType(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java new file mode 100644 index 000000000000..d3c0dd1fc515 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaSimpleTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaSimpleTypeIterate { + + public BallerinaSimpleTypeIterateImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitSimpleTypeIterate(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java new file mode 100644 index 000000000000..5d5c16d0cccd --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java @@ -0,0 +1,113 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaStatementImpl extends ASTWrapperPsiElement implements BallerinaStatement { + + public BallerinaStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaActionInvocationStatement getActionInvocationStatement() { + return findChildByClass(BallerinaActionInvocationStatement.class); + } + + @Override + @Nullable + public BallerinaAssignmentStatement getAssignmentStatement() { + return findChildByClass(BallerinaAssignmentStatement.class); + } + + @Override + @Nullable + public BallerinaBreakStatement getBreakStatement() { + return findChildByClass(BallerinaBreakStatement.class); + } + + @Override + @Nullable + public BallerinaCommentStatement getCommentStatement() { + return findChildByClass(BallerinaCommentStatement.class); + } + + @Override + @Nullable + public BallerinaForkJoinStatement getForkJoinStatement() { + return findChildByClass(BallerinaForkJoinStatement.class); + } + + @Override + @Nullable + public BallerinaFunctionInvocationStatement getFunctionInvocationStatement() { + return findChildByClass(BallerinaFunctionInvocationStatement.class); + } + + @Override + @Nullable + public BallerinaIfElseStatement getIfElseStatement() { + return findChildByClass(BallerinaIfElseStatement.class); + } + + @Override + @Nullable + public BallerinaIterateStatement getIterateStatement() { + return findChildByClass(BallerinaIterateStatement.class); + } + + @Override + @Nullable + public BallerinaReplyStatement getReplyStatement() { + return findChildByClass(BallerinaReplyStatement.class); + } + + @Override + @Nullable + public BallerinaReturnStatement getReturnStatement() { + return findChildByClass(BallerinaReturnStatement.class); + } + + @Override + @Nullable + public BallerinaThrowStatement getThrowStatement() { + return findChildByClass(BallerinaThrowStatement.class); + } + + @Override + @Nullable + public BallerinaTryCatchStatement getTryCatchStatement() { + return findChildByClass(BallerinaTryCatchStatement.class); + } + + @Override + @Nullable + public BallerinaWhileStatement getWhileStatement() { + return findChildByClass(BallerinaWhileStatement.class); + } + + @Override + @Nullable + public BallerinaWorkerInteractionStatement getWorkerInteractionStatement() { + return findChildByClass(BallerinaWorkerInteractionStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java new file mode 100644 index 000000000000..2d790b16b685 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaStructDefinitionBodyImpl extends ASTWrapperPsiElement implements BallerinaStructDefinitionBody { + + public BallerinaStructDefinitionBodyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitStructDefinitionBody(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getTypeNameList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaTypeName.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java new file mode 100644 index 000000000000..f430a0970b0a --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaStructDefinitionImpl extends ASTWrapperPsiElement implements BallerinaStructDefinition { + + public BallerinaStructDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitStructDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaStructDefinitionBody getStructDefinitionBody() { + return findNotNullChildByClass(BallerinaStructDefinitionBody.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java new file mode 100644 index 000000000000..b727edcafc8d --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaThrowStatementImpl extends ASTWrapperPsiElement implements BallerinaThrowStatement { + + public BallerinaThrowStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitThrowStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java new file mode 100644 index 000000000000..cd62a60642a0 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaTimeoutClauseImpl extends ASTWrapperPsiElement implements BallerinaTimeoutClause { + + public BallerinaTimeoutClauseImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitTimeoutClause(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java new file mode 100644 index 000000000000..8d00b5f4b1f9 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaTriggerWorkerImpl extends ASTWrapperPsiElement implements BallerinaTriggerWorker { + + public BallerinaTriggerWorkerImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitTriggerWorker(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java new file mode 100644 index 000000000000..893b21381d3e --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaTryCatchStatementImpl extends ASTWrapperPsiElement implements BallerinaTryCatchStatement { + + public BallerinaTryCatchStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitTryCatchStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaCatchClause getCatchClause() { + return findNotNullChildByClass(BallerinaCatchClause.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java new file mode 100644 index 000000000000..7ab81456b961 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java @@ -0,0 +1,53 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaTypeConverterTypesImpl extends ASTWrapperPsiElement implements BallerinaTypeConverterTypes { + + public BallerinaTypeConverterTypesImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitTypeConverterTypes(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaSimpleType getSimpleType() { + return findChildByClass(BallerinaSimpleType.class); + } + + @Override + @Nullable + public BallerinaWithFullSchemaType getWithFullSchemaType() { + return findChildByClass(BallerinaWithFullSchemaType.class); + } + + @Override + @Nullable + public BallerinaWithScheamURLType getWithScheamURLType() { + return findChildByClass(BallerinaWithScheamURLType.class); + } + + @Override + @Nullable + public BallerinaWithSchemaIdType getWithSchemaIdType() { + return findChildByClass(BallerinaWithSchemaIdType.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java new file mode 100644 index 000000000000..d8d969b22c2a --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaTypeConvertorBodyImpl extends ASTWrapperPsiElement implements BallerinaTypeConvertorBody { + + public BallerinaTypeConvertorBodyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitTypeConvertorBody(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + + @Override + @NotNull + public List getVariableDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaVariableDeclaration.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java new file mode 100644 index 000000000000..b9e9e37fc978 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaTypeConvertorDefinitionImpl extends ASTWrapperPsiElement implements BallerinaTypeConvertorDefinition { + + public BallerinaTypeConvertorDefinitionImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitTypeConvertorDefinition(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getTypeConverterTypesList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaTypeConverterTypes.class); + } + + @Override + @NotNull + public BallerinaTypeConvertorBody getTypeConvertorBody() { + return findNotNullChildByClass(BallerinaTypeConvertorBody.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java new file mode 100644 index 000000000000..4736c25a8872 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaTypeNameImpl extends ASTWrapperPsiElement implements BallerinaTypeName { + + public BallerinaTypeNameImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitTypeName(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaQualifiedTypeName getQualifiedTypeName() { + return findChildByClass(BallerinaQualifiedTypeName.class); + } + + @Override + @Nullable + public BallerinaUnqualifiedTypeName getUnqualifiedTypeName() { + return findChildByClass(BallerinaUnqualifiedTypeName.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java new file mode 100644 index 000000000000..daf083129f2d --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java @@ -0,0 +1,101 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaUnqualifiedTypeNameImpl extends ASTWrapperPsiElement implements BallerinaUnqualifiedTypeName { + + public BallerinaUnqualifiedTypeNameImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitUnqualifiedTypeName(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaSimpleType getSimpleType() { + return findChildByClass(BallerinaSimpleType.class); + } + + @Override + @Nullable + public BallerinaSimpleTypeArray getSimpleTypeArray() { + return findChildByClass(BallerinaSimpleTypeArray.class); + } + + @Override + @Nullable + public BallerinaSimpleTypeIterate getSimpleTypeIterate() { + return findChildByClass(BallerinaSimpleTypeIterate.class); + } + + @Override + @Nullable + public BallerinaWithFullSchemaType getWithFullSchemaType() { + return findChildByClass(BallerinaWithFullSchemaType.class); + } + + @Override + @Nullable + public BallerinaWithFullSchemaTypeArray getWithFullSchemaTypeArray() { + return findChildByClass(BallerinaWithFullSchemaTypeArray.class); + } + + @Override + @Nullable + public BallerinaWithFullSchemaTypeIterate getWithFullSchemaTypeIterate() { + return findChildByClass(BallerinaWithFullSchemaTypeIterate.class); + } + + @Override + @Nullable + public BallerinaWithScheamIdTypeArray getWithScheamIdTypeArray() { + return findChildByClass(BallerinaWithScheamIdTypeArray.class); + } + + @Override + @Nullable + public BallerinaWithScheamIdTypeIterate getWithScheamIdTypeIterate() { + return findChildByClass(BallerinaWithScheamIdTypeIterate.class); + } + + @Override + @Nullable + public BallerinaWithScheamURLType getWithScheamURLType() { + return findChildByClass(BallerinaWithScheamURLType.class); + } + + @Override + @Nullable + public BallerinaWithSchemaIdType getWithSchemaIdType() { + return findChildByClass(BallerinaWithSchemaIdType.class); + } + + @Override + @Nullable + public BallerinaWithSchemaURLTypeArray getWithSchemaURLTypeArray() { + return findChildByClass(BallerinaWithSchemaURLTypeArray.class); + } + + @Override + @Nullable + public BallerinaWithSchemaURLTypeIterate getWithSchemaURLTypeIterate() { + return findChildByClass(BallerinaWithSchemaURLTypeIterate.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java new file mode 100644 index 000000000000..55f789edde88 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaVariableDeclarationImpl extends ASTWrapperPsiElement implements BallerinaVariableDeclaration { + + public BallerinaVariableDeclarationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitVariableDeclaration(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java new file mode 100644 index 000000000000..030fd8a6ea27 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaVariableReferenceImpl extends ASTWrapperPsiElement implements BallerinaVariableReference { + + public BallerinaVariableReferenceImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitVariableReference(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaExpression getExpression() { + return findChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java new file mode 100644 index 000000000000..43c19a7f0f7a --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaVariableReferenceListImpl extends ASTWrapperPsiElement implements BallerinaVariableReferenceList { + + public BallerinaVariableReferenceListImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitVariableReferenceList(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getVariableReferenceList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaVariableReference.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java new file mode 100644 index 000000000000..c6b4f75bb391 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWhileStatementImpl extends ASTWrapperPsiElement implements BallerinaWhileStatement { + + public BallerinaWhileStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWhileStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public BallerinaExpression getExpression() { + return findNotNullChildByClass(BallerinaExpression.class); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java new file mode 100644 index 000000000000..7a528a1a9aa1 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithFullSchemaTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaWithFullSchemaTypeArray { + + public BallerinaWithFullSchemaTypeArrayImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithFullSchemaTypeArray(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getQuotedStringLiteral() { + return findNotNullChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java new file mode 100644 index 000000000000..aced01396196 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithFullSchemaTypeImpl extends ASTWrapperPsiElement implements BallerinaWithFullSchemaType { + + public BallerinaWithFullSchemaTypeImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithFullSchemaType(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getQuotedStringLiteral() { + return findNotNullChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java new file mode 100644 index 000000000000..0a640520cac7 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java @@ -0,0 +1,35 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithFullSchemaTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaWithFullSchemaTypeIterate { + + public BallerinaWithFullSchemaTypeIterateImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithFullSchemaTypeIterate(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getQuotedStringLiteral() { + return findNotNullChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java new file mode 100644 index 000000000000..d74b6e8c47fb --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithScheamIdTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaWithScheamIdTypeArray { + + public BallerinaWithScheamIdTypeArrayImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithScheamIdTypeArray(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java new file mode 100644 index 000000000000..5e1cf5a2ed01 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithScheamIdTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaWithScheamIdTypeIterate { + + public BallerinaWithScheamIdTypeIterateImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithScheamIdTypeIterate(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java new file mode 100644 index 000000000000..a513fc843315 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithScheamURLTypeImpl extends ASTWrapperPsiElement implements BallerinaWithScheamURLType { + + public BallerinaWithScheamURLTypeImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithScheamURLType(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + + @Override + @NotNull + public PsiElement getQuotedStringLiteral() { + return findNotNullChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java new file mode 100644 index 000000000000..d884f41eee63 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithSchemaIdTypeImpl extends ASTWrapperPsiElement implements BallerinaWithSchemaIdType { + + public BallerinaWithSchemaIdTypeImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithSchemaIdType(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java new file mode 100644 index 000000000000..8143748de9bc --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithSchemaURLTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaWithSchemaURLTypeArray { + + public BallerinaWithSchemaURLTypeArrayImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithSchemaURLTypeArray(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + + @Override + @NotNull + public PsiElement getQuotedStringLiteral() { + return findNotNullChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java new file mode 100644 index 000000000000..b99a4f060959 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWithSchemaURLTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaWithSchemaURLTypeIterate { + + public BallerinaWithSchemaURLTypeIterateImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWithSchemaURLTypeIterate(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public PsiElement getIdentifier() { + return findNotNullChildByType(IDENTIFIER); + } + + @Override + @NotNull + public PsiElement getQuotedStringLiteral() { + return findNotNullChildByType(QUOTEDSTRINGLITERAL); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java new file mode 100644 index 000000000000..2af8b16a5e00 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java @@ -0,0 +1,47 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWorkerDeclarationImpl extends ASTWrapperPsiElement implements BallerinaWorkerDeclaration { + + public BallerinaWorkerDeclarationImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWorkerDeclaration(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + + @Override + @NotNull + public BallerinaTypeName getTypeName() { + return findNotNullChildByClass(BallerinaTypeName.class); + } + + @Override + @NotNull + public List getVariableDeclarationList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaVariableDeclaration.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java new file mode 100644 index 000000000000..01fc3b83f373 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java @@ -0,0 +1,41 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWorkerInteractionStatementImpl extends ASTWrapperPsiElement implements BallerinaWorkerInteractionStatement { + + public BallerinaWorkerInteractionStatementImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWorkerInteractionStatement(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @Nullable + public BallerinaTriggerWorker getTriggerWorker() { + return findChildByClass(BallerinaTriggerWorker.class); + } + + @Override + @Nullable + public BallerinaWorkerReply getWorkerReply() { + return findChildByClass(BallerinaWorkerReply.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java new file mode 100644 index 000000000000..56495c45373b --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java @@ -0,0 +1,29 @@ +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWorkerReplyImpl extends ASTWrapperPsiElement implements BallerinaWorkerReply { + + public BallerinaWorkerReplyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWorkerReply(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + +} diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index eda1e9070a43..5b4e5b299163 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -27,6 +27,7 @@ + diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index 713ed8422188..3eb2caf207bd 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -94,7 +94,7 @@ BooleanLiteral="regexp:true|false" - QuotedStringLiteral ='regexp:"(?:[^"\\]|\\.)*"' + QuotedStringLiteral ='regexp:\"([^\\\"\r\n]|\\[^\r\n])*(\"|\\)?' ValidBackTickStringCharacters ='regexp:`[^`]*`' diff --git a/src/org/ballerinalang/Ballerina.flex b/src/org/ballerinalang/Ballerina.flex new file mode 100644 index 000000000000..71a52bfa8fcf --- /dev/null +++ b/src/org/ballerinalang/Ballerina.flex @@ -0,0 +1,111 @@ +package org.ballerinalang; + +import com.intellij.lexer.FlexLexer; +import com.intellij.psi.tree.IElementType; +import org.ballerinalang.psi.BallerinaTypes; +import com.intellij.psi.TokenType; + +%% + +%class BallerinaLexer +%implements FlexLexer +%unicode +%function advance +%type IElementType +%eof{ return; +%eof} + +EOL=\R +WHITE_SPACE=\s+ + +INTEGERLITERAL=0|[1-9][0-9]* +FLOATINGPOINTLITERAL=(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF] +BOOLEANLITERAL=true|false +QUOTEDSTRINGLITERAL=\"([^\\\"\r\n]|\\[^\r\n])*\" +VALIDBACKTICKSTRINGCHARACTERS=`[^`]*` +IDENTIFIER=[a-zA-Z$_][a-zA-Z0-9$_]* +LINE_COMMENT="//"[^\r\n]* + +%% + { + {WHITE_SPACE} { return TokenType.WHITE_SPACE; } + + "action" { return BallerinaTypes.ACTION; } + "break" { return BallerinaTypes.BREAK; } + "catch" { return BallerinaTypes.CATCH; } + "connector" { return BallerinaTypes.CONNECTOR; } + "const" { return BallerinaTypes.CONST; } + "else" { return BallerinaTypes.ELSE; } + "fork" { return BallerinaTypes.FORK; } + "function" { return BallerinaTypes.FUNCTION; } + "if" { return BallerinaTypes.IF; } + "import" { return BallerinaTypes.IMPORT; } + "iterate" { return BallerinaTypes.ITERATE; } + "join" { return BallerinaTypes.JOIN; } + "new" { return BallerinaTypes.NEW; } + "package" { return BallerinaTypes.PACKAGE; } + "reply" { return BallerinaTypes.REPLY; } + "resource" { return BallerinaTypes.RESOURCE; } + "return" { return BallerinaTypes.RETURN; } + "service" { return BallerinaTypes.SERVICE; } + "throw" { return BallerinaTypes.THROW; } + "throws" { return BallerinaTypes.THROWS; } + "try" { return BallerinaTypes.TRY; } + "type" { return BallerinaTypes.TYPE; } + "typeconvertor" { return BallerinaTypes.TYPECONVERTOR; } + "while" { return BallerinaTypes.WHILE; } + "worker" { return BallerinaTypes.WORKER; } + "`" { return BallerinaTypes.BACKTICK; } + "version" { return BallerinaTypes.VERSION; } + "public" { return BallerinaTypes.PUBLIC; } + "any" { return BallerinaTypes.ANY; } + "all" { return BallerinaTypes.ALL; } + "as" { return BallerinaTypes.AS; } + "timeout" { return BallerinaTypes.TIMEOUT; } + "->" { return BallerinaTypes.SENDARROW; } + "<-" { return BallerinaTypes.RECEIVEARROW; } + "(" { return BallerinaTypes.LPAREN; } + ")" { return BallerinaTypes.RPAREN; } + "{" { return BallerinaTypes.LBRACE; } + "}" { return BallerinaTypes.RBRACE; } + "[" { return BallerinaTypes.LBRACK; } + "]" { return BallerinaTypes.RBRACK; } + ";" { return BallerinaTypes.SEMI; } + "," { return BallerinaTypes.COMMA; } + "." { return BallerinaTypes.DOT; } + "=" { return BallerinaTypes.ASSIGN; } + ">" { return BallerinaTypes.GT; } + "<" { return BallerinaTypes.LT; } + "!" { return BallerinaTypes.BANG; } + "~" { return BallerinaTypes.TILDE; } + "?" { return BallerinaTypes.QUESTION; } + ":" { return BallerinaTypes.COLON; } + "==" { return BallerinaTypes.EQUAL; } + "<=" { return BallerinaTypes.LE; } + ">=" { return BallerinaTypes.GE; } + "!=" { return BallerinaTypes.NOTEQUAL; } + "&&" { return BallerinaTypes.AND; } + "||" { return BallerinaTypes.OR; } + "+" { return BallerinaTypes.ADD; } + "-" { return BallerinaTypes.SUB; } + "*" { return BallerinaTypes.MUL; } + "/" { return BallerinaTypes.DIV; } + "&" { return BallerinaTypes.BITAND; } + "|" { return BallerinaTypes.BITOR; } + "^" { return BallerinaTypes.CARET; } + "%" { return BallerinaTypes.MOD; } + "$" { return BallerinaTypes.DOLLAR_SIGN; } + "null" { return BallerinaTypes.NULLLITERAL; } + + {INTEGERLITERAL} { return BallerinaTypes.INTEGERLITERAL; } + {FLOATINGPOINTLITERAL} { return BallerinaTypes.FLOATINGPOINTLITERAL; } + {BOOLEANLITERAL} { return BallerinaTypes.BOOLEANLITERAL; } + {QUOTEDSTRINGLITERAL} { return BallerinaTypes.QUOTEDSTRINGLITERAL; } + {VALIDBACKTICKSTRINGCHARACTERS} { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; } + {IDENTIFIER} { return BallerinaTypes.IDENTIFIER; } + {WHITE_SPACE} { return BallerinaTypes.WHITE_SPACE; } + {LINE_COMMENT} { return BallerinaTypes.LINE_COMMENT; } + +} + +[^] { return TokenType.BAD_CHARACTER; } diff --git a/src/org/ballerinalang/BallerinaFileType.java b/src/org/ballerinalang/BallerinaFileType.java index 882ee097658f..f3cb6fdffcda 100644 --- a/src/org/ballerinalang/BallerinaFileType.java +++ b/src/org/ballerinalang/BallerinaFileType.java @@ -17,9 +17,10 @@ package org.ballerinalang; import com.intellij.openapi.fileTypes.LanguageFileType; -import org.jetbrains.annotations.*; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; -import javax.swing.*; +import javax.swing.Icon; public class BallerinaFileType extends LanguageFileType { public static final BallerinaFileType INSTANCE = new BallerinaFileType(); diff --git a/src/org/ballerinalang/BallerinaFileTypeFactory.java b/src/org/ballerinalang/BallerinaFileTypeFactory.java index f72a6151f63c..ab26230ab67b 100644 --- a/src/org/ballerinalang/BallerinaFileTypeFactory.java +++ b/src/org/ballerinalang/BallerinaFileTypeFactory.java @@ -13,14 +13,15 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.ballerinalang; import com.intellij.openapi.fileTypes.*; - import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.NotNull; public class BallerinaFileTypeFactory extends FileTypeFactory { @Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(BallerinaFileType.INSTANCE, "bal"); } -} \ No newline at end of file +} diff --git a/src/org/ballerinalang/BallerinaIcons.java b/src/org/ballerinalang/BallerinaIcons.java index c0f9d0caecf3..5e85a9af6895 100644 --- a/src/org/ballerinalang/BallerinaIcons.java +++ b/src/org/ballerinalang/BallerinaIcons.java @@ -18,7 +18,7 @@ import com.intellij.openapi.util.IconLoader; -import javax.swing.*; +import javax.swing.Icon; public class BallerinaIcons { public static final Icon FILE = IconLoader.findIcon("/icons/flag.png"); diff --git a/src/org/ballerinalang/BallerinaLanguage.java b/src/org/ballerinalang/BallerinaLanguage.java index 2aeec24e441a..55bc6a6448cd 100644 --- a/src/org/ballerinalang/BallerinaLanguage.java +++ b/src/org/ballerinalang/BallerinaLanguage.java @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.ballerinalang; import com.intellij.lang.Language; diff --git a/src/org/ballerinalang/BallerinaLexerAdapter.java b/src/org/ballerinalang/BallerinaLexerAdapter.java new file mode 100644 index 000000000000..05acc3e86ba1 --- /dev/null +++ b/src/org/ballerinalang/BallerinaLexerAdapter.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang; + +import com.intellij.lexer.FlexAdapter; + +import java.io.Reader; + +public class BallerinaLexerAdapter extends FlexAdapter { + public BallerinaLexerAdapter() { + super(new BallerinaLexer((Reader) null)); + } +} diff --git a/src/org/ballerinalang/BallerinaParserDefinition.java b/src/org/ballerinalang/BallerinaParserDefinition.java new file mode 100644 index 000000000000..397626eeb677 --- /dev/null +++ b/src/org/ballerinalang/BallerinaParserDefinition.java @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang; + +import com.intellij.lang.*; +import com.intellij.lexer.Lexer; +import com.intellij.openapi.project.Project; +import com.intellij.psi.*; +import com.intellij.psi.tree.*; + +import org.ballerinalang.parser.BallerinaParser; +import org.ballerinalang.psi.BallerinaFile; +import org.ballerinalang.psi.BallerinaTypes; +import org.jetbrains.annotations.NotNull; + +public class BallerinaParserDefinition implements ParserDefinition { + public static final TokenSet WHITE_SPACES = TokenSet.create(TokenType.WHITE_SPACE); + public static final TokenSet COMMENTS = TokenSet.create(BallerinaTypes.LINE_COMMENT); + + public static final IFileElementType FILE = + new IFileElementType(Language.findInstance(BallerinaLanguage.class)); + + @NotNull + @Override + public Lexer createLexer(Project project) { + return new BallerinaLexerAdapter(); + } + + @NotNull + public TokenSet getWhitespaceTokens() { + return WHITE_SPACES; + } + + @NotNull + public TokenSet getCommentTokens() { + return COMMENTS; + } + + @NotNull + public TokenSet getStringLiteralElements() { + return TokenSet.EMPTY; + } + + @NotNull + public PsiParser createParser(final Project project) { + return new BallerinaParser(); + } + + @Override + public IFileElementType getFileNodeType() { + return FILE; + } + + public PsiFile createFile(FileViewProvider viewProvider) { + return new BallerinaFile(viewProvider); + } + + public SpaceRequirements spaceExistanceTypeBetweenTokens(ASTNode left, ASTNode right) { + return SpaceRequirements.MAY; + } + + @NotNull + public PsiElement createElement(ASTNode node) { + return BallerinaTypes.Factory.createElement(node); + } +} diff --git a/src/org/ballerinalang/psi/BallerinaElementType.java b/src/org/ballerinalang/psi/BallerinaElementType.java new file mode 100644 index 000000000000..de15db6f1fb4 --- /dev/null +++ b/src/org/ballerinalang/psi/BallerinaElementType.java @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.psi; + +import com.intellij.psi.tree.IElementType; +import org.ballerinalang.BallerinaLanguage; +import org.jetbrains.annotations.*; + +public class BallerinaElementType extends IElementType { + public BallerinaElementType(@NotNull @NonNls String debugName) { + super(debugName, BallerinaLanguage.INSTANCE); + } +} diff --git a/src/org/ballerinalang/psi/BallerinaFile.java b/src/org/ballerinalang/psi/BallerinaFile.java new file mode 100644 index 000000000000..dd19e1001d4f --- /dev/null +++ b/src/org/ballerinalang/psi/BallerinaFile.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.psi; + +import com.intellij.extapi.psi.PsiFileBase; +import com.intellij.openapi.fileTypes.FileType; +import com.intellij.psi.FileViewProvider; +import org.ballerinalang.BallerinaFileType; +import org.ballerinalang.BallerinaLanguage; +import org.jetbrains.annotations.NotNull; + +import javax.swing.Icon; + +public class BallerinaFile extends PsiFileBase { + public BallerinaFile(@NotNull FileViewProvider viewProvider) { + super(viewProvider, BallerinaLanguage.INSTANCE); + } + + @NotNull + @Override + public FileType getFileType() { + return BallerinaFileType.INSTANCE; + } + + @Override + public String toString() { + return "Ballerina File"; + } + + @Override + public Icon getIcon(int flags) { + return super.getIcon(flags); + } +} diff --git a/src/org/ballerinalang/psi/BallerinaTokenType.java b/src/org/ballerinalang/psi/BallerinaTokenType.java new file mode 100644 index 000000000000..0352655a93f5 --- /dev/null +++ b/src/org/ballerinalang/psi/BallerinaTokenType.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.psi; + +import com.intellij.psi.tree.IElementType; +import org.ballerinalang.BallerinaLanguage; +import org.jetbrains.annotations.*; + +public class BallerinaTokenType extends IElementType { + public BallerinaTokenType(@NotNull @NonNls String debugName) { + super(debugName, BallerinaLanguage.INSTANCE); + } + + @Override + public String toString() { + return "BallerinaTokenType." + super.toString(); + } +} From e3fed35e17d3cb976409e1b4330cf306d481ec5f Mon Sep 17 00:00:00 2001 From: shan1024 Date: Mon, 23 Jan 2017 21:28:26 +0530 Subject: [PATCH 09/36] Add commenter --- resources/META-INF/plugin.xml | 1 + src/org/ballerinalang/BallerinaCommenter.java | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 src/org/ballerinalang/BallerinaCommenter.java diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 5b4e5b299163..4ed58071e411 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -28,6 +28,7 @@ + diff --git a/src/org/ballerinalang/BallerinaCommenter.java b/src/org/ballerinalang/BallerinaCommenter.java new file mode 100644 index 000000000000..3a5d5967c492 --- /dev/null +++ b/src/org/ballerinalang/BallerinaCommenter.java @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang; + + +import com.intellij.lang.Commenter; +import org.jetbrains.annotations.Nullable; + +public class BallerinaCommenter implements Commenter { + @Nullable + @Override + public String getLineCommentPrefix() { + return "//"; + } + + @Nullable + @Override + public String getBlockCommentPrefix() { + return ""; + } + + @Nullable + @Override + public String getBlockCommentSuffix() { + return null; + } + + @Nullable + @Override + public String getCommentedBlockCommentPrefix() { + return null; + } + + @Nullable + @Override + public String getCommentedBlockCommentSuffix() { + return null; + } +} From 93ba995a6d6523675311d104c162da75317b319d Mon Sep 17 00:00:00 2001 From: shan1024 Date: Mon, 23 Jan 2017 21:29:20 +0530 Subject: [PATCH 10/36] Add @ token --- gen/org/ballerinalang/BallerinaLexer.java | 760 +++++++++--------- .../ballerinalang/parser/BallerinaParser.java | 13 +- gen/org/ballerinalang/psi/BallerinaTypes.java | 1 + src/org/ballerinalang/Ballerina.bnf | 1 + src/org/ballerinalang/Ballerina.flex | 1 + 5 files changed, 395 insertions(+), 381 deletions(-) diff --git a/gen/org/ballerinalang/BallerinaLexer.java b/gen/org/ballerinalang/BallerinaLexer.java index 4b518b02555b..b1634e69edee 100644 --- a/gen/org/ballerinalang/BallerinaLexer.java +++ b/gen/org/ballerinalang/BallerinaLexer.java @@ -54,7 +54,7 @@ public static int ZZ_CMAP(int ch) { /* The ZZ_CMAP_A table has 640 entries */ static final char ZZ_CMAP_A[] = zzUnpackCMap( "\11\0\1\1\1\2\2\1\1\2\22\0\1\1\1\60\1\21\1\0\1\71\1\70\1\64\1\0\1\47\1\50"+ - "\1\66\1\7\1\56\1\44\1\5\1\25\1\3\11\4\1\63\1\55\1\46\1\57\1\45\1\62\1\0\4"+ + "\1\66\1\7\1\56\1\44\1\5\1\25\1\3\11\4\1\63\1\55\1\46\1\57\1\45\1\62\1\72\4"+ "\24\1\6\1\10\24\24\1\53\1\22\1\54\1\67\1\24\1\23\1\16\1\32\1\26\1\24\1\14"+ "\1\15\1\41\1\34\1\27\1\37\1\33\1\17\1\35\1\31\1\30\1\36\1\24\1\12\1\20\1\11"+ "\1\13\1\43\1\40\1\24\1\42\1\24\1\51\1\65\1\52\1\61\6\0\1\1\32\0\1\1\337\0"+ @@ -70,20 +70,20 @@ public static int ZZ_CMAP(int ch) { "\1\1\1\7\1\10\10\5\1\11\1\12\1\13\1\14"+ "\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24"+ "\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34"+ - "\1\35\1\36\3\0\1\37\12\5\1\40\3\5\1\0"+ - "\1\41\2\0\1\42\1\43\3\5\1\44\12\5\1\45"+ - "\1\46\1\47\1\50\1\51\1\52\1\53\1\54\2\0"+ - "\1\5\1\55\12\5\1\56\1\5\1\57\6\5\1\60"+ - "\7\5\1\61\2\5\1\62\3\5\1\63\1\5\1\64"+ - "\7\5\1\65\3\5\1\66\4\5\1\67\3\5\1\70"+ - "\3\5\1\71\1\72\3\5\1\73\3\5\1\74\2\5"+ - "\1\75\1\5\1\76\2\5\1\77\3\5\1\100\1\101"+ - "\1\5\1\102\1\5\1\103\3\5\1\104\1\5\1\105"+ - "\1\106\1\107\1\5\1\110\1\111\2\5\1\112\3\5"+ - "\1\113"; + "\1\35\1\36\1\37\3\0\1\40\12\5\1\41\3\5"+ + "\1\0\1\42\2\0\1\43\1\44\3\5\1\45\12\5"+ + "\1\46\1\47\1\50\1\51\1\52\1\53\1\54\1\55"+ + "\2\0\1\5\1\56\12\5\1\57\1\5\1\60\6\5"+ + "\1\61\7\5\1\62\2\5\1\63\3\5\1\64\1\5"+ + "\1\65\7\5\1\66\3\5\1\67\4\5\1\70\3\5"+ + "\1\71\3\5\1\72\1\73\3\5\1\74\3\5\1\75"+ + "\2\5\1\76\1\5\1\77\2\5\1\100\3\5\1\101"+ + "\1\102\1\5\1\103\1\5\1\104\3\5\1\105\1\5"+ + "\1\106\1\107\1\110\1\5\1\111\1\112\2\5\1\113"+ + "\3\5\1\114"; private static int [] zzUnpackAction() { - int [] result = new int[203]; + int [] result = new int[204]; int offset = 0; offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); return result; @@ -108,35 +108,35 @@ private static int zzUnpackAction(String packed, int offset, int [] result) { private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\72\0\164\0\256\0\350\0\u0122\0\u015c\0\72"+ - "\0\u0196\0\u01d0\0\u020a\0\u0244\0\u027e\0\u02b8\0\u02f2\0\u032c"+ - "\0\u0366\0\u03a0\0\u03da\0\u0414\0\u044e\0\u0488\0\u04c2\0\u04fc"+ - "\0\u0536\0\u0570\0\u05aa\0\u05e4\0\72\0\72\0\72\0\72"+ - "\0\72\0\72\0\72\0\72\0\u061e\0\u0658\0\72\0\72"+ - "\0\72\0\u0692\0\u06cc\0\72\0\72\0\72\0\u015c\0\256"+ - "\0\u0706\0\u0740\0\72\0\u077a\0\u07b4\0\u07ee\0\u0828\0\u0862"+ - "\0\u089c\0\u08d6\0\u0910\0\u094a\0\u0984\0\u015c\0\u09be\0\u09f8"+ - "\0\u0a32\0\u02f2\0\72\0\u0a6c\0\u032c\0\72\0\u0aa6\0\u0ae0"+ - "\0\u0b1a\0\u0b54\0\u015c\0\u0b8e\0\u0bc8\0\u0c02\0\u0c3c\0\u0c76"+ - "\0\u0cb0\0\u0cea\0\u0d24\0\u0d5e\0\u0d98\0\72\0\72\0\72"+ - "\0\72\0\72\0\72\0\72\0\72\0\u0dd2\0\u0e0c\0\u0e46"+ - "\0\u015c\0\u0e80\0\u0eba\0\u0ef4\0\u0f2e\0\u0f68\0\u0fa2\0\u0fdc"+ - "\0\u1016\0\u1050\0\u108a\0\u015c\0\u10c4\0\u015c\0\u10fe\0\u1138"+ - "\0\u1172\0\u11ac\0\u11e6\0\u1220\0\u015c\0\u125a\0\u1294\0\u12ce"+ - "\0\u1308\0\u1342\0\u137c\0\u13b6\0\u015c\0\u13f0\0\u142a\0\u1464"+ - "\0\u149e\0\u14d8\0\u1512\0\u015c\0\u154c\0\u015c\0\u1586\0\u15c0"+ - "\0\u15fa\0\u1634\0\u166e\0\u16a8\0\u16e2\0\u015c\0\u171c\0\u1756"+ - "\0\u1790\0\u015c\0\u17ca\0\u1804\0\u183e\0\u1878\0\u18b2\0\u18ec"+ - "\0\u1926\0\u1960\0\u015c\0\u199a\0\u19d4\0\u1a0e\0\u015c\0\u015c"+ - "\0\u1a48\0\u1a82\0\u1abc\0\u015c\0\u1af6\0\u1b30\0\u1b6a\0\u015c"+ - "\0\u1ba4\0\u1bde\0\u015c\0\u1c18\0\u015c\0\u1c52\0\u1c8c\0\u015c"+ - "\0\u1cc6\0\u1d00\0\u1d3a\0\u015c\0\u015c\0\u1d74\0\u015c\0\u1dae"+ - "\0\u015c\0\u1de8\0\u1e22\0\u1e5c\0\u015c\0\u1e96\0\u015c\0\u015c"+ - "\0\u015c\0\u1ed0\0\u015c\0\u015c\0\u1f0a\0\u1f44\0\u015c\0\u1f7e"+ - "\0\u1fb8\0\u1ff2\0\u015c"; + "\0\0\0\73\0\166\0\261\0\354\0\u0127\0\u0162\0\73"+ + "\0\u019d\0\u01d8\0\u0213\0\u024e\0\u0289\0\u02c4\0\u02ff\0\u033a"+ + "\0\u0375\0\u03b0\0\u03eb\0\u0426\0\u0461\0\u049c\0\u04d7\0\u0512"+ + "\0\u054d\0\u0588\0\u05c3\0\u05fe\0\73\0\73\0\73\0\73"+ + "\0\73\0\73\0\73\0\73\0\u0639\0\u0674\0\73\0\73"+ + "\0\73\0\u06af\0\u06ea\0\73\0\73\0\73\0\u0162\0\73"+ + "\0\261\0\u0725\0\u0760\0\73\0\u079b\0\u07d6\0\u0811\0\u084c"+ + "\0\u0887\0\u08c2\0\u08fd\0\u0938\0\u0973\0\u09ae\0\u0162\0\u09e9"+ + "\0\u0a24\0\u0a5f\0\u02ff\0\73\0\u0a9a\0\u033a\0\73\0\u0ad5"+ + "\0\u0b10\0\u0b4b\0\u0b86\0\u0162\0\u0bc1\0\u0bfc\0\u0c37\0\u0c72"+ + "\0\u0cad\0\u0ce8\0\u0d23\0\u0d5e\0\u0d99\0\u0dd4\0\73\0\73"+ + "\0\73\0\73\0\73\0\73\0\73\0\73\0\u0e0f\0\u0e4a"+ + "\0\u0e85\0\u0162\0\u0ec0\0\u0efb\0\u0f36\0\u0f71\0\u0fac\0\u0fe7"+ + "\0\u1022\0\u105d\0\u1098\0\u10d3\0\u0162\0\u110e\0\u0162\0\u1149"+ + "\0\u1184\0\u11bf\0\u11fa\0\u1235\0\u1270\0\u0162\0\u12ab\0\u12e6"+ + "\0\u1321\0\u135c\0\u1397\0\u13d2\0\u140d\0\u0162\0\u1448\0\u1483"+ + "\0\u14be\0\u14f9\0\u1534\0\u156f\0\u0162\0\u15aa\0\u0162\0\u15e5"+ + "\0\u1620\0\u165b\0\u1696\0\u16d1\0\u170c\0\u1747\0\u0162\0\u1782"+ + "\0\u17bd\0\u17f8\0\u0162\0\u1833\0\u186e\0\u18a9\0\u18e4\0\u191f"+ + "\0\u195a\0\u1995\0\u19d0\0\u0162\0\u1a0b\0\u1a46\0\u1a81\0\u0162"+ + "\0\u0162\0\u1abc\0\u1af7\0\u1b32\0\u0162\0\u1b6d\0\u1ba8\0\u1be3"+ + "\0\u0162\0\u1c1e\0\u1c59\0\u0162\0\u1c94\0\u0162\0\u1ccf\0\u1d0a"+ + "\0\u0162\0\u1d45\0\u1d80\0\u1dbb\0\u0162\0\u0162\0\u1df6\0\u0162"+ + "\0\u1e31\0\u0162\0\u1e6c\0\u1ea7\0\u1ee2\0\u0162\0\u1f1d\0\u0162"+ + "\0\u0162\0\u0162\0\u1f58\0\u0162\0\u0162\0\u1f93\0\u1fce\0\u0162"+ + "\0\u2009\0\u2044\0\u207f\0\u0162"; private static int [] zzUnpackRowMap() { - int [] result = new int[203]; + int [] result = new int[204]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; @@ -165,232 +165,232 @@ private static int zzUnpackRowMap(String packed, int offset, int [] result) { "\1\24\1\25\3\7\1\26\1\27\1\30\2\7\1\31"+ "\1\32\1\33\1\34\1\35\1\36\1\37\1\40\1\41"+ "\1\42\1\43\1\44\1\45\1\46\1\47\1\50\1\51"+ - "\1\52\1\53\1\54\1\55\1\56\1\57\73\0\2\3"+ - "\72\0\2\60\1\61\1\62\1\0\1\63\3\0\1\62"+ - "\1\63\57\0\2\5\1\61\1\62\1\0\1\63\3\0"+ - "\1\62\1\63\57\0\2\61\70\0\2\7\1\0\1\7"+ - "\1\0\11\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\2\7\1\64\6\7"+ - "\3\0\1\7\1\0\1\7\1\65\4\7\1\66\5\7"+ - "\1\67\1\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\4\7\1\70\4\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\71\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\3\7\1\72\2\7"+ - "\1\73\2\7\3\0\1\7\1\0\2\7\1\74\13\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\75\1\76\3\0\1\7\1\0\1\77\2\7\1\100"+ - "\12\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\4\7\1\101\4\7\3\0\1\7\1\0\16\7\25\0"+ - "\1\7\2\102\1\0\16\102\1\103\1\104\47\102\23\105"+ - "\1\106\46\105\25\0\1\107\47\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\110\2\7\3\0\1\7\1\0\2\7"+ - "\1\111\13\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\1\7\1\112\3\7\1\113\3\7\3\0\1\7"+ - "\1\0\7\7\1\114\6\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\3\7\1\115\1\116\4\7\3\0"+ - "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\2\7\1\117\6\7\3\0\1\7\1\0"+ - "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\3\7\1\120\2\7\1\121\2\7\3\0\1\7\1\0"+ - "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\11\7\3\0\1\7\1\0\2\7\1\122\13\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ - "\1\7\1\0\2\7\1\123\3\7\1\124\7\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\4\7\1\125"+ - "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\45\0"+ - "\1\126\103\0\1\127\56\0\1\130\12\0\1\131\71\0"+ - "\1\132\71\0\1\133\76\0\1\134\72\0\1\135\7\0"+ - "\2\61\1\0\1\62\1\0\1\63\3\0\1\62\1\63"+ - "\57\0\2\136\2\0\1\137\34\0\1\137\30\0\2\7"+ - "\1\0\1\7\1\0\3\7\1\140\5\7\3\0\1\7"+ - "\1\0\14\7\1\141\1\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\7\7"+ - "\1\142\6\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\2\7\1\143\6\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ - "\3\0\1\7\1\0\10\7\1\144\5\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\1\7\1\145\6\7"+ - "\1\146\3\0\1\7\1\0\10\7\1\147\5\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\10\7\1\150"+ - "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\3\7"+ - "\1\151\12\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\7\7\1\152\1\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\153\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\7\7\1\154\1\7"+ - "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\1\7\1\155\7\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\11\7\3\0\1\7\1\0\14\7\1\156\1\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\157\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\2\102\1\0\67\102\2\107\1\0\67\107\3\0\2\7"+ - "\1\0\1\7\1\0\1\7\1\160\7\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\11\7\3\0\1\7\1\0\3\7\1\161\12\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\4\7"+ - "\1\162\4\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\10\7\1\163\5\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\7\7\1\164\1\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\11\7\3\0\1\7\1\0\12\7\1\165\3\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\4\7"+ - "\1\166\4\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\4\7\1\167\11\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\170"+ - "\15\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\11\7\3\0\1\7\1\0\1\7\1\171\14\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\2\7\1\172"+ - "\6\7\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ + "\1\52\1\53\1\54\1\55\1\56\1\57\1\60\74\0"+ + "\2\3\73\0\2\61\1\62\1\63\1\0\1\64\3\0"+ + "\1\63\1\64\60\0\2\5\1\62\1\63\1\0\1\64"+ + "\3\0\1\63\1\64\60\0\2\62\71\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\2\7\1\65"+ + "\6\7\3\0\1\7\1\0\1\7\1\66\4\7\1\67"+ + "\5\7\1\70\1\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\71\4\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\7\7\1\72\1\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\3\7\1\73"+ + "\2\7\1\74\2\7\3\0\1\7\1\0\2\7\1\75"+ + "\13\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\7\7\1\76\1\77\3\0\1\7\1\0\1\100\2\7"+ + "\1\101\12\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\102\4\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\1\0\2\103\1\0\16\103\1\104\1\105"+ + "\50\103\23\106\1\107\47\106\25\0\1\110\50\0\2\7"+ + "\1\0\1\7\1\0\6\7\1\111\2\7\3\0\1\7"+ + "\1\0\2\7\1\112\13\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\1\7\1\113\3\7\1\114\3\7"+ + "\3\0\1\7\1\0\7\7\1\115\6\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\3\7\1\116\1\117"+ + "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\2\7\1\120\6\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\3\7\1\121\2\7\1\122\2\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\2\7\1\123"+ + "\13\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\2\7\1\124\3\7\1\125"+ + "\7\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\4\7\1\126\4\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\46\0\1\127\104\0\1\130\57\0\1\131\12\0"+ + "\1\132\72\0\1\133\72\0\1\134\77\0\1\135\73\0"+ + "\1\136\10\0\2\62\1\0\1\63\1\0\1\64\3\0"+ + "\1\63\1\64\60\0\2\137\2\0\1\140\34\0\1\140"+ + "\31\0\2\7\1\0\1\7\1\0\3\7\1\141\5\7"+ + "\3\0\1\7\1\0\14\7\1\142\1\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\7\7\1\143\6\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\2\7\1\144\6\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\10\7\1\145\5\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\1\7"+ + "\1\146\6\7\1\147\3\0\1\7\1\0\10\7\1\150"+ + "\5\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\10\7\1\151\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\3\7\1\152\12\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\7\7\1\153\1\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\154\6\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\155\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\1\7\1\156\7\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\14\7"+ + "\1\157\1\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\160\6\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\1\0\2\103\1\0\70\103\2\110\1\0"+ + "\70\110\3\0\2\7\1\0\1\7\1\0\1\7\1\161"+ + "\7\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ - "\1\7\1\173\14\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\2\7\1\174\6\7\3\0\1\7\1\0"+ - "\16\7\25\0\1\7\3\0\2\136\3\0\1\63\4\0"+ - "\1\63\57\0\2\136\70\0\2\7\1\0\1\7\1\0"+ - "\4\7\1\175\4\7\3\0\1\7\1\0\16\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\4\7\1\176"+ - "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ + "\3\7\1\162\12\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\163\4\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\10\7\1\164\5\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\7\7\1\165"+ + "\1\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ - "\2\7\1\177\13\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\4\7\1\200\4\7\3\0\1\7\1\0"+ - "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\3\7\1\201\5\7\3\0\1\7\1\0\16\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ - "\1\7\1\0\2\7\1\202\13\7\25\0\1\7\3\0"+ - "\2\7\1\0\1\7\1\0\7\7\1\203\1\7\3\0"+ - "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\4\7\1\204\4\7\3\0\1\7\1\0"+ - "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\11\7\3\0\1\7\1\0\1\205\15\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\10\7\1\140\3\0"+ - "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\11\7\3\0\1\7\1\0\5\7\1\206"+ - "\10\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\11\7\3\0\1\7\1\0\1\7\1\207\14\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ - "\1\7\1\0\15\7\1\210\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\211"+ - "\15\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\10\7\1\212\3\0\1\7\1\0\3\7\1\213\12\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\214\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\2\7\1\215\13\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\7\7\1\216\1\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\217\2\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\220\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\5\7\1\221\10\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\3\7"+ - "\1\222\12\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\11\7\3\0\1\7\1\0\5\7\1\223\10\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\224\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\10\7\1\225\3\0"+ - "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\11\7\3\0\1\7\1\0\2\7\1\226"+ - "\13\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\11\7\3\0\1\7\1\0\12\7\1\227\3\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ - "\1\7\1\0\1\230\15\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\2\7\1\231\6\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\3\7\1\232\5\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ - "\3\0\1\7\1\0\14\7\1\233\1\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\1\7\1\234\7\7"+ - "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\2\7"+ - "\1\235\13\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\11\7\3\0\1\7\1\0\1\7\1\236\14\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ - "\3\0\1\7\1\0\6\7\1\237\7\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\1\7\1\240\7\7"+ - "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\4\7\1\241\4\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\242\2\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\243\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\5\7\1\244\10\7\25\0\1\7\3\0\2\7"+ + "\12\7\1\166\3\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\167\4\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\4\7\1\170\11\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\1\171\15\7\25\0\1\7\4\0\2\7"+ "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\7"+ - "\1\245\14\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\246\2\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\4\7"+ - "\1\247\4\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\4\7\1\250\4\7"+ - "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\1\172\14\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\2\7\1\173\6\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\1\7\1\174\14\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\2\7\1\175\6\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\4\0\2\137"+ + "\3\0\1\64\4\0\1\64\60\0\2\137\71\0\2\7"+ + "\1\0\1\7\1\0\4\7\1\176\4\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\177\4\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\2\7\1\200\13\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\4\7\1\201\4\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\3\7\1\202\5\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\2\7\1\203\13\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ + "\1\204\1\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\4\7\1\205\4\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\206"+ + "\15\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\10\7\1\141\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\5\7\1\207\10\7\25\0\1\7\4\0\2\7"+ "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\7"+ - "\1\251\14\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\3\7\1\252\5\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\10\7"+ - "\1\253\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ + "\1\210\14\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\15\7\1\211\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\1\212\15\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\10\7\1\213\3\0\1\7\1\0"+ + "\3\7\1\214\12\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\2\7\1\215\6\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\2\7\1\216\13\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\7\7\1\217"+ + "\1\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\6\7\1\220\2\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\7\7\1\221\1\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\5\7\1\222\10\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\3\7\1\223\12\7\25\0\1\7\4\0"+ "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ - "\2\7\1\254\13\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\11\7\3\0\1\7\1\0\3\7\1\255"+ - "\12\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\2\7\1\256\6\7\3\0\1\7\1\0\16\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ - "\1\7\1\0\1\7\1\257\14\7\25\0\1\7\3\0"+ + "\5\7\1\224\10\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\7\7\1\225\1\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\10\7\1\226\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\2\7\1\227\13\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\12\7"+ + "\1\230\3\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\1\231\15\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\2\7\1\232"+ + "\6\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\3\7\1\233\5\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\14\7\1\234"+ + "\1\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\1\7\1\235\7\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\2\7\1\236\13\7\25\0\1\7\4\0"+ "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ - "\3\7\1\260\12\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\11\7\3\0\1\7\1\0\1\261\15\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ - "\3\0\1\7\1\0\1\262\15\7\25\0\1\7\3\0"+ - "\2\7\1\0\1\7\1\0\1\7\1\263\7\7\3\0"+ - "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\1\7\1\264\7\7\3\0\1\7\1\0"+ - "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\11\7\3\0\1\7\1\0\1\265\15\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\13\7\1\266\2\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\2\7\1\267\6\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\11\7\3\0\1\7\1\0\2\7\1\270\13\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\1\7"+ - "\1\271\7\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\3\7\1\272\12\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\273"+ - "\15\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\11\7\3\0\1\7\1\0\2\7\1\274\13\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\4\7\1\275"+ - "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\3\0"+ - "\2\7\1\0\1\7\1\0\1\7\1\276\7\7\3\0"+ - "\1\7\1\0\16\7\25\0\1\7\3\0\2\7\1\0"+ - "\1\7\1\0\4\7\1\277\4\7\3\0\1\7\1\0"+ - "\16\7\25\0\1\7\3\0\2\7\1\0\1\7\1\0"+ - "\4\7\1\300\4\7\3\0\1\7\1\0\16\7\25\0"+ - "\1\7\3\0\2\7\1\0\1\7\1\0\11\7\3\0"+ - "\1\7\1\0\3\7\1\301\12\7\25\0\1\7\3\0"+ + "\1\7\1\237\14\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\6\7\1\240"+ + "\7\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\1\7\1\241\7\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\4\7\1\242"+ + "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\6\7\1\243\2\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\2\7\1\244\6\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\5\7\1\245\10\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\1\7\1\246\14\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\6\7\1\247\2\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\4\7\1\250\4\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\4\7\1\251\4\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\1\7\1\252\14\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\3\7\1\253\5\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\10\7\1\254\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\2\7\1\255\13\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\3\7\1\256\12\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\2\7\1\257\6\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\1\7\1\260\14\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\3\7\1\261\12\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ + "\1\0\1\262\15\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\1\263\15\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\1\7"+ + "\1\264\7\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\1\7\1\265\7\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\1\266"+ + "\15\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\13\7\1\267\2\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\2\7\1\270"+ + "\6\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ "\2\7\1\0\1\7\1\0\11\7\3\0\1\7\1\0"+ - "\15\7\1\302\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\4\7\1\303\4\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\11\7"+ - "\3\0\1\7\1\0\3\7\1\304\12\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\11\7\3\0\1\7"+ - "\1\0\2\7\1\305\13\7\25\0\1\7\3\0\2\7"+ - "\1\0\1\7\1\0\4\7\1\306\4\7\3\0\1\7"+ - "\1\0\16\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\2\7\1\307\6\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7\3\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\310\6\7\3\0\1\7\1\0\16\7\25\0\1\7"+ - "\3\0\2\7\1\0\1\7\1\0\1\7\1\311\7\7"+ - "\3\0\1\7\1\0\16\7\25\0\1\7\3\0\2\7"+ + "\2\7\1\271\13\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\1\7\1\272\7\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\3\7\1\273\12\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\1\274\15\7\25\0\1\7\4\0\2\7"+ "\1\0\1\7\1\0\11\7\3\0\1\7\1\0\2\7"+ - "\1\312\13\7\25\0\1\7\3\0\2\7\1\0\1\7"+ - "\1\0\2\7\1\313\6\7\3\0\1\7\1\0\16\7"+ - "\25\0\1\7"; + "\1\275\13\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\4\7\1\276\4\7\3\0\1\7\1\0\16\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\1\7"+ + "\1\277\7\7\3\0\1\7\1\0\16\7\25\0\1\7"+ + "\4\0\2\7\1\0\1\7\1\0\4\7\1\300\4\7"+ + "\3\0\1\7\1\0\16\7\25\0\1\7\4\0\2\7"+ + "\1\0\1\7\1\0\4\7\1\301\4\7\3\0\1\7"+ + "\1\0\16\7\25\0\1\7\4\0\2\7\1\0\1\7"+ + "\1\0\11\7\3\0\1\7\1\0\3\7\1\302\12\7"+ + "\25\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ + "\3\0\1\7\1\0\15\7\1\303\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\4\7\1\304\4\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\11\7\3\0\1\7\1\0\3\7\1\305"+ + "\12\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\11\7\3\0\1\7\1\0\2\7\1\306\13\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\4\7\1\307"+ + "\4\7\3\0\1\7\1\0\16\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\2\7\1\310\6\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\4\0\2\7\1\0"+ + "\1\7\1\0\2\7\1\311\6\7\3\0\1\7\1\0"+ + "\16\7\25\0\1\7\4\0\2\7\1\0\1\7\1\0"+ + "\1\7\1\312\7\7\3\0\1\7\1\0\16\7\25\0"+ + "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\3\0"+ + "\1\7\1\0\2\7\1\313\13\7\25\0\1\7\4\0"+ + "\2\7\1\0\1\7\1\0\2\7\1\314\6\7\3\0"+ + "\1\7\1\0\16\7\25\0\1\7\1\0"; private static int [] zzUnpackTrans() { - int [] result = new int[8236]; + int [] result = new int[8378]; int offset = 0; offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); return result; @@ -429,11 +429,11 @@ private static int zzUnpackTrans(String packed, int offset, int [] result) { private static final String ZZ_ATTRIBUTE_PACKED_0 = "\1\0\1\11\5\1\1\11\24\1\10\11\2\1\3\11"+ - "\2\1\3\11\1\1\3\0\1\11\16\1\1\0\1\11"+ - "\2\0\1\11\17\1\10\11\2\0\154\1"; + "\2\1\3\11\1\1\1\11\3\0\1\11\16\1\1\0"+ + "\1\11\2\0\1\11\17\1\10\11\2\0\154\1"; private static int [] zzUnpackAttribute() { - int [] result = new int[203]; + int [] result = new int[204]; int offset = 0; offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); return result; @@ -749,303 +749,307 @@ else if (zzAtEOF) { case 1: { return TokenType.BAD_CHARACTER; } - case 76: break; + case 77: break; case 2: { return TokenType.WHITE_SPACE; } - case 77: break; + case 78: break; case 3: { return BallerinaTypes.INTEGERLITERAL; } - case 78: break; + case 79: break; case 4: { return BallerinaTypes.DOT; } - case 79: break; + case 80: break; case 5: { return BallerinaTypes.IDENTIFIER; } - case 80: break; + case 81: break; case 6: { return BallerinaTypes.ADD; } - case 81: break; + case 82: break; case 7: { return BallerinaTypes.BACKTICK; } - case 82: break; + case 83: break; case 8: { return BallerinaTypes.DIV; } - case 83: break; + case 84: break; case 9: { return BallerinaTypes.SUB; } - case 84: break; + case 85: break; case 10: { return BallerinaTypes.GT; } - case 85: break; + case 86: break; case 11: { return BallerinaTypes.LT; } - case 86: break; + case 87: break; case 12: { return BallerinaTypes.LPAREN; } - case 87: break; + case 88: break; case 13: { return BallerinaTypes.RPAREN; } - case 88: break; + case 89: break; case 14: { return BallerinaTypes.LBRACE; } - case 89: break; + case 90: break; case 15: { return BallerinaTypes.RBRACE; } - case 90: break; + case 91: break; case 16: { return BallerinaTypes.LBRACK; } - case 91: break; + case 92: break; case 17: { return BallerinaTypes.RBRACK; } - case 92: break; + case 93: break; case 18: { return BallerinaTypes.SEMI; } - case 93: break; + case 94: break; case 19: { return BallerinaTypes.COMMA; } - case 94: break; + case 95: break; case 20: { return BallerinaTypes.ASSIGN; } - case 95: break; + case 96: break; case 21: { return BallerinaTypes.BANG; } - case 96: break; + case 97: break; case 22: { return BallerinaTypes.TILDE; } - case 97: break; + case 98: break; case 23: { return BallerinaTypes.QUESTION; } - case 98: break; + case 99: break; case 24: { return BallerinaTypes.COLON; } - case 99: break; + case 100: break; case 25: { return BallerinaTypes.BITAND; } - case 100: break; + case 101: break; case 26: { return BallerinaTypes.BITOR; } - case 101: break; + case 102: break; case 27: { return BallerinaTypes.MUL; } - case 102: break; + case 103: break; case 28: { return BallerinaTypes.CARET; } - case 103: break; + case 104: break; case 29: { return BallerinaTypes.MOD; } - case 104: break; + case 105: break; case 30: { return BallerinaTypes.DOLLAR_SIGN; } - case 105: break; + case 106: break; case 31: - { return BallerinaTypes.FLOATINGPOINTLITERAL; + { return BallerinaTypes.AT; } - case 106: break; + case 107: break; case 32: - { return BallerinaTypes.AS; + { return BallerinaTypes.FLOATINGPOINTLITERAL; } - case 107: break; + case 108: break; case 33: - { return BallerinaTypes.QUOTEDSTRINGLITERAL; + { return BallerinaTypes.AS; } - case 108: break; + case 109: break; case 34: - { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; + { return BallerinaTypes.QUOTEDSTRINGLITERAL; } - case 109: break; + case 110: break; case 35: - { return BallerinaTypes.LINE_COMMENT; + { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; } - case 110: break; + case 111: break; case 36: - { return BallerinaTypes.IF; + { return BallerinaTypes.LINE_COMMENT; } - case 111: break; + case 112: break; case 37: - { return BallerinaTypes.SENDARROW; + { return BallerinaTypes.IF; } - case 112: break; + case 113: break; case 38: - { return BallerinaTypes.GE; + { return BallerinaTypes.SENDARROW; } - case 113: break; + case 114: break; case 39: - { return BallerinaTypes.RECEIVEARROW; + { return BallerinaTypes.GE; } - case 114: break; + case 115: break; case 40: - { return BallerinaTypes.LE; + { return BallerinaTypes.RECEIVEARROW; } - case 115: break; + case 116: break; case 41: - { return BallerinaTypes.EQUAL; + { return BallerinaTypes.LE; } - case 116: break; + case 117: break; case 42: - { return BallerinaTypes.NOTEQUAL; + { return BallerinaTypes.EQUAL; } - case 117: break; + case 118: break; case 43: - { return BallerinaTypes.AND; + { return BallerinaTypes.NOTEQUAL; } - case 118: break; + case 119: break; case 44: - { return BallerinaTypes.OR; + { return BallerinaTypes.AND; } - case 119: break; + case 120: break; case 45: - { return BallerinaTypes.TRY; + { return BallerinaTypes.OR; } - case 120: break; + case 121: break; case 46: - { return BallerinaTypes.ALL; + { return BallerinaTypes.TRY; } - case 121: break; + case 122: break; case 47: - { return BallerinaTypes.ANY; + { return BallerinaTypes.ALL; } - case 122: break; + case 123: break; case 48: - { return BallerinaTypes.NEW; + { return BallerinaTypes.ANY; } - case 123: break; + case 124: break; case 49: - { return BallerinaTypes.BOOLEANLITERAL; + { return BallerinaTypes.NEW; } - case 124: break; + case 125: break; case 50: - { return BallerinaTypes.TYPE; + { return BallerinaTypes.BOOLEANLITERAL; } - case 125: break; + case 126: break; case 51: - { return BallerinaTypes.ELSE; + { return BallerinaTypes.TYPE; } - case 126: break; + case 127: break; case 52: - { return BallerinaTypes.FORK; + { return BallerinaTypes.ELSE; } - case 127: break; + case 128: break; case 53: - { return BallerinaTypes.NULLLITERAL; + { return BallerinaTypes.FORK; } - case 128: break; + case 129: break; case 54: - { return BallerinaTypes.JOIN; + { return BallerinaTypes.NULLLITERAL; } - case 129: break; + case 130: break; case 55: - { return BallerinaTypes.THROW; + { return BallerinaTypes.JOIN; } - case 130: break; + case 131: break; case 56: - { return BallerinaTypes.REPLY; + { return BallerinaTypes.THROW; } - case 131: break; + case 132: break; case 57: - { return BallerinaTypes.CATCH; + { return BallerinaTypes.REPLY; } - case 132: break; + case 133: break; case 58: - { return BallerinaTypes.CONST; + { return BallerinaTypes.CATCH; } - case 133: break; + case 134: break; case 59: - { return BallerinaTypes.BREAK; + { return BallerinaTypes.CONST; } - case 134: break; + case 135: break; case 60: - { return BallerinaTypes.WHILE; + { return BallerinaTypes.BREAK; } - case 135: break; + case 136: break; case 61: - { return BallerinaTypes.THROWS; + { return BallerinaTypes.WHILE; } - case 136: break; + case 137: break; case 62: - { return BallerinaTypes.RETURN; + { return BallerinaTypes.THROWS; } - case 137: break; + case 138: break; case 63: - { return BallerinaTypes.ACTION; + { return BallerinaTypes.RETURN; } - case 138: break; + case 139: break; case 64: - { return BallerinaTypes.IMPORT; + { return BallerinaTypes.ACTION; } - case 139: break; + case 140: break; case 65: - { return BallerinaTypes.PUBLIC; + { return BallerinaTypes.IMPORT; } - case 140: break; + case 141: break; case 66: - { return BallerinaTypes.WORKER; + { return BallerinaTypes.PUBLIC; } - case 141: break; + case 142: break; case 67: - { return BallerinaTypes.TIMEOUT; + { return BallerinaTypes.WORKER; } - case 142: break; + case 143: break; case 68: - { return BallerinaTypes.SERVICE; + { return BallerinaTypes.TIMEOUT; } - case 143: break; + case 144: break; case 69: - { return BallerinaTypes.ITERATE; + { return BallerinaTypes.SERVICE; } - case 144: break; + case 145: break; case 70: - { return BallerinaTypes.PACKAGE; + { return BallerinaTypes.ITERATE; } - case 145: break; + case 146: break; case 71: - { return BallerinaTypes.VERSION; + { return BallerinaTypes.PACKAGE; } - case 146: break; + case 147: break; case 72: - { return BallerinaTypes.RESOURCE; + { return BallerinaTypes.VERSION; } - case 147: break; + case 148: break; case 73: - { return BallerinaTypes.FUNCTION; + { return BallerinaTypes.RESOURCE; } - case 148: break; + case 149: break; case 74: - { return BallerinaTypes.CONNECTOR; + { return BallerinaTypes.FUNCTION; } - case 149: break; + case 150: break; case 75: + { return BallerinaTypes.CONNECTOR; + } + case 151: break; + case 76: { return BallerinaTypes.TYPECONVERTOR; } - case 150: break; + case 152: break; default: zzScanError(ZZ_NO_MATCH); } diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/parser/BallerinaParser.java index bad1962146f9..a3972b50ddbe 100644 --- a/gen/org/ballerinalang/parser/BallerinaParser.java +++ b/gen/org/ballerinalang/parser/BallerinaParser.java @@ -301,6 +301,7 @@ public static boolean NullLiteral(PsiBuilder b, int l) { // annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? functionBody public static boolean actionDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "actionDefinition")) return false; + if (!nextTokenIs(b, "", AT, ACTION)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, ACTION_DEFINITION, ""); r = actionDefinition_0(b, l + 1); @@ -381,12 +382,13 @@ public static boolean actionInvocationStatement(PsiBuilder b, int l) { // '@' annotationName ( '(' ( elementValuePairs | elementValue )? ')' )? public static boolean annotation(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "annotation")) return false; + if (!nextTokenIs(b, AT)) return false; boolean r; - Marker m = enter_section_(b, l, _NONE_, ANNOTATION, ""); - r = consumeToken(b, "@"); + Marker m = enter_section_(b); + r = consumeToken(b, AT); r = r && annotationName(b, l + 1); r = r && annotation_2(b, l + 1); - exit_section_(b, l, m, r, false, null); + exit_section_(b, m, ANNOTATION, r); return r; } @@ -837,6 +839,7 @@ private static boolean connectorDeclaration_6(PsiBuilder b, int l) { // annotation* 'connector' Identifier '(' parameterList ')' connectorBody public static boolean connectorDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "connectorDefinition")) return false; + if (!nextTokenIs(b, "", AT, CONNECTOR)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, CONNECTOR_DEFINITION, ""); r = connectorDefinition_0(b, l + 1); @@ -1879,6 +1882,7 @@ private static boolean packageName_1_0(PsiBuilder b, int l) { // annotation* typeName Identifier public static boolean parameter(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "parameter")) return false; + if (!nextTokenIs(b, "", AT, IDENTIFIER)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, PARAMETER, ""); r = parameter_0(b, l + 1); @@ -1904,6 +1908,7 @@ private static boolean parameter_0(PsiBuilder b, int l) { // parameter (',' parameter )* public static boolean parameterList(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "parameterList")) return false; + if (!nextTokenIs(b, "", AT, IDENTIFIER)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, PARAMETER_LIST, ""); r = parameter(b, l + 1); @@ -1980,6 +1985,7 @@ public static boolean replyStatement(PsiBuilder b, int l) { // annotation* 'resource' Identifier '(' parameterList ')' functionBody public static boolean resourceDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "resourceDefinition")) return false; + if (!nextTokenIs(b, "", AT, RESOURCE)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, RESOURCE_DEFINITION, ""); r = resourceDefinition_0(b, l + 1); @@ -2156,6 +2162,7 @@ private static boolean serviceBodyDeclaration_2(PsiBuilder b, int l) { // annotation* 'service' Identifier serviceBody public static boolean serviceDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "serviceDefinition")) return false; + if (!nextTokenIs(b, "", AT, SERVICE)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, SERVICE_DEFINITION, ""); r = serviceDefinition_0(b, l + 1); diff --git a/gen/org/ballerinalang/psi/BallerinaTypes.java b/gen/org/ballerinalang/psi/BallerinaTypes.java index 1d8880e81b0c..9232ceed4383 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypes.java +++ b/gen/org/ballerinalang/psi/BallerinaTypes.java @@ -100,6 +100,7 @@ public interface BallerinaTypes { IElementType ANY = new BallerinaTokenType("any"); IElementType AS = new BallerinaTokenType("as"); IElementType ASSIGN = new BallerinaTokenType("="); + IElementType AT = new BallerinaTokenType("@"); IElementType BACKTICK = new BallerinaTokenType("`"); IElementType BANG = new BallerinaTokenType("!"); IElementType BITAND = new BallerinaTokenType("&"); diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index 3eb2caf207bd..e405aca07d3e 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -84,6 +84,7 @@ CARET = '^'; MOD = '%'; DOLLAR_SIGN = '$'; + AT = '@'; NullLiteral = "null" diff --git a/src/org/ballerinalang/Ballerina.flex b/src/org/ballerinalang/Ballerina.flex index 71a52bfa8fcf..c57cb88a2909 100644 --- a/src/org/ballerinalang/Ballerina.flex +++ b/src/org/ballerinalang/Ballerina.flex @@ -95,6 +95,7 @@ LINE_COMMENT="//"[^\r\n]* "^" { return BallerinaTypes.CARET; } "%" { return BallerinaTypes.MOD; } "$" { return BallerinaTypes.DOLLAR_SIGN; } + "@" { return BallerinaTypes.AT; } "null" { return BallerinaTypes.NULLLITERAL; } {INTEGERLITERAL} { return BallerinaTypes.INTEGERLITERAL; } From 74b24f602ad9e51ec90b1dbe8143ea463f2660d0 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 11:06:00 +0530 Subject: [PATCH 11/36] Update bnf file to add license header to generated files This commit will add a custom license header to all the files generated using the Ballerina.bnf file. --- src/org/ballerinalang/Ballerina.bnf | 2 ++ src/org/ballerinalang/BallerinaBlock.java | 19 +++++++++++++++++++ .../BallerinaFormattingModelBuilder.java | 19 +++++++++++++++++++ src/org/ballerinalang/CopyrightHeader | 17 +++++++++++++++++ 4 files changed, 57 insertions(+) create mode 100644 src/org/ballerinalang/BallerinaBlock.java create mode 100644 src/org/ballerinalang/BallerinaFormattingModelBuilder.java create mode 100644 src/org/ballerinalang/CopyrightHeader diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index e405aca07d3e..9398a2f8bfae 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -1,4 +1,6 @@ { + + classHeader='CopyrightHeader' parserClass="org.ballerinalang.parser.BallerinaParser" extends="com.intellij.extapi.psi.ASTWrapperPsiElement" diff --git a/src/org/ballerinalang/BallerinaBlock.java b/src/org/ballerinalang/BallerinaBlock.java new file mode 100644 index 000000000000..0307b8adf890 --- /dev/null +++ b/src/org/ballerinalang/BallerinaBlock.java @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.ballerinalang; + +public class BallerinaBlock { +} diff --git a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java new file mode 100644 index 000000000000..557134c9fcde --- /dev/null +++ b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.ballerinalang; + +public class BallerinaFormattingModelBuilder { +} diff --git a/src/org/ballerinalang/CopyrightHeader b/src/org/ballerinalang/CopyrightHeader new file mode 100644 index 000000000000..a2035b52fe3e --- /dev/null +++ b/src/org/ballerinalang/CopyrightHeader @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. From 6e7c1805dcdb21663ebde88e19da84b0cea1acc9 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 11:08:13 +0530 Subject: [PATCH 12/36] Add license header --- .../ballerinalang/parser/BallerinaParser.java | 16 ++++++++++++++++ .../psi/BallerinaActionDefinition.java | 16 ++++++++++++++++ .../psi/BallerinaActionInvocation.java | 16 ++++++++++++++++ .../psi/BallerinaActionInvocationStatement.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaAnnotation.java | 16 ++++++++++++++++ .../psi/BallerinaAnnotationName.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaArgumentList.java | 16 ++++++++++++++++ .../psi/BallerinaAssignmentStatement.java | 16 ++++++++++++++++ .../psi/BallerinaBacktickString.java | 16 ++++++++++++++++ .../psi/BallerinaBreakStatement.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaCatchClause.java | 16 ++++++++++++++++ .../psi/BallerinaCommentStatement.java | 16 ++++++++++++++++ .../psi/BallerinaConnectorBody.java | 16 ++++++++++++++++ .../psi/BallerinaConnectorDeclaration.java | 16 ++++++++++++++++ .../psi/BallerinaConnectorDefinition.java | 16 ++++++++++++++++ .../psi/BallerinaConstantDefinition.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaElementValue.java | 16 ++++++++++++++++ .../BallerinaElementValueArrayInitializer.java | 16 ++++++++++++++++ .../psi/BallerinaElementValuePair.java | 16 ++++++++++++++++ .../psi/BallerinaElementValuePairs.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaElseClause.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaElseIfClause.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaExpression.java | 16 ++++++++++++++++ .../psi/BallerinaExpressionList.java | 16 ++++++++++++++++ .../psi/BallerinaForkJoinStatement.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaFunctionBody.java | 16 ++++++++++++++++ .../psi/BallerinaFunctionDefinition.java | 16 ++++++++++++++++ .../BallerinaFunctionInvocationStatement.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaFunctionName.java | 16 ++++++++++++++++ .../psi/BallerinaIfElseStatement.java | 16 ++++++++++++++++ .../psi/BallerinaImportDeclaration.java | 16 ++++++++++++++++ .../psi/BallerinaIterateStatement.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaJoinClause.java | 16 ++++++++++++++++ .../psi/BallerinaJoinConditions.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaLiteralValue.java | 16 ++++++++++++++++ .../psi/BallerinaMapInitKeyValue.java | 16 ++++++++++++++++ .../psi/BallerinaMapInitKeyValueList.java | 16 ++++++++++++++++ .../psi/BallerinaNamedParameter.java | 16 ++++++++++++++++ .../psi/BallerinaNamedParameterList.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaNullLiteral.java | 16 ++++++++++++++++ .../psi/BallerinaPackageDeclaration.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaPackageName.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaParameter.java | 16 ++++++++++++++++ .../psi/BallerinaParameterList.java | 16 ++++++++++++++++ .../psi/BallerinaQualifiedReference.java | 16 ++++++++++++++++ .../psi/BallerinaQualifiedTypeName.java | 16 ++++++++++++++++ .../psi/BallerinaReplyStatement.java | 16 ++++++++++++++++ .../psi/BallerinaResourceDefinition.java | 16 ++++++++++++++++ .../psi/BallerinaReturnParameters.java | 16 ++++++++++++++++ .../psi/BallerinaReturnStatement.java | 16 ++++++++++++++++ .../psi/BallerinaReturnTypeList.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaServiceBody.java | 16 ++++++++++++++++ .../psi/BallerinaServiceBodyDeclaration.java | 16 ++++++++++++++++ .../psi/BallerinaServiceDefinition.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaSimpleType.java | 16 ++++++++++++++++ .../psi/BallerinaSimpleTypeArray.java | 16 ++++++++++++++++ .../psi/BallerinaSimpleTypeIterate.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaStatement.java | 16 ++++++++++++++++ .../psi/BallerinaStructDefinition.java | 16 ++++++++++++++++ .../psi/BallerinaStructDefinitionBody.java | 16 ++++++++++++++++ .../psi/BallerinaThrowStatement.java | 16 ++++++++++++++++ .../psi/BallerinaTimeoutClause.java | 16 ++++++++++++++++ .../psi/BallerinaTriggerWorker.java | 16 ++++++++++++++++ .../psi/BallerinaTryCatchStatement.java | 16 ++++++++++++++++ .../psi/BallerinaTypeConverterTypes.java | 16 ++++++++++++++++ .../psi/BallerinaTypeConvertorBody.java | 16 ++++++++++++++++ .../psi/BallerinaTypeConvertorDefinition.java | 16 ++++++++++++++++ gen/org/ballerinalang/psi/BallerinaTypeName.java | 16 ++++++++++++++++ gen/org/ballerinalang/psi/BallerinaTypes.java | 16 ++++++++++++++++ .../psi/BallerinaUnqualifiedTypeName.java | 16 ++++++++++++++++ .../psi/BallerinaVariableDeclaration.java | 16 ++++++++++++++++ .../psi/BallerinaVariableReference.java | 16 ++++++++++++++++ .../psi/BallerinaVariableReferenceList.java | 16 ++++++++++++++++ gen/org/ballerinalang/psi/BallerinaVisitor.java | 16 ++++++++++++++++ .../psi/BallerinaWhileStatement.java | 16 ++++++++++++++++ .../psi/BallerinaWithFullSchemaType.java | 16 ++++++++++++++++ .../psi/BallerinaWithFullSchemaTypeArray.java | 16 ++++++++++++++++ .../psi/BallerinaWithFullSchemaTypeIterate.java | 16 ++++++++++++++++ .../psi/BallerinaWithScheamIdTypeArray.java | 16 ++++++++++++++++ .../psi/BallerinaWithScheamIdTypeIterate.java | 16 ++++++++++++++++ .../psi/BallerinaWithScheamURLType.java | 16 ++++++++++++++++ .../psi/BallerinaWithSchemaIdType.java | 16 ++++++++++++++++ .../psi/BallerinaWithSchemaURLTypeArray.java | 16 ++++++++++++++++ .../psi/BallerinaWithSchemaURLTypeIterate.java | 16 ++++++++++++++++ .../psi/BallerinaWorkerDeclaration.java | 16 ++++++++++++++++ .../psi/BallerinaWorkerInteractionStatement.java | 16 ++++++++++++++++ .../ballerinalang/psi/BallerinaWorkerReply.java | 16 ++++++++++++++++ .../psi/impl/BallerinaActionDefinitionImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaActionInvocationImpl.java | 16 ++++++++++++++++ .../BallerinaActionInvocationStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaAnnotationImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaAnnotationNameImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaArgumentListImpl.java | 16 ++++++++++++++++ .../impl/BallerinaAssignmentStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaBacktickStringImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaBreakStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaCatchClauseImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaCommentStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaConnectorBodyImpl.java | 16 ++++++++++++++++ .../impl/BallerinaConnectorDeclarationImpl.java | 16 ++++++++++++++++ .../impl/BallerinaConnectorDefinitionImpl.java | 16 ++++++++++++++++ .../impl/BallerinaConstantDefinitionImpl.java | 16 ++++++++++++++++ ...allerinaElementValueArrayInitializerImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaElementValueImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaElementValuePairImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaElementValuePairsImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaElseClauseImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaElseIfClauseImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaExpressionImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaExpressionListImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaForkJoinStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaFunctionBodyImpl.java | 16 ++++++++++++++++ .../impl/BallerinaFunctionDefinitionImpl.java | 16 ++++++++++++++++ ...BallerinaFunctionInvocationStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaFunctionNameImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaIfElseStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaImportDeclarationImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaIterateStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaJoinClauseImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaJoinConditionsImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaLiteralValueImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaMapInitKeyValueImpl.java | 16 ++++++++++++++++ .../impl/BallerinaMapInitKeyValueListImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaNamedParameterImpl.java | 16 ++++++++++++++++ .../impl/BallerinaNamedParameterListImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaNullLiteralImpl.java | 16 ++++++++++++++++ .../impl/BallerinaPackageDeclarationImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaPackageNameImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaParameterImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaParameterListImpl.java | 16 ++++++++++++++++ .../impl/BallerinaQualifiedReferenceImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaQualifiedTypeNameImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaReplyStatementImpl.java | 16 ++++++++++++++++ .../impl/BallerinaResourceDefinitionImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaReturnParametersImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaReturnStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaReturnTypeListImpl.java | 16 ++++++++++++++++ .../BallerinaServiceBodyDeclarationImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaServiceBodyImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaServiceDefinitionImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaSimpleTypeArrayImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaSimpleTypeImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaSimpleTypeIterateImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaStatementImpl.java | 16 ++++++++++++++++ .../impl/BallerinaStructDefinitionBodyImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaStructDefinitionImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaThrowStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaTimeoutClauseImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaTriggerWorkerImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaTryCatchStatementImpl.java | 16 ++++++++++++++++ .../impl/BallerinaTypeConverterTypesImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaTypeConvertorBodyImpl.java | 16 ++++++++++++++++ .../BallerinaTypeConvertorDefinitionImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaTypeNameImpl.java | 16 ++++++++++++++++ .../impl/BallerinaUnqualifiedTypeNameImpl.java | 16 ++++++++++++++++ .../impl/BallerinaVariableDeclarationImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaVariableReferenceImpl.java | 16 ++++++++++++++++ .../impl/BallerinaVariableReferenceListImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaWhileStatementImpl.java | 16 ++++++++++++++++ .../BallerinaWithFullSchemaTypeArrayImpl.java | 16 ++++++++++++++++ .../impl/BallerinaWithFullSchemaTypeImpl.java | 16 ++++++++++++++++ .../BallerinaWithFullSchemaTypeIterateImpl.java | 16 ++++++++++++++++ .../impl/BallerinaWithScheamIdTypeArrayImpl.java | 16 ++++++++++++++++ .../BallerinaWithScheamIdTypeIterateImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaWithScheamURLTypeImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaWithSchemaIdTypeImpl.java | 16 ++++++++++++++++ .../BallerinaWithSchemaURLTypeArrayImpl.java | 16 ++++++++++++++++ .../BallerinaWithSchemaURLTypeIterateImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaWorkerDeclarationImpl.java | 16 ++++++++++++++++ .../BallerinaWorkerInteractionStatementImpl.java | 16 ++++++++++++++++ .../psi/impl/BallerinaWorkerReplyImpl.java | 16 ++++++++++++++++ 171 files changed, 2736 insertions(+) diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/parser/BallerinaParser.java index a3972b50ddbe..040bccc634e6 100644 --- a/gen/org/ballerinalang/parser/BallerinaParser.java +++ b/gen/org/ballerinalang/parser/BallerinaParser.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.parser; diff --git a/gen/org/ballerinalang/psi/BallerinaActionDefinition.java b/gen/org/ballerinalang/psi/BallerinaActionDefinition.java index 7410b15d41e2..555816872ba9 100644 --- a/gen/org/ballerinalang/psi/BallerinaActionDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaActionDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaActionInvocation.java b/gen/org/ballerinalang/psi/BallerinaActionInvocation.java index a9c263da4c9d..231d137492bb 100644 --- a/gen/org/ballerinalang/psi/BallerinaActionInvocation.java +++ b/gen/org/ballerinalang/psi/BallerinaActionInvocation.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java b/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java index e63b312c4c53..3993e4d23c49 100644 --- a/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaAnnotation.java b/gen/org/ballerinalang/psi/BallerinaAnnotation.java index 400cdb51233a..bae36d079b20 100644 --- a/gen/org/ballerinalang/psi/BallerinaAnnotation.java +++ b/gen/org/ballerinalang/psi/BallerinaAnnotation.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaAnnotationName.java b/gen/org/ballerinalang/psi/BallerinaAnnotationName.java index 5f017fb2529d..9ba208387dfd 100644 --- a/gen/org/ballerinalang/psi/BallerinaAnnotationName.java +++ b/gen/org/ballerinalang/psi/BallerinaAnnotationName.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaArgumentList.java b/gen/org/ballerinalang/psi/BallerinaArgumentList.java index b982b9190ef6..1a0de73e9976 100644 --- a/gen/org/ballerinalang/psi/BallerinaArgumentList.java +++ b/gen/org/ballerinalang/psi/BallerinaArgumentList.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java b/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java index 163245f247e2..fea555bef0ca 100644 --- a/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaBacktickString.java b/gen/org/ballerinalang/psi/BallerinaBacktickString.java index c866148c4352..2b0650769b63 100644 --- a/gen/org/ballerinalang/psi/BallerinaBacktickString.java +++ b/gen/org/ballerinalang/psi/BallerinaBacktickString.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaBreakStatement.java b/gen/org/ballerinalang/psi/BallerinaBreakStatement.java index 07d9792c7805..973116a7b9d8 100644 --- a/gen/org/ballerinalang/psi/BallerinaBreakStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaBreakStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaCatchClause.java b/gen/org/ballerinalang/psi/BallerinaCatchClause.java index 63f87d8893b2..6d375ab7832e 100644 --- a/gen/org/ballerinalang/psi/BallerinaCatchClause.java +++ b/gen/org/ballerinalang/psi/BallerinaCatchClause.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaCommentStatement.java b/gen/org/ballerinalang/psi/BallerinaCommentStatement.java index 3449b24c9e83..50ded0e71fc8 100644 --- a/gen/org/ballerinalang/psi/BallerinaCommentStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaCommentStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorBody.java b/gen/org/ballerinalang/psi/BallerinaConnectorBody.java index b761db80a1d4..d2b56175c552 100644 --- a/gen/org/ballerinalang/psi/BallerinaConnectorBody.java +++ b/gen/org/ballerinalang/psi/BallerinaConnectorBody.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java b/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java index 04b7aaae59c7..162ed65a80bc 100644 --- a/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java +++ b/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java b/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java index 810db036522d..96be9c231e19 100644 --- a/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java b/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java index 2c1494e7be9c..1da7ef935a13 100644 --- a/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValue.java b/gen/org/ballerinalang/psi/BallerinaElementValue.java index b4a9eab2e9cb..a11aca5f4608 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValue.java +++ b/gen/org/ballerinalang/psi/BallerinaElementValue.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java b/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java index fd27f866eeb4..ce17ea8e0105 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java +++ b/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValuePair.java b/gen/org/ballerinalang/psi/BallerinaElementValuePair.java index 91797c1152ce..878685c8a45b 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValuePair.java +++ b/gen/org/ballerinalang/psi/BallerinaElementValuePair.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java b/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java index 7e51f50fa212..e5e306e3d997 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java +++ b/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaElseClause.java b/gen/org/ballerinalang/psi/BallerinaElseClause.java index 081e6684c420..d3b7c547ba6d 100644 --- a/gen/org/ballerinalang/psi/BallerinaElseClause.java +++ b/gen/org/ballerinalang/psi/BallerinaElseClause.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClause.java b/gen/org/ballerinalang/psi/BallerinaElseIfClause.java index e857b0725cb1..e54aba402905 100644 --- a/gen/org/ballerinalang/psi/BallerinaElseIfClause.java +++ b/gen/org/ballerinalang/psi/BallerinaElseIfClause.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaExpression.java b/gen/org/ballerinalang/psi/BallerinaExpression.java index e7c0e93f48d6..24668813bf85 100644 --- a/gen/org/ballerinalang/psi/BallerinaExpression.java +++ b/gen/org/ballerinalang/psi/BallerinaExpression.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaExpressionList.java b/gen/org/ballerinalang/psi/BallerinaExpressionList.java index 2bf78818c11e..899c3edf5a48 100644 --- a/gen/org/ballerinalang/psi/BallerinaExpressionList.java +++ b/gen/org/ballerinalang/psi/BallerinaExpressionList.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java b/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java index 35d713a2fb57..6639c4ba5e74 100644 --- a/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionBody.java b/gen/org/ballerinalang/psi/BallerinaFunctionBody.java index b6aad9cb5ec1..4bdf835babfe 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionBody.java +++ b/gen/org/ballerinalang/psi/BallerinaFunctionBody.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java b/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java index bafab940b19d..d9b63d577911 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java b/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java index 832324b4104d..6f9cab6aa1b3 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionName.java b/gen/org/ballerinalang/psi/BallerinaFunctionName.java index 8f30999082f5..2b8dc5f71d33 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionName.java +++ b/gen/org/ballerinalang/psi/BallerinaFunctionName.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java b/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java index cdddf2a24ca0..a9cc536907ba 100644 --- a/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java b/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java index faf26932057c..a3eab4c66279 100644 --- a/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java +++ b/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaIterateStatement.java b/gen/org/ballerinalang/psi/BallerinaIterateStatement.java index 6c7a927faaaa..c8719524f847 100644 --- a/gen/org/ballerinalang/psi/BallerinaIterateStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaIterateStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaJoinClause.java b/gen/org/ballerinalang/psi/BallerinaJoinClause.java index fcaedeb3b253..350d3920951e 100644 --- a/gen/org/ballerinalang/psi/BallerinaJoinClause.java +++ b/gen/org/ballerinalang/psi/BallerinaJoinClause.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaJoinConditions.java b/gen/org/ballerinalang/psi/BallerinaJoinConditions.java index ad09cb90151d..cd9d85acbd79 100644 --- a/gen/org/ballerinalang/psi/BallerinaJoinConditions.java +++ b/gen/org/ballerinalang/psi/BallerinaJoinConditions.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaLiteralValue.java b/gen/org/ballerinalang/psi/BallerinaLiteralValue.java index 7caa470e370f..f9f0cc15713d 100644 --- a/gen/org/ballerinalang/psi/BallerinaLiteralValue.java +++ b/gen/org/ballerinalang/psi/BallerinaLiteralValue.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java index fdeeda52fb7e..a1cfd98d78a3 100644 --- a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java +++ b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java index 437062a1b265..917f8b532275 100644 --- a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java +++ b/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaNamedParameter.java b/gen/org/ballerinalang/psi/BallerinaNamedParameter.java index 543a9739eb26..423c9cc4e62f 100644 --- a/gen/org/ballerinalang/psi/BallerinaNamedParameter.java +++ b/gen/org/ballerinalang/psi/BallerinaNamedParameter.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java b/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java index 7198e238efcc..e564e5a29f1e 100644 --- a/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java +++ b/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaNullLiteral.java b/gen/org/ballerinalang/psi/BallerinaNullLiteral.java index 9af4f430dd21..70966181b6e3 100644 --- a/gen/org/ballerinalang/psi/BallerinaNullLiteral.java +++ b/gen/org/ballerinalang/psi/BallerinaNullLiteral.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java b/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java index 83abbc5775dd..c8feeda6d05f 100644 --- a/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java +++ b/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaPackageName.java b/gen/org/ballerinalang/psi/BallerinaPackageName.java index 0aa4065bdc4b..8137d6c34195 100644 --- a/gen/org/ballerinalang/psi/BallerinaPackageName.java +++ b/gen/org/ballerinalang/psi/BallerinaPackageName.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaParameter.java b/gen/org/ballerinalang/psi/BallerinaParameter.java index 8a913f7c41ac..6280db1cf3eb 100644 --- a/gen/org/ballerinalang/psi/BallerinaParameter.java +++ b/gen/org/ballerinalang/psi/BallerinaParameter.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaParameterList.java b/gen/org/ballerinalang/psi/BallerinaParameterList.java index 310bd1925593..1708c81eca2f 100644 --- a/gen/org/ballerinalang/psi/BallerinaParameterList.java +++ b/gen/org/ballerinalang/psi/BallerinaParameterList.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java b/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java index fa0a6698a2cd..f74150cbcce6 100644 --- a/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java +++ b/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java b/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java index ff96d1c7f0d7..ac9cccca73fd 100644 --- a/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java +++ b/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaReplyStatement.java b/gen/org/ballerinalang/psi/BallerinaReplyStatement.java index 11ca25fd3166..1de9be7341a4 100644 --- a/gen/org/ballerinalang/psi/BallerinaReplyStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaReplyStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java b/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java index e2ce998b7809..29b16f96a316 100644 --- a/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaReturnParameters.java b/gen/org/ballerinalang/psi/BallerinaReturnParameters.java index d1259286bf4a..dbbb377010f3 100644 --- a/gen/org/ballerinalang/psi/BallerinaReturnParameters.java +++ b/gen/org/ballerinalang/psi/BallerinaReturnParameters.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaReturnStatement.java b/gen/org/ballerinalang/psi/BallerinaReturnStatement.java index 1885e0a26642..a686c9f7855e 100644 --- a/gen/org/ballerinalang/psi/BallerinaReturnStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaReturnStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java b/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java index ab11e9c01cb2..1458a8605258 100644 --- a/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java +++ b/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaServiceBody.java b/gen/org/ballerinalang/psi/BallerinaServiceBody.java index 6151c3dcc84f..af4421fa9a5b 100644 --- a/gen/org/ballerinalang/psi/BallerinaServiceBody.java +++ b/gen/org/ballerinalang/psi/BallerinaServiceBody.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java b/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java index a0cdfebd2012..c4cd703f2156 100644 --- a/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java +++ b/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java b/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java index b795d906f48d..c08cd3a052f7 100644 --- a/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleType.java b/gen/org/ballerinalang/psi/BallerinaSimpleType.java index bad659ca5bf5..3cbcd0d0cb04 100644 --- a/gen/org/ballerinalang/psi/BallerinaSimpleType.java +++ b/gen/org/ballerinalang/psi/BallerinaSimpleType.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java b/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java index bf6d5b245e3e..d98e5a19b617 100644 --- a/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java +++ b/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java index c855c4fab165..3f2718f284cc 100644 --- a/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java +++ b/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaStatement.java b/gen/org/ballerinalang/psi/BallerinaStatement.java index ad8fffb07ff4..f89f1db6d60d 100644 --- a/gen/org/ballerinalang/psi/BallerinaStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaStructDefinition.java b/gen/org/ballerinalang/psi/BallerinaStructDefinition.java index 98513fea1709..9bbe0a624a94 100644 --- a/gen/org/ballerinalang/psi/BallerinaStructDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaStructDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java b/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java index ee3a85a4e9aa..9e3e737e7978 100644 --- a/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java +++ b/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaThrowStatement.java b/gen/org/ballerinalang/psi/BallerinaThrowStatement.java index e08778e91546..9f6e71bef031 100644 --- a/gen/org/ballerinalang/psi/BallerinaThrowStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaThrowStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java b/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java index 18ab01a45ec6..570cb728ab3f 100644 --- a/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java +++ b/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java b/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java index ef5a94cb8005..80743ecf06df 100644 --- a/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java +++ b/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java b/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java index b4658e82683f..c831da1c39fa 100644 --- a/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java b/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java index ce32f2371b8a..775fdcc7777d 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java +++ b/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java b/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java index 84c67d793f33..37e52bffce6c 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java +++ b/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java b/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java index 8819ad2167ef..8aaaa3c729a6 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java +++ b/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeName.java b/gen/org/ballerinalang/psi/BallerinaTypeName.java index 85211bd527c3..d31a8ba924f5 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeName.java +++ b/gen/org/ballerinalang/psi/BallerinaTypeName.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaTypes.java b/gen/org/ballerinalang/psi/BallerinaTypes.java index 9232ceed4383..282fdea232fb 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypes.java +++ b/gen/org/ballerinalang/psi/BallerinaTypes.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java b/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java index a1bb3e5bd6af..6f7ee653b22d 100644 --- a/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java +++ b/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java b/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java index 5ccec74e6ef1..22e1331a0696 100644 --- a/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java +++ b/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaVariableReference.java b/gen/org/ballerinalang/psi/BallerinaVariableReference.java index 6b64d2c8b3b1..f39f19280f8c 100644 --- a/gen/org/ballerinalang/psi/BallerinaVariableReference.java +++ b/gen/org/ballerinalang/psi/BallerinaVariableReference.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java b/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java index 4f5a92fb2581..dc3b4a8f8254 100644 --- a/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java +++ b/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaVisitor.java b/gen/org/ballerinalang/psi/BallerinaVisitor.java index ea0a88977565..61992062dc30 100644 --- a/gen/org/ballerinalang/psi/BallerinaVisitor.java +++ b/gen/org/ballerinalang/psi/BallerinaVisitor.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWhileStatement.java b/gen/org/ballerinalang/psi/BallerinaWhileStatement.java index 523ee388574d..c229ba24cae6 100644 --- a/gen/org/ballerinalang/psi/BallerinaWhileStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaWhileStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java index b560e5771c9d..0a17bd73b98e 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java +++ b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java index e90f83e90579..7ac76cc304bb 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java +++ b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java index 5e750f278153..ab29b745f9ab 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java +++ b/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java index 2a3449edcf85..df1eb8829eb3 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java +++ b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java index 4017b46eb3f0..7192161a282d 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java +++ b/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java b/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java index b3d93aac3130..87fb1b40fcf2 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java +++ b/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java b/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java index 89887cca8973..e81336758a54 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java +++ b/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java index 27c24239b4b2..4cee335cf152 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java +++ b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java index 3d884e25d16a..eb5b0a95e777 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java +++ b/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java b/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java index c61a0c616454..d821f6bf8d78 100644 --- a/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java +++ b/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java b/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java index 565bbbb40b08..ac9f5b4e85f6 100644 --- a/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerReply.java b/gen/org/ballerinalang/psi/BallerinaWorkerReply.java index 062f0acf0442..8d10c483262f 100644 --- a/gen/org/ballerinalang/psi/BallerinaWorkerReply.java +++ b/gen/org/ballerinalang/psi/BallerinaWorkerReply.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java index 23f6447be810..db7aec40a950 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java index a4d7fc874bb5..b8e8c3d6d949 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java index f9e7804cb46c..f3e4830032bb 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java index bcbb5e8a9703..34fcabf1a261 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java index f16a799fdb8b..8444a2ac9ecb 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java index 0e12df5cf51c..38c5f8e3fe08 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java index 6dc880c064ee..b88418224cab 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java index a0af58ca3e74..76b96bee0c9a 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java index 9cc12a876949..5f490e13a408 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java index e7a83d2f0286..38007eed2e94 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java index 28d8587382b0..0cd29eb5ac51 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java index 0d0652ec83ac..1e09fc31d4af 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java index eaf353616d34..ad11e021ab9d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java index 601f6c860aef..47b78936ebac 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java index 29f5417fb6b3..840f3ce31644 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java index 142699495803..4c2accf90abe 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java index af136ce6d642..4672663af98d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java index dff72f738f45..79a4972a234d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java index d61b27eebc86..b9047f5734b0 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java index d1e51b60d75b..2bd898694fc4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java index 5d56f9902130..0598ba03d248 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java index f6b75c790eaf..ece2e3151cfc 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java index 2e0b200b327d..80ea56693779 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java index 8f0bb3fbce53..0f68d365503c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java index acb6e87c3c84..caed0edb46d3 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java index 1aff1121ebab..71e3812a0ad6 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java index 5b163674bcc8..24b58614e932 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java index a9c6b507a229..c534bc29cbbc 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java index 405d50a761ab..e11cdd2ba6b1 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java index de59e9c3765a..c36ff9d8f198 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java index 7bc64be8c74b..6db2d72069f4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java index 4972c7e73269..87ae4bf3ebdc 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java index 3b24e4fb92b7..c09fe7d2a81b 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java index 1012ab5b2f5a..0bec70aa08c4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java index 2267398a01c7..cd68c02840e7 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java index d19fc84d373d..705e807b68e2 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java index 5c6601288421..998551752185 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java index 3b904b9d108a..cbf87ca3a7d0 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java index 9e743bfc442e..82e95347ada8 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java index 9ad5e11bbb6c..3e93f28793c5 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java index c3b329822a17..b5854e006372 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java index f4f96c117fb0..41ebbc069522 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java index e2d8296fb29c..65f1e2e6318a 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java index 3a45e1a4556c..681ecbf2749f 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java index a59bcb0f9cbd..077b0fd16812 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java index 666e4c760b60..fafb4709cbaa 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java index 7a0c4f40a1fc..116e2fb184f2 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java index d51133f3e060..3df1c15d26f4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java index cc7dd2eb6fd3..58175268a642 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java index 2d4c13b185cf..c733d5a1309c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java index 1975f6da9508..18b2e84bc6ef 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java index d68429a01648..ea2be45f4d97 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java index 38b0b6f34288..50289521086a 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java index 362bbf4f7d7b..6d389a536be6 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java index b67dc40ba2e0..dd5336523586 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java index d3c0dd1fc515..6506681a91ee 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java index 5d5c16d0cccd..b9f56fb911d0 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java index 2d790b16b685..3c6eadb90d7a 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java index f430a0970b0a..b1ddc32fb0b5 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java index b727edcafc8d..9106cd46e3f3 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java index cd62a60642a0..a4103d46ec06 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java index 8d00b5f4b1f9..eb3d499582d0 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java index 893b21381d3e..be0a7eefc7ff 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java index 7ab81456b961..d572ad57d093 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java index d8d969b22c2a..cd77e010f82d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java index b9e9e37fc978..60be1c034d36 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java index 4736c25a8872..436ffd68eed2 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java index daf083129f2d..a847c729cb12 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java index 55f789edde88..ecb1ee102b78 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java index 030fd8a6ea27..709af0083678 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java index 43c19a7f0f7a..d3ef78cd5604 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java index c6b4f75bb391..cd2a36c9ee09 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java index 7a528a1a9aa1..56db1a9b968c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java index aced01396196..4b94efa2a3ee 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java index 0a640520cac7..fd500afce178 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java index d74b6e8c47fb..9048e9c50500 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java index 5e1cf5a2ed01..03e07a8d3f44 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java index a513fc843315..9d18d236715e 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java index d884f41eee63..f62889479b0a 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java index 8143748de9bc..a82df6c8abd4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java index b99a4f060959..2ed965c3a839 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java index 2af8b16a5e00..37cc7eca8bc0 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java index 01fc3b83f373..d1317084d5e0 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java index 56495c45373b..38d4360e7cda 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This is a generated file. Not intended for manual editing. package org.ballerinalang.psi.impl; From 757b297f5f68a4cf9be63b9477bd9167b5a31bc8 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 11:18:45 +0530 Subject: [PATCH 13/36] Add Ballerina.g4 This commit will add the Ballerina.g4 file which can be later use as a reference to update the bnf file if the g4 grammar is later changed. --- src/org/ballerinalang/Ballerina.g4 | 797 +++++++++++++++++++++++++++++ 1 file changed, 797 insertions(+) create mode 100644 src/org/ballerinalang/Ballerina.g4 diff --git a/src/org/ballerinalang/Ballerina.g4 b/src/org/ballerinalang/Ballerina.g4 new file mode 100644 index 000000000000..b6fb33ca1226 --- /dev/null +++ b/src/org/ballerinalang/Ballerina.g4 @@ -0,0 +1,797 @@ +grammar Ballerina; + +//todo comment statment +//todo revisit blockStatement + +// starting point for parsing a bal file +compilationUnit + : packageDeclaration? + importDeclaration* + ( serviceDefinition + | functionDefinition + | connectorDefinition + | structDefinition + | typeConvertorDefinition + | constantDefinition + )+ + EOF + ; + +packageDeclaration + : 'package' packageName ';' + ; + +importDeclaration + : 'import' packageName ('as' Identifier)? ';' + ; + +serviceDefinition + : annotation* 'service' Identifier serviceBody + ; + +serviceBody + : '{' serviceBodyDeclaration '}' + ; + +serviceBodyDeclaration + : connectorDeclaration* variableDeclaration* resourceDefinition+ + ; + + +resourceDefinition + : annotation* 'resource' Identifier '(' parameterList ')' functionBody + ; + +functionDefinition + : annotation* 'public'? 'function' Identifier '(' parameterList? ')' returnParameters? ('throws' Identifier)? functionBody + ; + +//todo rename, this is used in resource, action and funtion +functionBody + : '{' connectorDeclaration* variableDeclaration* workerDeclaration* statement+ '}' + ; + +connectorDefinition + : annotation* 'connector' Identifier '(' parameterList ')' connectorBody + ; + +connectorBody + : '{' connectorDeclaration* variableDeclaration* actionDefinition+ '}' + ; + +actionDefinition + : annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? functionBody + ; + +connectorDeclaration + : qualifiedReference Identifier '=' 'new' qualifiedReference '(' expressionList? ')'';' + ; + +structDefinition + : 'public'? 'type' Identifier structDefinitionBody + ; + +structDefinitionBody + : '{' (typeName Identifier ';')+ '}' + ; + +typeConvertorDefinition + : 'typeconvertor' Identifier '(' typeConvertorTypes Identifier ')' '('typeConvertorTypes')' typeConvertorBody + ; + +typeConvertorBody + : '{' variableDeclaration* statement+ '}' + ; + +constantDefinition + : 'const' typeName Identifier '=' literalValue ';' + ; + +variableDeclaration + : typeName Identifier ';' + ; + +// typeName below is only 'message' type +workerDeclaration + : 'worker' Identifier '(' typeName Identifier ')' '{' variableDeclaration* statement+ '}' + ; + +returnParameters + : '(' (namedParameterList | returnTypeList) ')' + ; + +namedParameterList + : namedParameter (',' namedParameter)* + ; + +namedParameter + : typeName Identifier + ; + +returnTypeList + : typeName (',' typeName)* + ; + +qualifiedTypeName + : packageName ':' unqualifiedTypeName + ; + +typeConvertorTypes + : simpleType + | withFullSchemaType + | withSchemaIdType + | withScheamURLType + ; + + +unqualifiedTypeName + : simpleType + | simpleTypeArray + | simpleTypeIterate + | withFullSchemaType + | withFullSchemaTypeArray + | withFullSchemaTypeIterate + | withScheamURLType + | withSchemaURLTypeArray + | withSchemaURLTypeIterate + | withSchemaIdType + | withScheamIdTypeArray + | withScheamIdTypeIterate + ; + +simpleType + : Identifier + ; + +simpleTypeArray + : Identifier '[]' + ; + +simpleTypeIterate + : Identifier '~' + ; + +withFullSchemaType + : Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' + ; + +withFullSchemaTypeArray + : Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '[]' + ; + +withFullSchemaTypeIterate + : Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '~' + ; + +withScheamURLType + : Identifier '<' '{' QuotedStringLiteral '}' '>' + ; + +withSchemaURLTypeArray + : Identifier '<' '{' QuotedStringLiteral '}' '>' '[]' + ; + +withSchemaURLTypeIterate + : Identifier '<' '{' QuotedStringLiteral '}' '>' '~' + ; + +withSchemaIdType + : Identifier '<' Identifier '>' + ; + +withScheamIdTypeArray + : Identifier '<' Identifier '>' '[]' + ; + +withScheamIdTypeIterate + : Identifier '<' Identifier '>' '~' + ; + +typeName + : unqualifiedTypeName + | qualifiedTypeName + ; + +qualifiedReference + : packageName ':' Identifier + ; + +parameterList + : parameter (',' parameter)* + ; + +parameter + : annotation* typeName Identifier + ; + +packageName + : Identifier ('.' Identifier)* + ; + +literalValue + : IntegerLiteral + | FloatingPointLiteral + | QuotedStringLiteral + | BooleanLiteral + | NullLiteral + ; + //============================================================================================================ + // ANNOTATIONS + + annotation + : '@' annotationName ( '(' ( elementValuePairs | elementValue )? ')' )? + ; + + annotationName : Identifier ; + + elementValuePairs + : elementValuePair (',' elementValuePair)* + ; + + elementValuePair + : Identifier '=' elementValue + ; + + elementValue + : expression + | annotation + | elementValueArrayInitializer + ; + + elementValueArrayInitializer + : '{' (elementValue (',' elementValue)*)? (',')? '}' + ; + + //============================================================================================================ +// STATEMENTS / BLOCKS + +statement + : assignmentStatement + | ifElseStatement + | iterateStatement + | whileStatement + | breakStatement + | forkJoinStatement + | tryCatchStatement + | throwStatement + | returnStatement + | replyStatement + | workerInteractionStatement + | commentStatement + | actionInvocationStatement + | functionInvocationStatement + ; + +assignmentStatement + : variableReferenceList '=' expression ';' + ; + +variableReferenceList + : variableReference (',' variableReference)* + ; + +ifElseStatement + : 'if' '(' expression ')' '{' statement* '}' elseIfClause* elseClause? + ; + +elseIfClause + : 'else' 'if' '(' expression ')' '{' statement* '}' + ; + +elseClause + : 'else' '{' statement*'}' + ; + +iterateStatement + : 'iterate' '(' typeName Identifier ':' expression ')' '{' statement+ '}' + ; + +whileStatement + : 'while' '(' expression ')' '{' statement+ '}' + ; + +breakStatement + : 'break' ';' + ; + +// typeName is only message +forkJoinStatement + : 'fork' '(' typeName Identifier ')' '{' workerDeclaration+ '}' joinClause? timeoutClause? + ; + +// below typeName is only 'message[]' +joinClause + : 'join' '(' joinConditions ')' '(' typeName Identifier ')' '{' statement+ '}' + ; + +joinConditions + : 'any' IntegerLiteral (Identifier (',' Identifier)*)? + | 'all' (Identifier (',' Identifier)*)? + ; + +// below typeName is only 'message[]' +timeoutClause + : 'timeout' '(' expression ')' '(' typeName Identifier ')' '{' statement+ '}' + ; + +tryCatchStatement + : 'try' '{' statement+ '}' catchClause + ; + +// below tyeName is only 'exception' +catchClause + : 'catch' '(' typeName Identifier ')' '{' statement+ '}' + ; + +throwStatement + : 'throw' expression ';' + ; + +returnStatement + : 'return' expressionList? ';' + ; + +// below Identifier is only a type of 'message' +replyStatement + : 'reply' expression ';' + ; + +workerInteractionStatement + : triggerWorker + | workerReply + ; + +// below left Identifier is of type 'message' and the right Identifier is of type 'worker' +triggerWorker + : Identifier '->' Identifier ';' + ; + +// below left Identifier is of type 'worker' and the right Identifier is of type 'message' +workerReply + : Identifier '<-' Identifier ';' + ; + +commentStatement + : LINE_COMMENT + ; + +actionInvocationStatement + : actionInvocation argumentList ';' + ; + +variableReference + : Identifier # simpleVariableIdentifier// simple identifier + | Identifier '['expression']' # mapArrayVariableIdentifier// array and map reference + | variableReference ('.' variableReference)+ # structFieldIdentifier// struct field reference + ; + +argumentList + : '(' expressionList? ')' + ; + +expressionList + : expression (',' expression)* + ; + +functionInvocationStatement + : functionName argumentList ';' + ; + +functionName + : (packageName ':')? Identifier + ; + +actionInvocation + : packageName ':' Identifier '.' Identifier + ; + +backtickString + : BacktickStringLiteral + ; + +expression + : literalValue # literalExpression + | variableReference # variableReferenceExpression + | backtickString # templateExpression + | functionName argumentList # functionInvocationExpression + | actionInvocation argumentList # actionInvocationExpression + | '(' typeName ')' expression # typeCastingExpression + | ('+'|'-'|'!') expression # unaryExpression + | '(' expression ')' # bracedExpression + | expression ('^') expression # binaryPowExpression + | expression ('/') expression # binaryDivisionExpression + | expression ('*') expression # binaryMultiplicationExpression + | expression ('%') expression # binaryModExpression + | expression ('&&') expression # binaryAndExpression + | expression ('+') expression # binaryAddExpression + | expression ('-') expression # binarySubExpression + | expression ('||') expression # binaryOrExpression + | expression ('>') expression # binaryGTExpression + | expression ('>=') expression # binaryGEExpression + | expression ('<') expression # binaryLTExpression + | expression ('<=') expression # binaryLEExpression + | expression ('==') expression # binaryEqualExpression + | expression ('!=') expression # binaryNotEqualExpression + | '[' expressionList ']' # arrayInitializerExpression + | '{' mapInitKeyValueList '}' # mapInitializerExpression + | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? # structInitializeExpression + ; + +mapInitKeyValueList + : mapInitKeyValue (',' mapInitKeyValue)* + ; + +mapInitKeyValue + : QuotedStringLiteral ':' expression + ; + +// LEXER + +// §3.9 Ballerina keywords + +ACTION : 'action'; +BREAK : 'break'; +CATCH : 'catch'; +CONNECTOR : 'connector'; +CONST : 'const'; +ELSE : 'else'; +FORK : 'fork'; +FUNCTION : 'function'; +IF : 'if'; +IMPORT : 'import'; +ITERATE : 'iterate'; +JOIN : 'join'; +NEW : 'new'; +PACKAGE : 'package'; +REPLY : 'reply'; +RESOURCE : 'resource'; +RETURN : 'return'; +SERVICE : 'service'; +THROW : 'throw'; +THROWS : 'throws'; +TRY : 'try'; +TYPE : 'type'; +TYPECONVERTOR : 'typeconvertor'; +WHILE : 'while'; +WORKER : 'worker'; +BACKTICK : '`'; +VERSION : 'version'; +PUBLIC : 'public'; +ANY : 'any'; +ALL : 'all'; +AS : 'as'; +TIMEOUT : 'timeout'; +SENDARROW : '->'; +RECEIVEARROW : '<-'; + +// §3.11 Separators + +LPAREN : '('; +RPAREN : ')'; +LBRACE : '{'; +RBRACE : '}'; +LBRACK : '['; +RBRACK : ']'; +SEMI : ';'; +COMMA : ','; +DOT : '.'; + +// §3.12 Operators + +ASSIGN : '='; +GT : '>'; +LT : '<'; +BANG : '!'; +TILDE : '~'; +QUESTION : '?'; +COLON : ':'; +EQUAL : '=='; +LE : '<='; +GE : '>='; +NOTEQUAL : '!='; +AND : '&&'; +OR : '||'; +ADD : '+'; +SUB : '-'; +MUL : '*'; +DIV : '/'; +BITAND : '&'; +BITOR : '|'; +CARET : '^'; +MOD : '%'; +DOLLAR_SIGN : '$'; + +// §3.10.1 Integer Literals +IntegerLiteral + : DecimalIntegerLiteral + | HexIntegerLiteral + | OctalIntegerLiteral + | BinaryIntegerLiteral + ; + +fragment +DecimalIntegerLiteral + : DecimalNumeral IntegerTypeSuffix? + ; + +fragment +HexIntegerLiteral + : HexNumeral IntegerTypeSuffix? + ; + +fragment +OctalIntegerLiteral + : OctalNumeral IntegerTypeSuffix? + ; + +fragment +BinaryIntegerLiteral + : BinaryNumeral IntegerTypeSuffix? + ; + +fragment +IntegerTypeSuffix + : [lL] + ; + +fragment +DecimalNumeral + : '0' + | NonZeroDigit (Digits? | Underscores Digits) + ; + +fragment +Digits + : Digit (DigitOrUnderscore* Digit)? + ; + +fragment +Digit + : '0' + | NonZeroDigit + ; + +fragment +NonZeroDigit + : [1-9] + ; + +fragment +DigitOrUnderscore + : Digit + | '_' + ; + +fragment +Underscores + : '_'+ + ; + +fragment +HexNumeral + : '0' [xX] HexDigits + ; + +fragment +HexDigits + : HexDigit (HexDigitOrUnderscore* HexDigit)? + ; + +fragment +HexDigit + : [0-9a-fA-F] + ; + +fragment +HexDigitOrUnderscore + : HexDigit + | '_' + ; + +fragment +OctalNumeral + : '0' Underscores? OctalDigits + ; + +fragment +OctalDigits + : OctalDigit (OctalDigitOrUnderscore* OctalDigit)? + ; + +fragment +OctalDigit + : [0-7] + ; + +fragment +OctalDigitOrUnderscore + : OctalDigit + | '_' + ; + +fragment +BinaryNumeral + : '0' [bB] BinaryDigits + ; + +fragment +BinaryDigits + : BinaryDigit (BinaryDigitOrUnderscore* BinaryDigit)? + ; + +fragment +BinaryDigit + : [01] + ; + +fragment +BinaryDigitOrUnderscore + : BinaryDigit + | '_' + ; + +// §3.10.2 Floating-Point Literals + +FloatingPointLiteral + : DecimalFloatingPointLiteral + | HexadecimalFloatingPointLiteral + ; + +fragment +DecimalFloatingPointLiteral + : Digits '.' Digits? ExponentPart? FloatTypeSuffix? + | '.' Digits ExponentPart? FloatTypeSuffix? + | Digits ExponentPart FloatTypeSuffix? + | Digits FloatTypeSuffix + ; + +fragment +ExponentPart + : ExponentIndicator SignedInteger + ; + +fragment +ExponentIndicator + : [eE] + ; + +fragment +SignedInteger + : Sign? Digits + ; + +fragment +Sign + : [+-] + ; + +fragment +FloatTypeSuffix + : [fFdD] + ; + +fragment +HexadecimalFloatingPointLiteral + : HexSignificand BinaryExponent FloatTypeSuffix? + ; + +fragment +HexSignificand + : HexNumeral '.'? + | '0' [xX] HexDigits? '.' HexDigits + ; + +fragment +BinaryExponent + : BinaryExponentIndicator SignedInteger + ; + +fragment +BinaryExponentIndicator + : [pP] + ; + +// §3.10.3 Boolean Literals + +BooleanLiteral + : 'true' + | 'false' + ; + +// §3.10.5 String Literals + +QuotedStringLiteral + : '"' StringCharacters? '"' + ; + +BacktickStringLiteral + : '`' ValidBackTickStringCharacters '`' + ; +fragment +ValidBackTickStringCharacters + : ValidBackTickStringCharacter+ + ; + +fragment +ValidBackTickStringCharacter + : ~[`] + | '\\' [btnfr\\] + | OctalEscape + | UnicodeEscape + ; + +fragment +StringCharacters + : StringCharacter+ + ; + +fragment +StringCharacter + : ~["\\] + | EscapeSequence + ; + +// §3.10.6 Escape Sequences for Character and String Literals + +fragment +EscapeSequence + : '\\' [btnfr"'\\] + | OctalEscape + | UnicodeEscape + ; + +fragment +OctalEscape + : '\\' OctalDigit + | '\\' OctalDigit OctalDigit + | '\\' ZeroToThree OctalDigit OctalDigit + ; + +fragment +UnicodeEscape + : '\\' 'u' HexDigit HexDigit HexDigit HexDigit + ; + +fragment +ZeroToThree + : [0-3] + ; + +// §3.10.7 The Null Literal + +NullLiteral + : 'null' + ; + +Identifier + : Letter LetterOrDigit* + ; + +fragment +Letter + : [a-zA-Z$_] // these are the "letters" below 0x7F + | // covers all characters above 0x7F which are not a surrogate + ~[\u0000-\u007F\uD800-\uDBFF] + | // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF + [\uD800-\uDBFF] [\uDC00-\uDFFF] + ; + +fragment +LetterOrDigit + : [a-zA-Z0-9$_] // these are the "letters or digits" below 0x7F + | // covers all characters above 0x7F which are not a surrogate + ~[\u0000-\u007F\uD800-\uDBFF] + | // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF + [\uD800-\uDBFF] [\uDC00-\uDFFF] + ; + +// +// Whitespace and comments +// + +WS : [ \t\r\n\u000C]+ -> skip + ; + +LINE_COMMENT + : '//' ~[\r\n]* -> skip + ; \ No newline at end of file From f75a3e2baaea2ba12b6a5e8b37e513408b8ba82b Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 11:19:08 +0530 Subject: [PATCH 14/36] Update plugin details --- resources/META-INF/plugin.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 4ed58071e411..3807259b2823 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -1,17 +1,18 @@ - org.wso2 + org.ballerinalang Ballerina 0.1 WSO2 - most HTML tags may be used + Plugin for Ballerina language support.
]]>
- most HTML tags may be used +
    +
  • Syntax highlighting.
  • +
  • Commenter support.
  • +
]]>
From 8c1b2f8bc421975dc4cec9b36ce698cdfe29bee9 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 12:02:07 +0530 Subject: [PATCH 15/36] Update bnf grammar --- src/org/ballerinalang/Ballerina.bnf | 334 +--------------------------- 1 file changed, 9 insertions(+), 325 deletions(-) diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index 9398a2f8bfae..b48fa5c4bd3f 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -15,6 +15,8 @@ tokenTypeClass="org.ballerinalang.psi.BallerinaTokenType" tokens=[ + + // §3.9 Ballerina keywords ACTION = 'action'; BREAK = 'break'; CATCH = 'catch'; @@ -51,7 +53,6 @@ RECEIVEARROW = '<-'; // §3.11 Separators - LPAREN = '('; RPAREN = ')'; LBRACE = '{'; @@ -63,7 +64,6 @@ DOT = '.'; // §3.12 Operators - ASSIGN = '='; GT = '>'; LT = '<'; @@ -95,7 +95,7 @@ FloatingPointLiteral = "regexp:(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF]" - BooleanLiteral="regexp:true|false" + BooleanLiteral="regexp:(true|false)" QuotedStringLiteral ='regexp:\"([^\\\"\r\n]|\\[^\r\n])*(\"|\\)?' @@ -123,19 +123,6 @@ ] } -//simpleFile ::= (property|COMMENT)* -// -//property ::= (KEY SEPARATOR VALUE?)|KEY { -// pin=3 -// recoverWhile="recover_property" -// mixin="com.simpleplugin.psi.impl.SimpleNamedElementImpl" -// implements="com.simpleplugin.psi.SimpleNamedElement" -// methods=[getKey getValue getName setName getNameIdentifier getPresentation] -//} -// -//private recover_property ::= !(KEY|SEPARATOR|COMMENT) - - compilationUnit ::= packageDeclaration? importDeclaration* @@ -415,11 +402,11 @@ commentStatement actionInvocationStatement ::= actionInvocation argumentList ';' +//todo: fix left recursion here variableReference - ::= - Identifier '['expression']' // mapArrayVariableIdentifier// array and map reference + ::= Identifier '['expression']' // mapArrayVariableIdentifier// array and map reference // | variableReference ('.' variableReference)+ // structFieldIdentifier// struct field reference -| Identifier // simpleVariableIdentifier// simple identifier + | Identifier // simpleVariableIdentifier// simple identifier argumentList ::= '(' expressionList? ')' @@ -549,16 +536,11 @@ backtickString // 4 --------------------------- expression::= - '(' typeName ')' basicExpression | ('+'|'-'|'!') basicExpression | '(' basicExpression ')' | basicExpression (('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!=') basicExpression ) * - - - - private basicExpression::= backtickString // templateExpression | functionName argumentList // functionInvocationExpression @@ -568,12 +550,9 @@ private basicExpression::= | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression | literalValue // literalExpression | variableReference - - - - - - + | '(' typeName ')' basicExpression + | ('+'|'-'|'!') basicExpression + | '(' basicExpression ')' mapInitKeyValueList ::= mapInitKeyValue (',' mapInitKeyValue)* @@ -581,300 +560,5 @@ mapInitKeyValueList mapInitKeyValue ::= QuotedStringLiteral ':' expression - -// -//// §3.10.1 Integer Literals -//IntegerLiteral -// ::= DecimalIntegerLiteral -// | HexIntegerLiteral -// | OctalIntegerLiteral -// | BinaryIntegerLiteral -// ; -// -////fragment -//DecimalIntegerLiteral -// ::= DecimalNumeral IntegerTypeSuffix? -// ; -// -////fragment -//HexIntegerLiteral -// ::= HexNumeral IntegerTypeSuffix? -// ; -// -////fragment -//OctalIntegerLiteral -// ::= OctalNumeral IntegerTypeSuffix? -// ; -// -////fragment -//BinaryIntegerLiteral -// ::= BinaryNumeral IntegerTypeSuffix? -// ; -// -////fragment -//IntegerTypeSuffix -// ::= [lL] -// ; -// -////fragment -//DecimalNumeral -// ::= '0' -// | NonZeroDigit (Digits? | Underscores Digits) -// ; -// -////fragment -//Digits -// ::= Digit (DigitOrUnderscore* Digit)? -// ; -// -////fragment -//Digit -// ::= '0' -// | NonZeroDigit -// ; -// -////fragment -//NonZeroDigit -// ::= [1-9] -// ; -// -////fragment -//DigitOrUnderscore -// ::= Digit -// | '_' -// ; -// -////fragment -//Underscores -// ::= '_'+ -// ; -// -////fragment -//HexNumeral -// ::= '0' [xX] HexDigits -// ; -// -////fragment -//HexDigits -// ::= HexDigit (HexDigitOrUnderscore* HexDigit)? -// ; -// -////fragment -//HexDigit -// ::= [0-9a-fA-F] -// ; -// -////fragment -//HexDigitOrUnderscore -// ::= HexDigit -// | '_' -// ; -// -////fragment -//OctalNumeral -// ::= '0' Underscores? OctalDigits -// ; -// -////fragment -//OctalDigits -// ::= OctalDigit (OctalDigitOrUnderscore* OctalDigit)? -// ; -// -////fragment -//OctalDigit -// ::= [0-7] -// ; -// -////fragment -//OctalDigitOrUnderscore -// ::= OctalDigit -// | '_' -// ; -// -////fragment -//BinaryNumeral -// ::= '0' [bB] BinaryDigits -// ; -// -////fragment -//BinaryDigits -// ::= BinaryDigit (BinaryDigitOrUnderscore* BinaryDigit)? -// ; -// -////fragment -//BinaryDigit -// ::= [01] -// ; -// -////fragment -//BinaryDigitOrUnderscore -// ::= BinaryDigit -// | '_' -// ; -// -//// §3.10.2 Floating-Point Literals -// -//FloatingPointLiteral -// ::= DecimalFloatingPointLiteral -// | HexadecimalFloatingPointLiteral -// ; -// -////fragment -//DecimalFloatingPointLiteral -// ::= Digits '.' Digits? ExponentPart? FloatTypeSuffix? -// | '.' Digits ExponentPart? FloatTypeSuffix? -// | Digits ExponentPart FloatTypeSuffix? -// | Digits FloatTypeSuffix -// ; -// -////fragment -//ExponentPart -// ::= ExponentIndicator SignedInteger -// ; -// -////fragment -//ExponentIndicator -// ::= [eE] -// ; -// -////fragment -//SignedInteger -// ::= Sign? Digits -// ; -// -////fragment -//Sign -// ::= [+-] -// ; -// -////fragment -//FloatTypeSuffix -// ::= [fFdD] -// ; -// -////fragment -//HexadecimalFloatingPointLiteral -// ::= HexSignificand BinaryExponent FloatTypeSuffix? -// ; -// -////fragment -//HexSignificand -// ::= HexNumeral '.'? -// | '0' [xX] HexDigits? '.' HexDigits -// ; -// -////fragment -//BinaryExponent -// ::= BinaryExponentIndicator SignedInteger -// ; -// -////fragment -//BinaryExponentIndicator -// ::= [pP] -// ; -// -//// §3.10.3 Boolean Literals -// -//BooleanLiteral -// ::= 'true' -// | 'false' -// ; -// -//// §3.10.5 String Literals -// -//QuotedStringLiteral -// ::= '"' StringCharacters? '"' -// ; -// -//BacktickStringLiteral -// ::= '`' ValidBackTickStringCharacters '`' -// ; -////fragment -//ValidBackTickStringCharacters -// ::= ValidBackTickStringCharacter+ -// ; -// -////fragment -//ValidBackTickStringCharacter -// ::= ~[`] -// | '\\' [btnfr\\] -// | OctalEscape -// | UnicodeEscape -// ; -// -////fragment -//StringCharacters -// ::= StringCharacter+ -// ; -// -////fragment -//StringCharacter -// ::= ~["\\] -// | EscapeSequence -// ; - -// §3.10.6 Escape Sequences for Character and String Literals - -////fragment -//EscapeSequence -// ::= '\\' [btnfr"'\\] -// | OctalEscape -// | UnicodeEscape -// ; -// -////fragment -//OctalEscape -// ::= '\\' OctalDigit -// | '\\' OctalDigit OctalDigit -// | '\\' ZeroToThree OctalDigit OctalDigit -// ; -// -////fragment -//UnicodeEscape -// ::= '\\' 'u' HexDigit HexDigit HexDigit HexDigit -// ; -// -////fragment -//ZeroToThree -// ::= [0-3] -// ; - -// §3.10.7 The Null Literal - NullLiteral ::= 'null' - ; - -//Identifier -// ::= Letter LetterOrDigit* -// ; - -////fragment -//Letter -// ::= [a-zA-Z$_] // these are the "letters" below 0x7F -// | // covers all characters above 0x7F which are not a surrogate -// ~[\u0000-\u007F\uD800-\uDBFF] -// | // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF -// [\uD800-\uDBFF] [\uDC00-\uDFFF] -// ; - -////fragment -//LetterOrDigit -// ::= [a-zA-Z0-9$_] // these are the "letters or digits" below 0x7F -// | // covers all characters above 0x7F which are not a surrogate -// ~[\u0000-\u007F\uD800-\uDBFF] -// | // covers UTF-16 surrogate pairs encodings for U+10000 to U+10FFFF -// [\uD800-\uDBFF] [\uDC00-\uDFFF] -// ; - -// -// Whitespace and comments -// -// -//WS ::= [ \t\r\n\u000C]+ -> skip -// ; -// -//LINE_COMMENT -// ::= '//' ~[\r\n]* -> skip -// ; - From 8101ba63b633ecb33e4a97d4df8c2fe5b31baa0d Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 12:11:46 +0530 Subject: [PATCH 16/36] Regenerate parser --- .../ballerinalang/parser/BallerinaParser.java | 56 ++++++++++++++++++- .../psi/BallerinaExpression.java | 4 +- .../psi/impl/BallerinaExpressionImpl.java | 6 +- 3 files changed, 60 insertions(+), 6 deletions(-) diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/parser/BallerinaParser.java index 040bccc634e6..b9df4df4b680 100644 --- a/gen/org/ballerinalang/parser/BallerinaParser.java +++ b/gen/org/ballerinalang/parser/BallerinaParser.java @@ -514,6 +514,9 @@ public static boolean backtickString(PsiBuilder b, int l) { // | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression // | literalValue // literalExpression // | variableReference + // | '(' typeName ')' basicExpression + // | ('+'|'-'|'!') basicExpression + // | '(' basicExpression ')' static boolean basicExpression(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "basicExpression")) return false; boolean r; @@ -526,6 +529,9 @@ static boolean basicExpression(PsiBuilder b, int l) { if (!r) r = basicExpression_5(b, l + 1); if (!r) r = literalValue(b, l + 1); if (!r) r = variableReference(b, l + 1); + if (!r) r = basicExpression_8(b, l + 1); + if (!r) r = basicExpression_9(b, l + 1); + if (!r) r = basicExpression_10(b, l + 1); exit_section_(b, m, null, r); return r; } @@ -633,6 +639,54 @@ private static boolean basicExpression_5_3_0_1(PsiBuilder b, int l) { return true; } + // '(' typeName ')' basicExpression + private static boolean basicExpression_8(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_8")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && typeName(b, l + 1); + r = r && consumeToken(b, RPAREN); + r = r && basicExpression(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // ('+'|'-'|'!') basicExpression + private static boolean basicExpression_9(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_9")) return false; + boolean r; + Marker m = enter_section_(b); + r = basicExpression_9_0(b, l + 1); + r = r && basicExpression(b, l + 1); + exit_section_(b, m, null, r); + return r; + } + + // '+'|'-'|'!' + private static boolean basicExpression_9_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_9_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, ADD); + if (!r) r = consumeToken(b, SUB); + if (!r) r = consumeToken(b, BANG); + exit_section_(b, m, null, r); + return r; + } + + // '(' basicExpression ')' + private static boolean basicExpression_10(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "basicExpression_10")) return false; + boolean r; + Marker m = enter_section_(b); + r = consumeToken(b, LPAREN); + r = r && basicExpression(b, l + 1); + r = r && consumeToken(b, RPAREN); + exit_section_(b, m, null, r); + return r; + } + /* ********************************************************** */ // 'break' ';' public static boolean breakStatement(PsiBuilder b, int l) { @@ -2568,7 +2622,7 @@ public static boolean variableDeclaration(PsiBuilder b, int l) { /* ********************************************************** */ // Identifier '['expression']' // mapArrayVariableIdentifier// array and map reference // // | variableReference ('.' variableReference)+ // structFieldIdentifier// struct field reference - // | Identifier + // | Identifier public static boolean variableReference(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "variableReference")) return false; if (!nextTokenIs(b, IDENTIFIER)) return false; diff --git a/gen/org/ballerinalang/psi/BallerinaExpression.java b/gen/org/ballerinalang/psi/BallerinaExpression.java index 24668813bf85..23011371ca4d 100644 --- a/gen/org/ballerinalang/psi/BallerinaExpression.java +++ b/gen/org/ballerinalang/psi/BallerinaExpression.java @@ -47,8 +47,8 @@ public interface BallerinaExpression extends PsiElement { @NotNull List getPackageNameList(); - @Nullable - BallerinaTypeName getTypeName(); + @NotNull + List getTypeNameList(); @NotNull List getVariableReferenceList(); diff --git a/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java index ece2e3151cfc..882eb12901dd 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java @@ -91,9 +91,9 @@ public List getPackageNameList() { } @Override - @Nullable - public BallerinaTypeName getTypeName() { - return findChildByClass(BallerinaTypeName.class); + @NotNull + public List getTypeNameList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaTypeName.class); } @Override From 4f0aa025a893d5c3e96781b4027a6460116bbaa2 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 12:18:33 +0530 Subject: [PATCH 17/36] Add syntax highlighting support --- resources/META-INF/plugin.xml | 2 + .../BallerinaParserDefinition.java | 13 +++ .../BallerinaSyntaxHighlighter.java | 104 ++++++++++++++++++ .../BallerinaSyntaxHighlighterFactory.java | 30 +++++ .../BallerinaSyntaxHighlightingColors.java | 101 +++++++++++++++++ 5 files changed, 250 insertions(+) create mode 100644 src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java create mode 100644 src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java create mode 100644 src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 3807259b2823..5e057cb25eb8 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -30,6 +30,8 @@ + diff --git a/src/org/ballerinalang/BallerinaParserDefinition.java b/src/org/ballerinalang/BallerinaParserDefinition.java index 397626eeb677..6f543fe4b3f4 100644 --- a/src/org/ballerinalang/BallerinaParserDefinition.java +++ b/src/org/ballerinalang/BallerinaParserDefinition.java @@ -27,10 +27,23 @@ import org.ballerinalang.psi.BallerinaTypes; import org.jetbrains.annotations.NotNull; +import static org.ballerinalang.psi.BallerinaTypes.*; + public class BallerinaParserDefinition implements ParserDefinition { + public static final TokenSet WHITE_SPACES = TokenSet.create(TokenType.WHITE_SPACE); public static final TokenSet COMMENTS = TokenSet.create(BallerinaTypes.LINE_COMMENT); + public static final TokenSet STRING_LITERALS = TokenSet.create(QUOTEDSTRINGLITERAL); + public static final TokenSet NUMBERS = TokenSet.create(INTEGERLITERAL, FLOATINGPOINTLITERAL); + public static final TokenSet KEYWORDS = TokenSet.create( + ACTION, BREAK, CATCH, CONNECTOR, CONST, ELSE, FORK, FUNCTION, IF, IMPORT, ITERATE, JOIN, NEW, PACKAGE, + REPLY, RESOURCE, RETURN, SERVICE, THROW, THROWS, TRY, TYPE, TYPECONVERTOR, WHILE, WORKER, BACKTICK, + VERSION, PUBLIC, ANY, ALL, AS, TIMEOUT, SENDARROW, RECEIVEARROW); + public static final TokenSet OPERATORS = TokenSet.create( + ASSIGN, GT, LT, BANG, TILDE, QUESTION, COLON, EQUAL, LE, GE, NOTEQUAL, AND, OR, ADD, SUB, MUL, DIV, + BITAND, BITOR, CARET, MOD, DOLLAR_SIGN, AT); + public static final IFileElementType FILE = new IFileElementType(Language.findInstance(BallerinaLanguage.class)); diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java new file mode 100644 index 000000000000..f2cee0db16be --- /dev/null +++ b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.highlighting; + +import com.intellij.lexer.Lexer; +import com.intellij.openapi.editor.colors.TextAttributesKey; +import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; +import com.intellij.psi.TokenType; +import com.intellij.psi.tree.IElementType; +import org.ballerinalang.BallerinaLexerAdapter; +import org.ballerinalang.BallerinaParserDefinition; +import org.ballerinalang.psi.BallerinaTypes; +import org.jetbrains.annotations.NotNull; + +import java.util.HashMap; +import java.util.Map; + +public class BallerinaSyntaxHighlighter extends SyntaxHighlighterBase { + // public static final TextAttributesKey SEPARATOR = + // createTextAttributesKey("SIMPLE_SEPARATOR", DefaultLanguageHighlighterColors.OPERATION_SIGN); + // public static final TextAttributesKey KEY = + // createTextAttributesKey("SIMPLE_KEY", DefaultLanguageHighlighterColors.KEYWORD); + // public static final TextAttributesKey VALUE = + // createTextAttributesKey("SIMPLE_VALUE", DefaultLanguageHighlighterColors.STRING); + // public static final TextAttributesKey COMMENT = + // createTextAttributesKey("SIMPLE_COMMENT", DefaultLanguageHighlighterColors.LINE_COMMENT); + // public static final TextAttributesKey BAD_CHARACTER = + // createTextAttributesKey("SIMPLE_BAD_CHARACTER", HighlighterColors.BAD_CHARACTER); + // + // private static final TextAttributesKey[] BAD_CHAR_KEYS = new TextAttributesKey[]{BAD_CHARACTER}; + // private static final TextAttributesKey[] SEPARATOR_KEYS = new TextAttributesKey[]{SEPARATOR}; + // private static final TextAttributesKey[] KEY_KEYS = new TextAttributesKey[]{KEY}; + // private static final TextAttributesKey[] VALUE_KEYS = new TextAttributesKey[]{VALUE}; + // private static final TextAttributesKey[] COMMENT_KEYS = new TextAttributesKey[]{COMMENT}; + // private static final TextAttributesKey[] EMPTY_KEYS = new TextAttributesKey[0]; + // + // @NotNull + // @Override + // public Lexer getHighlightingLexer() { + // return new BallerinaLexerAdapter(); + // } + // + // @NotNull + // @Override + // public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { + // if (tokenType.equals(SimpleTypes.SEPARATOR)) { + // return SEPARATOR_KEYS; + // } else if (tokenType.equals(SimpleTypes.KEY)) { + // return KEY_KEYS; + // } else if (tokenType.equals(SimpleTypes.VALUE)) { + // return VALUE_KEYS; + // } else if (tokenType.equals(SimpleTypes.COMMENT)) { + // return COMMENT_KEYS; + // } else if (tokenType.equals(TokenType.BAD_CHARACTER)) { + // return BAD_CHAR_KEYS; + // } else { + // return EMPTY_KEYS; + // } + // } + + private static final Map ATTRIBUTES = new HashMap(); + + static { + fillMap(ATTRIBUTES, BallerinaSyntaxHighlightingColors.LINE_COMMENT, BallerinaTypes.LINE_COMMENT); + // fillMap(ATTRIBUTES, PARENTHESES, GoTypes.LPAREN, GoTypes.RPAREN); + // fillMap(ATTRIBUTES, BRACES, GoTypes.LBRACE, GoTypes.RBRACE); + // fillMap(ATTRIBUTES, BRACKETS, GoTypes.LBRACK, GoTypes.RBRACK); + fillMap(ATTRIBUTES, BallerinaSyntaxHighlightingColors.BAD_CHARACTER, TokenType.BAD_CHARACTER); + // fillMap(ATTRIBUTES, IDENTIFIER, GoTypes.IDENTIFIER); + // fillMap(ATTRIBUTES, DOT, GoTypes.DOT, GoTypes.TRIPLE_DOT); + // fillMap(ATTRIBUTES, COLON, GoTypes.COLON); + // fillMap(ATTRIBUTES, SEMICOLON, GoTypes.SEMICOLON); + // fillMap(ATTRIBUTES, COMMA, GoTypes.COMMA); + fillMap(ATTRIBUTES, BallerinaParserDefinition.OPERATORS, BallerinaSyntaxHighlightingColors.OPERATOR); + fillMap(ATTRIBUTES, BallerinaParserDefinition.KEYWORDS, BallerinaSyntaxHighlightingColors.KEYWORD); + fillMap(ATTRIBUTES, BallerinaParserDefinition.NUMBERS, BallerinaSyntaxHighlightingColors.NUMBER); + fillMap(ATTRIBUTES, BallerinaParserDefinition.STRING_LITERALS, BallerinaSyntaxHighlightingColors.STRING); + } + + @NotNull + public Lexer getHighlightingLexer() { + return new BallerinaLexerAdapter(); + } + + @NotNull + public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { + return pack(ATTRIBUTES.get(tokenType)); + } +} diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java new file mode 100644 index 000000000000..0211dc7ca177 --- /dev/null +++ b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.highlighting; + +import com.intellij.openapi.fileTypes.*; + import com.intellij.openapi.project.Project; + import com.intellij.openapi.vfs.VirtualFile; + import org.jetbrains.annotations.NotNull; + +public class BallerinaSyntaxHighlighterFactory extends SyntaxHighlighterFactory { + @NotNull + @Override + public SyntaxHighlighter getSyntaxHighlighter(Project project, VirtualFile virtualFile) { + return new BallerinaSyntaxHighlighter(); + } +} diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java new file mode 100644 index 000000000000..398ec7219ed7 --- /dev/null +++ b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.highlighting; + +import com.intellij.openapi.editor.DefaultLanguageHighlighterColors; +import com.intellij.openapi.editor.HighlighterColors; +import com.intellij.openapi.editor.colors.TextAttributesKey; + +import static com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey; + +public class BallerinaSyntaxHighlightingColors { + public static final TextAttributesKey LINE_COMMENT = createTextAttributesKey("BALLERINA_LINE_COMMENT", + DefaultLanguageHighlighterColors.LINE_COMMENT); + public static final TextAttributesKey KEYWORD = createTextAttributesKey("BALLERINA_KEYWORD", + DefaultLanguageHighlighterColors.KEYWORD); + public static final TextAttributesKey STRING = createTextAttributesKey("BALLERINA_STRING", + DefaultLanguageHighlighterColors.STRING); + public static final TextAttributesKey NUMBER = createTextAttributesKey("BALLERINA_NUMBER", + DefaultLanguageHighlighterColors.NUMBER); + // public static final TextAttributesKey BRACKETS = createTextAttributesKey("BALLERINA_BRACKET", + // DefaultLanguageHighlighterColors.BRACKETS); + // public static final TextAttributesKey BRACES = createTextAttributesKey("BALLERINA_BRACES", + // DefaultLanguageHighlighterColors.BRACES); + // public static final TextAttributesKey PARENTHESES = createTextAttributesKey("BALLERINA_PARENTHESES", + // DefaultLanguageHighlighterColors.PARENTHESES); + public static final TextAttributesKey OPERATOR = createTextAttributesKey("BALLERINA_OPERATOR", + DefaultLanguageHighlighterColors.OPERATION_SIGN); + public static final TextAttributesKey IDENTIFIER = createTextAttributesKey("BALLERINA_IDENTIFIER", + DefaultLanguageHighlighterColors.IDENTIFIER); + // public static final TextAttributesKey DOT = createTextAttributesKey("BALLERINA_DOT", + // DefaultLanguageHighlighterColors.DOT); + // public static final TextAttributesKey SEMICOLON = createTextAttributesKey("BALLERINA_SEMICOLON", + // DefaultLanguageHighlighterColors.SEMICOLON); + // public static final TextAttributesKey COLON = createTextAttributesKey("BALLERINA_COLON", HighlighterColors + // .TEXT); + // public static final TextAttributesKey COMMA = createTextAttributesKey("BALLERINA_COMMA", + // DefaultLanguageHighlighterColors.COMMA); + public static final TextAttributesKey BAD_CHARACTER = createTextAttributesKey("BALLERINA_BAD_TOKEN", + HighlighterColors.BAD_CHARACTER); + // public static final TextAttributesKey TYPE_SPECIFICATION = createTextAttributesKey + // ("BALLERINA_TYPE_SPECIFICATION", DefaultLanguageHighlighterColors.CLASS_NAME); + // public static final TextAttributesKey TYPE_REFERENCE = createTextAttributesKey("BALLERINA_TYPE_REFERENCE", + // DefaultLanguageHighlighterColors.CLASS_REFERENCE); + // public static final TextAttributesKey BUILTIN_TYPE_REFERENCE = createTextAttributesKey + // ("BALLERINA_BUILTIN_TYPE_REFERENCE", DefaultLanguageHighlighterColors.CLASS_REFERENCE); + // public static final TextAttributesKey BUILTIN_FUNCTION = createTextAttributesKey + // ("BALLERINA_BUILTIN_FUNCTION", DefaultLanguageHighlighterColors.FUNCTION_DECLARATION); + // public static final TextAttributesKey EXPORTED_FUNCTION = createTextAttributesKey + // ("BALLERINA_EXPORTED_FUNCTION", DefaultLanguageHighlighterColors.FUNCTION_DECLARATION); + // public static final TextAttributesKey LOCAL_FUNCTION = createTextAttributesKey("BALLERINA_LOCAL_FUNCTION", + // DefaultLanguageHighlighterColors.FUNCTION_DECLARATION); + // public static final TextAttributesKey PACKAGE_EXPORTED_INTERFACE = createTextAttributesKey + // ("BALLERINA_PACKAGE_EXPORTED_INTERFACE", DefaultLanguageHighlighterColors.INTERFACE_NAME); + // public static final TextAttributesKey PACKAGE_EXPORTED_STRUCT = createTextAttributesKey + // ("BALLERINA_PACKAGE_EXPORTED_STRUCT", DefaultLanguageHighlighterColors.CLASS_NAME); + // public static final TextAttributesKey PACKAGE_EXPORTED_CONSTANT = createTextAttributesKey + // ("BALLERINA_PACKAGE_EXPORTED_CONSTANT", DefaultLanguageHighlighterColors.CONSTANT); + // public static final TextAttributesKey PACKAGE_EXPORTED_VARIABLE = createTextAttributesKey + // ("BALLERINA_PACKAGE_EXPORTED_VARIABLE", DefaultLanguageHighlighterColors.GLOBAL_VARIABLE); + // public static final TextAttributesKey PACKAGE_LOCAL_INTERFACE = createTextAttributesKey + // ("BALLERINA_PACKAGE_LOCAL_INTERFACE", DefaultLanguageHighlighterColors.INTERFACE_NAME); + // public static final TextAttributesKey PACKAGE_LOCAL_STRUCT = createTextAttributesKey + // ("BALLERINA_PACKAGE_LOCAL_STRUCT", DefaultLanguageHighlighterColors.CLASS_NAME); + // public static final TextAttributesKey PACKAGE_LOCAL_CONSTANT = createTextAttributesKey + // ("BALLERINA_PACKAGE_LOCAL_CONSTANT", DefaultLanguageHighlighterColors.CONSTANT); + // public static final TextAttributesKey PACKAGE_LOCAL_VARIABLE = createTextAttributesKey + // ("BALLERINA_PACKAGE_LOCAL_VARIABLE", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); + // public static final TextAttributesKey STRUCT_EXPORTED_MEMBER = createTextAttributesKey + // ("BALLERINA_STRUCT_EXPORTED_MEMBER", DefaultLanguageHighlighterColors.GLOBAL_VARIABLE); + // public static final TextAttributesKey STRUCT_LOCAL_MEMBER = createTextAttributesKey + // ("BALLERINA_STRUCT_LOCAL_MEMBER", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); + // public static final TextAttributesKey METHOD_RECEIVER = createTextAttributesKey + // ("BALLERINA_METHOD_RECEIVER", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); + // public static final TextAttributesKey FUNCTION_PARAMETER = createTextAttributesKey + // ("BALLERINA_FUNCTION_PARAMETER", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); + // public static final TextAttributesKey LOCAL_CONSTANT = createTextAttributesKey("BALLERINA_LOCAL_CONSTANT", + // DefaultLanguageHighlighterColors.CONSTANT); + // public static final TextAttributesKey LOCAL_VARIABLE = createTextAttributesKey("BALLERINA_LOCAL_VARIABLE", + // DefaultLanguageHighlighterColors.LOCAL_VARIABLE); + // public static final TextAttributesKey SCOPE_VARIABLE = createTextAttributesKey("BALLERINA_SCOPE_VARIABLE", + // DefaultLanguageHighlighterColors.LOCAL_VARIABLE); + // public static final TextAttributesKey LABEL = createTextAttributesKey("BALLERINA_LABEL", DefaultLanguageHighlighterColors.LABEL); + + private BallerinaSyntaxHighlightingColors() { + } + +} From 5aa4331e6759a5e1f43cc06c86b3c64e340eb259 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 13:59:03 +0530 Subject: [PATCH 18/36] Change backtick token name This commit will also add the backtick strings to string literals. --- gen/org/ballerinalang/BallerinaLexer.java | 2 +- gen/org/ballerinalang/parser/BallerinaParser.java | 6 +++--- gen/org/ballerinalang/psi/BallerinaBacktickString.java | 2 +- gen/org/ballerinalang/psi/BallerinaTypes.java | 2 +- .../ballerinalang/psi/impl/BallerinaBacktickStringImpl.java | 4 ++-- src/org/ballerinalang/Ballerina.bnf | 4 ++-- src/org/ballerinalang/Ballerina.flex | 4 ++-- src/org/ballerinalang/BallerinaParserDefinition.java | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gen/org/ballerinalang/BallerinaLexer.java b/gen/org/ballerinalang/BallerinaLexer.java index b1634e69edee..9a4df7d5501b 100644 --- a/gen/org/ballerinalang/BallerinaLexer.java +++ b/gen/org/ballerinalang/BallerinaLexer.java @@ -883,7 +883,7 @@ else if (zzAtEOF) { } case 110: break; case 35: - { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; + { return BallerinaTypes.VALIDBACKTICKSTRING; } case 111: break; case 36: diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/parser/BallerinaParser.java index b9df4df4b680..9ca8d6385d99 100644 --- a/gen/org/ballerinalang/parser/BallerinaParser.java +++ b/gen/org/ballerinalang/parser/BallerinaParser.java @@ -494,13 +494,13 @@ public static boolean assignmentStatement(PsiBuilder b, int l) { } /* ********************************************************** */ - // ValidBackTickStringCharacters + // ValidBackTickString public static boolean backtickString(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "backtickString")) return false; - if (!nextTokenIs(b, VALIDBACKTICKSTRINGCHARACTERS)) return false; + if (!nextTokenIs(b, VALIDBACKTICKSTRING)) return false; boolean r; Marker m = enter_section_(b); - r = consumeToken(b, VALIDBACKTICKSTRINGCHARACTERS); + r = consumeToken(b, VALIDBACKTICKSTRING); exit_section_(b, m, BACKTICK_STRING, r); return r; } diff --git a/gen/org/ballerinalang/psi/BallerinaBacktickString.java b/gen/org/ballerinalang/psi/BallerinaBacktickString.java index 2b0650769b63..f2dcd7b2c6ef 100644 --- a/gen/org/ballerinalang/psi/BallerinaBacktickString.java +++ b/gen/org/ballerinalang/psi/BallerinaBacktickString.java @@ -24,6 +24,6 @@ public interface BallerinaBacktickString extends PsiElement { @NotNull - PsiElement getValidBackTickStringCharacters(); + PsiElement getValidBackTickString(); } diff --git a/gen/org/ballerinalang/psi/BallerinaTypes.java b/gen/org/ballerinalang/psi/BallerinaTypes.java index 282fdea232fb..84cabaa18e67 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypes.java +++ b/gen/org/ballerinalang/psi/BallerinaTypes.java @@ -181,7 +181,7 @@ public interface BallerinaTypes { IElementType TRY = new BallerinaTokenType("try"); IElementType TYPE = new BallerinaTokenType("type"); IElementType TYPECONVERTOR = new BallerinaTokenType("typeconvertor"); - IElementType VALIDBACKTICKSTRINGCHARACTERS = new BallerinaTokenType("ValidBackTickStringCharacters"); + IElementType VALIDBACKTICKSTRING = new BallerinaTokenType("ValidBackTickString"); IElementType VERSION = new BallerinaTokenType("version"); IElementType WHILE = new BallerinaTokenType("while"); IElementType WORKER = new BallerinaTokenType("worker"); diff --git a/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java index 76b96bee0c9a..1a3ce541917d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java @@ -44,8 +44,8 @@ public void accept(@NotNull PsiElementVisitor visitor) { @Override @NotNull - public PsiElement getValidBackTickStringCharacters() { - return findNotNullChildByType(VALIDBACKTICKSTRINGCHARACTERS); + public PsiElement getValidBackTickString() { + return findNotNullChildByType(VALIDBACKTICKSTRING); } } diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index b48fa5c4bd3f..0bed45268593 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -99,7 +99,7 @@ QuotedStringLiteral ='regexp:\"([^\\\"\r\n]|\\[^\r\n])*(\"|\\)?' - ValidBackTickStringCharacters ='regexp:`[^`]*`' + ValidBackTickString ='regexp:`[^`]*`' Identifier = "regexp:[a-zA-Z$_][a-zA-Z0-9$_]*" // @@ -423,7 +423,7 @@ actionInvocation ::= packageName ':' Identifier '.' Identifier backtickString - ::= ValidBackTickStringCharacters + ::= ValidBackTickString // 1 ------------------------------------------ diff --git a/src/org/ballerinalang/Ballerina.flex b/src/org/ballerinalang/Ballerina.flex index c57cb88a2909..5c945fee27c1 100644 --- a/src/org/ballerinalang/Ballerina.flex +++ b/src/org/ballerinalang/Ballerina.flex @@ -22,7 +22,7 @@ INTEGERLITERAL=0|[1-9][0-9]* FLOATINGPOINTLITERAL=(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF] BOOLEANLITERAL=true|false QUOTEDSTRINGLITERAL=\"([^\\\"\r\n]|\\[^\r\n])*\" -VALIDBACKTICKSTRINGCHARACTERS=`[^`]*` +VALIDBACKTICKSTRING=`[^`]*` IDENTIFIER=[a-zA-Z$_][a-zA-Z0-9$_]* LINE_COMMENT="//"[^\r\n]* @@ -102,7 +102,7 @@ LINE_COMMENT="//"[^\r\n]* {FLOATINGPOINTLITERAL} { return BallerinaTypes.FLOATINGPOINTLITERAL; } {BOOLEANLITERAL} { return BallerinaTypes.BOOLEANLITERAL; } {QUOTEDSTRINGLITERAL} { return BallerinaTypes.QUOTEDSTRINGLITERAL; } - {VALIDBACKTICKSTRINGCHARACTERS} { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; } + {VALIDBACKTICKSTRING} { return BallerinaTypes.VALIDBACKTICKSTRING; } {IDENTIFIER} { return BallerinaTypes.IDENTIFIER; } {WHITE_SPACE} { return BallerinaTypes.WHITE_SPACE; } {LINE_COMMENT} { return BallerinaTypes.LINE_COMMENT; } diff --git a/src/org/ballerinalang/BallerinaParserDefinition.java b/src/org/ballerinalang/BallerinaParserDefinition.java index 6f543fe4b3f4..56330d3ade12 100644 --- a/src/org/ballerinalang/BallerinaParserDefinition.java +++ b/src/org/ballerinalang/BallerinaParserDefinition.java @@ -34,7 +34,7 @@ public class BallerinaParserDefinition implements ParserDefinition { public static final TokenSet WHITE_SPACES = TokenSet.create(TokenType.WHITE_SPACE); public static final TokenSet COMMENTS = TokenSet.create(BallerinaTypes.LINE_COMMENT); - public static final TokenSet STRING_LITERALS = TokenSet.create(QUOTEDSTRINGLITERAL); + public static final TokenSet STRING_LITERALS = TokenSet.create(QUOTEDSTRINGLITERAL, VALIDBACKTICKSTRING); public static final TokenSet NUMBERS = TokenSet.create(INTEGERLITERAL, FLOATINGPOINTLITERAL); public static final TokenSet KEYWORDS = TokenSet.create( ACTION, BREAK, CATCH, CONNECTOR, CONST, ELSE, FORK, FUNCTION, IF, IMPORT, ITERATE, JOIN, NEW, PACKAGE, From 696608e6f39503c7c4b8cdae827d757de61ff879 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 13:59:27 +0530 Subject: [PATCH 19/36] Add color setting page --- resources/META-INF/plugin.xml | 1 + .../BallerinaColorSettingsPage.java | 83 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 5e057cb25eb8..860796b50af5 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -32,6 +32,7 @@ + diff --git a/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java b/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java new file mode 100644 index 000000000000..a309e06caa1d --- /dev/null +++ b/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.highlighting; + +import com.intellij.openapi.editor.colors.TextAttributesKey; +import com.intellij.openapi.fileTypes.SyntaxHighlighter; +import com.intellij.openapi.options.colors.*; +import org.ballerinalang.BallerinaIcons; +import org.jetbrains.annotations.*; + +import javax.swing.*; + +import java.util.Map; + +import static org.ballerinalang.highlighting.BallerinaSyntaxHighlightingColors.*; + +public class BallerinaColorSettingsPage implements ColorSettingsPage { + private static final AttributesDescriptor[] DESCRIPTORS = new AttributesDescriptor[]{ + //todo: add more attributes + new AttributesDescriptor("Keywords", KEYWORD), + new AttributesDescriptor("Strings", STRING), + }; + + @Nullable + @Override + public Icon getIcon() { + return BallerinaIcons.FILE; + } + + @NotNull + @Override + public SyntaxHighlighter getHighlighter() { + return new BallerinaSyntaxHighlighter(); + } + + @NotNull + @Override + public String getDemoText() { + return "import ballerina.lang.system;\n" + + "\n" + + "function main (string[] args) {\n" + + " system:println(\"Hello, World!\");\n" + + "}\n"; + } + + @Nullable + @Override + public Map getAdditionalHighlightingTagToDescriptorMap() { + return null; + } + + @NotNull + @Override + public AttributesDescriptor[] getAttributeDescriptors() { + return DESCRIPTORS; + } + + @NotNull + @Override + public ColorDescriptor[] getColorDescriptors() { + return ColorDescriptor.EMPTY_ARRAY; + } + + @NotNull + @Override + public String getDisplayName() { + return "Ballerina"; + } +} From febe9cf05968c7262a2dfb19960aa12aef8b7cc6 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 14:22:19 +0530 Subject: [PATCH 20/36] Remove hidden BallerinaLexer.java~ file --- gen/org/ballerinalang/BallerinaLexer.java~ | 1059 -------------------- 1 file changed, 1059 deletions(-) delete mode 100644 gen/org/ballerinalang/BallerinaLexer.java~ diff --git a/gen/org/ballerinalang/BallerinaLexer.java~ b/gen/org/ballerinalang/BallerinaLexer.java~ deleted file mode 100644 index 72a47205c7e1..000000000000 --- a/gen/org/ballerinalang/BallerinaLexer.java~ +++ /dev/null @@ -1,1059 +0,0 @@ -/* The following code was generated by JFlex 1.7.0-SNAPSHOT tweaked for IntelliJ platform */ - -package org.ballerinalang; - -import com.intellij.lexer.FlexLexer; -import com.intellij.psi.tree.IElementType; -import org.ballerinalang.psi.BallerinaTypes; -import com.intellij.psi.TokenType; - - -/** - * This class is a scanner generated by - * JFlex 1.7.0-SNAPSHOT - * from the specification file Ballerina.flex - */ -class BallerinaLexer implements FlexLexer { - - /** This character denotes the end of file */ - public static final int YYEOF = -1; - - /** initial size of the lookahead buffer */ - private static final int ZZ_BUFFERSIZE = 16384; - - /** lexical states */ - public static final int YYINITIAL = 0; - - /** - * ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l - * ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l - * at the beginning of a line - * l is of the form l = 2*k, k a non negative integer - */ - private static final int ZZ_LEXSTATE[] = { - 0, 0 - }; - - /** - * Translates characters to character classes - * Chosen bits are [7, 7, 7] - * Total runtime size is 1928 bytes - */ - public static int ZZ_CMAP(int ch) { - return ZZ_CMAP_A[(ZZ_CMAP_Y[ZZ_CMAP_Z[ch>>14]|((ch>>7)&0x7f)]<<7)|(ch&0x7f)]; - } - - /* The ZZ_CMAP_Z table has 68 entries */ - static final char ZZ_CMAP_Z[] = zzUnpackCMap( - "\1\0\103\200"); - - /* The ZZ_CMAP_Y table has 256 entries */ - static final char ZZ_CMAP_Y[] = zzUnpackCMap( - "\1\0\1\1\53\2\1\3\22\2\1\4\37\2\1\3\237\2"); - - /* The ZZ_CMAP_A table has 640 entries */ - static final char ZZ_CMAP_A[] = zzUnpackCMap( - "\11\0\1\3\1\2\2\1\1\2\22\0\1\3\1\63\1\22\1\0\1\72\1\71\1\65\1\0\1\52\1\53"+ - "\1\67\1\10\1\61\1\47\1\6\1\30\1\4\11\5\1\24\1\60\1\51\1\62\1\50\1\23\1\0\4"+ - "\27\1\7\1\11\24\27\1\56\1\25\1\57\1\70\1\27\1\26\1\17\1\35\1\31\1\27\1\15"+ - "\1\16\1\44\1\37\1\32\1\42\1\36\1\20\1\40\1\34\1\33\1\41\1\27\1\13\1\21\1\12"+ - "\1\14\1\46\1\43\1\27\1\45\1\27\1\54\1\66\1\55\1\64\6\0\1\1\32\0\1\3\337\0"+ - "\1\3\177\0\13\3\35\0\2\1\5\0\1\3\57\0\1\3\40\0"); - - /** - * Translates DFA states to action switch labels. - */ - private static final int [] ZZ_ACTION = zzUnpackAction(); - - private static final String ZZ_ACTION_PACKED_0 = - "\1\0\1\1\1\2\2\3\1\4\1\5\1\6\6\5"+ - "\1\1\1\7\1\10\1\11\1\12\10\5\1\13\1\14"+ - "\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24"+ - "\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34"+ - "\1\35\1\36\3\0\1\37\12\5\1\40\3\5\1\41"+ - "\3\0\1\42\1\43\3\5\1\44\12\5\1\45\1\46"+ - "\1\47\1\50\1\51\1\52\1\53\1\54\2\0\1\5"+ - "\1\55\12\5\1\56\1\5\1\57\1\5\2\0\5\5"+ - "\1\60\7\5\1\61\2\5\1\62\3\5\1\63\1\5"+ - "\1\64\7\5\1\65\3\5\1\66\4\5\1\67\3\5"+ - "\1\70\3\5\1\71\1\72\3\5\1\73\3\5\1\74"+ - "\2\5\1\75\1\5\1\76\2\5\1\77\3\5\1\100"+ - "\1\101\1\5\1\102\1\5\1\103\3\5\1\104\1\5"+ - "\1\105\1\106\1\107\1\5\1\110\1\111\2\5\1\112"+ - "\3\5\1\113"; - - private static int [] zzUnpackAction() { - int [] result = new int[205]; - int offset = 0; - offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAction(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /** - * Translates a state to a row index in the transition table - */ - private static final int [] ZZ_ROWMAP = zzUnpackRowMap(); - - private static final String ZZ_ROWMAP_PACKED_0 = - "\0\0\0\73\0\166\0\261\0\354\0\u0127\0\u0162\0\73"+ - "\0\u019d\0\u01d8\0\u0213\0\u024e\0\u0289\0\u02c4\0\u02ff\0\73"+ - "\0\73\0\u033a\0\u0375\0\u03b0\0\u03eb\0\u0426\0\u0461\0\u049c"+ - "\0\u04d7\0\u0512\0\u054d\0\u0588\0\u05c3\0\u05fe\0\73\0\73"+ - "\0\73\0\73\0\73\0\73\0\73\0\73\0\u0639\0\u0674"+ - "\0\73\0\u06af\0\u06ea\0\73\0\73\0\73\0\u0162\0\261"+ - "\0\u0725\0\u0760\0\73\0\u079b\0\u07d6\0\u0811\0\u084c\0\u0887"+ - "\0\u08c2\0\u08fd\0\u0938\0\u0973\0\u09ae\0\u0162\0\u09e9\0\u0a24"+ - "\0\u0a5f\0\73\0\u0a9a\0\u0ad5\0\u033a\0\73\0\u0b10\0\u0b4b"+ - "\0\u0b86\0\u0bc1\0\u0162\0\u0bfc\0\u0c37\0\u0c72\0\u0cad\0\u0ce8"+ - "\0\u0d23\0\u0d5e\0\u0d99\0\u0dd4\0\u0e0f\0\73\0\73\0\73"+ - "\0\73\0\73\0\73\0\73\0\73\0\u0e4a\0\u0e85\0\u0ec0"+ - "\0\u0162\0\u0efb\0\u0f36\0\u0f71\0\u0fac\0\u0fe7\0\u1022\0\u105d"+ - "\0\u1098\0\u10d3\0\u110e\0\u0162\0\u1149\0\u0162\0\u1184\0\u11bf"+ - "\0\u02ff\0\u11fa\0\u1235\0\u1270\0\u12ab\0\u12e6\0\u0162\0\u1321"+ - "\0\u135c\0\u1397\0\u13d2\0\u140d\0\u1448\0\u1483\0\u0162\0\u14be"+ - "\0\u14f9\0\u1534\0\u156f\0\u15aa\0\u15e5\0\u0162\0\u1620\0\u0162"+ - "\0\u165b\0\u1696\0\u16d1\0\u170c\0\u1747\0\u1782\0\u17bd\0\u0162"+ - "\0\u17f8\0\u1833\0\u186e\0\u0162\0\u18a9\0\u18e4\0\u191f\0\u195a"+ - "\0\u1995\0\u19d0\0\u1a0b\0\u1a46\0\u0162\0\u1a81\0\u1abc\0\u1af7"+ - "\0\u0162\0\u0162\0\u1b32\0\u1b6d\0\u1ba8\0\u0162\0\u1be3\0\u1c1e"+ - "\0\u1c59\0\u0162\0\u1c94\0\u1ccf\0\u0162\0\u1d0a\0\u0162\0\u1d45"+ - "\0\u1d80\0\u0162\0\u1dbb\0\u1df6\0\u1e31\0\u0162\0\u0162\0\u1e6c"+ - "\0\u0162\0\u1ea7\0\u0162\0\u1ee2\0\u1f1d\0\u1f58\0\u0162\0\u1f93"+ - "\0\u0162\0\u0162\0\u0162\0\u1fce\0\u0162\0\u0162\0\u2009\0\u2044"+ - "\0\u0162\0\u207f\0\u20ba\0\u20f5\0\u0162"; - - private static int [] zzUnpackRowMap() { - int [] result = new int[205]; - int offset = 0; - offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackRowMap(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int high = packed.charAt(i++) << 16; - result[j++] = high | packed.charAt(i++); - } - return j; - } - - /** - * The transition table of the DFA - */ - private static final int [] ZZ_TRANS = zzUnpackTrans(); - - private static final String ZZ_TRANS_PACKED_0 = - "\1\2\3\3\1\4\1\5\1\6\1\7\1\10\1\7"+ - "\1\11\1\12\1\7\1\13\1\14\1\15\1\7\1\16"+ - "\1\17\1\20\1\21\1\2\1\22\1\7\1\23\1\24"+ - "\1\25\1\7\1\26\1\27\3\7\1\30\1\31\1\32"+ - "\2\7\1\33\1\34\1\35\1\36\1\37\1\40\1\41"+ - "\1\42\1\43\1\44\1\45\1\46\1\47\1\50\1\51"+ - "\1\52\1\53\1\54\1\55\1\56\1\57\74\0\3\3"+ - "\73\0\2\60\1\61\1\62\1\0\1\63\3\0\1\62"+ - "\1\63\60\0\2\5\1\61\1\62\1\0\1\63\3\0"+ - "\1\62\1\63\60\0\2\61\71\0\2\7\1\0\1\7"+ - "\1\0\11\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\2\7\1\64\6\7"+ - "\5\0\1\7\1\0\1\7\1\65\4\7\1\66\5\7"+ - "\1\67\1\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\4\7\1\70\4\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\71\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\3\7\1\72\2\7"+ - "\1\73\2\7\5\0\1\7\1\0\2\7\1\74\13\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\75\1\76\5\0\1\7\1\0\1\77\2\7\1\100"+ - "\12\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\4\7\1\101\4\7\5\0\1\7\1\0\16\7\23\0"+ - "\1\7\22\0\1\102\1\103\1\0\1\104\45\0\26\105"+ - "\1\106\44\105\30\0\1\107\46\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\110\2\7\5\0\1\7\1\0\2\7"+ - "\1\111\13\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\1\7\1\112\3\7\1\113\3\7\5\0\1\7"+ - "\1\0\7\7\1\114\6\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\3\7\1\115\1\116\4\7\5\0"+ - "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\2\7\1\117\6\7\5\0\1\7\1\0"+ - "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\3\7\1\120\2\7\1\121\2\7\5\0\1\7\1\0"+ - "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\11\7\5\0\1\7\1\0\2\7\1\122\13\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ - "\1\7\1\0\2\7\1\123\3\7\1\124\7\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\4\7\1\125"+ - "\4\7\5\0\1\7\1\0\16\7\23\0\1\7\50\0"+ - "\1\126\104\0\1\127\57\0\1\130\12\0\1\131\72\0"+ - "\1\132\72\0\1\133\75\0\1\134\73\0\1\135\10\0"+ - "\2\61\1\0\1\62\1\0\1\63\3\0\1\62\1\63"+ - "\60\0\2\136\2\0\1\137\36\0\1\137\27\0\2\7"+ - "\1\0\1\7\1\0\3\7\1\140\5\7\5\0\1\7"+ - "\1\0\14\7\1\141\1\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\7\7"+ - "\1\142\6\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\2\7\1\143\6\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ - "\5\0\1\7\1\0\10\7\1\144\5\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\1\7\1\145\6\7"+ - "\1\146\5\0\1\7\1\0\10\7\1\147\5\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\10\7\1\150"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\3\7"+ - "\1\151\12\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\7\7\1\152\1\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\153\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\7\7\1\154\1\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\1\7\1\155\7\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\11\7\5\0\1\7\1\0\14\7\1\156\1\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\157\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\24\0\1\160\46\0\1\161\2\0\70\161\2\107\1\0"+ - "\70\107\4\0\2\7\1\0\1\7\1\0\1\7\1\162"+ - "\7\7\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ - "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ - "\3\7\1\163\12\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\4\7\1\164\4\7\5\0\1\7\1\0"+ - "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\11\7\5\0\1\7\1\0\10\7\1\165\5\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\7\7\1\166"+ - "\1\7\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ - "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ - "\12\7\1\167\3\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\4\7\1\170\4\7\5\0\1\7\1\0"+ - "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\11\7\5\0\1\7\1\0\4\7\1\171\11\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ - "\1\7\1\0\1\172\15\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ - "\1\173\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\2\7\1\174\6\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ - "\5\0\1\7\1\0\1\7\1\175\14\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\2\7\1\176\6\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\136"+ - "\3\0\1\63\4\0\1\63\60\0\2\136\71\0\2\7"+ - "\1\0\1\7\1\0\4\7\1\177\4\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\4\7\1\200\4\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ - "\5\0\1\7\1\0\2\7\1\201\13\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\4\7\1\202\4\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\3\7\1\203\5\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\11\7\5\0\1\7\1\0\2\7\1\204\13\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\205\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\4\7\1\206\4\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\207"+ - "\15\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\10\7\1\140\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ - "\1\0\5\7\1\210\10\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ - "\1\211\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\11\7\5\0\1\7\1\0\15\7\1\212\23\0"+ - "\1\7\22\161\1\0\2\161\1\0\45\161\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\213"+ - "\15\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\10\7\1\214\5\0\1\7\1\0\3\7\1\215\12\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\216\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ - "\1\0\2\7\1\217\13\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\7\7\1\220\1\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\221\2\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\222\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ - "\1\0\5\7\1\223\10\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\3\7"+ - "\1\224\12\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\11\7\5\0\1\7\1\0\5\7\1\225\10\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\7\7"+ - "\1\226\1\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\10\7\1\227\5\0"+ - "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\11\7\5\0\1\7\1\0\2\7\1\230"+ - "\13\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\11\7\5\0\1\7\1\0\12\7\1\231\3\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ - "\1\7\1\0\1\232\15\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\2\7\1\233\6\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\3\7\1\234\5\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ - "\5\0\1\7\1\0\14\7\1\235\1\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\1\7\1\236\7\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\2\7"+ - "\1\237\13\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\11\7\5\0\1\7\1\0\1\7\1\240\14\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ - "\5\0\1\7\1\0\6\7\1\241\7\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\1\7\1\242\7\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\4\7\1\243\4\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\244\2\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\245\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ - "\1\0\5\7\1\246\10\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ - "\1\247\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\6\7\1\250\2\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\4\7"+ - "\1\251\4\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\4\7\1\252\4\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\7"+ - "\1\253\14\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\3\7\1\254\5\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\10\7"+ - "\1\255\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ - "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ - "\2\7\1\256\13\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\11\7\5\0\1\7\1\0\3\7\1\257"+ - "\12\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\2\7\1\260\6\7\5\0\1\7\1\0\16\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ - "\1\7\1\0\1\7\1\261\14\7\23\0\1\7\4\0"+ - "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ - "\3\7\1\262\12\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\11\7\5\0\1\7\1\0\1\263\15\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ - "\5\0\1\7\1\0\1\264\15\7\23\0\1\7\4\0"+ - "\2\7\1\0\1\7\1\0\1\7\1\265\7\7\5\0"+ - "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\1\7\1\266\7\7\5\0\1\7\1\0"+ - "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\11\7\5\0\1\7\1\0\1\267\15\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ - "\1\0\13\7\1\270\2\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\2\7\1\271\6\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\11\7\5\0\1\7\1\0\2\7\1\272\13\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\1\7"+ - "\1\273\7\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ - "\1\0\3\7\1\274\12\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\1\275"+ - "\15\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\11\7\5\0\1\7\1\0\2\7\1\276\13\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\4\7\1\277"+ - "\4\7\5\0\1\7\1\0\16\7\23\0\1\7\4\0"+ - "\2\7\1\0\1\7\1\0\1\7\1\300\7\7\5\0"+ - "\1\7\1\0\16\7\23\0\1\7\4\0\2\7\1\0"+ - "\1\7\1\0\4\7\1\301\4\7\5\0\1\7\1\0"+ - "\16\7\23\0\1\7\4\0\2\7\1\0\1\7\1\0"+ - "\4\7\1\302\4\7\5\0\1\7\1\0\16\7\23\0"+ - "\1\7\4\0\2\7\1\0\1\7\1\0\11\7\5\0"+ - "\1\7\1\0\3\7\1\303\12\7\23\0\1\7\4\0"+ - "\2\7\1\0\1\7\1\0\11\7\5\0\1\7\1\0"+ - "\15\7\1\304\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\4\7\1\305\4\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\11\7"+ - "\5\0\1\7\1\0\3\7\1\306\12\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\11\7\5\0\1\7"+ - "\1\0\2\7\1\307\13\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\4\7\1\310\4\7\5\0\1\7"+ - "\1\0\16\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\2\7\1\311\6\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7\4\0\2\7\1\0\1\7\1\0\2\7"+ - "\1\312\6\7\5\0\1\7\1\0\16\7\23\0\1\7"+ - "\4\0\2\7\1\0\1\7\1\0\1\7\1\313\7\7"+ - "\5\0\1\7\1\0\16\7\23\0\1\7\4\0\2\7"+ - "\1\0\1\7\1\0\11\7\5\0\1\7\1\0\2\7"+ - "\1\314\13\7\23\0\1\7\4\0\2\7\1\0\1\7"+ - "\1\0\2\7\1\315\6\7\5\0\1\7\1\0\16\7"+ - "\23\0\1\7"; - - private static int [] zzUnpackTrans() { - int [] result = new int[8496]; - int offset = 0; - offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackTrans(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - value--; - do result[j++] = value; while (--count > 0); - } - return j; - } - - - /* error codes */ - private static final int ZZ_UNKNOWN_ERROR = 0; - private static final int ZZ_NO_MATCH = 1; - private static final int ZZ_PUSHBACK_2BIG = 2; - - /* error messages for the codes above */ - private static final String[] ZZ_ERROR_MSG = { - "Unknown internal scanner error", - "Error: could not match input", - "Error: pushback value was too large" - }; - - /** - * ZZ_ATTRIBUTE[aState] contains the attributes of state aState - */ - private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute(); - - private static final String ZZ_ATTRIBUTE_PACKED_0 = - "\1\0\1\11\5\1\1\11\7\1\2\11\15\1\10\11"+ - "\2\1\1\11\2\1\3\11\1\1\3\0\1\11\16\1"+ - "\1\11\3\0\1\11\17\1\10\11\2\0\20\1\2\0"+ - "\134\1"; - - private static int [] zzUnpackAttribute() { - int [] result = new int[205]; - int offset = 0; - offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result); - return result; - } - - private static int zzUnpackAttribute(String packed, int offset, int [] result) { - int i = 0; /* index in packed string */ - int j = offset; /* index in unpacked array */ - int l = packed.length(); - while (i < l) { - int count = packed.charAt(i++); - int value = packed.charAt(i++); - do result[j++] = value; while (--count > 0); - } - return j; - } - - /** the input device */ - private java.io.Reader zzReader; - - /** the current state of the DFA */ - private int zzState; - - /** the current lexical state */ - private int zzLexicalState = YYINITIAL; - - /** this buffer contains the current text to be matched and is - the source of the yytext() string */ - private CharSequence zzBuffer = ""; - - /** the textposition at the last accepting state */ - private int zzMarkedPos; - - /** the current text position in the buffer */ - private int zzCurrentPos; - - /** startRead marks the beginning of the yytext() string in the buffer */ - private int zzStartRead; - - /** endRead marks the last character in the buffer, that has been read - from input */ - private int zzEndRead; - - /** - * zzAtBOL == true <=> the scanner is currently at the beginning of a line - */ - private boolean zzAtBOL = true; - - /** zzAtEOF == true <=> the scanner is at the EOF */ - private boolean zzAtEOF; - - /** denotes if the user-EOF-code has already been executed */ - private boolean zzEOFDone; - - - /** - * Creates a new scanner - * - * @param in the java.io.Reader to read input from. - */ - BallerinaLexer(java.io.Reader in) { - this.zzReader = in; - } - - - /** - * Unpacks the compressed character translation table. - * - * @param packed the packed character translation table - * @return the unpacked character translation table - */ - private static char [] zzUnpackCMap(String packed) { - int size = 0; - for (int i = 0, length = packed.length(); i < length; i += 2) { - size += packed.charAt(i); - } - char[] map = new char[size]; - int i = 0; /* index in packed string */ - int j = 0; /* index in unpacked array */ - while (i < packed.length()) { - int count = packed.charAt(i++); - char value = packed.charAt(i++); - do map[j++] = value; while (--count > 0); - } - return map; - } - - public final int getTokenStart() { - return zzStartRead; - } - - public final int getTokenEnd() { - return getTokenStart() + yylength(); - } - - public void reset(CharSequence buffer, int start, int end, int initialState) { - zzBuffer = buffer; - zzCurrentPos = zzMarkedPos = zzStartRead = start; - zzAtEOF = false; - zzAtBOL = true; - zzEndRead = end; - yybegin(initialState); - } - - /** - * Refills the input buffer. - * - * @return false, iff there was new input. - * - * @exception java.io.IOException if any I/O-Error occurs - */ - private boolean zzRefill() throws java.io.IOException { - return true; - } - - - /** - * Returns the current lexical state. - */ - public final int yystate() { - return zzLexicalState; - } - - - /** - * Enters a new lexical state - * - * @param newState the new lexical state - */ - public final void yybegin(int newState) { - zzLexicalState = newState; - } - - - /** - * Returns the text matched by the current regular expression. - */ - public final CharSequence yytext() { - return zzBuffer.subSequence(zzStartRead, zzMarkedPos); - } - - - /** - * Returns the character at position pos from the - * matched text. - * - * It is equivalent to yytext().charAt(pos), but faster - * - * @param pos the position of the character to fetch. - * A value from 0 to yylength()-1. - * - * @return the character at position pos - */ - public final char yycharat(int pos) { - return zzBuffer.charAt(zzStartRead+pos); - } - - - /** - * Returns the length of the matched text region. - */ - public final int yylength() { - return zzMarkedPos-zzStartRead; - } - - - /** - * Reports an error that occured while scanning. - * - * In a wellformed scanner (no or only correct usage of - * yypushback(int) and a match-all fallback rule) this method - * will only be called with things that "Can't Possibly Happen". - * If this method is called, something is seriously wrong - * (e.g. a JFlex bug producing a faulty scanner etc.). - * - * Usual syntax/scanner level error handling should be done - * in error fallback rules. - * - * @param errorCode the code of the errormessage to display - */ - private void zzScanError(int errorCode) { - String message; - try { - message = ZZ_ERROR_MSG[errorCode]; - } - catch (ArrayIndexOutOfBoundsException e) { - message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; - } - - throw new Error(message); - } - - - /** - * Pushes the specified amount of characters back into the input stream. - * - * They will be read again by then next call of the scanning method - * - * @param number the number of characters to be read again. - * This number must not be greater than yylength()! - */ - public void yypushback(int number) { - if ( number > yylength() ) - zzScanError(ZZ_PUSHBACK_2BIG); - - zzMarkedPos -= number; - } - - - /** - * Contains user EOF-code, which will be executed exactly once, - * when the end of file is reached - */ - private void zzDoEOF() { - if (!zzEOFDone) { - zzEOFDone = true; - - } - } - - - /** - * Resumes scanning until the next regular expression is matched, - * the end of input is encountered or an I/O-Error occurs. - * - * @return the next token - * @exception java.io.IOException if any I/O-Error occurs - */ - public IElementType advance() throws java.io.IOException { - int zzInput; - int zzAction; - - // cached fields: - int zzCurrentPosL; - int zzMarkedPosL; - int zzEndReadL = zzEndRead; - CharSequence zzBufferL = zzBuffer; - - int [] zzTransL = ZZ_TRANS; - int [] zzRowMapL = ZZ_ROWMAP; - int [] zzAttrL = ZZ_ATTRIBUTE; - - while (true) { - zzMarkedPosL = zzMarkedPos; - - zzAction = -1; - - zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; - - zzState = ZZ_LEXSTATE[zzLexicalState]; - - // set up zzAction for empty match case: - int zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - } - - - zzForAction: { - while (true) { - - if (zzCurrentPosL < zzEndReadL) { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); - zzCurrentPosL += Character.charCount(zzInput); - } - else if (zzAtEOF) { - zzInput = YYEOF; - break zzForAction; - } - else { - // store back cached positions - zzCurrentPos = zzCurrentPosL; - zzMarkedPos = zzMarkedPosL; - boolean eof = zzRefill(); - // get translated positions and possibly new buffer - zzCurrentPosL = zzCurrentPos; - zzMarkedPosL = zzMarkedPos; - zzBufferL = zzBuffer; - zzEndReadL = zzEndRead; - if (eof) { - zzInput = YYEOF; - break zzForAction; - } - else { - zzInput = Character.codePointAt(zzBufferL, zzCurrentPosL/*, zzEndReadL*/); - zzCurrentPosL += Character.charCount(zzInput); - } - } - int zzNext = zzTransL[ zzRowMapL[zzState] + ZZ_CMAP(zzInput) ]; - if (zzNext == -1) break zzForAction; - zzState = zzNext; - - zzAttributes = zzAttrL[zzState]; - if ( (zzAttributes & 1) == 1 ) { - zzAction = zzState; - zzMarkedPosL = zzCurrentPosL; - if ( (zzAttributes & 8) == 8 ) break zzForAction; - } - - } - } - - // store back cached position - zzMarkedPos = zzMarkedPosL; - - if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { - zzAtEOF = true; - zzDoEOF(); - return null; - } - else { - switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { - case 1: - { return TokenType.BAD_CHARACTER; - } - case 76: break; - case 2: - { return TokenType.WHITE_SPACE; - } - case 77: break; - case 3: - { return BallerinaTypes.INTEGERLITERAL; - } - case 78: break; - case 4: - { return BallerinaTypes.DOT; - } - case 79: break; - case 5: - { return BallerinaTypes.IDENTIFIER; - } - case 80: break; - case 6: - { return BallerinaTypes.ADD; - } - case 81: break; - case 7: - { return BallerinaTypes.QUESTION; - } - case 82: break; - case 8: - { return BallerinaTypes.COLON; - } - case 83: break; - case 9: - { return BallerinaTypes.BACKTICK; - } - case 84: break; - case 10: - { return BallerinaTypes.DIV; - } - case 85: break; - case 11: - { return BallerinaTypes.SUB; - } - case 86: break; - case 12: - { return BallerinaTypes.GT; - } - case 87: break; - case 13: - { return BallerinaTypes.LT; - } - case 88: break; - case 14: - { return BallerinaTypes.LPAREN; - } - case 89: break; - case 15: - { return BallerinaTypes.RPAREN; - } - case 90: break; - case 16: - { return BallerinaTypes.LBRACE; - } - case 91: break; - case 17: - { return BallerinaTypes.RBRACE; - } - case 92: break; - case 18: - { return BallerinaTypes.LBRACK; - } - case 93: break; - case 19: - { return BallerinaTypes.RBRACK; - } - case 94: break; - case 20: - { return BallerinaTypes.SEMI; - } - case 95: break; - case 21: - { return BallerinaTypes.COMMA; - } - case 96: break; - case 22: - { return BallerinaTypes.ASSIGN; - } - case 97: break; - case 23: - { return BallerinaTypes.BANG; - } - case 98: break; - case 24: - { return BallerinaTypes.TILDE; - } - case 99: break; - case 25: - { return BallerinaTypes.BITAND; - } - case 100: break; - case 26: - { return BallerinaTypes.BITOR; - } - case 101: break; - case 27: - { return BallerinaTypes.MUL; - } - case 102: break; - case 28: - { return BallerinaTypes.CARET; - } - case 103: break; - case 29: - { return BallerinaTypes.MOD; - } - case 104: break; - case 30: - { return BallerinaTypes.DOLLAR_SIGN; - } - case 105: break; - case 31: - { return BallerinaTypes.FLOATINGPOINTLITERAL; - } - case 106: break; - case 32: - { return BallerinaTypes.AS; - } - case 107: break; - case 33: - { return BallerinaTypes.QUOTEDSTRINGLITERAL; - } - case 108: break; - case 34: - { return BallerinaTypes.VALIDBACKTICKSTRINGCHARACTERS; - } - case 109: break; - case 35: - { return BallerinaTypes.LINE_COMMENT; - } - case 110: break; - case 36: - { return BallerinaTypes.IF; - } - case 111: break; - case 37: - { return BallerinaTypes.SENDARROW; - } - case 112: break; - case 38: - { return BallerinaTypes.GE; - } - case 113: break; - case 39: - { return BallerinaTypes.RECEIVEARROW; - } - case 114: break; - case 40: - { return BallerinaTypes.LE; - } - case 115: break; - case 41: - { return BallerinaTypes.EQUAL; - } - case 116: break; - case 42: - { return BallerinaTypes.NOTEQUAL; - } - case 117: break; - case 43: - { return BallerinaTypes.AND; - } - case 118: break; - case 44: - { return BallerinaTypes.OR; - } - case 119: break; - case 45: - { return BallerinaTypes.TRY; - } - case 120: break; - case 46: - { return BallerinaTypes.ALL; - } - case 121: break; - case 47: - { return BallerinaTypes.ANY; - } - case 122: break; - case 48: - { return BallerinaTypes.NEW; - } - case 123: break; - case 49: - { return BallerinaTypes.BOOLEANLITERAL; - } - case 124: break; - case 50: - { return BallerinaTypes.TYPE; - } - case 125: break; - case 51: - { return BallerinaTypes.ELSE; - } - case 126: break; - case 52: - { return BallerinaTypes.FORK; - } - case 127: break; - case 53: - { return BallerinaTypes.NULLLITERAL; - } - case 128: break; - case 54: - { return BallerinaTypes.JOIN; - } - case 129: break; - case 55: - { return BallerinaTypes.THROW; - } - case 130: break; - case 56: - { return BallerinaTypes.REPLY; - } - case 131: break; - case 57: - { return BallerinaTypes.CATCH; - } - case 132: break; - case 58: - { return BallerinaTypes.CONST; - } - case 133: break; - case 59: - { return BallerinaTypes.BREAK; - } - case 134: break; - case 60: - { return BallerinaTypes.WHILE; - } - case 135: break; - case 61: - { return BallerinaTypes.THROWS; - } - case 136: break; - case 62: - { return BallerinaTypes.RETURN; - } - case 137: break; - case 63: - { return BallerinaTypes.ACTION; - } - case 138: break; - case 64: - { return BallerinaTypes.IMPORT; - } - case 139: break; - case 65: - { return BallerinaTypes.PUBLIC; - } - case 140: break; - case 66: - { return BallerinaTypes.WORKER; - } - case 141: break; - case 67: - { return BallerinaTypes.TIMEOUT; - } - case 142: break; - case 68: - { return BallerinaTypes.SERVICE; - } - case 143: break; - case 69: - { return BallerinaTypes.ITERATE; - } - case 144: break; - case 70: - { return BallerinaTypes.PACKAGE; - } - case 145: break; - case 71: - { return BallerinaTypes.VERSION; - } - case 146: break; - case 72: - { return BallerinaTypes.RESOURCE; - } - case 147: break; - case 73: - { return BallerinaTypes.FUNCTION; - } - case 148: break; - case 74: - { return BallerinaTypes.CONNECTOR; - } - case 149: break; - case 75: - { return BallerinaTypes.TYPECONVERTOR; - } - case 150: break; - default: - zzScanError(ZZ_NO_MATCH); - } - } - } - } - - -} From 8996a28d63925ba5d11b1bc3296a3c17593d7682 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Tue, 24 Jan 2017 19:07:14 +0530 Subject: [PATCH 21/36] Add formatting support --- .../ballerinalang/parser/BallerinaParser.java | 196 +++++++++--------- .../psi/BallerinaElseClause.java | 2 +- .../psi/BallerinaElseClauseBody.java | 29 +++ .../psi/BallerinaElseIfClause.java | 2 +- .../psi/BallerinaElseIfClauseBlock.java | 29 +++ .../psi/BallerinaElseIfClauseBody.java | 29 +++ .../psi/BallerinaIfElseClauseBody.java | 29 +++ .../psi/BallerinaIfElseIfClauseBlock.java | 29 +++ .../psi/BallerinaIfElseIfClauseBody.java | 29 +++ .../psi/BallerinaIfElseStatement.java | 2 +- gen/org/ballerinalang/psi/BallerinaTypes.java | 4 + .../ballerinalang/psi/BallerinaVisitor.java | 4 + .../psi/impl/BallerinaElseClauseImpl.java | 4 +- .../psi/impl/BallerinaElseIfClauseImpl.java | 4 +- .../impl/BallerinaIfElseIfClauseBodyImpl.java | 51 +++++ .../impl/BallerinaIfElseStatementImpl.java | 4 +- resources/META-INF/plugin.xml | 1 + src/org/ballerinalang/Ballerina.bnf | 26 ++- src/org/ballerinalang/BallerinaBlock.java | 122 ++++++++++- .../BallerinaFormattingModelBuilder.java | 112 +++++++++- 20 files changed, 588 insertions(+), 120 deletions(-) create mode 100644 gen/org/ballerinalang/psi/BallerinaElseClauseBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java create mode 100644 gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java create mode 100644 gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java create mode 100644 gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBody.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaIfElseIfClauseBodyImpl.java diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/parser/BallerinaParser.java index 9ca8d6385d99..b82311cddcca 100644 --- a/gen/org/ballerinalang/parser/BallerinaParser.java +++ b/gen/org/ballerinalang/parser/BallerinaParser.java @@ -126,6 +126,9 @@ else if (t == FUNCTION_INVOCATION_STATEMENT) { else if (t == FUNCTION_NAME) { r = functionName(b, 0); } + else if (t == IF_ELSE_IF_CLAUSE_BODY) { + r = ifElseIfClauseBody(b, 0); + } else if (t == IF_ELSE_STATEMENT) { r = ifElseStatement(b, 0); } @@ -314,7 +317,7 @@ public static boolean NullLiteral(PsiBuilder b, int l) { } /* ********************************************************** */ - // annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? functionBody + // annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? '{' functionBody '}' public static boolean actionDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "actionDefinition")) return false; if (!nextTokenIs(b, "", AT, ACTION)) return false; @@ -326,7 +329,9 @@ public static boolean actionDefinition(PsiBuilder b, int l) { r = r && consumeToken(b, RPAREN); r = r && actionDefinition_6(b, l + 1); r = r && actionDefinition_7(b, l + 1); + r = r && consumeToken(b, LBRACE); r = r && functionBody(b, l + 1); + r = r && consumeToken(b, RBRACE); exit_section_(b, l, m, r, false, null); return r; } @@ -826,55 +831,52 @@ private static boolean compilationUnit_2_0(PsiBuilder b, int l) { } /* ********************************************************** */ - // '{' connectorDeclaration* variableDeclaration* actionDefinition+ '}' + // connectorDeclaration* variableDeclaration* actionDefinition+ public static boolean connectorBody(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "connectorBody")) return false; - if (!nextTokenIs(b, LBRACE)) return false; boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); + Marker m = enter_section_(b, l, _NONE_, CONNECTOR_BODY, ""); + r = connectorBody_0(b, l + 1); r = r && connectorBody_1(b, l + 1); r = r && connectorBody_2(b, l + 1); - r = r && connectorBody_3(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, CONNECTOR_BODY, r); + exit_section_(b, l, m, r, false, null); return r; } // connectorDeclaration* - private static boolean connectorBody_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "connectorBody_1")) return false; + private static boolean connectorBody_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorBody_0")) return false; int c = current_position_(b); while (true) { if (!connectorDeclaration(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "connectorBody_1", c)) break; + if (!empty_element_parsed_guard_(b, "connectorBody_0", c)) break; c = current_position_(b); } return true; } // variableDeclaration* - private static boolean connectorBody_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "connectorBody_2")) return false; + private static boolean connectorBody_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorBody_1")) return false; int c = current_position_(b); while (true) { if (!variableDeclaration(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "connectorBody_2", c)) break; + if (!empty_element_parsed_guard_(b, "connectorBody_1", c)) break; c = current_position_(b); } return true; } // actionDefinition+ - private static boolean connectorBody_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "connectorBody_3")) return false; + private static boolean connectorBody_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "connectorBody_2")) return false; boolean r; Marker m = enter_section_(b); r = actionDefinition(b, l + 1); int c = current_position_(b); while (r) { if (!actionDefinition(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "connectorBody_3", c)) break; + if (!empty_element_parsed_guard_(b, "connectorBody_2", c)) break; c = current_position_(b); } exit_section_(b, m, null, r); @@ -906,7 +908,7 @@ private static boolean connectorDeclaration_6(PsiBuilder b, int l) { } /* ********************************************************** */ - // annotation* 'connector' Identifier '(' parameterList ')' connectorBody + // annotation* 'connector' Identifier '(' parameterList ')' '{' connectorBody '}' public static boolean connectorDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "connectorDefinition")) return false; if (!nextTokenIs(b, "", AT, CONNECTOR)) return false; @@ -915,8 +917,9 @@ public static boolean connectorDefinition(PsiBuilder b, int l) { r = connectorDefinition_0(b, l + 1); r = r && consumeTokens(b, 0, CONNECTOR, IDENTIFIER, LPAREN); r = r && parameterList(b, l + 1); - r = r && consumeToken(b, RPAREN); + r = r && consumeTokens(b, 0, RPAREN, LBRACE); r = r && connectorBody(b, l + 1); + r = r && consumeToken(b, RBRACE); exit_section_(b, l, m, r, false, null); return r; } @@ -1077,33 +1080,20 @@ private static boolean elementValuePairs_1_0(PsiBuilder b, int l) { } /* ********************************************************** */ - // 'else' '{' statement*'}' + // 'else' '{' ifElseIfClauseBody public static boolean elseClause(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "elseClause")) return false; if (!nextTokenIs(b, ELSE)) return false; boolean r; Marker m = enter_section_(b); r = consumeTokens(b, 0, ELSE, LBRACE); - r = r && elseClause_2(b, l + 1); - r = r && consumeToken(b, RBRACE); + r = r && ifElseIfClauseBody(b, l + 1); exit_section_(b, m, ELSE_CLAUSE, r); return r; } - // statement* - private static boolean elseClause_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "elseClause_2")) return false; - int c = current_position_(b); - while (true) { - if (!statement(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "elseClause_2", c)) break; - c = current_position_(b); - } - return true; - } - /* ********************************************************** */ - // 'else' 'if' '(' expression ')' '{' statement* '}' + // 'else' 'if' '(' expression ')' '{' ifElseIfClauseBody public static boolean elseIfClause(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "elseIfClause")) return false; if (!nextTokenIs(b, ELSE)) return false; @@ -1112,24 +1102,11 @@ public static boolean elseIfClause(PsiBuilder b, int l) { r = consumeTokens(b, 0, ELSE, IF, LPAREN); r = r && expression(b, l + 1); r = r && consumeTokens(b, 0, RPAREN, LBRACE); - r = r && elseIfClause_6(b, l + 1); - r = r && consumeToken(b, RBRACE); + r = r && ifElseIfClauseBody(b, l + 1); exit_section_(b, m, ELSE_IF_CLAUSE, r); return r; } - // statement* - private static boolean elseIfClause_6(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "elseIfClause_6")) return false; - int c = current_position_(b); - while (true) { - if (!statement(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "elseIfClause_6", c)) break; - c = current_position_(b); - } - return true; - } - /* ********************************************************** */ // '(' typeName ')' basicExpression // | ('+'|'-'|'!') basicExpression @@ -1336,68 +1313,65 @@ private static boolean forkJoinStatement_9(PsiBuilder b, int l) { } /* ********************************************************** */ - // '{' connectorDeclaration* variableDeclaration* workerDeclaration* statement+ '}' + // connectorDeclaration* variableDeclaration* workerDeclaration* statement+ public static boolean functionBody(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "functionBody")) return false; - if (!nextTokenIs(b, LBRACE)) return false; boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); + Marker m = enter_section_(b, l, _NONE_, FUNCTION_BODY, ""); + r = functionBody_0(b, l + 1); r = r && functionBody_1(b, l + 1); r = r && functionBody_2(b, l + 1); r = r && functionBody_3(b, l + 1); - r = r && functionBody_4(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, FUNCTION_BODY, r); + exit_section_(b, l, m, r, false, null); return r; } // connectorDeclaration* - private static boolean functionBody_1(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "functionBody_1")) return false; + private static boolean functionBody_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_0")) return false; int c = current_position_(b); while (true) { if (!connectorDeclaration(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "functionBody_1", c)) break; + if (!empty_element_parsed_guard_(b, "functionBody_0", c)) break; c = current_position_(b); } return true; } // variableDeclaration* - private static boolean functionBody_2(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "functionBody_2")) return false; + private static boolean functionBody_1(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_1")) return false; int c = current_position_(b); while (true) { if (!variableDeclaration(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "functionBody_2", c)) break; + if (!empty_element_parsed_guard_(b, "functionBody_1", c)) break; c = current_position_(b); } return true; } // workerDeclaration* - private static boolean functionBody_3(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "functionBody_3")) return false; + private static boolean functionBody_2(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_2")) return false; int c = current_position_(b); while (true) { if (!workerDeclaration(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "functionBody_3", c)) break; + if (!empty_element_parsed_guard_(b, "functionBody_2", c)) break; c = current_position_(b); } return true; } // statement+ - private static boolean functionBody_4(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "functionBody_4")) return false; + private static boolean functionBody_3(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "functionBody_3")) return false; boolean r; Marker m = enter_section_(b); r = statement(b, l + 1); int c = current_position_(b); while (r) { if (!statement(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "functionBody_4", c)) break; + if (!empty_element_parsed_guard_(b, "functionBody_3", c)) break; c = current_position_(b); } exit_section_(b, m, null, r); @@ -1405,7 +1379,7 @@ private static boolean functionBody_4(PsiBuilder b, int l) { } /* ********************************************************** */ - // annotation* 'public'? 'function' Identifier '(' parameterList? ')' returnParameters? ('throws' Identifier)? functionBody + // annotation* 'public'? 'function' Identifier '(' parameterList? ')' returnParameters? ('throws' Identifier)? '{' functionBody '}' public static boolean functionDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "functionDefinition")) return false; boolean r; @@ -1417,7 +1391,9 @@ public static boolean functionDefinition(PsiBuilder b, int l) { r = r && consumeToken(b, RPAREN); r = r && functionDefinition_7(b, l + 1); r = r && functionDefinition_8(b, l + 1); + r = r && consumeToken(b, LBRACE); r = r && functionBody(b, l + 1); + r = r && consumeToken(b, RBRACE); exit_section_(b, l, m, r, false, null); return r; } @@ -1518,7 +1494,22 @@ private static boolean functionName_0_0(PsiBuilder b, int l) { } /* ********************************************************** */ - // 'if' '(' expression ')' '{' statement* '}' elseIfClause* elseClause? + // statement* + public static boolean ifElseIfClauseBody(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "ifElseIfClauseBody")) return false; + Marker m = enter_section_(b, l, _NONE_, IF_ELSE_IF_CLAUSE_BODY, ""); + int c = current_position_(b); + while (true) { + if (!statement(b, l + 1)) break; + if (!empty_element_parsed_guard_(b, "ifElseIfClauseBody", c)) break; + c = current_position_(b); + } + exit_section_(b, l, m, true, false, null); + return true; + } + + /* ********************************************************** */ + // 'if' '(' expression ')' '{' ifElseIfClauseBody '}' (elseIfClause '}')* (elseClause '}')? public static boolean ifElseStatement(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ifElseStatement")) return false; if (!nextTokenIs(b, IF)) return false; @@ -1527,7 +1518,7 @@ public static boolean ifElseStatement(PsiBuilder b, int l) { r = consumeTokens(b, 0, IF, LPAREN); r = r && expression(b, l + 1); r = r && consumeTokens(b, 0, RPAREN, LBRACE); - r = r && ifElseStatement_5(b, l + 1); + r = r && ifElseIfClauseBody(b, l + 1); r = r && consumeToken(b, RBRACE); r = r && ifElseStatement_7(b, l + 1); r = r && ifElseStatement_8(b, l + 1); @@ -1535,37 +1526,47 @@ public static boolean ifElseStatement(PsiBuilder b, int l) { return r; } - // statement* - private static boolean ifElseStatement_5(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "ifElseStatement_5")) return false; - int c = current_position_(b); - while (true) { - if (!statement(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "ifElseStatement_5", c)) break; - c = current_position_(b); - } - return true; - } - - // elseIfClause* + // (elseIfClause '}')* private static boolean ifElseStatement_7(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ifElseStatement_7")) return false; int c = current_position_(b); while (true) { - if (!elseIfClause(b, l + 1)) break; + if (!ifElseStatement_7_0(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "ifElseStatement_7", c)) break; c = current_position_(b); } return true; } - // elseClause? + // elseIfClause '}' + private static boolean ifElseStatement_7_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "ifElseStatement_7_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = elseIfClause(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, null, r); + return r; + } + + // (elseClause '}')? private static boolean ifElseStatement_8(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ifElseStatement_8")) return false; - elseClause(b, l + 1); + ifElseStatement_8_0(b, l + 1); return true; } + // elseClause '}' + private static boolean ifElseStatement_8_0(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "ifElseStatement_8_0")) return false; + boolean r; + Marker m = enter_section_(b); + r = elseClause(b, l + 1); + r = r && consumeToken(b, RBRACE); + exit_section_(b, m, null, r); + return r; + } + /* ********************************************************** */ // 'import' packageName ('as' Identifier)? ';' public static boolean importDeclaration(PsiBuilder b, int l) { @@ -2052,7 +2053,7 @@ public static boolean replyStatement(PsiBuilder b, int l) { } /* ********************************************************** */ - // annotation* 'resource' Identifier '(' parameterList ')' functionBody + // annotation* 'resource' Identifier '(' parameterList ')' '{' functionBody '}' public static boolean resourceDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "resourceDefinition")) return false; if (!nextTokenIs(b, "", AT, RESOURCE)) return false; @@ -2061,8 +2062,9 @@ public static boolean resourceDefinition(PsiBuilder b, int l) { r = resourceDefinition_0(b, l + 1); r = r && consumeTokens(b, 0, RESOURCE, IDENTIFIER, LPAREN); r = r && parameterList(b, l + 1); - r = r && consumeToken(b, RPAREN); + r = r && consumeTokens(b, 0, RPAREN, LBRACE); r = r && functionBody(b, l + 1); + r = r && consumeToken(b, RBRACE); exit_section_(b, l, m, r, false, null); return r; } @@ -2162,16 +2164,13 @@ private static boolean returnTypeList_1_0(PsiBuilder b, int l) { } /* ********************************************************** */ - // '{' serviceBodyDeclaration '}' + // serviceBodyDeclaration public static boolean serviceBody(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "serviceBody")) return false; - if (!nextTokenIs(b, LBRACE)) return false; boolean r; - Marker m = enter_section_(b); - r = consumeToken(b, LBRACE); - r = r && serviceBodyDeclaration(b, l + 1); - r = r && consumeToken(b, RBRACE); - exit_section_(b, m, SERVICE_BODY, r); + Marker m = enter_section_(b, l, _NONE_, SERVICE_BODY, ""); + r = serviceBodyDeclaration(b, l + 1); + exit_section_(b, l, m, r, false, null); return r; } @@ -2229,15 +2228,16 @@ private static boolean serviceBodyDeclaration_2(PsiBuilder b, int l) { } /* ********************************************************** */ - // annotation* 'service' Identifier serviceBody + // annotation* 'service' Identifier '{' serviceBody '}' public static boolean serviceDefinition(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "serviceDefinition")) return false; if (!nextTokenIs(b, "", AT, SERVICE)) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, SERVICE_DEFINITION, ""); r = serviceDefinition_0(b, l + 1); - r = r && consumeTokens(b, 0, SERVICE, IDENTIFIER); + r = r && consumeTokens(b, 0, SERVICE, IDENTIFIER, LBRACE); r = r && serviceBody(b, l + 1); + r = r && consumeToken(b, RBRACE); exit_section_(b, l, m, r, false, null); return r; } diff --git a/gen/org/ballerinalang/psi/BallerinaElseClause.java b/gen/org/ballerinalang/psi/BallerinaElseClause.java index d3b7c547ba6d..1a2140e6f5f8 100644 --- a/gen/org/ballerinalang/psi/BallerinaElseClause.java +++ b/gen/org/ballerinalang/psi/BallerinaElseClause.java @@ -24,6 +24,6 @@ public interface BallerinaElseClause extends PsiElement { @NotNull - List getStatementList(); + BallerinaIfElseIfClauseBody getIfElseIfClauseBody(); } diff --git a/gen/org/ballerinalang/psi/BallerinaElseClauseBody.java b/gen/org/ballerinalang/psi/BallerinaElseClauseBody.java new file mode 100644 index 000000000000..f404347fc117 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElseClauseBody.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElseClauseBody extends PsiElement { + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClause.java b/gen/org/ballerinalang/psi/BallerinaElseIfClause.java index e54aba402905..79b7b34dc0ba 100644 --- a/gen/org/ballerinalang/psi/BallerinaElseIfClause.java +++ b/gen/org/ballerinalang/psi/BallerinaElseIfClause.java @@ -27,6 +27,6 @@ public interface BallerinaElseIfClause extends PsiElement { BallerinaExpression getExpression(); @NotNull - List getStatementList(); + BallerinaIfElseIfClauseBody getIfElseIfClauseBody(); } diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java b/gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java new file mode 100644 index 000000000000..b9f1cabb17c2 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElseIfClauseBlock extends PsiElement { + + @NotNull + BallerinaIfElseIfClauseBody getIfElseIfClauseBody(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java b/gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java new file mode 100644 index 000000000000..61e3171c39d9 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaElseIfClauseBody extends PsiElement { + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java b/gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java new file mode 100644 index 000000000000..1c2342059d86 --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaIfElseClauseBody extends PsiElement { + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java b/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java new file mode 100644 index 000000000000..2a8c6bdfd14b --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaIfElseIfClauseBlock extends PsiElement { + + @NotNull + BallerinaIfElseIfClauseBody getIfElseIfClauseBody(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBody.java b/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBody.java new file mode 100644 index 000000000000..c524fd63e08e --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBody.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaIfElseIfClauseBody extends PsiElement { + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java b/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java index a9cc536907ba..753ccf568438 100644 --- a/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java @@ -33,6 +33,6 @@ public interface BallerinaIfElseStatement extends PsiElement { BallerinaExpression getExpression(); @NotNull - List getStatementList(); + BallerinaIfElseIfClauseBody getIfElseIfClauseBody(); } diff --git a/gen/org/ballerinalang/psi/BallerinaTypes.java b/gen/org/ballerinalang/psi/BallerinaTypes.java index 84cabaa18e67..eefc11268aac 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypes.java +++ b/gen/org/ballerinalang/psi/BallerinaTypes.java @@ -52,6 +52,7 @@ public interface BallerinaTypes { IElementType FUNCTION_DEFINITION = new BallerinaElementType("FUNCTION_DEFINITION"); IElementType FUNCTION_INVOCATION_STATEMENT = new BallerinaElementType("FUNCTION_INVOCATION_STATEMENT"); IElementType FUNCTION_NAME = new BallerinaElementType("FUNCTION_NAME"); + IElementType IF_ELSE_IF_CLAUSE_BODY = new BallerinaElementType("IF_ELSE_IF_CLAUSE_BODY"); IElementType IF_ELSE_STATEMENT = new BallerinaElementType("IF_ELSE_STATEMENT"); IElementType IMPORT_DECLARATION = new BallerinaElementType("IMPORT_DECLARATION"); IElementType ITERATE_STATEMENT = new BallerinaElementType("ITERATE_STATEMENT"); @@ -273,6 +274,9 @@ else if (type == FUNCTION_INVOCATION_STATEMENT) { else if (type == FUNCTION_NAME) { return new BallerinaFunctionNameImpl(node); } + else if (type == IF_ELSE_IF_CLAUSE_BODY) { + return new BallerinaIfElseIfClauseBodyImpl(node); + } else if (type == IF_ELSE_STATEMENT) { return new BallerinaIfElseStatementImpl(node); } diff --git a/gen/org/ballerinalang/psi/BallerinaVisitor.java b/gen/org/ballerinalang/psi/BallerinaVisitor.java index 61992062dc30..3f15c3ca1b28 100644 --- a/gen/org/ballerinalang/psi/BallerinaVisitor.java +++ b/gen/org/ballerinalang/psi/BallerinaVisitor.java @@ -139,6 +139,10 @@ public void visitFunctionName(@NotNull BallerinaFunctionName o) { visitPsiElement(o); } + public void visitIfElseIfClauseBody(@NotNull BallerinaIfElseIfClauseBody o) { + visitPsiElement(o); + } + public void visitIfElseStatement(@NotNull BallerinaIfElseStatement o) { visitPsiElement(o); } diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java index 2bd898694fc4..889a54695636 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java @@ -44,8 +44,8 @@ public void accept(@NotNull PsiElementVisitor visitor) { @Override @NotNull - public List getStatementList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + public BallerinaIfElseIfClauseBody getIfElseIfClauseBody() { + return findNotNullChildByClass(BallerinaIfElseIfClauseBody.class); } } diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java index 0598ba03d248..7e21e341c72b 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java @@ -50,8 +50,8 @@ public BallerinaExpression getExpression() { @Override @NotNull - public List getStatementList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + public BallerinaIfElseIfClauseBody getIfElseIfClauseBody() { + return findNotNullChildByClass(BallerinaIfElseIfClauseBody.class); } } diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIfElseIfClauseBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaIfElseIfClauseBodyImpl.java new file mode 100644 index 000000000000..357c102a7ee1 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaIfElseIfClauseBodyImpl.java @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaIfElseIfClauseBodyImpl extends ASTWrapperPsiElement implements BallerinaIfElseIfClauseBody { + + public BallerinaIfElseIfClauseBodyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitIfElseIfClauseBody(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java index e11cdd2ba6b1..af7aa430d8bd 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java @@ -62,8 +62,8 @@ public BallerinaExpression getExpression() { @Override @NotNull - public List getStatementList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + public BallerinaIfElseIfClauseBody getIfElseIfClauseBody() { + return findNotNullChildByClass(BallerinaIfElseIfClauseBody.class); } } diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 860796b50af5..bd83b465580d 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -33,6 +33,7 @@ + diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index 0bed45268593..dab0386c3b46 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -141,31 +141,31 @@ importDeclaration ::= 'import' packageName ('as' Identifier)? ';' serviceDefinition - ::= annotation* 'service' Identifier serviceBody + ::= annotation* 'service' Identifier '{' serviceBody '}' serviceBody - ::= '{' serviceBodyDeclaration '}' + ::= serviceBodyDeclaration serviceBodyDeclaration ::= connectorDeclaration* variableDeclaration* resourceDefinition+ resourceDefinition - ::= annotation* 'resource' Identifier '(' parameterList ')' functionBody + ::= annotation* 'resource' Identifier '(' parameterList ')' '{' functionBody '}' functionDefinition - ::= annotation* 'public'? 'function' Identifier '(' parameterList? ')' returnParameters? ('throws' Identifier)? functionBody + ::= annotation* 'public'? 'function' Identifier '(' parameterList? ')' returnParameters? ('throws' Identifier)? '{' functionBody '}' functionBody - ::= '{' connectorDeclaration* variableDeclaration* workerDeclaration* statement+ '}' + ::= connectorDeclaration* variableDeclaration* workerDeclaration* statement+ connectorDefinition - ::= annotation* 'connector' Identifier '(' parameterList ')' connectorBody + ::= annotation* 'connector' Identifier '(' parameterList ')' '{' connectorBody '}' connectorBody - ::= '{' connectorDeclaration* variableDeclaration* actionDefinition+ '}' + ::= connectorDeclaration* variableDeclaration* actionDefinition+ actionDefinition - ::= annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? functionBody + ::= annotation* 'action' Identifier '(' parameterList ')' returnParameters? ('throws' Identifier)? '{' functionBody '}' connectorDeclaration ::= qualifiedReference Identifier '=' 'new' qualifiedReference '(' expressionList? ')'';' @@ -334,13 +334,17 @@ variableReferenceList ::= variableReference (',' variableReference)* ifElseStatement - ::= 'if' '(' expression ')' '{' statement* '}' elseIfClause* elseClause? + ::= 'if' '(' expression ')' '{' ifElseIfClauseBody '}' (elseIfClause '}')* (elseClause '}')? elseIfClause - ::= 'else' 'if' '(' expression ')' '{' statement* '}' + ::= 'else' 'if' '(' expression ')' '{' ifElseIfClauseBody elseClause - ::= 'else' '{' statement*'}' + ::= 'else' '{' ifElseIfClauseBody + +ifElseIfClauseBody::= statement* + + iterateStatement ::= 'iterate' '(' typeName Identifier ':' expression ')' '{' statement+ '}' diff --git a/src/org/ballerinalang/BallerinaBlock.java b/src/org/ballerinalang/BallerinaBlock.java index 0307b8adf890..05ba1c5f447b 100644 --- a/src/org/ballerinalang/BallerinaBlock.java +++ b/src/org/ballerinalang/BallerinaBlock.java @@ -13,7 +13,127 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.ballerinalang; -public class BallerinaBlock { +import com.intellij.formatting.Alignment; +import com.intellij.formatting.Block; +import com.intellij.formatting.Indent; +import com.intellij.formatting.Spacing; +import com.intellij.formatting.SpacingBuilder; +import com.intellij.formatting.Wrap; +import com.intellij.lang.ASTNode; +import com.intellij.psi.TokenType; +import com.intellij.psi.codeStyle.CodeStyleSettings; +import com.intellij.psi.formatter.common.AbstractBlock; +import com.intellij.psi.tree.IElementType; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.ArrayList; +import java.util.List; + +import static org.ballerinalang.psi.BallerinaTypes.*; + +public class BallerinaBlock extends AbstractBlock { + + private SpacingBuilder spacingBuilder; + + @NotNull + private final ASTNode myNode; + @Nullable + private final Alignment myAlignment; + @Nullable + private final Indent myIndent; + @Nullable + private final Wrap myWrap; + @NotNull + private final CodeStyleSettings mySettings; + @NotNull + private final SpacingBuilder mySpacingBuilder; + @Nullable + private List mySubBlocks; + + + protected BallerinaBlock(@NotNull ASTNode node, @Nullable Alignment alignment, @Nullable Indent indent, @Nullable + Wrap wrap, @NotNull CodeStyleSettings settings, SpacingBuilder spacingBuilder) { + super(node, wrap, alignment); + + this.myNode = node; + this.myAlignment = alignment; + this.myIndent = indent; + this.myWrap = wrap; + this.mySettings = settings; + this.mySpacingBuilder = spacingBuilder; + this.spacingBuilder = spacingBuilder; + } + + + @Override + protected List buildChildren() { + List blocks = new ArrayList(); + ASTNode child = myNode.getFirstChildNode(); + IElementType parentElementType = myNode.getElementType(); + + while (child != null) { + IElementType childElementType = child.getElementType(); + if (childElementType != TokenType.WHITE_SPACE) { + + Indent indent = Indent.getNoneIndent(); + + if (childElementType == SERVICE_BODY) { + indent = Indent.getSpaceIndent(4); + } else if (childElementType == FUNCTION_BODY) { + indent = Indent.getSpaceIndent(4); + } else if (childElementType == CONNECTOR_BODY) { + indent = Indent.getSpaceIndent(4); + } + + + if (parentElementType == IF_ELSE_STATEMENT) { + if (childElementType == IF_ELSE_IF_CLAUSE_BODY) { + indent = Indent.getSpaceIndent(4); + } + } + if (parentElementType == ELSE_CLAUSE) { + if (childElementType == IF_ELSE_IF_CLAUSE_BODY) { + indent = Indent.getSpaceIndent(2); + } + } + if (parentElementType == ELSE_IF_CLAUSE) { + if (childElementType == IF_ELSE_IF_CLAUSE_BODY) { + indent = Indent.getSpaceIndent(2); + } + } + + Block block = new BallerinaBlock( + child, + Alignment.createAlignment(), + indent, + null, + mySettings, + spacingBuilder + ); + blocks.add(block); + } + child = child.getTreeNext(); + } + return blocks; + } + + @Override + public Indent getIndent() { + return myIndent; + } + + @Nullable + @Override + public Spacing getSpacing(@Nullable Block child1, @NotNull Block child2) { + return spacingBuilder.getSpacing(this, child1, child2); + } + + @Override + public boolean isLeaf() { + return myNode.getFirstChildNode() == null; + } } diff --git a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java index 557134c9fcde..38f9f6f8870d 100644 --- a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java +++ b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java @@ -13,7 +13,117 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + package org.ballerinalang; -public class BallerinaFormattingModelBuilder { +import com.intellij.formatting.*; +import com.intellij.lang.ASTNode; +import com.intellij.openapi.util.TextRange; +import com.intellij.psi.*; +import com.intellij.psi.codeStyle.CodeStyleSettings; +import org.jetbrains.annotations.*; + +import static org.ballerinalang.psi.BallerinaTypes.*; + +public class BallerinaFormattingModelBuilder implements FormattingModelBuilder { + + @NotNull + @Override + public FormattingModel createModel(PsiElement element, CodeStyleSettings settings) { + BallerinaBlock rootBlock = new BallerinaBlock(element.getNode(), null, Indent.getNoneIndent(), null, + settings, createSpaceBuilder(settings) + ); + return FormattingModelProvider.createFormattingModelForPsiFile(element.getContainingFile(), rootBlock, settings + ); + } + + private static SpacingBuilder createSpaceBuilder(CodeStyleSettings settings) { + return new SpacingBuilder(settings, BallerinaLanguage.INSTANCE) + + .before(COMMA).spaceIf(false) + .after(COMMA).spaceIf(true) + .around(ASSIGN).spaceIf(true) + .around(GT).spaceIf(true) + .around(LT).spaceIf(true) + .around(EQUAL).spaceIf(true) + .around(LE).spaceIf(true) + .around(GE).spaceIf(true) + .around(NOTEQUAL).spaceIf(true) + .around(AND).spaceIf(true) + .around(OR).spaceIf(true) + .around(ADD).spaceIf(true) + .around(SUB).spaceIf(true) + .around(MUL).spaceIf(true) + .around(DIV).spaceIf(true) + .around(BITAND).spaceIf(true) + .around(BITOR).spaceIf(true) + .around(MOD).spaceIf(true) + .before(SEMI).spaceIf(false) + + .after(IF).spaceIf(true) + .between(RPAREN, LBRACE).spaceIf(true) + .around(ELSE_IF_CLAUSE).spaceIf(true) + .around(ELSE_CLAUSE).spaceIf(true) + .between(ELSE, IF).spaceIf(true) + .between(ELSE, LBRACE).spaceIf(true) + + .after(NEW).spaceIf(true) + .after(RETURN).spaceIf(true) + + .after(SERVICE).spaceIf(true) + .after(RESOURCE).spaceIf(true) + .after(FUNCTION).spaceIf(true) + .after(CONNECTOR).spaceIf(true) + .after(REPLY).spaceIf(true) + + + .between(LBRACK, RBRACK).spaceIf(false) + .before(LBRACK).spaceIf(false) + + .between(PACKAGE_NAME, COLON).spaceIf(false) + .between(COLON, IDENTIFIER).spaceIf(false) + + + .between(LPAREN, ELEMENT_VALUE).spaceIf(false) + .between(ELEMENT_VALUE, RPAREN).spaceIf(false) + + .between(IDENTIFIER, LBRACE).spaceIf(true) + + .before(EXPRESSION_LIST).spaceIf(false) + .after(EXPRESSION_LIST).spaceIf(false) + .around(EXPRESSION).spaceIf(false) + + .around(RETURN_TYPE_LIST).spaceIf(false) + .around(RETURN_PARAMETERS).spaceIf(true) + + + .after(PACKAGE).spaceIf(true) + + .after(IMPORT).spaceIf(true) + + .after(ANNOTATION_NAME).spaceIf(false) + .between(AT, ANNOTATION_NAME).spaceIf(false) + .between(TYPE_NAME, IDENTIFIER).spaceIf(true) + .between(IDENTIFIER, LPAREN).spaceIf(false) + + + .after(PARAMETER_LIST).spaceIf(false) + .before(PARAMETER_LIST).spaceIf(false) + + + .after(PACKAGE_DECLARATION).blankLines(1) + .before(FUNCTION_DEFINITION).blankLines(1) + .after(FUNCTION_DEFINITION).blankLines(1) + .before(SERVICE_DEFINITION).blankLines(1) + .after(SERVICE_DEFINITION).blankLines(1) + .before(RESOURCE_DEFINITION).blankLines(1) + .after(RESOURCE_DEFINITION).blankLines(1) + .before(SERVICE_BODY_DECLARATION).blankLines(1); + } + + @Nullable + @Override + public TextRange getRangeAffectingIndent(PsiFile file, int offset, ASTNode elementAtOffset) { + return null; + } } From c0c4069526201720e2053cb83dbe5fffb2373bc8 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 11:11:29 +0530 Subject: [PATCH 22/36] Change idea-version to support 14.1 This commit also contains some other minor changes. --- resources/META-INF/plugin.xml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index bd83b465580d..5fccacf4d46b 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -2,22 +2,25 @@ org.ballerinalang Ballerina 0.1 - WSO2 + Custom Languages + WSO2 Inc. + Plugin for Ballerina language.
+
+ Visit BallerinaLang.org for more details. ]]>
-
  • Syntax highlighting.
  • -
  • Commenter support.
  • +
  • Syntax highlighting support.
  • +
  • Code formatting support.
  • ]]>
    - + From 923124ad184f1aeb7ee84e124960c4d6484d9faa Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 11:13:07 +0530 Subject: [PATCH 23/36] Improve formatting for 'while' statements --- .../ballerinalang/parser/BallerinaParser.java | 18 ++++--- gen/org/ballerinalang/psi/BallerinaTypes.java | 4 ++ .../ballerinalang/psi/BallerinaVisitor.java | 4 ++ .../psi/BallerinaWhileStatement.java | 2 +- .../psi/BallerinaWhileStatementBody.java | 29 +++++++++++ .../impl/BallerinaWhileStatementBodyImpl.java | 51 +++++++++++++++++++ .../psi/impl/BallerinaWhileStatementImpl.java | 4 +- src/org/ballerinalang/Ballerina.bnf | 4 +- src/org/ballerinalang/BallerinaBlock.java | 6 +++ .../BallerinaFormattingModelBuilder.java | 9 +++- 10 files changed, 118 insertions(+), 13 deletions(-) create mode 100644 gen/org/ballerinalang/psi/BallerinaWhileStatementBody.java create mode 100644 gen/org/ballerinalang/psi/impl/BallerinaWhileStatementBodyImpl.java diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/parser/BallerinaParser.java index b82311cddcca..cfd21b383733 100644 --- a/gen/org/ballerinalang/parser/BallerinaParser.java +++ b/gen/org/ballerinalang/parser/BallerinaParser.java @@ -258,6 +258,9 @@ else if (t == VARIABLE_REFERENCE_LIST) { else if (t == WHILE_STATEMENT) { r = whileStatement(b, 0); } + else if (t == WHILE_STATEMENT_BODY) { + r = whileStatementBody(b, 0); + } else if (t == WITH_FULL_SCHEMA_TYPE) { r = withFullSchemaType(b, 0); } @@ -2683,7 +2686,7 @@ private static boolean variableReferenceList_1_0(PsiBuilder b, int l) { } /* ********************************************************** */ - // 'while' '(' expression ')' '{' statement+ '}' + // 'while' '(' expression ')' '{' whileStatementBody '}' public static boolean whileStatement(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "whileStatement")) return false; if (!nextTokenIs(b, WHILE)) return false; @@ -2692,25 +2695,26 @@ public static boolean whileStatement(PsiBuilder b, int l) { r = consumeTokens(b, 0, WHILE, LPAREN); r = r && expression(b, l + 1); r = r && consumeTokens(b, 0, RPAREN, LBRACE); - r = r && whileStatement_5(b, l + 1); + r = r && whileStatementBody(b, l + 1); r = r && consumeToken(b, RBRACE); exit_section_(b, m, WHILE_STATEMENT, r); return r; } + /* ********************************************************** */ // statement+ - private static boolean whileStatement_5(PsiBuilder b, int l) { - if (!recursion_guard_(b, l, "whileStatement_5")) return false; + public static boolean whileStatementBody(PsiBuilder b, int l) { + if (!recursion_guard_(b, l, "whileStatementBody")) return false; boolean r; - Marker m = enter_section_(b); + Marker m = enter_section_(b, l, _NONE_, WHILE_STATEMENT_BODY, ""); r = statement(b, l + 1); int c = current_position_(b); while (r) { if (!statement(b, l + 1)) break; - if (!empty_element_parsed_guard_(b, "whileStatement_5", c)) break; + if (!empty_element_parsed_guard_(b, "whileStatementBody", c)) break; c = current_position_(b); } - exit_section_(b, m, null, r); + exit_section_(b, l, m, r, false, null); return r; } diff --git a/gen/org/ballerinalang/psi/BallerinaTypes.java b/gen/org/ballerinalang/psi/BallerinaTypes.java index eefc11268aac..fdfb59081631 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypes.java +++ b/gen/org/ballerinalang/psi/BallerinaTypes.java @@ -97,6 +97,7 @@ public interface BallerinaTypes { IElementType VARIABLE_REFERENCE = new BallerinaElementType("VARIABLE_REFERENCE"); IElementType VARIABLE_REFERENCE_LIST = new BallerinaElementType("VARIABLE_REFERENCE_LIST"); IElementType WHILE_STATEMENT = new BallerinaElementType("WHILE_STATEMENT"); + IElementType WHILE_STATEMENT_BODY = new BallerinaElementType("WHILE_STATEMENT_BODY"); IElementType WITH_FULL_SCHEMA_TYPE = new BallerinaElementType("WITH_FULL_SCHEMA_TYPE"); IElementType WITH_FULL_SCHEMA_TYPE_ARRAY = new BallerinaElementType("WITH_FULL_SCHEMA_TYPE_ARRAY"); IElementType WITH_FULL_SCHEMA_TYPE_ITERATE = new BallerinaElementType("WITH_FULL_SCHEMA_TYPE_ITERATE"); @@ -409,6 +410,9 @@ else if (type == VARIABLE_REFERENCE_LIST) { else if (type == WHILE_STATEMENT) { return new BallerinaWhileStatementImpl(node); } + else if (type == WHILE_STATEMENT_BODY) { + return new BallerinaWhileStatementBodyImpl(node); + } else if (type == WITH_FULL_SCHEMA_TYPE) { return new BallerinaWithFullSchemaTypeImpl(node); } diff --git a/gen/org/ballerinalang/psi/BallerinaVisitor.java b/gen/org/ballerinalang/psi/BallerinaVisitor.java index 3f15c3ca1b28..b2d3ddd5316e 100644 --- a/gen/org/ballerinalang/psi/BallerinaVisitor.java +++ b/gen/org/ballerinalang/psi/BallerinaVisitor.java @@ -315,6 +315,10 @@ public void visitWhileStatement(@NotNull BallerinaWhileStatement o) { visitPsiElement(o); } + public void visitWhileStatementBody(@NotNull BallerinaWhileStatementBody o) { + visitPsiElement(o); + } + public void visitWithFullSchemaType(@NotNull BallerinaWithFullSchemaType o) { visitPsiElement(o); } diff --git a/gen/org/ballerinalang/psi/BallerinaWhileStatement.java b/gen/org/ballerinalang/psi/BallerinaWhileStatement.java index c229ba24cae6..863112d895c5 100644 --- a/gen/org/ballerinalang/psi/BallerinaWhileStatement.java +++ b/gen/org/ballerinalang/psi/BallerinaWhileStatement.java @@ -27,6 +27,6 @@ public interface BallerinaWhileStatement extends PsiElement { BallerinaExpression getExpression(); @NotNull - List getStatementList(); + BallerinaWhileStatementBody getWhileStatementBody(); } diff --git a/gen/org/ballerinalang/psi/BallerinaWhileStatementBody.java b/gen/org/ballerinalang/psi/BallerinaWhileStatementBody.java new file mode 100644 index 000000000000..06240c2db13a --- /dev/null +++ b/gen/org/ballerinalang/psi/BallerinaWhileStatementBody.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.psi.PsiElement; + +public interface BallerinaWhileStatementBody extends PsiElement { + + @NotNull + List getStatementList(); + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementBodyImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementBodyImpl.java new file mode 100644 index 000000000000..df44edece9b2 --- /dev/null +++ b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementBodyImpl.java @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// This is a generated file. Not intended for manual editing. +package org.ballerinalang.psi.impl; + +import java.util.List; +import org.jetbrains.annotations.*; +import com.intellij.lang.ASTNode; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiElementVisitor; +import com.intellij.psi.util.PsiTreeUtil; +import static org.ballerinalang.psi.BallerinaTypes.*; +import com.intellij.extapi.psi.ASTWrapperPsiElement; +import org.ballerinalang.psi.*; + +public class BallerinaWhileStatementBodyImpl extends ASTWrapperPsiElement implements BallerinaWhileStatementBody { + + public BallerinaWhileStatementBodyImpl(ASTNode node) { + super(node); + } + + public void accept(@NotNull BallerinaVisitor visitor) { + visitor.visitWhileStatementBody(this); + } + + public void accept(@NotNull PsiElementVisitor visitor) { + if (visitor instanceof BallerinaVisitor) accept((BallerinaVisitor)visitor); + else super.accept(visitor); + } + + @Override + @NotNull + public List getStatementList() { + return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + } + +} diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java index cd2a36c9ee09..e4cb6f3e5ebd 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java +++ b/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java @@ -50,8 +50,8 @@ public BallerinaExpression getExpression() { @Override @NotNull - public List getStatementList() { - return PsiTreeUtil.getChildrenOfTypeAsList(this, BallerinaStatement.class); + public BallerinaWhileStatementBody getWhileStatementBody() { + return findNotNullChildByClass(BallerinaWhileStatementBody.class); } } diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/Ballerina.bnf index dab0386c3b46..41cfaf200b78 100644 --- a/src/org/ballerinalang/Ballerina.bnf +++ b/src/org/ballerinalang/Ballerina.bnf @@ -350,7 +350,9 @@ iterateStatement ::= 'iterate' '(' typeName Identifier ':' expression ')' '{' statement+ '}' whileStatement - ::= 'while' '(' expression ')' '{' statement+ '}' + ::= 'while' '(' expression ')' '{' whileStatementBody '}' + +whileStatementBody::=statement+ breakStatement ::= 'break' ';' diff --git a/src/org/ballerinalang/BallerinaBlock.java b/src/org/ballerinalang/BallerinaBlock.java index 05ba1c5f447b..a263b40bdd21 100644 --- a/src/org/ballerinalang/BallerinaBlock.java +++ b/src/org/ballerinalang/BallerinaBlock.java @@ -106,6 +106,12 @@ protected List buildChildren() { } } + if (parentElementType == WHILE_STATEMENT) { + if (childElementType == WHILE_STATEMENT_BODY) { + indent = Indent.getSpaceIndent(4); + } + } + Block block = new BallerinaBlock( child, Alignment.createAlignment(), diff --git a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java index 38f9f6f8870d..83403f1be3c0 100644 --- a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java +++ b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java @@ -66,6 +66,7 @@ private static SpacingBuilder createSpaceBuilder(CodeStyleSettings settings) { .around(ELSE_CLAUSE).spaceIf(true) .between(ELSE, IF).spaceIf(true) .between(ELSE, LBRACE).spaceIf(true) + .after(WHILE).spaceIf(true) .after(NEW).spaceIf(true) .after(RETURN).spaceIf(true) @@ -83,6 +84,9 @@ private static SpacingBuilder createSpaceBuilder(CodeStyleSettings settings) { .between(PACKAGE_NAME, COLON).spaceIf(false) .between(COLON, IDENTIFIER).spaceIf(false) + .between(IDENTIFIER, DOT).spaceIf(false) + .between(DOT, IDENTIFIER).spaceIf(false) + .between(LPAREN, ELEMENT_VALUE).spaceIf(false) .between(ELEMENT_VALUE, RPAREN).spaceIf(false) @@ -101,10 +105,11 @@ private static SpacingBuilder createSpaceBuilder(CodeStyleSettings settings) { .after(IMPORT).spaceIf(true) - .after(ANNOTATION_NAME).spaceIf(false) + .after(ANNOTATION_NAME).spaceIf(true) .between(AT, ANNOTATION_NAME).spaceIf(false) + .between(TYPE_NAME, IDENTIFIER).spaceIf(true) - .between(IDENTIFIER, LPAREN).spaceIf(false) + .between(IDENTIFIER, LPAREN).spaceIf(true) .after(PARAMETER_LIST).spaceIf(false) From 1d5bac384145210bff249d4145bbfd76e4f6b488 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 13:41:31 +0530 Subject: [PATCH 24/36] Add new file action --- resources/META-INF/plugin.xml | 11 +++ .../internal/Ballerina Application.bal.ft | 5 + .../internal/Ballerina Application.bal.html | 6 ++ .../internal/Ballerina File.bal.ft | 1 + .../internal/Ballerina File.bal.html | 29 ++++++ .../actions/BallerinaCreateFileAction.java | 97 +++++++++++++++++++ .../BallerinaTemplatePropertiesProvider.java | 34 +++++++ .../psi/impl/BallerinaPsiImplUtil.java | 44 +++++++++ src/org/ballerinalang/util/BallerinaUtil.java | 30 ++++++ 9 files changed, 257 insertions(+) create mode 100644 resources/fileTemplates/internal/Ballerina Application.bal.ft create mode 100644 resources/fileTemplates/internal/Ballerina Application.bal.html create mode 100644 resources/fileTemplates/internal/Ballerina File.bal.ft create mode 100644 resources/fileTemplates/internal/Ballerina File.bal.html create mode 100644 src/org/ballerinalang/actions/BallerinaCreateFileAction.java create mode 100644 src/org/ballerinalang/actions/BallerinaTemplatePropertiesProvider.java create mode 100644 src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java create mode 100644 src/org/ballerinalang/util/BallerinaUtil.java diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 5fccacf4d46b..8def7b8e3e8b 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -37,10 +37,21 @@ implementationClass="org.ballerinalang.highlighting.BallerinaSyntaxHighlighterFactory"/> + + + + + + + + +
    \ No newline at end of file diff --git a/resources/fileTemplates/internal/Ballerina Application.bal.ft b/resources/fileTemplates/internal/Ballerina Application.bal.ft new file mode 100644 index 000000000000..0151e2a2e859 --- /dev/null +++ b/resources/fileTemplates/internal/Ballerina Application.bal.ft @@ -0,0 +1,5 @@ +import ballerina.lang.system; + +function main (string[] args) { + system:println("Hello, World!"); +} diff --git a/resources/fileTemplates/internal/Ballerina Application.bal.html b/resources/fileTemplates/internal/Ballerina Application.bal.html new file mode 100644 index 000000000000..2bb7fea656d9 --- /dev/null +++ b/resources/fileTemplates/internal/Ballerina Application.bal.html @@ -0,0 +1,6 @@ + + + This is Ballerina application file template. + Contains main function. + + diff --git a/resources/fileTemplates/internal/Ballerina File.bal.ft b/resources/fileTemplates/internal/Ballerina File.bal.ft new file mode 100644 index 000000000000..6042672b7a50 --- /dev/null +++ b/resources/fileTemplates/internal/Ballerina File.bal.ft @@ -0,0 +1 @@ +package ${BALLERINA_PACKAGE_NAME}; diff --git a/resources/fileTemplates/internal/Ballerina File.bal.html b/resources/fileTemplates/internal/Ballerina File.bal.html new file mode 100644 index 000000000000..663ca7449116 --- /dev/null +++ b/resources/fileTemplates/internal/Ballerina File.bal.html @@ -0,0 +1,29 @@ + + + + + + +
    This is a built-in template used each time you create + a new Ballerina file, by selecting New | Ballerina File from the popup menu in one of the project views.
    + The template is editable. Here you can use predefined variables (listed below) that will then be expanded + like macros into the corresponding values.
    + It is also possible to specify an arbitrary number of custom variables in the format + ${<VARIABLE_NAME>}. In this case, before the new + file is created, you will be prompted with a dialog where you can define particular values for all + custom variables.
    +
    + + + + + + + + + +
    Predefined variables will take the following values:
    + ${BALLERINA_PACKAGE_NAME} +  name of the package in which the new file is created
    + + diff --git a/src/org/ballerinalang/actions/BallerinaCreateFileAction.java b/src/org/ballerinalang/actions/BallerinaCreateFileAction.java new file mode 100644 index 000000000000..8ce331cbfe61 --- /dev/null +++ b/src/org/ballerinalang/actions/BallerinaCreateFileAction.java @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.actions; + +import com.intellij.ide.actions.CreateFileFromTemplateAction; +import com.intellij.ide.actions.CreateFileFromTemplateDialog; +import com.intellij.openapi.editor.Editor; +import com.intellij.openapi.fileEditor.FileDocumentManager; +import com.intellij.openapi.fileEditor.FileEditorManager; +import com.intellij.openapi.project.DumbAware; +import com.intellij.openapi.project.Project; +import com.intellij.openapi.vfs.VirtualFile; +import com.intellij.psi.PsiDirectory; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiFile; +import org.ballerinalang.BallerinaIcons; +import org.ballerinalang.psi.BallerinaFile; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.Map; + +public class BallerinaCreateFileAction extends CreateFileFromTemplateAction implements DumbAware { + public static final String FILE_TEMPLATE = "Ballerina File"; + public static final String APPLICATION_TEMPLATE = "Ballerina Application"; + + private static final String NEW_BALLERINA_FILE = "New Ballerina File"; + private static final String DEFAULT_BALLERINA_TEMPLATE_PROPERTY = FILE_TEMPLATE; + + public BallerinaCreateFileAction() { + super(NEW_BALLERINA_FILE, "", BallerinaIcons.FILE); + } + + @Override + protected void buildDialog(Project project, PsiDirectory directory, @NotNull CreateFileFromTemplateDialog.Builder + builder) { + builder.setTitle(NEW_BALLERINA_FILE).addKind("Simple Application", BallerinaIcons.FILE, APPLICATION_TEMPLATE) + .addKind("Empty file", BallerinaIcons.FILE, FILE_TEMPLATE); + } + + @Nullable + @Override + protected String getDefaultTemplateProperty() { + return DEFAULT_BALLERINA_TEMPLATE_PROPERTY; + } + + @NotNull + @Override + protected String getActionName(PsiDirectory directory, String newName, String templateName) { + return NEW_BALLERINA_FILE; + } + + + @Override + protected void postProcess(PsiFile createdElement, String templateName, Map customProperties) { + if (createdElement instanceof BallerinaFile) { + // Moving the caret to the end of the file. + Project project = createdElement.getProject(); + Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor(); + if (editor == null) { + return; + } + VirtualFile virtualFile = createdElement.getContainingFile().getVirtualFile(); + if (virtualFile == null) { + return; + } + PsiElement lastChild = createdElement.getLastChild(); + if (FileDocumentManager.getInstance().getDocument(virtualFile) == editor.getDocument()) { + editor.getCaretModel().moveToOffset(lastChild.getTextRange().getEndOffset()); + } + } + } + + @Override + public int hashCode() { + return getClass().hashCode(); + } + + @Override + public boolean equals(Object obj) { + return obj instanceof BallerinaCreateFileAction; + } +} diff --git a/src/org/ballerinalang/actions/BallerinaTemplatePropertiesProvider.java b/src/org/ballerinalang/actions/BallerinaTemplatePropertiesProvider.java new file mode 100644 index 000000000000..3121438a09d7 --- /dev/null +++ b/src/org/ballerinalang/actions/BallerinaTemplatePropertiesProvider.java @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.actions; + +import com.intellij.ide.fileTemplates.DefaultTemplatePropertiesProvider; +import com.intellij.ide.fileTemplates.FileTemplate; +import com.intellij.psi.PsiDirectory; +import org.ballerinalang.util.BallerinaUtil; + +import java.util.Properties; + +public class BallerinaTemplatePropertiesProvider implements DefaultTemplatePropertiesProvider { + public static final String BALLERINA_PACKAGE_NAME = "BALLERINA_" + FileTemplate.ATTRIBUTE_PACKAGE_NAME; + + @Override + public void fillProperties(PsiDirectory directory, Properties props) { + String packageForDirectory = BallerinaUtil.suggestPackageForDirectory(directory); + props.setProperty(BALLERINA_PACKAGE_NAME, packageForDirectory); + } +} diff --git a/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java b/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java new file mode 100644 index 000000000000..a682790575a2 --- /dev/null +++ b/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.psi.impl; + +import com.intellij.openapi.util.text.StringUtil; +import com.intellij.util.PathUtil; +import org.jetbrains.annotations.NotNull; + +public class BallerinaPsiImplUtil { + + public static String getLocalPackageName(@NotNull String importPath) { + String fileName = !StringUtil.endsWithChar(importPath, '/') && !StringUtil.endsWithChar(importPath, '\\') + ? PathUtil.getFileName(importPath) + : ""; + StringBuilder name = null; + for (int i = 0; i < fileName.length(); i++) { + char c = fileName.charAt(i); + if (!(Character.isLetter(c) || c == '_' || i != 0 && Character.isDigit(c))) { + if (name == null) { + name = new StringBuilder(fileName.length()); + name.append(fileName, 0, i); + } + name.append('_'); + } else if (name != null) { + name.append(c); + } + } + return name == null ? fileName : name.toString(); + } +} diff --git a/src/org/ballerinalang/util/BallerinaUtil.java b/src/org/ballerinalang/util/BallerinaUtil.java new file mode 100644 index 000000000000..093375be605c --- /dev/null +++ b/src/org/ballerinalang/util/BallerinaUtil.java @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.ballerinalang.util; + +import com.intellij.psi.PsiDirectory; +import org.ballerinalang.psi.impl.BallerinaPsiImplUtil; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +public class BallerinaUtil { + + @NotNull + public static String suggestPackageForDirectory(@Nullable PsiDirectory directory) { + return BallerinaPsiImplUtil.getLocalPackageName(directory != null ? directory.getName() : ""); + } +} From 72e19bbb6ea1dad84648ee9c477556ccfe45dd15 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 14:16:41 +0530 Subject: [PATCH 25/36] Reformat code --- resources/META-INF/plugin.xml | 2 +- .../internal/Ballerina File.bal.ft | 1 + src/org/ballerinalang/BallerinaCommenter.java | 2 +- src/org/ballerinalang/BallerinaFileType.java | 1 + .../BallerinaFileTypeFactory.java | 4 +- .../BallerinaFormattingModelBuilder.java | 12 +++- src/org/ballerinalang/BallerinaIcons.java | 2 + src/org/ballerinalang/BallerinaLanguage.java | 1 + .../ballerinalang/BallerinaLexerAdapter.java | 1 + .../BallerinaParserDefinition.java | 13 ++++- .../actions/BallerinaCreateFileAction.java | 1 + .../BallerinaColorSettingsPage.java | 9 ++- .../BallerinaSyntaxHighlighter.java | 53 +---------------- .../BallerinaSyntaxHighlighterFactory.java | 9 +-- .../BallerinaSyntaxHighlightingColors.java | 58 +------------------ .../psi/BallerinaElementType.java | 4 +- src/org/ballerinalang/psi/BallerinaFile.java | 1 + .../ballerinalang/psi/BallerinaTokenType.java | 4 +- .../psi/impl/BallerinaPsiImplUtil.java | 3 +- 19 files changed, 53 insertions(+), 128 deletions(-) diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 8def7b8e3e8b..7b502960d780 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -54,4 +54,4 @@
    - \ No newline at end of file + diff --git a/resources/fileTemplates/internal/Ballerina File.bal.ft b/resources/fileTemplates/internal/Ballerina File.bal.ft index 6042672b7a50..337d814b4790 100644 --- a/resources/fileTemplates/internal/Ballerina File.bal.ft +++ b/resources/fileTemplates/internal/Ballerina File.bal.ft @@ -1 +1,2 @@ package ${BALLERINA_PACKAGE_NAME}; + diff --git a/src/org/ballerinalang/BallerinaCommenter.java b/src/org/ballerinalang/BallerinaCommenter.java index 3a5d5967c492..d5a9e14c6b76 100644 --- a/src/org/ballerinalang/BallerinaCommenter.java +++ b/src/org/ballerinalang/BallerinaCommenter.java @@ -16,11 +16,11 @@ package org.ballerinalang; - import com.intellij.lang.Commenter; import org.jetbrains.annotations.Nullable; public class BallerinaCommenter implements Commenter { + @Nullable @Override public String getLineCommentPrefix() { diff --git a/src/org/ballerinalang/BallerinaFileType.java b/src/org/ballerinalang/BallerinaFileType.java index f3cb6fdffcda..0a53bf2f795c 100644 --- a/src/org/ballerinalang/BallerinaFileType.java +++ b/src/org/ballerinalang/BallerinaFileType.java @@ -23,6 +23,7 @@ import javax.swing.Icon; public class BallerinaFileType extends LanguageFileType { + public static final BallerinaFileType INSTANCE = new BallerinaFileType(); private BallerinaFileType() { diff --git a/src/org/ballerinalang/BallerinaFileTypeFactory.java b/src/org/ballerinalang/BallerinaFileTypeFactory.java index ab26230ab67b..7ced882d4060 100644 --- a/src/org/ballerinalang/BallerinaFileTypeFactory.java +++ b/src/org/ballerinalang/BallerinaFileTypeFactory.java @@ -16,10 +16,12 @@ package org.ballerinalang; -import com.intellij.openapi.fileTypes.*; +import com.intellij.openapi.fileTypes.FileTypeConsumer; +import com.intellij.openapi.fileTypes.FileTypeFactory; import org.jetbrains.annotations.NotNull; public class BallerinaFileTypeFactory extends FileTypeFactory { + @Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(BallerinaFileType.INSTANCE, "bal"); diff --git a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java index 83403f1be3c0..39e0d0b17ac7 100644 --- a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java +++ b/src/org/ballerinalang/BallerinaFormattingModelBuilder.java @@ -16,12 +16,18 @@ package org.ballerinalang; -import com.intellij.formatting.*; +import com.intellij.formatting.FormattingModel; +import com.intellij.formatting.FormattingModelBuilder; +import com.intellij.formatting.FormattingModelProvider; +import com.intellij.formatting.Indent; +import com.intellij.formatting.SpacingBuilder; import com.intellij.lang.ASTNode; import com.intellij.openapi.util.TextRange; -import com.intellij.psi.*; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiFile; import com.intellij.psi.codeStyle.CodeStyleSettings; -import org.jetbrains.annotations.*; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import static org.ballerinalang.psi.BallerinaTypes.*; diff --git a/src/org/ballerinalang/BallerinaIcons.java b/src/org/ballerinalang/BallerinaIcons.java index 5e85a9af6895..fb6b998c13db 100644 --- a/src/org/ballerinalang/BallerinaIcons.java +++ b/src/org/ballerinalang/BallerinaIcons.java @@ -21,5 +21,7 @@ import javax.swing.Icon; public class BallerinaIcons { + public static final Icon FILE = IconLoader.findIcon("/icons/flag.png"); + } diff --git a/src/org/ballerinalang/BallerinaLanguage.java b/src/org/ballerinalang/BallerinaLanguage.java index 55bc6a6448cd..bb6acdf945fa 100644 --- a/src/org/ballerinalang/BallerinaLanguage.java +++ b/src/org/ballerinalang/BallerinaLanguage.java @@ -19,6 +19,7 @@ import com.intellij.lang.Language; public class BallerinaLanguage extends Language { + public static final BallerinaLanguage INSTANCE = new BallerinaLanguage(); private BallerinaLanguage() { diff --git a/src/org/ballerinalang/BallerinaLexerAdapter.java b/src/org/ballerinalang/BallerinaLexerAdapter.java index 05acc3e86ba1..1415e16fd105 100644 --- a/src/org/ballerinalang/BallerinaLexerAdapter.java +++ b/src/org/ballerinalang/BallerinaLexerAdapter.java @@ -21,6 +21,7 @@ import java.io.Reader; public class BallerinaLexerAdapter extends FlexAdapter { + public BallerinaLexerAdapter() { super(new BallerinaLexer((Reader) null)); } diff --git a/src/org/ballerinalang/BallerinaParserDefinition.java b/src/org/ballerinalang/BallerinaParserDefinition.java index 56330d3ade12..9570cc03acfc 100644 --- a/src/org/ballerinalang/BallerinaParserDefinition.java +++ b/src/org/ballerinalang/BallerinaParserDefinition.java @@ -16,12 +16,19 @@ package org.ballerinalang; -import com.intellij.lang.*; +import com.intellij.lang.ASTNode; +import com.intellij.lang.Language; +import com.intellij.lang.ParserDefinition; +import com.intellij.lang.PsiParser; import com.intellij.lexer.Lexer; import com.intellij.openapi.project.Project; -import com.intellij.psi.*; -import com.intellij.psi.tree.*; +import com.intellij.psi.FileViewProvider; +import com.intellij.psi.PsiElement; +import com.intellij.psi.PsiFile; +import com.intellij.psi.TokenType; +import com.intellij.psi.tree.IFileElementType; +import com.intellij.psi.tree.TokenSet; import org.ballerinalang.parser.BallerinaParser; import org.ballerinalang.psi.BallerinaFile; import org.ballerinalang.psi.BallerinaTypes; diff --git a/src/org/ballerinalang/actions/BallerinaCreateFileAction.java b/src/org/ballerinalang/actions/BallerinaCreateFileAction.java index 8ce331cbfe61..93e614b9077b 100644 --- a/src/org/ballerinalang/actions/BallerinaCreateFileAction.java +++ b/src/org/ballerinalang/actions/BallerinaCreateFileAction.java @@ -35,6 +35,7 @@ import java.util.Map; public class BallerinaCreateFileAction extends CreateFileFromTemplateAction implements DumbAware { + public static final String FILE_TEMPLATE = "Ballerina File"; public static final String APPLICATION_TEMPLATE = "Ballerina Application"; diff --git a/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java b/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java index a309e06caa1d..6ba457635ca7 100644 --- a/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java +++ b/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java @@ -18,11 +18,14 @@ import com.intellij.openapi.editor.colors.TextAttributesKey; import com.intellij.openapi.fileTypes.SyntaxHighlighter; -import com.intellij.openapi.options.colors.*; +import com.intellij.openapi.options.colors.AttributesDescriptor; +import com.intellij.openapi.options.colors.ColorDescriptor; +import com.intellij.openapi.options.colors.ColorSettingsPage; import org.ballerinalang.BallerinaIcons; -import org.jetbrains.annotations.*; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; -import javax.swing.*; +import javax.swing.Icon; import java.util.Map; diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java index f2cee0db16be..e6540e8f4b34 100644 --- a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java +++ b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java @@ -30,62 +30,13 @@ import java.util.Map; public class BallerinaSyntaxHighlighter extends SyntaxHighlighterBase { - // public static final TextAttributesKey SEPARATOR = - // createTextAttributesKey("SIMPLE_SEPARATOR", DefaultLanguageHighlighterColors.OPERATION_SIGN); - // public static final TextAttributesKey KEY = - // createTextAttributesKey("SIMPLE_KEY", DefaultLanguageHighlighterColors.KEYWORD); - // public static final TextAttributesKey VALUE = - // createTextAttributesKey("SIMPLE_VALUE", DefaultLanguageHighlighterColors.STRING); - // public static final TextAttributesKey COMMENT = - // createTextAttributesKey("SIMPLE_COMMENT", DefaultLanguageHighlighterColors.LINE_COMMENT); - // public static final TextAttributesKey BAD_CHARACTER = - // createTextAttributesKey("SIMPLE_BAD_CHARACTER", HighlighterColors.BAD_CHARACTER); - // - // private static final TextAttributesKey[] BAD_CHAR_KEYS = new TextAttributesKey[]{BAD_CHARACTER}; - // private static final TextAttributesKey[] SEPARATOR_KEYS = new TextAttributesKey[]{SEPARATOR}; - // private static final TextAttributesKey[] KEY_KEYS = new TextAttributesKey[]{KEY}; - // private static final TextAttributesKey[] VALUE_KEYS = new TextAttributesKey[]{VALUE}; - // private static final TextAttributesKey[] COMMENT_KEYS = new TextAttributesKey[]{COMMENT}; - // private static final TextAttributesKey[] EMPTY_KEYS = new TextAttributesKey[0]; - // - // @NotNull - // @Override - // public Lexer getHighlightingLexer() { - // return new BallerinaLexerAdapter(); - // } - // - // @NotNull - // @Override - // public TextAttributesKey[] getTokenHighlights(IElementType tokenType) { - // if (tokenType.equals(SimpleTypes.SEPARATOR)) { - // return SEPARATOR_KEYS; - // } else if (tokenType.equals(SimpleTypes.KEY)) { - // return KEY_KEYS; - // } else if (tokenType.equals(SimpleTypes.VALUE)) { - // return VALUE_KEYS; - // } else if (tokenType.equals(SimpleTypes.COMMENT)) { - // return COMMENT_KEYS; - // } else if (tokenType.equals(TokenType.BAD_CHARACTER)) { - // return BAD_CHAR_KEYS; - // } else { - // return EMPTY_KEYS; - // } - // } - private static final Map ATTRIBUTES = new HashMap(); + private static final Map ATTRIBUTES = + new HashMap(); static { fillMap(ATTRIBUTES, BallerinaSyntaxHighlightingColors.LINE_COMMENT, BallerinaTypes.LINE_COMMENT); - // fillMap(ATTRIBUTES, PARENTHESES, GoTypes.LPAREN, GoTypes.RPAREN); - // fillMap(ATTRIBUTES, BRACES, GoTypes.LBRACE, GoTypes.RBRACE); - // fillMap(ATTRIBUTES, BRACKETS, GoTypes.LBRACK, GoTypes.RBRACK); fillMap(ATTRIBUTES, BallerinaSyntaxHighlightingColors.BAD_CHARACTER, TokenType.BAD_CHARACTER); - // fillMap(ATTRIBUTES, IDENTIFIER, GoTypes.IDENTIFIER); - // fillMap(ATTRIBUTES, DOT, GoTypes.DOT, GoTypes.TRIPLE_DOT); - // fillMap(ATTRIBUTES, COLON, GoTypes.COLON); - // fillMap(ATTRIBUTES, SEMICOLON, GoTypes.SEMICOLON); - // fillMap(ATTRIBUTES, COMMA, GoTypes.COMMA); fillMap(ATTRIBUTES, BallerinaParserDefinition.OPERATORS, BallerinaSyntaxHighlightingColors.OPERATOR); fillMap(ATTRIBUTES, BallerinaParserDefinition.KEYWORDS, BallerinaSyntaxHighlightingColors.KEYWORD); fillMap(ATTRIBUTES, BallerinaParserDefinition.NUMBERS, BallerinaSyntaxHighlightingColors.NUMBER); diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java index 0211dc7ca177..d524545de30c 100644 --- a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java +++ b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java @@ -16,10 +16,11 @@ package org.ballerinalang.highlighting; -import com.intellij.openapi.fileTypes.*; - import com.intellij.openapi.project.Project; - import com.intellij.openapi.vfs.VirtualFile; - import org.jetbrains.annotations.NotNull; +import com.intellij.openapi.fileTypes.SyntaxHighlighter; +import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory; +import com.intellij.openapi.project.Project; +import com.intellij.openapi.vfs.VirtualFile; +import org.jetbrains.annotations.NotNull; public class BallerinaSyntaxHighlighterFactory extends SyntaxHighlighterFactory { @NotNull diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java index 398ec7219ed7..aedbb3242123 100644 --- a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java +++ b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java @@ -23,6 +23,7 @@ import static com.intellij.openapi.editor.colors.TextAttributesKey.createTextAttributesKey; public class BallerinaSyntaxHighlightingColors { + public static final TextAttributesKey LINE_COMMENT = createTextAttributesKey("BALLERINA_LINE_COMMENT", DefaultLanguageHighlighterColors.LINE_COMMENT); public static final TextAttributesKey KEYWORD = createTextAttributesKey("BALLERINA_KEYWORD", @@ -31,69 +32,12 @@ public class BallerinaSyntaxHighlightingColors { DefaultLanguageHighlighterColors.STRING); public static final TextAttributesKey NUMBER = createTextAttributesKey("BALLERINA_NUMBER", DefaultLanguageHighlighterColors.NUMBER); - // public static final TextAttributesKey BRACKETS = createTextAttributesKey("BALLERINA_BRACKET", - // DefaultLanguageHighlighterColors.BRACKETS); - // public static final TextAttributesKey BRACES = createTextAttributesKey("BALLERINA_BRACES", - // DefaultLanguageHighlighterColors.BRACES); - // public static final TextAttributesKey PARENTHESES = createTextAttributesKey("BALLERINA_PARENTHESES", - // DefaultLanguageHighlighterColors.PARENTHESES); public static final TextAttributesKey OPERATOR = createTextAttributesKey("BALLERINA_OPERATOR", DefaultLanguageHighlighterColors.OPERATION_SIGN); public static final TextAttributesKey IDENTIFIER = createTextAttributesKey("BALLERINA_IDENTIFIER", DefaultLanguageHighlighterColors.IDENTIFIER); - // public static final TextAttributesKey DOT = createTextAttributesKey("BALLERINA_DOT", - // DefaultLanguageHighlighterColors.DOT); - // public static final TextAttributesKey SEMICOLON = createTextAttributesKey("BALLERINA_SEMICOLON", - // DefaultLanguageHighlighterColors.SEMICOLON); - // public static final TextAttributesKey COLON = createTextAttributesKey("BALLERINA_COLON", HighlighterColors - // .TEXT); - // public static final TextAttributesKey COMMA = createTextAttributesKey("BALLERINA_COMMA", - // DefaultLanguageHighlighterColors.COMMA); public static final TextAttributesKey BAD_CHARACTER = createTextAttributesKey("BALLERINA_BAD_TOKEN", HighlighterColors.BAD_CHARACTER); - // public static final TextAttributesKey TYPE_SPECIFICATION = createTextAttributesKey - // ("BALLERINA_TYPE_SPECIFICATION", DefaultLanguageHighlighterColors.CLASS_NAME); - // public static final TextAttributesKey TYPE_REFERENCE = createTextAttributesKey("BALLERINA_TYPE_REFERENCE", - // DefaultLanguageHighlighterColors.CLASS_REFERENCE); - // public static final TextAttributesKey BUILTIN_TYPE_REFERENCE = createTextAttributesKey - // ("BALLERINA_BUILTIN_TYPE_REFERENCE", DefaultLanguageHighlighterColors.CLASS_REFERENCE); - // public static final TextAttributesKey BUILTIN_FUNCTION = createTextAttributesKey - // ("BALLERINA_BUILTIN_FUNCTION", DefaultLanguageHighlighterColors.FUNCTION_DECLARATION); - // public static final TextAttributesKey EXPORTED_FUNCTION = createTextAttributesKey - // ("BALLERINA_EXPORTED_FUNCTION", DefaultLanguageHighlighterColors.FUNCTION_DECLARATION); - // public static final TextAttributesKey LOCAL_FUNCTION = createTextAttributesKey("BALLERINA_LOCAL_FUNCTION", - // DefaultLanguageHighlighterColors.FUNCTION_DECLARATION); - // public static final TextAttributesKey PACKAGE_EXPORTED_INTERFACE = createTextAttributesKey - // ("BALLERINA_PACKAGE_EXPORTED_INTERFACE", DefaultLanguageHighlighterColors.INTERFACE_NAME); - // public static final TextAttributesKey PACKAGE_EXPORTED_STRUCT = createTextAttributesKey - // ("BALLERINA_PACKAGE_EXPORTED_STRUCT", DefaultLanguageHighlighterColors.CLASS_NAME); - // public static final TextAttributesKey PACKAGE_EXPORTED_CONSTANT = createTextAttributesKey - // ("BALLERINA_PACKAGE_EXPORTED_CONSTANT", DefaultLanguageHighlighterColors.CONSTANT); - // public static final TextAttributesKey PACKAGE_EXPORTED_VARIABLE = createTextAttributesKey - // ("BALLERINA_PACKAGE_EXPORTED_VARIABLE", DefaultLanguageHighlighterColors.GLOBAL_VARIABLE); - // public static final TextAttributesKey PACKAGE_LOCAL_INTERFACE = createTextAttributesKey - // ("BALLERINA_PACKAGE_LOCAL_INTERFACE", DefaultLanguageHighlighterColors.INTERFACE_NAME); - // public static final TextAttributesKey PACKAGE_LOCAL_STRUCT = createTextAttributesKey - // ("BALLERINA_PACKAGE_LOCAL_STRUCT", DefaultLanguageHighlighterColors.CLASS_NAME); - // public static final TextAttributesKey PACKAGE_LOCAL_CONSTANT = createTextAttributesKey - // ("BALLERINA_PACKAGE_LOCAL_CONSTANT", DefaultLanguageHighlighterColors.CONSTANT); - // public static final TextAttributesKey PACKAGE_LOCAL_VARIABLE = createTextAttributesKey - // ("BALLERINA_PACKAGE_LOCAL_VARIABLE", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); - // public static final TextAttributesKey STRUCT_EXPORTED_MEMBER = createTextAttributesKey - // ("BALLERINA_STRUCT_EXPORTED_MEMBER", DefaultLanguageHighlighterColors.GLOBAL_VARIABLE); - // public static final TextAttributesKey STRUCT_LOCAL_MEMBER = createTextAttributesKey - // ("BALLERINA_STRUCT_LOCAL_MEMBER", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); - // public static final TextAttributesKey METHOD_RECEIVER = createTextAttributesKey - // ("BALLERINA_METHOD_RECEIVER", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); - // public static final TextAttributesKey FUNCTION_PARAMETER = createTextAttributesKey - // ("BALLERINA_FUNCTION_PARAMETER", DefaultLanguageHighlighterColors.LOCAL_VARIABLE); - // public static final TextAttributesKey LOCAL_CONSTANT = createTextAttributesKey("BALLERINA_LOCAL_CONSTANT", - // DefaultLanguageHighlighterColors.CONSTANT); - // public static final TextAttributesKey LOCAL_VARIABLE = createTextAttributesKey("BALLERINA_LOCAL_VARIABLE", - // DefaultLanguageHighlighterColors.LOCAL_VARIABLE); - // public static final TextAttributesKey SCOPE_VARIABLE = createTextAttributesKey("BALLERINA_SCOPE_VARIABLE", - // DefaultLanguageHighlighterColors.LOCAL_VARIABLE); - // public static final TextAttributesKey LABEL = createTextAttributesKey("BALLERINA_LABEL", DefaultLanguageHighlighterColors.LABEL); private BallerinaSyntaxHighlightingColors() { } diff --git a/src/org/ballerinalang/psi/BallerinaElementType.java b/src/org/ballerinalang/psi/BallerinaElementType.java index de15db6f1fb4..908afb0275c1 100644 --- a/src/org/ballerinalang/psi/BallerinaElementType.java +++ b/src/org/ballerinalang/psi/BallerinaElementType.java @@ -18,9 +18,11 @@ import com.intellij.psi.tree.IElementType; import org.ballerinalang.BallerinaLanguage; -import org.jetbrains.annotations.*; +import org.jetbrains.annotations.NonNls; +import org.jetbrains.annotations.NotNull; public class BallerinaElementType extends IElementType { + public BallerinaElementType(@NotNull @NonNls String debugName) { super(debugName, BallerinaLanguage.INSTANCE); } diff --git a/src/org/ballerinalang/psi/BallerinaFile.java b/src/org/ballerinalang/psi/BallerinaFile.java index dd19e1001d4f..2fb9337e6f3f 100644 --- a/src/org/ballerinalang/psi/BallerinaFile.java +++ b/src/org/ballerinalang/psi/BallerinaFile.java @@ -26,6 +26,7 @@ import javax.swing.Icon; public class BallerinaFile extends PsiFileBase { + public BallerinaFile(@NotNull FileViewProvider viewProvider) { super(viewProvider, BallerinaLanguage.INSTANCE); } diff --git a/src/org/ballerinalang/psi/BallerinaTokenType.java b/src/org/ballerinalang/psi/BallerinaTokenType.java index 0352655a93f5..3991f97b2fe8 100644 --- a/src/org/ballerinalang/psi/BallerinaTokenType.java +++ b/src/org/ballerinalang/psi/BallerinaTokenType.java @@ -18,9 +18,11 @@ import com.intellij.psi.tree.IElementType; import org.ballerinalang.BallerinaLanguage; -import org.jetbrains.annotations.*; +import org.jetbrains.annotations.NonNls; +import org.jetbrains.annotations.NotNull; public class BallerinaTokenType extends IElementType { + public BallerinaTokenType(@NotNull @NonNls String debugName) { super(debugName, BallerinaLanguage.INSTANCE); } diff --git a/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java b/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java index a682790575a2..a9208c5bde42 100644 --- a/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java +++ b/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java @@ -24,8 +24,7 @@ public class BallerinaPsiImplUtil { public static String getLocalPackageName(@NotNull String importPath) { String fileName = !StringUtil.endsWithChar(importPath, '/') && !StringUtil.endsWithChar(importPath, '\\') - ? PathUtil.getFileName(importPath) - : ""; + ? PathUtil.getFileName(importPath) : ""; StringBuilder name = null; for (int i = 0; i < fileName.length(); i++) { char c = fileName.charAt(i); From c3a5d9351543df99eafa4288f2aeda65c5b108fc Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 14:22:19 +0530 Subject: [PATCH 26/36] Add null, boolean literals as keywords --- src/org/ballerinalang/BallerinaParserDefinition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/ballerinalang/BallerinaParserDefinition.java b/src/org/ballerinalang/BallerinaParserDefinition.java index 9570cc03acfc..d499f270e26b 100644 --- a/src/org/ballerinalang/BallerinaParserDefinition.java +++ b/src/org/ballerinalang/BallerinaParserDefinition.java @@ -46,7 +46,7 @@ public class BallerinaParserDefinition implements ParserDefinition { public static final TokenSet KEYWORDS = TokenSet.create( ACTION, BREAK, CATCH, CONNECTOR, CONST, ELSE, FORK, FUNCTION, IF, IMPORT, ITERATE, JOIN, NEW, PACKAGE, REPLY, RESOURCE, RETURN, SERVICE, THROW, THROWS, TRY, TYPE, TYPECONVERTOR, WHILE, WORKER, BACKTICK, - VERSION, PUBLIC, ANY, ALL, AS, TIMEOUT, SENDARROW, RECEIVEARROW); + VERSION, PUBLIC, ANY, ALL, AS, TIMEOUT, SENDARROW, RECEIVEARROW, NULLLITERAL, BOOLEANLITERAL); public static final TokenSet OPERATORS = TokenSet.create( ASSIGN, GT, LT, BANG, TILDE, QUESTION, COLON, EQUAL, LE, GE, NOTEQUAL, AND, OR, ADD, SUB, MUL, DIV, BITAND, BITOR, CARET, MOD, DOLLAR_SIGN, AT); From da83330207fc8d2147194354939f3b606c6eeea4 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 14:23:28 +0530 Subject: [PATCH 27/36] Move all grammar related files to grammar package --- src/org/ballerinalang/{ => grammar}/Ballerina.bnf | 0 src/org/ballerinalang/{ => grammar}/Ballerina.g4 | 0 src/org/ballerinalang/{ => grammar}/CopyrightHeader | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename src/org/ballerinalang/{ => grammar}/Ballerina.bnf (100%) rename src/org/ballerinalang/{ => grammar}/Ballerina.g4 (100%) rename src/org/ballerinalang/{ => grammar}/CopyrightHeader (100%) diff --git a/src/org/ballerinalang/Ballerina.bnf b/src/org/ballerinalang/grammar/Ballerina.bnf similarity index 100% rename from src/org/ballerinalang/Ballerina.bnf rename to src/org/ballerinalang/grammar/Ballerina.bnf diff --git a/src/org/ballerinalang/Ballerina.g4 b/src/org/ballerinalang/grammar/Ballerina.g4 similarity index 100% rename from src/org/ballerinalang/Ballerina.g4 rename to src/org/ballerinalang/grammar/Ballerina.g4 diff --git a/src/org/ballerinalang/CopyrightHeader b/src/org/ballerinalang/grammar/CopyrightHeader similarity index 100% rename from src/org/ballerinalang/CopyrightHeader rename to src/org/ballerinalang/grammar/CopyrightHeader From f92b090f3337c6fbbe133c03b9f433d4287f683c Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 14:27:36 +0530 Subject: [PATCH 28/36] Move all lexer related files to lexer package --- gen/org/ballerinalang/{ => lexer}/BallerinaLexer.java | 2 +- src/org/ballerinalang/BallerinaParserDefinition.java | 1 + .../ballerinalang/highlighting/BallerinaSyntaxHighlighter.java | 2 +- src/org/ballerinalang/{ => lexer}/Ballerina.flex | 2 +- src/org/ballerinalang/{ => lexer}/BallerinaLexerAdapter.java | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) rename gen/org/ballerinalang/{ => lexer}/BallerinaLexer.java (99%) rename src/org/ballerinalang/{ => lexer}/Ballerina.flex (99%) rename src/org/ballerinalang/{ => lexer}/BallerinaLexerAdapter.java (96%) diff --git a/gen/org/ballerinalang/BallerinaLexer.java b/gen/org/ballerinalang/lexer/BallerinaLexer.java similarity index 99% rename from gen/org/ballerinalang/BallerinaLexer.java rename to gen/org/ballerinalang/lexer/BallerinaLexer.java index 9a4df7d5501b..787aa78f1590 100644 --- a/gen/org/ballerinalang/BallerinaLexer.java +++ b/gen/org/ballerinalang/lexer/BallerinaLexer.java @@ -1,6 +1,6 @@ /* The following code was generated by JFlex 1.7.0-SNAPSHOT tweaked for IntelliJ platform */ -package org.ballerinalang; +package org.ballerinalang.lexer; import com.intellij.lexer.FlexLexer; import com.intellij.psi.tree.IElementType; diff --git a/src/org/ballerinalang/BallerinaParserDefinition.java b/src/org/ballerinalang/BallerinaParserDefinition.java index d499f270e26b..aa37006d6d75 100644 --- a/src/org/ballerinalang/BallerinaParserDefinition.java +++ b/src/org/ballerinalang/BallerinaParserDefinition.java @@ -29,6 +29,7 @@ import com.intellij.psi.tree.IFileElementType; import com.intellij.psi.tree.TokenSet; +import org.ballerinalang.lexer.BallerinaLexerAdapter; import org.ballerinalang.parser.BallerinaParser; import org.ballerinalang.psi.BallerinaFile; import org.ballerinalang.psi.BallerinaTypes; diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java index e6540e8f4b34..49c22ce3562f 100644 --- a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java +++ b/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java @@ -21,7 +21,7 @@ import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; import com.intellij.psi.TokenType; import com.intellij.psi.tree.IElementType; -import org.ballerinalang.BallerinaLexerAdapter; +import org.ballerinalang.lexer.BallerinaLexerAdapter; import org.ballerinalang.BallerinaParserDefinition; import org.ballerinalang.psi.BallerinaTypes; import org.jetbrains.annotations.NotNull; diff --git a/src/org/ballerinalang/Ballerina.flex b/src/org/ballerinalang/lexer/Ballerina.flex similarity index 99% rename from src/org/ballerinalang/Ballerina.flex rename to src/org/ballerinalang/lexer/Ballerina.flex index 5c945fee27c1..fc8c0492bd28 100644 --- a/src/org/ballerinalang/Ballerina.flex +++ b/src/org/ballerinalang/lexer/Ballerina.flex @@ -1,4 +1,4 @@ -package org.ballerinalang; +package org.ballerinalang.lexer; import com.intellij.lexer.FlexLexer; import com.intellij.psi.tree.IElementType; diff --git a/src/org/ballerinalang/BallerinaLexerAdapter.java b/src/org/ballerinalang/lexer/BallerinaLexerAdapter.java similarity index 96% rename from src/org/ballerinalang/BallerinaLexerAdapter.java rename to src/org/ballerinalang/lexer/BallerinaLexerAdapter.java index 1415e16fd105..acdd27af25ea 100644 --- a/src/org/ballerinalang/BallerinaLexerAdapter.java +++ b/src/org/ballerinalang/lexer/BallerinaLexerAdapter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.lexer; import com.intellij.lexer.FlexAdapter; From ee716e198682f5ad0c760b5a2c509577b53b457e Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 14:33:28 +0530 Subject: [PATCH 29/36] Move all formatting related files to formatter package --- resources/META-INF/plugin.xml | 3 ++- src/org/ballerinalang/{ => formatter}/BallerinaBlock.java | 2 +- .../{ => formatter}/BallerinaFormattingModelBuilder.java | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) rename src/org/ballerinalang/{ => formatter}/BallerinaBlock.java (99%) rename src/org/ballerinalang/{ => formatter}/BallerinaFormattingModelBuilder.java (97%) diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 7b502960d780..2e68d70cab8f 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -36,7 +36,8 @@ - + diff --git a/src/org/ballerinalang/BallerinaBlock.java b/src/org/ballerinalang/formatter/BallerinaBlock.java similarity index 99% rename from src/org/ballerinalang/BallerinaBlock.java rename to src/org/ballerinalang/formatter/BallerinaBlock.java index a263b40bdd21..d22e9070aa7e 100644 --- a/src/org/ballerinalang/BallerinaBlock.java +++ b/src/org/ballerinalang/formatter/BallerinaBlock.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.formatter; import com.intellij.formatting.Alignment; import com.intellij.formatting.Block; diff --git a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java b/src/org/ballerinalang/formatter/BallerinaFormattingModelBuilder.java similarity index 97% rename from src/org/ballerinalang/BallerinaFormattingModelBuilder.java rename to src/org/ballerinalang/formatter/BallerinaFormattingModelBuilder.java index 39e0d0b17ac7..8b8e253fb8bb 100644 --- a/src/org/ballerinalang/BallerinaFormattingModelBuilder.java +++ b/src/org/ballerinalang/formatter/BallerinaFormattingModelBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.formatter; import com.intellij.formatting.FormattingModel; import com.intellij.formatting.FormattingModelBuilder; @@ -26,6 +26,7 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; import com.intellij.psi.codeStyle.CodeStyleSettings; +import org.ballerinalang.BallerinaLanguage; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -46,6 +47,7 @@ settings, createSpaceBuilder(settings) private static SpacingBuilder createSpaceBuilder(CodeStyleSettings settings) { return new SpacingBuilder(settings, BallerinaLanguage.INSTANCE) + //Todo: Add code style settings provider .before(COMMA).spaceIf(false) .after(COMMA).spaceIf(true) .around(ASSIGN).spaceIf(true) From 855eed28be3cf9d18759dcfd939117cab84ba8ef Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 14:34:49 +0530 Subject: [PATCH 30/36] Rename highlighting package to highlighter --- resources/META-INF/plugin.xml | 4 ++-- .../BallerinaColorSettingsPage.java | 4 ++-- .../BallerinaSyntaxHighlighter.java | 2 +- .../BallerinaSyntaxHighlighterFactory.java | 2 +- .../BallerinaSyntaxHighlightingColors.java | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename src/org/ballerinalang/{highlighting => highlighter}/BallerinaColorSettingsPage.java (95%) rename src/org/ballerinalang/{highlighting => highlighter}/BallerinaSyntaxHighlighter.java (98%) rename src/org/ballerinalang/{highlighting => highlighter}/BallerinaSyntaxHighlighterFactory.java (96%) rename src/org/ballerinalang/{highlighting => highlighter}/BallerinaSyntaxHighlightingColors.java (98%) diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 2e68d70cab8f..1c685b37b530 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -34,8 +34,8 @@ - + implementationClass="org.ballerinalang.highlighter.BallerinaSyntaxHighlighterFactory"/> + diff --git a/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java b/src/org/ballerinalang/highlighter/BallerinaColorSettingsPage.java similarity index 95% rename from src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java rename to src/org/ballerinalang/highlighter/BallerinaColorSettingsPage.java index 6ba457635ca7..aa599e698d3c 100644 --- a/src/org/ballerinalang/highlighting/BallerinaColorSettingsPage.java +++ b/src/org/ballerinalang/highlighter/BallerinaColorSettingsPage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.highlighting; +package org.ballerinalang.highlighter; import com.intellij.openapi.editor.colors.TextAttributesKey; import com.intellij.openapi.fileTypes.SyntaxHighlighter; @@ -29,7 +29,7 @@ import java.util.Map; -import static org.ballerinalang.highlighting.BallerinaSyntaxHighlightingColors.*; +import static org.ballerinalang.highlighter.BallerinaSyntaxHighlightingColors.*; public class BallerinaColorSettingsPage implements ColorSettingsPage { private static final AttributesDescriptor[] DESCRIPTORS = new AttributesDescriptor[]{ diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java b/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighter.java similarity index 98% rename from src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java rename to src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighter.java index 49c22ce3562f..1f3dce1905ca 100644 --- a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighter.java +++ b/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.highlighting; +package org.ballerinalang.highlighter; import com.intellij.lexer.Lexer; import com.intellij.openapi.editor.colors.TextAttributesKey; diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java b/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighterFactory.java similarity index 96% rename from src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java rename to src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighterFactory.java index d524545de30c..760a2ce56462 100644 --- a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlighterFactory.java +++ b/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighterFactory.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.highlighting; +package org.ballerinalang.highlighter; import com.intellij.openapi.fileTypes.SyntaxHighlighter; import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory; diff --git a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java b/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlightingColors.java similarity index 98% rename from src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java rename to src/org/ballerinalang/highlighter/BallerinaSyntaxHighlightingColors.java index aedbb3242123..036f901b8b04 100644 --- a/src/org/ballerinalang/highlighting/BallerinaSyntaxHighlightingColors.java +++ b/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlightingColors.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.highlighting; +package org.ballerinalang.highlighter; import com.intellij.openapi.editor.DefaultLanguageHighlighterColors; import com.intellij.openapi.editor.HighlighterColors; From ecbef641e661bab0f7c7ef5d2fb9072bd6f707e2 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 17:08:02 +0530 Subject: [PATCH 31/36] Ignore hidden temp files --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 86a9c5870c97..31a13d86b58a 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ hs_err_pid* /out/ /.idea/workspace.xml /.idea/uiDesigner.xml +*.*~ From cfe883248058c5495191e27719b4703787b103d5 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 17:17:03 +0530 Subject: [PATCH 32/36] Ignore IDEA generated files --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 31a13d86b58a..31b12a82b800 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,6 @@ hs_err_pid* /out/ -/.idea/workspace.xml -/.idea/uiDesigner.xml +/.idea/ +/ballerina-idea-plugin.iml *.*~ From e941b717f6b98692542a08a32113e8f0c50326f4 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 19:06:28 +0530 Subject: [PATCH 33/36] Update readme --- README.md | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 062d8a59d898..9d41ae79a7df 100644 --- a/README.md +++ b/README.md @@ -1 +1,35 @@ -# plugin-intellij \ No newline at end of file +## Ballerina plugin for IntelliJ IDEA + +### Building from the source + +1) Clone the repository. +2) Make sure that the bundled Plugin DevKit plugin is enabled in IDEA. +3) Open the project in IDEA. +4) Configure a common JDK and an IntelliJ Platform SDK. + + This can be done in **File -> Project Structure -> SDKs**. + + For the IntelliJ Platform SDK, you may need to specify the directory containing the installed version of IntelliJ IDEA. By default it should offer the directory of the currently running version of IntelliJ IDEA. +5) Build the project using **Build -> Build Project**. +6) Run **Build -> Prepare Plugin Module 'ballerina-idea-plugin' For Deployment**. +7) In the project root directory, **ballerina-idea-plugin.jar** will be created. + +### Installing the plugin to IDEA +1) Go to **File -> Settings** and select **Plugins**. +2) Click **Install plugin from disc** button and select the deployed plugin jar file. +3) Restart IDEA. + +### Running the plugin without building +1) Follow the first 4 steps in the [Building from the source](#building-from-the-source) section. +2) Go to **Run -> Edit Configurations**. +3) Add a new **plugin** configuration. +4) Now you can run or debug the plugin directly from the IDEA. + +### How to contribute +Pull requests are highly encouraged and we recommend you to create a GitHub issue to discuss the issue or feature that you are contributing to. + +### License +Ballerina IDEA plugin is available under the Apache 2.0 License. + +### Copyright +Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. From 157b4a92442f91a897a4bdecd2b51666c3431fe1 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 19:16:55 +0530 Subject: [PATCH 34/36] Refactor code --- src/org/ballerinalang/grammar/Ballerina.bnf | 306 ++++++-------------- 1 file changed, 96 insertions(+), 210 deletions(-) diff --git a/src/org/ballerinalang/grammar/Ballerina.bnf b/src/org/ballerinalang/grammar/Ballerina.bnf index 41cfaf200b78..ed01452db208 100644 --- a/src/org/ballerinalang/grammar/Ballerina.bnf +++ b/src/org/ballerinalang/grammar/Ballerina.bnf @@ -17,101 +17,99 @@ tokens=[ // §3.9 Ballerina keywords - ACTION = 'action'; - BREAK = 'break'; - CATCH = 'catch'; - CONNECTOR = 'connector'; - CONST = 'const'; - ELSE = 'else'; - FORK = 'fork'; - FUNCTION = 'function'; - IF = 'if'; - IMPORT = 'import'; - ITERATE = 'iterate'; - JOIN = 'join'; - NEW = 'new'; - PACKAGE = 'package'; - REPLY = 'reply'; - RESOURCE = 'resource'; - RETURN = 'return'; - SERVICE = 'service'; - THROW = 'throw'; - THROWS = 'throws'; - TRY = 'try'; - TYPE = 'type'; - TYPECONVERTOR = 'typeconvertor'; - WHILE = 'while'; - WORKER = 'worker'; - BACKTICK = '`'; - VERSION = 'version'; - PUBLIC = 'public'; - ANY = 'any'; - ALL = 'all'; - AS = 'as'; - TIMEOUT = 'timeout'; - SENDARROW = '->'; - RECEIVEARROW = '<-'; + ACTION = 'action'; + BREAK = 'break'; + CATCH = 'catch'; + CONNECTOR = 'connector'; + CONST = 'const'; + ELSE = 'else'; + FORK = 'fork'; + FUNCTION = 'function'; + IF = 'if'; + IMPORT = 'import'; + ITERATE = 'iterate'; + JOIN = 'join'; + NEW = 'new'; + PACKAGE = 'package'; + REPLY = 'reply'; + RESOURCE = 'resource'; + RETURN = 'return'; + SERVICE = 'service'; + THROW = 'throw'; + THROWS = 'throws'; + TRY = 'try'; + TYPE = 'type'; + TYPECONVERTOR = 'typeconvertor'; + WHILE = 'while'; + WORKER = 'worker'; + BACKTICK = '`'; + VERSION = 'version'; + PUBLIC = 'public'; + ANY = 'any'; + ALL = 'all'; + AS = 'as'; + TIMEOUT = 'timeout'; + SENDARROW = '->'; + RECEIVEARROW = '<-'; // §3.11 Separators - LPAREN = '('; - RPAREN = ')'; - LBRACE = '{'; - RBRACE = '}'; - LBRACK = '['; - RBRACK = ']'; - SEMI = ';'; - COMMA = ','; - DOT = '.'; + LPAREN = '('; + RPAREN = ')'; + LBRACE = '{'; + RBRACE = '}'; + LBRACK = '['; + RBRACK = ']'; + SEMI = ';'; + COMMA = ','; + DOT = '.'; // §3.12 Operators - ASSIGN = '='; - GT = '>'; - LT = '<'; - BANG = '!'; - TILDE = '~'; - QUESTION = '?'; - COLON = ':'; - EQUAL = '=='; - LE = '<='; - GE = '>='; - NOTEQUAL = '!='; - AND = '&&'; - OR = '||'; - ADD = '+'; - SUB = '-'; - MUL = '*'; - DIV = '/'; - BITAND = '&'; - BITOR = '|'; - CARET = '^'; - MOD = '%'; - DOLLAR_SIGN = '$'; - AT = '@'; - - NullLiteral = "null" - - - IntegerLiteral = "regexp:0|[1-9][0-9]*" - - FloatingPointLiteral = "regexp:(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF]" - - BooleanLiteral="regexp:(true|false)" - - QuotedStringLiteral ='regexp:\"([^\\\"\r\n]|\\[^\r\n])*(\"|\\)?' - - ValidBackTickString ='regexp:`[^`]*`' - - Identifier = "regexp:[a-zA-Z$_][a-zA-Z0-9$_]*" -// - Letter = "regexp:[a-zA-Z$_]" -// - LetterOrDigit = "regexp:[a-zA-Z0-9$_]" + ASSIGN = '='; + GT = '>'; + LT = '<'; + BANG = '!'; + TILDE = '~'; + QUESTION = '?'; + COLON = ':'; + EQUAL = '=='; + LE = '<='; + GE = '>='; + NOTEQUAL = '!='; + AND = '&&'; + OR = '||'; + ADD = '+'; + SUB = '-'; + MUL = '*'; + DIV = '/'; + BITAND = '&'; + BITOR = '|'; + CARET = '^'; + MOD = '%'; + DOLLAR_SIGN = '$'; + + AT = '@'; + + NullLiteral = "null" + + IntegerLiteral = "regexp:0|[1-9][0-9]*" + + FloatingPointLiteral = "regexp:(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF]" + + BooleanLiteral = "regexp:(true|false)" + + QuotedStringLiteral = 'regexp:\"([^\\\"\r\n]|\\[^\r\n])*(\"|\\)?' + + ValidBackTickString = 'regexp:`[^`]*`' - WHITE_SPACE = 'regexp:[ \t\r\n\u000C]+' + Identifier = "regexp:[a-zA-Z$_][a-zA-Z0-9$_]*" - LINE_COMMENT = 'regexp://[^\r\n]*' + Letter = "regexp:[a-zA-Z$_]" + LetterOrDigit = "regexp:[a-zA-Z0-9$_]" + WHITE_SPACE = 'regexp:[ \t\r\n\u000C]+' + + LINE_COMMENT = 'regexp://[^\r\n]*' // FloatLiteral = "regexp:(([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?[fF]" // DoubleLiteral = "regexp:((([0-9]+\.[0-9]*)|(\.[0-9]+)|([0-9]+))([eE][+-]?[0-9]+)?" @@ -231,37 +229,37 @@ simpleType ::= Identifier simpleTypeArray - ::= Identifier '[' ']'//todo + ::= Identifier '[' ']' simpleTypeIterate ::= Identifier '~' withFullSchemaType - ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' + ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' withFullSchemaTypeArray - ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '[' ']'//todo + ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '[' ']' withFullSchemaTypeIterate - ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '~' + ::= Identifier '<' '{' QuotedStringLiteral '}' Identifier '>' '~' withScheamURLType - ::= Identifier '<' '{' QuotedStringLiteral '}' '>' + ::= Identifier '<' '{' QuotedStringLiteral '}' '>' withSchemaURLTypeArray - ::= Identifier '<' '{' QuotedStringLiteral '}' '>' '[' ']'//todo + ::= Identifier '<' '{' QuotedStringLiteral '}' '>' '[' ']' withSchemaURLTypeIterate - ::= Identifier '<' '{' QuotedStringLiteral '}' '>' '~' + ::= Identifier '<' '{' QuotedStringLiteral '}' '>' '~' withSchemaIdType - ::= Identifier '<' Identifier '>' + ::= Identifier '<' Identifier '>' withScheamIdTypeArray - ::= Identifier '<' Identifier '>' '[' ']' //todo + ::= Identifier '<' Identifier '>' '[' ']' withScheamIdTypeIterate - ::= Identifier '<' Identifier '>' '~' + ::= Identifier '<' Identifier '>' '~' typeName ::= unqualifiedTypeName @@ -344,8 +342,6 @@ elseClause ifElseIfClauseBody::= statement* - - iterateStatement ::= 'iterate' '(' typeName Identifier ':' expression ')' '{' statement+ '}' @@ -412,7 +408,7 @@ actionInvocationStatement variableReference ::= Identifier '['expression']' // mapArrayVariableIdentifier// array and map reference // | variableReference ('.' variableReference)+ // structFieldIdentifier// struct field reference - | Identifier // simpleVariableIdentifier// simple identifier + | Identifier // simpleVariableIdentifier// simple identifier argumentList ::= '(' expressionList? ')' @@ -431,116 +427,6 @@ actionInvocation backtickString ::= ValidBackTickString - -// 1 ------------------------------------------ -// -////todo 23/01/2017: This was introduce to prevent left recursion -//private basicExpression::= -// functionName argumentList // functionInvocationExpression -// | backtickString // templateExpression -// | actionInvocation argumentList // actionInvocationExpression -// | '[' expressionList ']' // arrayInitializerExpression -// | '{' mapInitKeyValueList '}' // mapInitializerExpression -// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression -// | literalValue // literalExpression -// | variableReference // variableReferenceExpression -// | basicExpression_ -// -//basicExpression_ ::= -//'(' typeName ')' basicExpression -// | ('+'|'-'|'!') basicExpression -//| '(' basicExpression ')' -// | basicExpression ('^') basicExpression -// -// -//expression -// ::= -// '(' typeName ')' basicExpression // typeCastingExpression -// | ('+'|'-'|'!') basicExpression // unaryExpression -// | '(' basicExpression ')' // bracedExpression -// | basicExpression ('^') basicExpression // binaryPowExpression -// | basicExpression ('/') basicExpression // binaryDivisionExpression -// | basicExpression ('*') basicExpression // binaryMultiplicationExpression -// | basicExpression ('%') basicExpression // binaryModExpression -// | basicExpression ('&&') basicExpression // binaryAndExpression -// | basicExpression ('+') basicExpression // binaryAddExpression -// | basicExpression ('-') basicExpression // binarySubExpression -// | basicExpression ('||') basicExpression // binaryOrExpression -// | basicExpression ('>') basicExpression // binaryGTExpression -// | basicExpression ('>=') basicExpression // binaryGEExpression -// | basicExpression ('<') basicExpression // binaryLTExpression -// | basicExpression ('<=') basicExpression // binaryLEExpression -// | basicExpression ('==') basicExpression // binaryEqualExpression -// | basicExpression ('!=') basicExpression // binaryNotEqualExpression -// | basicExpression -// - -//2-------------------------------------- -// simpleExpression -// ::= -// functionName argumentList // functionInvocationExpression -// -// | backtickString // templateExpression -// | actionInvocation argumentList // actionInvocationExpression -// | '[' expressionList ']' // arrayInitializerExpression -// | '{' mapInitKeyValueList '}' // mapInitializerExpression -// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression -// | literalValue // literalExpression -// | variableReference // variableReferenceExpression -// -// expression::= ('(' typeName ')' simpleExpression+ ) | (('+'|'-'|'!') simpleExpression+) | ('(' simpleExpression+ ')') | (simpleExpression+ ('^' | '/' | '*' | '%' | '&&' | '+' | '-' | '||' | '>' | '>='| '<' | '<=' | '==' | '!='| simpleExpression) simpleExpression+ ) -// -// -// -// -////basicExpression::= -//// backtickString // templateExpression -//// | functionName argumentList // functionInvocationExpression -//// | actionInvocation argumentList // actionInvocationExpression -//// | '[' expressionList ']' // arrayInitializerExpression -//// | '{' mapInitKeyValueList '}' // mapInitializerExpression -//// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression -//// | literalValue // literalExpression -//// | variableReference // variableReferenceExpression - -// 3 --------------------------------------- - - -//expression::= -// -// '(' typeName ')' basicExpression // typeCastingExpression -// | ('+'|'-'|'!') basicExpression // unaryExpression -// | '(' basicExpression ')' // bracedExpression -// | basicExpression ('^') basicExpression // binaryPowExpression -// | basicExpression ('/') basicExpression // binaryDivisionExpression -// | basicExpression ('*') basicExpression // binaryMultiplicationExpression -// | basicExpression ('%') basicExpression // binaryModExpression -// | basicExpression ('&&') basicExpression // binaryAndExpression -// | basicExpression ('+') basicExpression // binaryAddExpression -// | basicExpression ('-') basicExpression // binarySubExpression -// | basicExpression ('||') basicExpression // binaryOrExpression -// | basicExpression ('>') basicExpression // binaryGTExpression -// | basicExpression ('>=') basicExpression // binaryGEExpression -// | basicExpression ('<') basicExpression // binaryLTExpression -// | basicExpression ('<=') basicExpression // binaryLEExpression -// | basicExpression ('==') basicExpression // binaryEqualExpression -// | basicExpression ('!=') basicExpression // binaryNotEqualExpression -// | basicExpression -// -// -// -//basicExpression::= -// backtickString // templateExpression -// | functionName argumentList // functionInvocationExpression -// | actionInvocation argumentList // actionInvocationExpression -// | '[' expressionList ']' // arrayInitializerExpression -// | '{' mapInitKeyValueList '}' // mapInitializerExpression -// | 'new' (packageName ':' )? Identifier ('(' expressionList? ')')? // structInitializeExpression -// | literalValue // literalExpression -// | variableReference // variableReferenceExpression - -// 4 --------------------------- - expression::= '(' typeName ')' basicExpression | ('+'|'-'|'!') basicExpression From 922c2166c58925fadc6ba66ca2201373542decd3 Mon Sep 17 00:00:00 2001 From: shan1024 Date: Wed, 25 Jan 2017 19:19:57 +0530 Subject: [PATCH 35/36] Add minor changes --- README.md | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 9d41ae79a7df..c3fe5af5bdac 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,35 @@ -## Ballerina plugin for IntelliJ IDEA +# Ballerina plugin for IntelliJ IDEA -### Building from the source +## Building from the source -1) Clone the repository. -2) Make sure that the bundled Plugin DevKit plugin is enabled in IDEA. -3) Open the project in IDEA. -4) Configure a common JDK and an IntelliJ Platform SDK. +1. Clone the repository. +2. Make sure that the bundled Plugin DevKit plugin is enabled in IDEA. +3. Open the project in IDEA. +4. Configure a common JDK and an IntelliJ Platform SDK. This can be done in **File -> Project Structure -> SDKs**. For the IntelliJ Platform SDK, you may need to specify the directory containing the installed version of IntelliJ IDEA. By default it should offer the directory of the currently running version of IntelliJ IDEA. -5) Build the project using **Build -> Build Project**. -6) Run **Build -> Prepare Plugin Module 'ballerina-idea-plugin' For Deployment**. -7) In the project root directory, **ballerina-idea-plugin.jar** will be created. - -### Installing the plugin to IDEA -1) Go to **File -> Settings** and select **Plugins**. -2) Click **Install plugin from disc** button and select the deployed plugin jar file. -3) Restart IDEA. - -### Running the plugin without building -1) Follow the first 4 steps in the [Building from the source](#building-from-the-source) section. -2) Go to **Run -> Edit Configurations**. -3) Add a new **plugin** configuration. -4) Now you can run or debug the plugin directly from the IDEA. - -### How to contribute +5. Build the project using **Build -> Build Project**. +6. Run **Build -> Prepare Plugin Module 'ballerina-idea-plugin' For Deployment**. +7. In the project root directory, **ballerina-idea-plugin.jar** will be created. + +## Installing the plugin to IDEA +1. Go to **File -> Settings** and select **Plugins**. +2. Click **Install plugin from disc** button and select the deployed plugin jar file. +3. Restart IDEA. + +## Running the plugin without building +1. Follow the first 4 steps in the [Building from the source](#building-from-the-source) section. +2. Go to **Run -> Edit Configurations**. +3. Add a new **plugin** configuration. +4. Now you can run or debug the plugin directly from the IDEA. + +## How to contribute Pull requests are highly encouraged and we recommend you to create a GitHub issue to discuss the issue or feature that you are contributing to. -### License +## License Ballerina IDEA plugin is available under the Apache 2.0 License. -### Copyright +## Copyright Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. From 14000874840f503b14682b7afe2d2ca66907908b Mon Sep 17 00:00:00 2001 From: shan1024 Date: Fri, 27 Jan 2017 11:26:48 +0530 Subject: [PATCH 36/36] Rename package 'org.ballerinalang' to 'org.ballerinalang.plugins.idea' --- .../idea}/lexer/BallerinaLexer.java | 4 +-- .../idea}/parser/BallerinaParser.java | 6 ++-- .../idea}/psi/BallerinaActionDefinition.java | 2 +- .../idea}/psi/BallerinaActionInvocation.java | 2 +- .../BallerinaActionInvocationStatement.java | 2 +- .../idea}/psi/BallerinaAnnotation.java | 2 +- .../idea}/psi/BallerinaAnnotationName.java | 2 +- .../idea}/psi/BallerinaArgumentList.java | 2 +- .../psi/BallerinaAssignmentStatement.java | 2 +- .../idea}/psi/BallerinaBacktickString.java | 2 +- .../idea}/psi/BallerinaBreakStatement.java | 2 +- .../idea}/psi/BallerinaCatchClause.java | 2 +- .../idea}/psi/BallerinaCommentStatement.java | 2 +- .../idea}/psi/BallerinaConnectorBody.java | 2 +- .../psi/BallerinaConnectorDeclaration.java | 2 +- .../psi/BallerinaConnectorDefinition.java | 2 +- .../psi/BallerinaConstantDefinition.java | 2 +- .../idea}/psi/BallerinaElementValue.java | 2 +- ...BallerinaElementValueArrayInitializer.java | 2 +- .../idea}/psi/BallerinaElementValuePair.java | 2 +- .../idea}/psi/BallerinaElementValuePairs.java | 2 +- .../idea}/psi/BallerinaElseClause.java | 2 +- .../idea}/psi/BallerinaElseIfClause.java | 2 +- .../idea}/psi/BallerinaExpression.java | 2 +- .../idea}/psi/BallerinaExpressionList.java | 2 +- .../idea}/psi/BallerinaForkJoinStatement.java | 2 +- .../idea}/psi/BallerinaFunctionBody.java | 2 +- .../psi/BallerinaFunctionDefinition.java | 2 +- .../BallerinaFunctionInvocationStatement.java | 2 +- .../idea}/psi/BallerinaFunctionName.java | 2 +- .../psi/BallerinaIfElseIfClauseBody.java | 2 +- .../idea}/psi/BallerinaIfElseStatement.java | 2 +- .../idea}/psi/BallerinaImportDeclaration.java | 2 +- .../idea}/psi/BallerinaIterateStatement.java | 2 +- .../idea}/psi/BallerinaJoinClause.java | 2 +- .../idea}/psi/BallerinaJoinConditions.java | 2 +- .../idea}/psi/BallerinaLiteralValue.java | 2 +- .../idea}/psi/BallerinaMapInitKeyValue.java | 2 +- .../psi/BallerinaMapInitKeyValueList.java | 2 +- .../idea}/psi/BallerinaNamedParameter.java | 2 +- .../psi/BallerinaNamedParameterList.java | 2 +- .../idea}/psi/BallerinaNullLiteral.java | 2 +- .../psi/BallerinaPackageDeclaration.java | 2 +- .../idea}/psi/BallerinaPackageName.java | 2 +- .../idea}/psi/BallerinaParameter.java | 2 +- .../idea}/psi/BallerinaParameterList.java | 2 +- .../psi/BallerinaQualifiedReference.java | 2 +- .../idea}/psi/BallerinaQualifiedTypeName.java | 2 +- .../idea}/psi/BallerinaReplyStatement.java | 2 +- .../psi/BallerinaResourceDefinition.java | 2 +- .../idea}/psi/BallerinaReturnParameters.java | 2 +- .../idea}/psi/BallerinaReturnStatement.java | 2 +- .../idea}/psi/BallerinaReturnTypeList.java | 2 +- .../idea}/psi/BallerinaServiceBody.java | 2 +- .../psi/BallerinaServiceBodyDeclaration.java | 2 +- .../idea}/psi/BallerinaServiceDefinition.java | 2 +- .../idea}/psi/BallerinaSimpleType.java | 2 +- .../idea}/psi/BallerinaSimpleTypeArray.java | 2 +- .../idea}/psi/BallerinaSimpleTypeIterate.java | 2 +- .../idea}/psi/BallerinaStatement.java | 2 +- .../idea}/psi/BallerinaStructDefinition.java | 2 +- .../psi/BallerinaStructDefinitionBody.java | 2 +- .../idea}/psi/BallerinaThrowStatement.java | 2 +- .../idea}/psi/BallerinaTimeoutClause.java | 2 +- .../idea}/psi/BallerinaTriggerWorker.java | 2 +- .../idea}/psi/BallerinaTryCatchStatement.java | 2 +- .../psi/BallerinaTypeConverterTypes.java | 2 +- .../idea}/psi/BallerinaTypeConvertorBody.java | 2 +- .../psi/BallerinaTypeConvertorDefinition.java | 2 +- .../idea}/psi/BallerinaTypeName.java | 2 +- .../idea}/psi/BallerinaTypes.java | 4 +-- .../psi/BallerinaUnqualifiedTypeName.java | 2 +- .../psi/BallerinaVariableDeclaration.java | 2 +- .../idea}/psi/BallerinaVariableReference.java | 2 +- .../psi/BallerinaVariableReferenceList.java | 2 +- .../idea}/psi/BallerinaVisitor.java | 2 +- .../idea}/psi/BallerinaWhileStatement.java | 2 +- .../psi/BallerinaWhileStatementBody.java | 2 +- .../psi/BallerinaWithFullSchemaType.java | 2 +- .../psi/BallerinaWithFullSchemaTypeArray.java | 2 +- .../BallerinaWithFullSchemaTypeIterate.java | 2 +- .../psi/BallerinaWithScheamIdTypeArray.java | 2 +- .../psi/BallerinaWithScheamIdTypeIterate.java | 2 +- .../idea}/psi/BallerinaWithScheamURLType.java | 2 +- .../idea}/psi/BallerinaWithSchemaIdType.java | 2 +- .../psi/BallerinaWithSchemaURLTypeArray.java | 2 +- .../BallerinaWithSchemaURLTypeIterate.java | 2 +- .../idea}/psi/BallerinaWorkerDeclaration.java | 2 +- .../BallerinaWorkerInteractionStatement.java | 2 +- .../idea}/psi/BallerinaWorkerReply.java | 2 +- .../impl/BallerinaActionDefinitionImpl.java | 6 ++-- .../impl/BallerinaActionInvocationImpl.java | 6 ++-- ...allerinaActionInvocationStatementImpl.java | 6 ++-- .../psi/impl/BallerinaAnnotationImpl.java | 6 ++-- .../psi/impl/BallerinaAnnotationNameImpl.java | 6 ++-- .../psi/impl/BallerinaArgumentListImpl.java | 6 ++-- .../BallerinaAssignmentStatementImpl.java | 6 ++-- .../psi/impl/BallerinaBacktickStringImpl.java | 6 ++-- .../psi/impl/BallerinaBreakStatementImpl.java | 6 ++-- .../psi/impl/BallerinaCatchClauseImpl.java | 6 ++-- .../impl/BallerinaCommentStatementImpl.java | 6 ++-- .../psi/impl/BallerinaConnectorBodyImpl.java | 6 ++-- .../BallerinaConnectorDeclarationImpl.java | 6 ++-- .../BallerinaConnectorDefinitionImpl.java | 6 ++-- .../impl/BallerinaConstantDefinitionImpl.java | 6 ++-- ...erinaElementValueArrayInitializerImpl.java | 6 ++-- .../psi/impl/BallerinaElementValueImpl.java | 6 ++-- .../impl/BallerinaElementValuePairImpl.java | 6 ++-- .../impl/BallerinaElementValuePairsImpl.java | 6 ++-- .../psi/impl/BallerinaElseClauseImpl.java | 6 ++-- .../psi/impl/BallerinaElseIfClauseImpl.java | 6 ++-- .../psi/impl/BallerinaExpressionImpl.java | 6 ++-- .../psi/impl/BallerinaExpressionListImpl.java | 6 ++-- .../impl/BallerinaForkJoinStatementImpl.java | 6 ++-- .../psi/impl/BallerinaFunctionBodyImpl.java | 6 ++-- .../impl/BallerinaFunctionDefinitionImpl.java | 6 ++-- ...lerinaFunctionInvocationStatementImpl.java | 6 ++-- .../psi/impl/BallerinaFunctionNameImpl.java | 6 ++-- .../impl/BallerinaIfElseIfClauseBodyImpl.java | 6 ++-- .../impl/BallerinaIfElseStatementImpl.java | 6 ++-- .../impl/BallerinaImportDeclarationImpl.java | 6 ++-- .../impl/BallerinaIterateStatementImpl.java | 6 ++-- .../psi/impl/BallerinaJoinClauseImpl.java | 6 ++-- .../psi/impl/BallerinaJoinConditionsImpl.java | 6 ++-- .../psi/impl/BallerinaLiteralValueImpl.java | 6 ++-- .../impl/BallerinaMapInitKeyValueImpl.java | 6 ++-- .../BallerinaMapInitKeyValueListImpl.java | 6 ++-- .../psi/impl/BallerinaNamedParameterImpl.java | 6 ++-- .../impl/BallerinaNamedParameterListImpl.java | 6 ++-- .../psi/impl/BallerinaNullLiteralImpl.java | 6 ++-- .../impl/BallerinaPackageDeclarationImpl.java | 6 ++-- .../psi/impl/BallerinaPackageNameImpl.java | 6 ++-- .../psi/impl/BallerinaParameterImpl.java | 6 ++-- .../psi/impl/BallerinaParameterListImpl.java | 6 ++-- .../impl/BallerinaQualifiedReferenceImpl.java | 6 ++-- .../impl/BallerinaQualifiedTypeNameImpl.java | 6 ++-- .../psi/impl/BallerinaReplyStatementImpl.java | 6 ++-- .../impl/BallerinaResourceDefinitionImpl.java | 6 ++-- .../impl/BallerinaReturnParametersImpl.java | 6 ++-- .../impl/BallerinaReturnStatementImpl.java | 6 ++-- .../psi/impl/BallerinaReturnTypeListImpl.java | 6 ++-- .../BallerinaServiceBodyDeclarationImpl.java | 6 ++-- .../psi/impl/BallerinaServiceBodyImpl.java | 6 ++-- .../impl/BallerinaServiceDefinitionImpl.java | 6 ++-- .../impl/BallerinaSimpleTypeArrayImpl.java | 6 ++-- .../psi/impl/BallerinaSimpleTypeImpl.java | 6 ++-- .../impl/BallerinaSimpleTypeIterateImpl.java | 6 ++-- .../psi/impl/BallerinaStatementImpl.java | 6 ++-- .../BallerinaStructDefinitionBodyImpl.java | 6 ++-- .../impl/BallerinaStructDefinitionImpl.java | 6 ++-- .../psi/impl/BallerinaThrowStatementImpl.java | 6 ++-- .../psi/impl/BallerinaTimeoutClauseImpl.java | 6 ++-- .../psi/impl/BallerinaTriggerWorkerImpl.java | 6 ++-- .../impl/BallerinaTryCatchStatementImpl.java | 6 ++-- .../impl/BallerinaTypeConverterTypesImpl.java | 6 ++-- .../impl/BallerinaTypeConvertorBodyImpl.java | 6 ++-- .../BallerinaTypeConvertorDefinitionImpl.java | 6 ++-- .../idea}/psi/impl/BallerinaTypeNameImpl.java | 6 ++-- .../BallerinaUnqualifiedTypeNameImpl.java | 6 ++-- .../BallerinaVariableDeclarationImpl.java | 6 ++-- .../impl/BallerinaVariableReferenceImpl.java | 6 ++-- .../BallerinaVariableReferenceListImpl.java | 6 ++-- .../impl/BallerinaWhileStatementBodyImpl.java | 6 ++-- .../psi/impl/BallerinaWhileStatementImpl.java | 6 ++-- .../BallerinaWithFullSchemaTypeArrayImpl.java | 6 ++-- .../impl/BallerinaWithFullSchemaTypeImpl.java | 6 ++-- ...allerinaWithFullSchemaTypeIterateImpl.java | 6 ++-- .../BallerinaWithScheamIdTypeArrayImpl.java | 6 ++-- .../BallerinaWithScheamIdTypeIterateImpl.java | 6 ++-- .../impl/BallerinaWithScheamURLTypeImpl.java | 6 ++-- .../impl/BallerinaWithSchemaIdTypeImpl.java | 6 ++-- .../BallerinaWithSchemaURLTypeArrayImpl.java | 6 ++-- ...BallerinaWithSchemaURLTypeIterateImpl.java | 6 ++-- .../impl/BallerinaWorkerDeclarationImpl.java | 6 ++-- ...llerinaWorkerInteractionStatementImpl.java | 6 ++-- .../psi/impl/BallerinaWorkerReplyImpl.java | 6 ++-- .../psi/BallerinaElseClauseBody.java | 29 ------------------- .../psi/BallerinaElseIfClauseBlock.java | 29 ------------------- .../psi/BallerinaElseIfClauseBody.java | 29 ------------------- .../psi/BallerinaIfElseClauseBody.java | 29 ------------------- .../psi/BallerinaIfElseIfClauseBlock.java | 29 ------------------- resources/META-INF/plugin.xml | 17 ++++++----- .../idea}/BallerinaCommenter.java | 2 +- .../{ => plugins/idea}/BallerinaFileType.java | 2 +- .../idea}/BallerinaFileTypeFactory.java | 2 +- .../{ => plugins/idea}/BallerinaIcons.java | 2 +- .../{ => plugins/idea}/BallerinaLanguage.java | 2 +- .../idea}/BallerinaParserDefinition.java | 12 ++++---- .../actions/BallerinaCreateFileAction.java | 6 ++-- .../BallerinaTemplatePropertiesProvider.java | 4 +-- .../idea}/formatter/BallerinaBlock.java | 4 +-- .../BallerinaFormattingModelBuilder.java | 6 ++-- .../{ => plugins/idea}/grammar/Ballerina.bnf | 12 ++++---- .../{ => plugins/idea}/grammar/Ballerina.g4 | 0 .../idea}/grammar/CopyrightHeader | 0 .../BallerinaColorSettingsPage.java | 10 +++---- .../BallerinaSyntaxHighlighter.java | 8 ++--- .../BallerinaSyntaxHighlighterFactory.java | 3 +- .../BallerinaSyntaxHighlightingColors.java | 2 +- .../{ => plugins/idea}/lexer/Ballerina.flex | 4 +-- .../idea}/lexer/BallerinaLexerAdapter.java | 2 +- .../idea}/psi/BallerinaElementType.java | 4 +-- .../{ => plugins/idea}/psi/BallerinaFile.java | 6 ++-- .../idea}/psi/BallerinaTokenType.java | 4 +-- .../idea}/psi/impl/BallerinaPsiImplUtil.java | 2 +- .../idea}/util/BallerinaUtil.java | 4 +-- 206 files changed, 412 insertions(+), 557 deletions(-) rename gen/org/ballerinalang/{ => plugins/idea}/lexer/BallerinaLexer.java (99%) rename gen/org/ballerinalang/{ => plugins/idea}/parser/BallerinaParser.java (99%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaActionDefinition.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaActionInvocation.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaActionInvocationStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaAnnotation.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaAnnotationName.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaArgumentList.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaAssignmentStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaBacktickString.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaBreakStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaCatchClause.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaCommentStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaConnectorBody.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaConnectorDeclaration.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaConnectorDefinition.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaConstantDefinition.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaElementValue.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaElementValueArrayInitializer.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaElementValuePair.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaElementValuePairs.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaElseClause.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaElseIfClause.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaExpression.java (97%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaExpressionList.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaForkJoinStatement.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaFunctionBody.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaFunctionDefinition.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaFunctionInvocationStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaFunctionName.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaIfElseIfClauseBody.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaIfElseStatement.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaImportDeclaration.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaIterateStatement.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaJoinClause.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaJoinConditions.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaLiteralValue.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaMapInitKeyValue.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaMapInitKeyValueList.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaNamedParameter.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaNamedParameterList.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaNullLiteral.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaPackageDeclaration.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaPackageName.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaParameter.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaParameterList.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaQualifiedReference.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaQualifiedTypeName.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaReplyStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaResourceDefinition.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaReturnParameters.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaReturnStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaReturnTypeList.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaServiceBody.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaServiceBodyDeclaration.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaServiceDefinition.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaSimpleType.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaSimpleTypeArray.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaSimpleTypeIterate.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaStatement.java (97%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaStructDefinition.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaStructDefinitionBody.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaThrowStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTimeoutClause.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTriggerWorker.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTryCatchStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTypeConverterTypes.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTypeConvertorBody.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTypeConvertorDefinition.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTypeName.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTypes.java (99%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaUnqualifiedTypeName.java (97%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaVariableDeclaration.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaVariableReference.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaVariableReferenceList.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaVisitor.java (99%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWhileStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWhileStatementBody.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithFullSchemaType.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithFullSchemaTypeArray.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithFullSchemaTypeIterate.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithScheamIdTypeArray.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithScheamIdTypeIterate.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithScheamURLType.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithSchemaIdType.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithSchemaURLTypeArray.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWithSchemaURLTypeIterate.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWorkerDeclaration.java (96%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWorkerInteractionStatement.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/BallerinaWorkerReply.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaActionDefinitionImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaActionInvocationImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaActionInvocationStatementImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaAnnotationImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaAnnotationNameImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaArgumentListImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaAssignmentStatementImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaBacktickStringImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaBreakStatementImpl.java (89%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaCatchClauseImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaCommentStatementImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaConnectorBodyImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaConnectorDeclarationImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaConnectorDefinitionImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaConstantDefinitionImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaElementValueArrayInitializerImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaElementValueImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaElementValuePairImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaElementValuePairsImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaElseClauseImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaElseIfClauseImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaExpressionImpl.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaExpressionListImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaForkJoinStatementImpl.java (93%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaFunctionBodyImpl.java (93%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaFunctionDefinitionImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaFunctionInvocationStatementImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaFunctionNameImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaIfElseIfClauseBodyImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaIfElseStatementImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaImportDeclarationImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaIterateStatementImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaJoinClauseImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaJoinConditionsImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaLiteralValueImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaMapInitKeyValueImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaMapInitKeyValueListImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaNamedParameterImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaNamedParameterListImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaNullLiteralImpl.java (89%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaPackageDeclarationImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaPackageNameImpl.java (89%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaParameterImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaParameterListImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaQualifiedReferenceImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaQualifiedTypeNameImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaReplyStatementImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaResourceDefinitionImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaReturnParametersImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaReturnStatementImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaReturnTypeListImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaServiceBodyDeclarationImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaServiceBodyImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaServiceDefinitionImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaSimpleTypeArrayImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaSimpleTypeImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaSimpleTypeIterateImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaStatementImpl.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaStructDefinitionBodyImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaStructDefinitionImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaThrowStatementImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaTimeoutClauseImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaTriggerWorkerImpl.java (89%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaTryCatchStatementImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaTypeConverterTypesImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaTypeConvertorBodyImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaTypeConvertorDefinitionImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaTypeNameImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaUnqualifiedTypeNameImpl.java (95%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaVariableDeclarationImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaVariableReferenceImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaVariableReferenceListImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWhileStatementBodyImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWhileStatementImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithFullSchemaTypeImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithScheamURLTypeImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithSchemaIdTypeImpl.java (90%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWorkerDeclarationImpl.java (92%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWorkerInteractionStatementImpl.java (91%) rename gen/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaWorkerReplyImpl.java (89%) delete mode 100644 gen/org/ballerinalang/psi/BallerinaElseClauseBody.java delete mode 100644 gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java delete mode 100644 gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java delete mode 100644 gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java delete mode 100644 gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java rename src/org/ballerinalang/{ => plugins/idea}/BallerinaCommenter.java (97%) rename src/org/ballerinalang/{ => plugins/idea}/BallerinaFileType.java (97%) rename src/org/ballerinalang/{ => plugins/idea}/BallerinaFileTypeFactory.java (96%) rename src/org/ballerinalang/{ => plugins/idea}/BallerinaIcons.java (95%) rename src/org/ballerinalang/{ => plugins/idea}/BallerinaLanguage.java (95%) rename src/org/ballerinalang/{ => plugins/idea}/BallerinaParserDefinition.java (90%) rename src/org/ballerinalang/{ => plugins/idea}/actions/BallerinaCreateFileAction.java (95%) rename src/org/ballerinalang/{ => plugins/idea}/actions/BallerinaTemplatePropertiesProvider.java (92%) rename src/org/ballerinalang/{ => plugins/idea}/formatter/BallerinaBlock.java (97%) rename src/org/ballerinalang/{ => plugins/idea}/formatter/BallerinaFormattingModelBuilder.java (96%) rename src/org/ballerinalang/{ => plugins/idea}/grammar/Ballerina.bnf (96%) rename src/org/ballerinalang/{ => plugins/idea}/grammar/Ballerina.g4 (100%) rename src/org/ballerinalang/{ => plugins/idea}/grammar/CopyrightHeader (100%) rename src/org/ballerinalang/{ => plugins/idea}/highlighter/BallerinaColorSettingsPage.java (88%) rename src/org/ballerinalang/{ => plugins/idea}/highlighter/BallerinaSyntaxHighlighter.java (89%) rename src/org/ballerinalang/{ => plugins/idea}/highlighter/BallerinaSyntaxHighlighterFactory.java (95%) rename src/org/ballerinalang/{ => plugins/idea}/highlighter/BallerinaSyntaxHighlightingColors.java (97%) rename src/org/ballerinalang/{ => plugins/idea}/lexer/Ballerina.flex (98%) rename src/org/ballerinalang/{ => plugins/idea}/lexer/BallerinaLexerAdapter.java (94%) rename src/org/ballerinalang/{ => plugins/idea}/psi/BallerinaElementType.java (90%) rename src/org/ballerinalang/{ => plugins/idea}/psi/BallerinaFile.java (89%) rename src/org/ballerinalang/{ => plugins/idea}/psi/BallerinaTokenType.java (91%) rename src/org/ballerinalang/{ => plugins/idea}/psi/impl/BallerinaPsiImplUtil.java (97%) rename src/org/ballerinalang/{ => plugins/idea}/util/BallerinaUtil.java (89%) diff --git a/gen/org/ballerinalang/lexer/BallerinaLexer.java b/gen/org/ballerinalang/plugins/idea/lexer/BallerinaLexer.java similarity index 99% rename from gen/org/ballerinalang/lexer/BallerinaLexer.java rename to gen/org/ballerinalang/plugins/idea/lexer/BallerinaLexer.java index 787aa78f1590..60a4ec10c133 100644 --- a/gen/org/ballerinalang/lexer/BallerinaLexer.java +++ b/gen/org/ballerinalang/plugins/idea/lexer/BallerinaLexer.java @@ -1,10 +1,10 @@ /* The following code was generated by JFlex 1.7.0-SNAPSHOT tweaked for IntelliJ platform */ -package org.ballerinalang.lexer; +package org.ballerinalang.plugins.idea.lexer; import com.intellij.lexer.FlexLexer; import com.intellij.psi.tree.IElementType; -import org.ballerinalang.psi.BallerinaTypes; +import org.ballerinalang.plugins.idea.psi.BallerinaTypes; import com.intellij.psi.TokenType; diff --git a/gen/org/ballerinalang/parser/BallerinaParser.java b/gen/org/ballerinalang/plugins/idea/parser/BallerinaParser.java similarity index 99% rename from gen/org/ballerinalang/parser/BallerinaParser.java rename to gen/org/ballerinalang/plugins/idea/parser/BallerinaParser.java index cfd21b383733..b4720fb1ffba 100644 --- a/gen/org/ballerinalang/parser/BallerinaParser.java +++ b/gen/org/ballerinalang/plugins/idea/parser/BallerinaParser.java @@ -15,11 +15,11 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.parser; +package org.ballerinalang.plugins.idea.parser; import com.intellij.lang.PsiBuilder; import com.intellij.lang.PsiBuilder.Marker; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import static com.intellij.lang.parser.GeneratedParserUtilBase.*; import com.intellij.psi.tree.IElementType; import com.intellij.lang.ASTNode; @@ -2625,7 +2625,7 @@ public static boolean variableDeclaration(PsiBuilder b, int l) { /* ********************************************************** */ // Identifier '['expression']' // mapArrayVariableIdentifier// array and map reference // // | variableReference ('.' variableReference)+ // structFieldIdentifier// struct field reference - // | Identifier + // | Identifier public static boolean variableReference(PsiBuilder b, int l) { if (!recursion_guard_(b, l, "variableReference")) return false; if (!nextTokenIs(b, IDENTIFIER)) return false; diff --git a/gen/org/ballerinalang/psi/BallerinaActionDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaActionDefinition.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaActionDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaActionDefinition.java index 555816872ba9..83272919d3c4 100644 --- a/gen/org/ballerinalang/psi/BallerinaActionDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaActionDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaActionInvocation.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaActionInvocation.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaActionInvocation.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaActionInvocation.java index 231d137492bb..e649efa8e535 100644 --- a/gen/org/ballerinalang/psi/BallerinaActionInvocation.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaActionInvocation.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaActionInvocationStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaActionInvocationStatement.java index 3993e4d23c49..b3548cbc3831 100644 --- a/gen/org/ballerinalang/psi/BallerinaActionInvocationStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaActionInvocationStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaAnnotation.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaAnnotation.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaAnnotation.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaAnnotation.java index bae36d079b20..a781f54d1a2a 100644 --- a/gen/org/ballerinalang/psi/BallerinaAnnotation.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaAnnotation.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaAnnotationName.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaAnnotationName.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaAnnotationName.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaAnnotationName.java index 9ba208387dfd..b046d59c449e 100644 --- a/gen/org/ballerinalang/psi/BallerinaAnnotationName.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaAnnotationName.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaArgumentList.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaArgumentList.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaArgumentList.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaArgumentList.java index 1a0de73e9976..3b34b637ca95 100644 --- a/gen/org/ballerinalang/psi/BallerinaArgumentList.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaArgumentList.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaAssignmentStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaAssignmentStatement.java index fea555bef0ca..038a5a10a738 100644 --- a/gen/org/ballerinalang/psi/BallerinaAssignmentStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaAssignmentStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaBacktickString.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaBacktickString.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaBacktickString.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaBacktickString.java index f2dcd7b2c6ef..40cd74725de4 100644 --- a/gen/org/ballerinalang/psi/BallerinaBacktickString.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaBacktickString.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaBreakStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaBreakStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaBreakStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaBreakStatement.java index 973116a7b9d8..00a9aa6f2000 100644 --- a/gen/org/ballerinalang/psi/BallerinaBreakStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaBreakStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaCatchClause.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaCatchClause.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaCatchClause.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaCatchClause.java index 6d375ab7832e..043fc3a27fa5 100644 --- a/gen/org/ballerinalang/psi/BallerinaCatchClause.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaCatchClause.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaCommentStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaCommentStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaCommentStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaCommentStatement.java index 50ded0e71fc8..b5067c5032b5 100644 --- a/gen/org/ballerinalang/psi/BallerinaCommentStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaCommentStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorBody.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorBody.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaConnectorBody.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorBody.java index d2b56175c552..3a111dc1d1ca 100644 --- a/gen/org/ballerinalang/psi/BallerinaConnectorBody.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorBody.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorDeclaration.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorDeclaration.java index 162ed65a80bc..833cacc6a5b6 100644 --- a/gen/org/ballerinalang/psi/BallerinaConnectorDeclaration.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorDeclaration.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorDefinition.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorDefinition.java index 96be9c231e19..d5fce9f476d0 100644 --- a/gen/org/ballerinalang/psi/BallerinaConnectorDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConnectorDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConstantDefinition.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaConstantDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaConstantDefinition.java index 1da7ef935a13..5c7e8efe90d1 100644 --- a/gen/org/ballerinalang/psi/BallerinaConstantDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaConstantDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValue.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValue.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaElementValue.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValue.java index a11aca5f4608..539501baf5c3 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValue.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValue.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValueArrayInitializer.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValueArrayInitializer.java index ce17ea8e0105..a4268a1c305d 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValueArrayInitializer.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValueArrayInitializer.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValuePair.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValuePair.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaElementValuePair.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValuePair.java index 878685c8a45b..a37afcb96c78 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValuePair.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValuePair.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValuePairs.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaElementValuePairs.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValuePairs.java index e5e306e3d997..fad3a7439333 100644 --- a/gen/org/ballerinalang/psi/BallerinaElementValuePairs.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElementValuePairs.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaElseClause.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElseClause.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaElseClause.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaElseClause.java index 1a2140e6f5f8..cefc5e54a4fa 100644 --- a/gen/org/ballerinalang/psi/BallerinaElseClause.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElseClause.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClause.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElseIfClause.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaElseIfClause.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaElseIfClause.java index 79b7b34dc0ba..676acaf9a8df 100644 --- a/gen/org/ballerinalang/psi/BallerinaElseIfClause.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaElseIfClause.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaExpression.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaExpression.java similarity index 97% rename from gen/org/ballerinalang/psi/BallerinaExpression.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaExpression.java index 23011371ca4d..1d6fc5b4e257 100644 --- a/gen/org/ballerinalang/psi/BallerinaExpression.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaExpression.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaExpressionList.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaExpressionList.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaExpressionList.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaExpressionList.java index 899c3edf5a48..6a09b0a32390 100644 --- a/gen/org/ballerinalang/psi/BallerinaExpressionList.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaExpressionList.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaForkJoinStatement.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaForkJoinStatement.java index 6639c4ba5e74..b0495b831610 100644 --- a/gen/org/ballerinalang/psi/BallerinaForkJoinStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaForkJoinStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionBody.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionBody.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaFunctionBody.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionBody.java index 4bdf835babfe..232259802caa 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionBody.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionBody.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionDefinition.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionDefinition.java index d9b63d577911..4b2eec3498bb 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionInvocationStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionInvocationStatement.java index 6f9cab6aa1b3..be19804faabd 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionInvocationStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionInvocationStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaFunctionName.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionName.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaFunctionName.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionName.java index 2b8dc5f71d33..380fe14e7c0a 100644 --- a/gen/org/ballerinalang/psi/BallerinaFunctionName.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaFunctionName.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBody.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaIfElseIfClauseBody.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBody.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaIfElseIfClauseBody.java index c524fd63e08e..195afbde8429 100644 --- a/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBody.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaIfElseIfClauseBody.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaIfElseStatement.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaIfElseStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaIfElseStatement.java index 753ccf568438..c9a1c26cf0d9 100644 --- a/gen/org/ballerinalang/psi/BallerinaIfElseStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaIfElseStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaImportDeclaration.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaImportDeclaration.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaImportDeclaration.java index a3eab4c66279..efce4e64adfd 100644 --- a/gen/org/ballerinalang/psi/BallerinaImportDeclaration.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaImportDeclaration.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaIterateStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaIterateStatement.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaIterateStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaIterateStatement.java index c8719524f847..2927cb884ce7 100644 --- a/gen/org/ballerinalang/psi/BallerinaIterateStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaIterateStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaJoinClause.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaJoinClause.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaJoinClause.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaJoinClause.java index 350d3920951e..2132daf692d3 100644 --- a/gen/org/ballerinalang/psi/BallerinaJoinClause.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaJoinClause.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaJoinConditions.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaJoinConditions.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaJoinConditions.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaJoinConditions.java index cd9d85acbd79..0aa5412946c4 100644 --- a/gen/org/ballerinalang/psi/BallerinaJoinConditions.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaJoinConditions.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaLiteralValue.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaLiteralValue.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaLiteralValue.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaLiteralValue.java index f9f0cc15713d..8c1ebf14d323 100644 --- a/gen/org/ballerinalang/psi/BallerinaLiteralValue.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaLiteralValue.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaMapInitKeyValue.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaMapInitKeyValue.java index a1cfd98d78a3..719951f9fc15 100644 --- a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValue.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaMapInitKeyValue.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaMapInitKeyValueList.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaMapInitKeyValueList.java index 917f8b532275..4d73760dd73b 100644 --- a/gen/org/ballerinalang/psi/BallerinaMapInitKeyValueList.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaMapInitKeyValueList.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaNamedParameter.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaNamedParameter.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaNamedParameter.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaNamedParameter.java index 423c9cc4e62f..14a36d09a563 100644 --- a/gen/org/ballerinalang/psi/BallerinaNamedParameter.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaNamedParameter.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaNamedParameterList.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaNamedParameterList.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaNamedParameterList.java index e564e5a29f1e..76244a77e8cd 100644 --- a/gen/org/ballerinalang/psi/BallerinaNamedParameterList.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaNamedParameterList.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaNullLiteral.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaNullLiteral.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaNullLiteral.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaNullLiteral.java index 70966181b6e3..f5eeacc7e3fa 100644 --- a/gen/org/ballerinalang/psi/BallerinaNullLiteral.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaNullLiteral.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaPackageDeclaration.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaPackageDeclaration.java index c8feeda6d05f..15857e44a679 100644 --- a/gen/org/ballerinalang/psi/BallerinaPackageDeclaration.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaPackageDeclaration.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaPackageName.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaPackageName.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaPackageName.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaPackageName.java index 8137d6c34195..04b2d26701cd 100644 --- a/gen/org/ballerinalang/psi/BallerinaPackageName.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaPackageName.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaParameter.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaParameter.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaParameter.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaParameter.java index 6280db1cf3eb..48533dd3e10f 100644 --- a/gen/org/ballerinalang/psi/BallerinaParameter.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaParameter.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaParameterList.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaParameterList.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaParameterList.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaParameterList.java index 1708c81eca2f..5f598649a1fc 100644 --- a/gen/org/ballerinalang/psi/BallerinaParameterList.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaParameterList.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaQualifiedReference.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaQualifiedReference.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaQualifiedReference.java index f74150cbcce6..734a6388bc1a 100644 --- a/gen/org/ballerinalang/psi/BallerinaQualifiedReference.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaQualifiedReference.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaQualifiedTypeName.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaQualifiedTypeName.java index ac9cccca73fd..c0b07c7de577 100644 --- a/gen/org/ballerinalang/psi/BallerinaQualifiedTypeName.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaQualifiedTypeName.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaReplyStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReplyStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaReplyStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaReplyStatement.java index 1de9be7341a4..980569406ab5 100644 --- a/gen/org/ballerinalang/psi/BallerinaReplyStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReplyStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaResourceDefinition.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaResourceDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaResourceDefinition.java index 29b16f96a316..3c3ce1d97a88 100644 --- a/gen/org/ballerinalang/psi/BallerinaResourceDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaResourceDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaReturnParameters.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnParameters.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaReturnParameters.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnParameters.java index dbbb377010f3..274727d07c12 100644 --- a/gen/org/ballerinalang/psi/BallerinaReturnParameters.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnParameters.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaReturnStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaReturnStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnStatement.java index a686c9f7855e..d76f43a5c8e3 100644 --- a/gen/org/ballerinalang/psi/BallerinaReturnStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnTypeList.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaReturnTypeList.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnTypeList.java index 1458a8605258..5528a17cb962 100644 --- a/gen/org/ballerinalang/psi/BallerinaReturnTypeList.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaReturnTypeList.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaServiceBody.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceBody.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaServiceBody.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceBody.java index af4421fa9a5b..fdd343540a5f 100644 --- a/gen/org/ballerinalang/psi/BallerinaServiceBody.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceBody.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceBodyDeclaration.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceBodyDeclaration.java index c4cd703f2156..d7883eb1cb4e 100644 --- a/gen/org/ballerinalang/psi/BallerinaServiceBodyDeclaration.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceBodyDeclaration.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceDefinition.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaServiceDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceDefinition.java index c08cd3a052f7..ff8c37bb8dbf 100644 --- a/gen/org/ballerinalang/psi/BallerinaServiceDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaServiceDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleType.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleType.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaSimpleType.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleType.java index 3cbcd0d0cb04..e7dc902fbc27 100644 --- a/gen/org/ballerinalang/psi/BallerinaSimpleType.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleType.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleTypeArray.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleTypeArray.java index d98e5a19b617..8c198b61df32 100644 --- a/gen/org/ballerinalang/psi/BallerinaSimpleTypeArray.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleTypeArray.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleTypeIterate.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleTypeIterate.java index 3f2718f284cc..e26c71f82ff2 100644 --- a/gen/org/ballerinalang/psi/BallerinaSimpleTypeIterate.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaSimpleTypeIterate.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaStatement.java similarity index 97% rename from gen/org/ballerinalang/psi/BallerinaStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaStatement.java index f89f1db6d60d..41f5715ada36 100644 --- a/gen/org/ballerinalang/psi/BallerinaStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaStructDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaStructDefinition.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaStructDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaStructDefinition.java index 9bbe0a624a94..b3e4f0a64987 100644 --- a/gen/org/ballerinalang/psi/BallerinaStructDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaStructDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaStructDefinitionBody.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaStructDefinitionBody.java index 9e3e737e7978..18bbb5fc574a 100644 --- a/gen/org/ballerinalang/psi/BallerinaStructDefinitionBody.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaStructDefinitionBody.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaThrowStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaThrowStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaThrowStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaThrowStatement.java index 9f6e71bef031..c1e34c151bb1 100644 --- a/gen/org/ballerinalang/psi/BallerinaThrowStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaThrowStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTimeoutClause.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaTimeoutClause.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTimeoutClause.java index 570cb728ab3f..349a65e5bbde 100644 --- a/gen/org/ballerinalang/psi/BallerinaTimeoutClause.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTimeoutClause.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTriggerWorker.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaTriggerWorker.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTriggerWorker.java index 80743ecf06df..1e036661d371 100644 --- a/gen/org/ballerinalang/psi/BallerinaTriggerWorker.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTriggerWorker.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTryCatchStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTryCatchStatement.java index c831da1c39fa..1b81b804fbae 100644 --- a/gen/org/ballerinalang/psi/BallerinaTryCatchStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTryCatchStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConverterTypes.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConverterTypes.java index 775fdcc7777d..533f57819957 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeConverterTypes.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConverterTypes.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConvertorBody.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConvertorBody.java index 37e52bffce6c..4b70d6cf4b59 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeConvertorBody.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConvertorBody.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConvertorDefinition.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConvertorDefinition.java index 8aaaa3c729a6..3b2f5dc59d08 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeConvertorDefinition.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeConvertorDefinition.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTypeName.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeName.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaTypeName.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeName.java index d31a8ba924f5..3efb8814c432 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypeName.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypeName.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaTypes.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypes.java similarity index 99% rename from gen/org/ballerinalang/psi/BallerinaTypes.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaTypes.java index fdfb59081631..0e463ee5ed1b 100644 --- a/gen/org/ballerinalang/psi/BallerinaTypes.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaTypes.java @@ -15,12 +15,12 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import com.intellij.psi.tree.IElementType; import com.intellij.psi.PsiElement; import com.intellij.lang.ASTNode; -import org.ballerinalang.psi.impl.*; +import org.ballerinalang.plugins.idea.psi.impl.*; public interface BallerinaTypes { diff --git a/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaUnqualifiedTypeName.java similarity index 97% rename from gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaUnqualifiedTypeName.java index 6f7ee653b22d..6dcca93d6446 100644 --- a/gen/org/ballerinalang/psi/BallerinaUnqualifiedTypeName.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaUnqualifiedTypeName.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableDeclaration.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableDeclaration.java index 22e1331a0696..04f26714c09b 100644 --- a/gen/org/ballerinalang/psi/BallerinaVariableDeclaration.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableDeclaration.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaVariableReference.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableReference.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaVariableReference.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableReference.java index f39f19280f8c..c84b47cc7564 100644 --- a/gen/org/ballerinalang/psi/BallerinaVariableReference.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableReference.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableReferenceList.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableReferenceList.java index dc3b4a8f8254..5ef49d47588c 100644 --- a/gen/org/ballerinalang/psi/BallerinaVariableReferenceList.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVariableReferenceList.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaVisitor.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVisitor.java similarity index 99% rename from gen/org/ballerinalang/psi/BallerinaVisitor.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaVisitor.java index b2d3ddd5316e..db82a85e8aaf 100644 --- a/gen/org/ballerinalang/psi/BallerinaVisitor.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaVisitor.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import org.jetbrains.annotations.*; import com.intellij.psi.PsiElementVisitor; diff --git a/gen/org/ballerinalang/psi/BallerinaWhileStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWhileStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWhileStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWhileStatement.java index 863112d895c5..87ce15b6d5ff 100644 --- a/gen/org/ballerinalang/psi/BallerinaWhileStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWhileStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWhileStatementBody.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWhileStatementBody.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWhileStatementBody.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWhileStatementBody.java index 06240c2db13a..4d839fb5174d 100644 --- a/gen/org/ballerinalang/psi/BallerinaWhileStatementBody.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWhileStatementBody.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaType.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaType.java index 0a17bd73b98e..565dbe0a4706 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaType.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaType.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaTypeArray.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaTypeArray.java index 7ac76cc304bb..c8ca4fc4cf8a 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeArray.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaTypeArray.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaTypeIterate.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaTypeIterate.java index ab29b745f9ab..89d71c129447 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithFullSchemaTypeIterate.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithFullSchemaTypeIterate.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamIdTypeArray.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamIdTypeArray.java index df1eb8829eb3..57b2f83f1789 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeArray.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamIdTypeArray.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamIdTypeIterate.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamIdTypeIterate.java index 7192161a282d..bd87710b9dae 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithScheamIdTypeIterate.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamIdTypeIterate.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamURLType.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamURLType.java index 87fb1b40fcf2..543019ccc982 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithScheamURLType.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithScheamURLType.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaIdType.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaIdType.java index e81336758a54..404da4f34730 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithSchemaIdType.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaIdType.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaURLTypeArray.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaURLTypeArray.java index 4cee335cf152..842383827bfb 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeArray.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaURLTypeArray.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaURLTypeIterate.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaURLTypeIterate.java index eb5b0a95e777..212d6a500349 100644 --- a/gen/org/ballerinalang/psi/BallerinaWithSchemaURLTypeIterate.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWithSchemaURLTypeIterate.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerDeclaration.java similarity index 96% rename from gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerDeclaration.java index d821f6bf8d78..335a10837fad 100644 --- a/gen/org/ballerinalang/psi/BallerinaWorkerDeclaration.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerDeclaration.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerInteractionStatement.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerInteractionStatement.java index ac9f5b4e85f6..f52ee903a554 100644 --- a/gen/org/ballerinalang/psi/BallerinaWorkerInteractionStatement.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerInteractionStatement.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/BallerinaWorkerReply.java b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerReply.java similarity index 95% rename from gen/org/ballerinalang/psi/BallerinaWorkerReply.java rename to gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerReply.java index 8d10c483262f..7c806912d836 100644 --- a/gen/org/ballerinalang/psi/BallerinaWorkerReply.java +++ b/gen/org/ballerinalang/plugins/idea/psi/BallerinaWorkerReply.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import java.util.List; import org.jetbrains.annotations.*; diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionDefinitionImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionDefinitionImpl.java index db7aec40a950..cba5ae7f2dd3 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaActionDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaActionDefinitionImpl extends ASTWrapperPsiElement implements BallerinaActionDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionInvocationImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionInvocationImpl.java index b8e8c3d6d949..704403ea4006 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionInvocationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaActionInvocationImpl extends ASTWrapperPsiElement implements BallerinaActionInvocation { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionInvocationStatementImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionInvocationStatementImpl.java index f3e4830032bb..aab0a4e943c4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaActionInvocationStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaActionInvocationStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaActionInvocationStatementImpl extends ASTWrapperPsiElement implements BallerinaActionInvocationStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAnnotationImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAnnotationImpl.java index 34fcabf1a261..fd7906f46575 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAnnotationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaAnnotationImpl extends ASTWrapperPsiElement implements BallerinaAnnotation { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAnnotationNameImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAnnotationNameImpl.java index 8444a2ac9ecb..0623cd1cd492 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaAnnotationNameImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAnnotationNameImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaAnnotationNameImpl extends ASTWrapperPsiElement implements BallerinaAnnotationName { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaArgumentListImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaArgumentListImpl.java index 38c5f8e3fe08..1f3bdb742a8a 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaArgumentListImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaArgumentListImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaArgumentListImpl extends ASTWrapperPsiElement implements BallerinaArgumentList { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAssignmentStatementImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAssignmentStatementImpl.java index b88418224cab..80de5b5c6639 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaAssignmentStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaAssignmentStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaAssignmentStatementImpl extends ASTWrapperPsiElement implements BallerinaAssignmentStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaBacktickStringImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaBacktickStringImpl.java index 1a3ce541917d..2fcdcb29c0c2 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaBacktickStringImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaBacktickStringImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaBacktickStringImpl extends ASTWrapperPsiElement implements BallerinaBacktickString { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaBreakStatementImpl.java similarity index 89% rename from gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaBreakStatementImpl.java index 5f490e13a408..3d33cff05cf6 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaBreakStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaBreakStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaBreakStatementImpl extends ASTWrapperPsiElement implements BallerinaBreakStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaCatchClauseImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaCatchClauseImpl.java index 38007eed2e94..71df26c3451c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaCatchClauseImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaCatchClauseImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaCatchClauseImpl extends ASTWrapperPsiElement implements BallerinaCatchClause { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaCommentStatementImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaCommentStatementImpl.java index 0cd29eb5ac51..2971333b266e 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaCommentStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaCommentStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaCommentStatementImpl extends ASTWrapperPsiElement implements BallerinaCommentStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorBodyImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorBodyImpl.java index 1e09fc31d4af..1bba1acd1c5e 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConnectorBodyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorBodyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaConnectorBodyImpl extends ASTWrapperPsiElement implements BallerinaConnectorBody { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorDeclarationImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorDeclarationImpl.java index ad11e021ab9d..39cb5aadb3fc 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDeclarationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorDeclarationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaConnectorDeclarationImpl extends ASTWrapperPsiElement implements BallerinaConnectorDeclaration { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorDefinitionImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorDefinitionImpl.java index 47b78936ebac..aeead63e93c6 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConnectorDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConnectorDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaConnectorDefinitionImpl extends ASTWrapperPsiElement implements BallerinaConnectorDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConstantDefinitionImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConstantDefinitionImpl.java index 840f3ce31644..aeb15bdfdb9c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaConstantDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaConstantDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaConstantDefinitionImpl extends ASTWrapperPsiElement implements BallerinaConstantDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValueArrayInitializerImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValueArrayInitializerImpl.java index 4c2accf90abe..29957e2805f9 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValueArrayInitializerImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValueArrayInitializerImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaElementValueArrayInitializerImpl extends ASTWrapperPsiElement implements BallerinaElementValueArrayInitializer { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValueImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValueImpl.java index 4672663af98d..02f3b6b1e27d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValueImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValueImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaElementValueImpl extends ASTWrapperPsiElement implements BallerinaElementValue { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValuePairImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValuePairImpl.java index 79a4972a234d..a6dcfc058073 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValuePairImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaElementValuePairImpl extends ASTWrapperPsiElement implements BallerinaElementValuePair { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValuePairsImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValuePairsImpl.java index b9047f5734b0..ce4e052809ab 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElementValuePairsImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElementValuePairsImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaElementValuePairsImpl extends ASTWrapperPsiElement implements BallerinaElementValuePairs { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElseClauseImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElseClauseImpl.java index 889a54695636..b81186a7544c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElseClauseImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElseClauseImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaElseClauseImpl extends ASTWrapperPsiElement implements BallerinaElseClause { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElseIfClauseImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElseIfClauseImpl.java index 7e21e341c72b..f47a84ba79f8 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaElseIfClauseImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaElseIfClauseImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaElseIfClauseImpl extends ASTWrapperPsiElement implements BallerinaElseIfClause { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaExpressionImpl.java similarity index 95% rename from gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaExpressionImpl.java index 882eb12901dd..b0f65d07a0eb 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaExpressionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaExpressionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaExpressionImpl extends ASTWrapperPsiElement implements BallerinaExpression { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaExpressionListImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaExpressionListImpl.java index 80ea56693779..68858a4fdd02 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaExpressionListImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaExpressionListImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaExpressionListImpl extends ASTWrapperPsiElement implements BallerinaExpressionList { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaForkJoinStatementImpl.java similarity index 93% rename from gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaForkJoinStatementImpl.java index 0f68d365503c..71a0d08f9420 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaForkJoinStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaForkJoinStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaForkJoinStatementImpl extends ASTWrapperPsiElement implements BallerinaForkJoinStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionBodyImpl.java similarity index 93% rename from gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionBodyImpl.java index caed0edb46d3..809b8a6a6def 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionBodyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionBodyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaFunctionBodyImpl extends ASTWrapperPsiElement implements BallerinaFunctionBody { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionDefinitionImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionDefinitionImpl.java index 71e3812a0ad6..24a2b2dc6fea 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaFunctionDefinitionImpl extends ASTWrapperPsiElement implements BallerinaFunctionDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionInvocationStatementImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionInvocationStatementImpl.java index 24b58614e932..4c989a5fbf26 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionInvocationStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionInvocationStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaFunctionInvocationStatementImpl extends ASTWrapperPsiElement implements BallerinaFunctionInvocationStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionNameImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionNameImpl.java index c534bc29cbbc..ee2371b15e28 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaFunctionNameImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaFunctionNameImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaFunctionNameImpl extends ASTWrapperPsiElement implements BallerinaFunctionName { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIfElseIfClauseBodyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIfElseIfClauseBodyImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaIfElseIfClauseBodyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIfElseIfClauseBodyImpl.java index 357c102a7ee1..f4ed9f73ede7 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaIfElseIfClauseBodyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIfElseIfClauseBodyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaIfElseIfClauseBodyImpl extends ASTWrapperPsiElement implements BallerinaIfElseIfClauseBody { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIfElseStatementImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIfElseStatementImpl.java index af7aa430d8bd..dcc2dfc6bdd0 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaIfElseStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIfElseStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaIfElseStatementImpl extends ASTWrapperPsiElement implements BallerinaIfElseStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaImportDeclarationImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaImportDeclarationImpl.java index c36ff9d8f198..ab9cc8fa8de1 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaImportDeclarationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaImportDeclarationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaImportDeclarationImpl extends ASTWrapperPsiElement implements BallerinaImportDeclaration { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIterateStatementImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIterateStatementImpl.java index 6db2d72069f4..623c9235deab 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaIterateStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaIterateStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaIterateStatementImpl extends ASTWrapperPsiElement implements BallerinaIterateStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaJoinClauseImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaJoinClauseImpl.java index 87ae4bf3ebdc..c941462d56b9 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaJoinClauseImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaJoinClauseImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaJoinClauseImpl extends ASTWrapperPsiElement implements BallerinaJoinClause { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaJoinConditionsImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaJoinConditionsImpl.java index c09fe7d2a81b..ef5639e7432d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaJoinConditionsImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaJoinConditionsImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaJoinConditionsImpl extends ASTWrapperPsiElement implements BallerinaJoinConditions { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaLiteralValueImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaLiteralValueImpl.java index 0bec70aa08c4..3e369d8c104b 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaLiteralValueImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaLiteralValueImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaLiteralValueImpl extends ASTWrapperPsiElement implements BallerinaLiteralValue { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaMapInitKeyValueImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaMapInitKeyValueImpl.java index cd68c02840e7..39f187c9399c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaMapInitKeyValueImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaMapInitKeyValueImpl extends ASTWrapperPsiElement implements BallerinaMapInitKeyValue { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaMapInitKeyValueListImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaMapInitKeyValueListImpl.java index 705e807b68e2..ca2280134f7f 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaMapInitKeyValueListImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaMapInitKeyValueListImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaMapInitKeyValueListImpl extends ASTWrapperPsiElement implements BallerinaMapInitKeyValueList { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNamedParameterImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNamedParameterImpl.java index 998551752185..c70b20c58f8e 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNamedParameterImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaNamedParameterImpl extends ASTWrapperPsiElement implements BallerinaNamedParameter { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNamedParameterListImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNamedParameterListImpl.java index cbf87ca3a7d0..ea0c1ad9de5f 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaNamedParameterListImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNamedParameterListImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaNamedParameterListImpl extends ASTWrapperPsiElement implements BallerinaNamedParameterList { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNullLiteralImpl.java similarity index 89% rename from gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNullLiteralImpl.java index 82e95347ada8..a3c7672226da 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaNullLiteralImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaNullLiteralImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaNullLiteralImpl extends ASTWrapperPsiElement implements BallerinaNullLiteral { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaPackageDeclarationImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaPackageDeclarationImpl.java index 3e93f28793c5..91dbc9cd9375 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaPackageDeclarationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaPackageDeclarationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaPackageDeclarationImpl extends ASTWrapperPsiElement implements BallerinaPackageDeclaration { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaPackageNameImpl.java similarity index 89% rename from gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaPackageNameImpl.java index b5854e006372..450e18006c40 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaPackageNameImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaPackageNameImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaPackageNameImpl extends ASTWrapperPsiElement implements BallerinaPackageName { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaParameterImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaParameterImpl.java index 41ebbc069522..1bba1dab3273 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaParameterImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaParameterImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaParameterImpl extends ASTWrapperPsiElement implements BallerinaParameter { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaParameterListImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaParameterListImpl.java index 65f1e2e6318a..ab4e5eef3ecf 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaParameterListImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaParameterListImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaParameterListImpl extends ASTWrapperPsiElement implements BallerinaParameterList { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaQualifiedReferenceImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaQualifiedReferenceImpl.java index 681ecbf2749f..611132dac160 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedReferenceImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaQualifiedReferenceImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaQualifiedReferenceImpl extends ASTWrapperPsiElement implements BallerinaQualifiedReference { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaQualifiedTypeNameImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaQualifiedTypeNameImpl.java index 077b0fd16812..aad05b0302bd 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaQualifiedTypeNameImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaQualifiedTypeNameImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaQualifiedTypeNameImpl extends ASTWrapperPsiElement implements BallerinaQualifiedTypeName { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReplyStatementImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReplyStatementImpl.java index fafb4709cbaa..dfe97356ecf5 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReplyStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReplyStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaReplyStatementImpl extends ASTWrapperPsiElement implements BallerinaReplyStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaResourceDefinitionImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaResourceDefinitionImpl.java index 116e2fb184f2..1156a7ba8265 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaResourceDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaResourceDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaResourceDefinitionImpl extends ASTWrapperPsiElement implements BallerinaResourceDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnParametersImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnParametersImpl.java index 3df1c15d26f4..16076a3fbc7d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReturnParametersImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnParametersImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaReturnParametersImpl extends ASTWrapperPsiElement implements BallerinaReturnParameters { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnStatementImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnStatementImpl.java index 58175268a642..785f781f3432 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReturnStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaReturnStatementImpl extends ASTWrapperPsiElement implements BallerinaReturnStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnTypeListImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnTypeListImpl.java index c733d5a1309c..6b10c6f0fe79 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaReturnTypeListImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaReturnTypeListImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaReturnTypeListImpl extends ASTWrapperPsiElement implements BallerinaReturnTypeList { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceBodyDeclarationImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceBodyDeclarationImpl.java index 18b2e84bc6ef..b09c5bcd8b19 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyDeclarationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceBodyDeclarationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaServiceBodyDeclarationImpl extends ASTWrapperPsiElement implements BallerinaServiceBodyDeclaration { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceBodyImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceBodyImpl.java index ea2be45f4d97..71823bd30700 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaServiceBodyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceBodyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaServiceBodyImpl extends ASTWrapperPsiElement implements BallerinaServiceBody { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceDefinitionImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceDefinitionImpl.java index 50289521086a..9fa6fc598a46 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaServiceDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaServiceDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaServiceDefinitionImpl extends ASTWrapperPsiElement implements BallerinaServiceDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeArrayImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeArrayImpl.java index 6d389a536be6..1032396b2124 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeArrayImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeArrayImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaSimpleTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaSimpleTypeArray { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeImpl.java index dd5336523586..f1b093193ec8 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaSimpleTypeImpl extends ASTWrapperPsiElement implements BallerinaSimpleType { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeIterateImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeIterateImpl.java index 6506681a91ee..aaee58dc9f20 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaSimpleTypeIterateImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaSimpleTypeIterateImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaSimpleTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaSimpleTypeIterate { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStatementImpl.java similarity index 95% rename from gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStatementImpl.java index b9f56fb911d0..f2f7d34283f6 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaStatementImpl extends ASTWrapperPsiElement implements BallerinaStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStructDefinitionBodyImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStructDefinitionBodyImpl.java index 3c6eadb90d7a..49f042eead39 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionBodyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStructDefinitionBodyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaStructDefinitionBodyImpl extends ASTWrapperPsiElement implements BallerinaStructDefinitionBody { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStructDefinitionImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStructDefinitionImpl.java index b1ddc32fb0b5..3b8309e4a8d4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaStructDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaStructDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaStructDefinitionImpl extends ASTWrapperPsiElement implements BallerinaStructDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaThrowStatementImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaThrowStatementImpl.java index 9106cd46e3f3..fff295a41e39 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaThrowStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaThrowStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaThrowStatementImpl extends ASTWrapperPsiElement implements BallerinaThrowStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTimeoutClauseImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTimeoutClauseImpl.java index a4103d46ec06..b7ad20785abd 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTimeoutClauseImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTimeoutClauseImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaTimeoutClauseImpl extends ASTWrapperPsiElement implements BallerinaTimeoutClause { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTriggerWorkerImpl.java similarity index 89% rename from gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTriggerWorkerImpl.java index eb3d499582d0..19beda13be02 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTriggerWorkerImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTriggerWorkerImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaTriggerWorkerImpl extends ASTWrapperPsiElement implements BallerinaTriggerWorker { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTryCatchStatementImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTryCatchStatementImpl.java index be0a7eefc7ff..18beb356eabe 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTryCatchStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTryCatchStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaTryCatchStatementImpl extends ASTWrapperPsiElement implements BallerinaTryCatchStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConverterTypesImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConverterTypesImpl.java index d572ad57d093..9b339468402d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeConverterTypesImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConverterTypesImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaTypeConverterTypesImpl extends ASTWrapperPsiElement implements BallerinaTypeConverterTypes { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConvertorBodyImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConvertorBodyImpl.java index cd77e010f82d..48285d408031 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorBodyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConvertorBodyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaTypeConvertorBodyImpl extends ASTWrapperPsiElement implements BallerinaTypeConvertorBody { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConvertorDefinitionImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConvertorDefinitionImpl.java index 60be1c034d36..14a81a495ba4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeConvertorDefinitionImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeConvertorDefinitionImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaTypeConvertorDefinitionImpl extends ASTWrapperPsiElement implements BallerinaTypeConvertorDefinition { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeNameImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeNameImpl.java index 436ffd68eed2..d4ca27a44978 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaTypeNameImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaTypeNameImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaTypeNameImpl extends ASTWrapperPsiElement implements BallerinaTypeName { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaUnqualifiedTypeNameImpl.java similarity index 95% rename from gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaUnqualifiedTypeNameImpl.java index a847c729cb12..437a73b57f74 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaUnqualifiedTypeNameImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaUnqualifiedTypeNameImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaUnqualifiedTypeNameImpl extends ASTWrapperPsiElement implements BallerinaUnqualifiedTypeName { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableDeclarationImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableDeclarationImpl.java index ecb1ee102b78..93b12efb75e4 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaVariableDeclarationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableDeclarationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaVariableDeclarationImpl extends ASTWrapperPsiElement implements BallerinaVariableDeclaration { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableReferenceImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableReferenceImpl.java index 709af0083678..a5d865817025 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableReferenceImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaVariableReferenceImpl extends ASTWrapperPsiElement implements BallerinaVariableReference { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableReferenceListImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableReferenceListImpl.java index d3ef78cd5604..bf873592a564 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaVariableReferenceListImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaVariableReferenceListImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaVariableReferenceListImpl extends ASTWrapperPsiElement implements BallerinaVariableReferenceList { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementBodyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWhileStatementBodyImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaWhileStatementBodyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWhileStatementBodyImpl.java index df44edece9b2..1cd4c8c9981f 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementBodyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWhileStatementBodyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWhileStatementBodyImpl extends ASTWrapperPsiElement implements BallerinaWhileStatementBody { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWhileStatementImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWhileStatementImpl.java index e4cb6f3e5ebd..51f55217faa7 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWhileStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWhileStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWhileStatementImpl extends ASTWrapperPsiElement implements BallerinaWhileStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java index 56db1a9b968c..f2d97805a79d 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeArrayImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithFullSchemaTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaWithFullSchemaTypeArray { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeImpl.java index 4b94efa2a3ee..98d1c47f7a0c 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithFullSchemaTypeImpl extends ASTWrapperPsiElement implements BallerinaWithFullSchemaType { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java index fd500afce178..b7419beb4063 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithFullSchemaTypeIterateImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithFullSchemaTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaWithFullSchemaTypeIterate { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java index 9048e9c50500..bf0c576dde56 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamIdTypeArrayImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithScheamIdTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaWithScheamIdTypeArray { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java index 03e07a8d3f44..be19a916ec1e 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamIdTypeIterateImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithScheamIdTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaWithScheamIdTypeIterate { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamURLTypeImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamURLTypeImpl.java index 9d18d236715e..4ce96ea2dbea 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithScheamURLTypeImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithScheamURLTypeImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithScheamURLTypeImpl extends ASTWrapperPsiElement implements BallerinaWithScheamURLType { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaIdTypeImpl.java similarity index 90% rename from gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaIdTypeImpl.java index f62889479b0a..afc309f7f540 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaIdTypeImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaIdTypeImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithSchemaIdTypeImpl extends ASTWrapperPsiElement implements BallerinaWithSchemaIdType { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java index a82df6c8abd4..d10dc2a38ce5 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaURLTypeArrayImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithSchemaURLTypeArrayImpl extends ASTWrapperPsiElement implements BallerinaWithSchemaURLTypeArray { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java index 2ed965c3a839..ed8450b1c3a3 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWithSchemaURLTypeIterateImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWithSchemaURLTypeIterateImpl extends ASTWrapperPsiElement implements BallerinaWithSchemaURLTypeIterate { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerDeclarationImpl.java similarity index 92% rename from gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerDeclarationImpl.java index 37cc7eca8bc0..21aaeaf17d92 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWorkerDeclarationImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerDeclarationImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWorkerDeclarationImpl extends ASTWrapperPsiElement implements BallerinaWorkerDeclaration { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerInteractionStatementImpl.java similarity index 91% rename from gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerInteractionStatementImpl.java index d1317084d5e0..f02e7d7aec85 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWorkerInteractionStatementImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerInteractionStatementImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWorkerInteractionStatementImpl extends ASTWrapperPsiElement implements BallerinaWorkerInteractionStatement { diff --git a/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerReplyImpl.java similarity index 89% rename from gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java rename to gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerReplyImpl.java index 38d4360e7cda..16f629281b1a 100644 --- a/gen/org/ballerinalang/psi/impl/BallerinaWorkerReplyImpl.java +++ b/gen/org/ballerinalang/plugins/idea/psi/impl/BallerinaWorkerReplyImpl.java @@ -15,7 +15,7 @@ */ // This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import java.util.List; import org.jetbrains.annotations.*; @@ -23,9 +23,9 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElementVisitor; import com.intellij.psi.util.PsiTreeUtil; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; import com.intellij.extapi.psi.ASTWrapperPsiElement; -import org.ballerinalang.psi.*; +import org.ballerinalang.plugins.idea.psi.*; public class BallerinaWorkerReplyImpl extends ASTWrapperPsiElement implements BallerinaWorkerReply { diff --git a/gen/org/ballerinalang/psi/BallerinaElseClauseBody.java b/gen/org/ballerinalang/psi/BallerinaElseClauseBody.java deleted file mode 100644 index f404347fc117..000000000000 --- a/gen/org/ballerinalang/psi/BallerinaElseClauseBody.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface BallerinaElseClauseBody extends PsiElement { - - @NotNull - List getStatementList(); - -} diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java b/gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java deleted file mode 100644 index b9f1cabb17c2..000000000000 --- a/gen/org/ballerinalang/psi/BallerinaElseIfClauseBlock.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface BallerinaElseIfClauseBlock extends PsiElement { - - @NotNull - BallerinaIfElseIfClauseBody getIfElseIfClauseBody(); - -} diff --git a/gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java b/gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java deleted file mode 100644 index 61e3171c39d9..000000000000 --- a/gen/org/ballerinalang/psi/BallerinaElseIfClauseBody.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface BallerinaElseIfClauseBody extends PsiElement { - - @NotNull - List getStatementList(); - -} diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java b/gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java deleted file mode 100644 index 1c2342059d86..000000000000 --- a/gen/org/ballerinalang/psi/BallerinaIfElseClauseBody.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface BallerinaIfElseClauseBody extends PsiElement { - - @NotNull - List getStatementList(); - -} diff --git a/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java b/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java deleted file mode 100644 index 2a8c6bdfd14b..000000000000 --- a/gen/org/ballerinalang/psi/BallerinaIfElseIfClauseBlock.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// This is a generated file. Not intended for manual editing. -package org.ballerinalang.psi; - -import java.util.List; -import org.jetbrains.annotations.*; -import com.intellij.psi.PsiElement; - -public interface BallerinaIfElseIfClauseBlock extends PsiElement { - - @NotNull - BallerinaIfElseIfClauseBody getIfElseIfClauseBody(); - -} diff --git a/resources/META-INF/plugin.xml b/resources/META-INF/plugin.xml index 1c685b37b530..65be672f2f6c 100644 --- a/resources/META-INF/plugin.xml +++ b/resources/META-INF/plugin.xml @@ -30,26 +30,27 @@ - - - + + + - + implementationClass="org.ballerinalang.plugins.idea.highlighter.BallerinaSyntaxHighlighterFactory"/> + + implementationClass="org.ballerinalang.plugins.idea.formatter.BallerinaFormattingModelBuilder"/> + implementation="org.ballerinalang.plugins.idea.actions.BallerinaTemplatePropertiesProvider"/> - diff --git a/src/org/ballerinalang/BallerinaCommenter.java b/src/org/ballerinalang/plugins/idea/BallerinaCommenter.java similarity index 97% rename from src/org/ballerinalang/BallerinaCommenter.java rename to src/org/ballerinalang/plugins/idea/BallerinaCommenter.java index d5a9e14c6b76..19bf9ef0f010 100644 --- a/src/org/ballerinalang/BallerinaCommenter.java +++ b/src/org/ballerinalang/plugins/idea/BallerinaCommenter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.plugins.idea; import com.intellij.lang.Commenter; import org.jetbrains.annotations.Nullable; diff --git a/src/org/ballerinalang/BallerinaFileType.java b/src/org/ballerinalang/plugins/idea/BallerinaFileType.java similarity index 97% rename from src/org/ballerinalang/BallerinaFileType.java rename to src/org/ballerinalang/plugins/idea/BallerinaFileType.java index 0a53bf2f795c..cf73c8123725 100644 --- a/src/org/ballerinalang/BallerinaFileType.java +++ b/src/org/ballerinalang/plugins/idea/BallerinaFileType.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.plugins.idea; import com.intellij.openapi.fileTypes.LanguageFileType; import org.jetbrains.annotations.NotNull; diff --git a/src/org/ballerinalang/BallerinaFileTypeFactory.java b/src/org/ballerinalang/plugins/idea/BallerinaFileTypeFactory.java similarity index 96% rename from src/org/ballerinalang/BallerinaFileTypeFactory.java rename to src/org/ballerinalang/plugins/idea/BallerinaFileTypeFactory.java index 7ced882d4060..a3c4c1fbfba3 100644 --- a/src/org/ballerinalang/BallerinaFileTypeFactory.java +++ b/src/org/ballerinalang/plugins/idea/BallerinaFileTypeFactory.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.plugins.idea; import com.intellij.openapi.fileTypes.FileTypeConsumer; import com.intellij.openapi.fileTypes.FileTypeFactory; diff --git a/src/org/ballerinalang/BallerinaIcons.java b/src/org/ballerinalang/plugins/idea/BallerinaIcons.java similarity index 95% rename from src/org/ballerinalang/BallerinaIcons.java rename to src/org/ballerinalang/plugins/idea/BallerinaIcons.java index fb6b998c13db..df44a436199c 100644 --- a/src/org/ballerinalang/BallerinaIcons.java +++ b/src/org/ballerinalang/plugins/idea/BallerinaIcons.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.plugins.idea; import com.intellij.openapi.util.IconLoader; diff --git a/src/org/ballerinalang/BallerinaLanguage.java b/src/org/ballerinalang/plugins/idea/BallerinaLanguage.java similarity index 95% rename from src/org/ballerinalang/BallerinaLanguage.java rename to src/org/ballerinalang/plugins/idea/BallerinaLanguage.java index bb6acdf945fa..2c1b1beeee8a 100644 --- a/src/org/ballerinalang/BallerinaLanguage.java +++ b/src/org/ballerinalang/plugins/idea/BallerinaLanguage.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.plugins.idea; import com.intellij.lang.Language; diff --git a/src/org/ballerinalang/BallerinaParserDefinition.java b/src/org/ballerinalang/plugins/idea/BallerinaParserDefinition.java similarity index 90% rename from src/org/ballerinalang/BallerinaParserDefinition.java rename to src/org/ballerinalang/plugins/idea/BallerinaParserDefinition.java index aa37006d6d75..1e1a5c2b3a01 100644 --- a/src/org/ballerinalang/BallerinaParserDefinition.java +++ b/src/org/ballerinalang/plugins/idea/BallerinaParserDefinition.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang; +package org.ballerinalang.plugins.idea; import com.intellij.lang.ASTNode; import com.intellij.lang.Language; @@ -29,13 +29,13 @@ import com.intellij.psi.tree.IFileElementType; import com.intellij.psi.tree.TokenSet; -import org.ballerinalang.lexer.BallerinaLexerAdapter; -import org.ballerinalang.parser.BallerinaParser; -import org.ballerinalang.psi.BallerinaFile; -import org.ballerinalang.psi.BallerinaTypes; +import org.ballerinalang.plugins.idea.lexer.BallerinaLexerAdapter; +import org.ballerinalang.plugins.idea.parser.BallerinaParser; +import org.ballerinalang.plugins.idea.psi.BallerinaFile; +import org.ballerinalang.plugins.idea.psi.BallerinaTypes; import org.jetbrains.annotations.NotNull; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; public class BallerinaParserDefinition implements ParserDefinition { diff --git a/src/org/ballerinalang/actions/BallerinaCreateFileAction.java b/src/org/ballerinalang/plugins/idea/actions/BallerinaCreateFileAction.java similarity index 95% rename from src/org/ballerinalang/actions/BallerinaCreateFileAction.java rename to src/org/ballerinalang/plugins/idea/actions/BallerinaCreateFileAction.java index 93e614b9077b..6470a9d2b356 100644 --- a/src/org/ballerinalang/actions/BallerinaCreateFileAction.java +++ b/src/org/ballerinalang/plugins/idea/actions/BallerinaCreateFileAction.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.actions; +package org.ballerinalang.plugins.idea.actions; import com.intellij.ide.actions.CreateFileFromTemplateAction; import com.intellij.ide.actions.CreateFileFromTemplateDialog; @@ -27,8 +27,8 @@ import com.intellij.psi.PsiDirectory; import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; -import org.ballerinalang.BallerinaIcons; -import org.ballerinalang.psi.BallerinaFile; +import org.ballerinalang.plugins.idea.BallerinaIcons; +import org.ballerinalang.plugins.idea.psi.BallerinaFile; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/src/org/ballerinalang/actions/BallerinaTemplatePropertiesProvider.java b/src/org/ballerinalang/plugins/idea/actions/BallerinaTemplatePropertiesProvider.java similarity index 92% rename from src/org/ballerinalang/actions/BallerinaTemplatePropertiesProvider.java rename to src/org/ballerinalang/plugins/idea/actions/BallerinaTemplatePropertiesProvider.java index 3121438a09d7..8a06f3432f5c 100644 --- a/src/org/ballerinalang/actions/BallerinaTemplatePropertiesProvider.java +++ b/src/org/ballerinalang/plugins/idea/actions/BallerinaTemplatePropertiesProvider.java @@ -14,12 +14,12 @@ * limitations under the License. */ -package org.ballerinalang.actions; +package org.ballerinalang.plugins.idea.actions; import com.intellij.ide.fileTemplates.DefaultTemplatePropertiesProvider; import com.intellij.ide.fileTemplates.FileTemplate; import com.intellij.psi.PsiDirectory; -import org.ballerinalang.util.BallerinaUtil; +import org.ballerinalang.plugins.idea.util.BallerinaUtil; import java.util.Properties; diff --git a/src/org/ballerinalang/formatter/BallerinaBlock.java b/src/org/ballerinalang/plugins/idea/formatter/BallerinaBlock.java similarity index 97% rename from src/org/ballerinalang/formatter/BallerinaBlock.java rename to src/org/ballerinalang/plugins/idea/formatter/BallerinaBlock.java index d22e9070aa7e..2cc70227101b 100644 --- a/src/org/ballerinalang/formatter/BallerinaBlock.java +++ b/src/org/ballerinalang/plugins/idea/formatter/BallerinaBlock.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.formatter; +package org.ballerinalang.plugins.idea.formatter; import com.intellij.formatting.Alignment; import com.intellij.formatting.Block; @@ -33,7 +33,7 @@ import java.util.ArrayList; import java.util.List; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; public class BallerinaBlock extends AbstractBlock { diff --git a/src/org/ballerinalang/formatter/BallerinaFormattingModelBuilder.java b/src/org/ballerinalang/plugins/idea/formatter/BallerinaFormattingModelBuilder.java similarity index 96% rename from src/org/ballerinalang/formatter/BallerinaFormattingModelBuilder.java rename to src/org/ballerinalang/plugins/idea/formatter/BallerinaFormattingModelBuilder.java index 8b8e253fb8bb..111156e8c307 100644 --- a/src/org/ballerinalang/formatter/BallerinaFormattingModelBuilder.java +++ b/src/org/ballerinalang/plugins/idea/formatter/BallerinaFormattingModelBuilder.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.formatter; +package org.ballerinalang.plugins.idea.formatter; import com.intellij.formatting.FormattingModel; import com.intellij.formatting.FormattingModelBuilder; @@ -26,11 +26,11 @@ import com.intellij.psi.PsiElement; import com.intellij.psi.PsiFile; import com.intellij.psi.codeStyle.CodeStyleSettings; -import org.ballerinalang.BallerinaLanguage; +import org.ballerinalang.plugins.idea.BallerinaLanguage; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import static org.ballerinalang.psi.BallerinaTypes.*; +import static org.ballerinalang.plugins.idea.psi.BallerinaTypes.*; public class BallerinaFormattingModelBuilder implements FormattingModelBuilder { diff --git a/src/org/ballerinalang/grammar/Ballerina.bnf b/src/org/ballerinalang/plugins/idea/grammar/Ballerina.bnf similarity index 96% rename from src/org/ballerinalang/grammar/Ballerina.bnf rename to src/org/ballerinalang/plugins/idea/grammar/Ballerina.bnf index ed01452db208..0b4ca9e440b2 100644 --- a/src/org/ballerinalang/grammar/Ballerina.bnf +++ b/src/org/ballerinalang/plugins/idea/grammar/Ballerina.bnf @@ -1,18 +1,18 @@ { classHeader='CopyrightHeader' - parserClass="org.ballerinalang.parser.BallerinaParser" + parserClass="org.ballerinalang.plugins.idea.parser.BallerinaParser" extends="com.intellij.extapi.psi.ASTWrapperPsiElement" psiClassPrefix="Ballerina" psiImplClassSuffix="Impl" - psiPackage="org.ballerinalang.psi" - psiImplPackage="org.ballerinalang.psi.impl" + psiPackage="org.ballerinalang.plugins.idea.psi" + psiImplPackage="org.ballerinalang.plugins.idea.psi.impl" - elementTypeHolderClass="org.ballerinalang.psi.BallerinaTypes" - elementTypeClass="org.ballerinalang.psi.BallerinaElementType" - tokenTypeClass="org.ballerinalang.psi.BallerinaTokenType" + elementTypeHolderClass="org.ballerinalang.plugins.idea.psi.BallerinaTypes" + elementTypeClass="org.ballerinalang.plugins.idea.psi.BallerinaElementType" + tokenTypeClass="org.ballerinalang.plugins.idea.psi.BallerinaTokenType" tokens=[ diff --git a/src/org/ballerinalang/grammar/Ballerina.g4 b/src/org/ballerinalang/plugins/idea/grammar/Ballerina.g4 similarity index 100% rename from src/org/ballerinalang/grammar/Ballerina.g4 rename to src/org/ballerinalang/plugins/idea/grammar/Ballerina.g4 diff --git a/src/org/ballerinalang/grammar/CopyrightHeader b/src/org/ballerinalang/plugins/idea/grammar/CopyrightHeader similarity index 100% rename from src/org/ballerinalang/grammar/CopyrightHeader rename to src/org/ballerinalang/plugins/idea/grammar/CopyrightHeader diff --git a/src/org/ballerinalang/highlighter/BallerinaColorSettingsPage.java b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaColorSettingsPage.java similarity index 88% rename from src/org/ballerinalang/highlighter/BallerinaColorSettingsPage.java rename to src/org/ballerinalang/plugins/idea/highlighter/BallerinaColorSettingsPage.java index aa599e698d3c..634246eec4e9 100644 --- a/src/org/ballerinalang/highlighter/BallerinaColorSettingsPage.java +++ b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaColorSettingsPage.java @@ -14,14 +14,14 @@ * limitations under the License. */ -package org.ballerinalang.highlighter; +package org.ballerinalang.plugins.idea.highlighter; import com.intellij.openapi.editor.colors.TextAttributesKey; import com.intellij.openapi.fileTypes.SyntaxHighlighter; import com.intellij.openapi.options.colors.AttributesDescriptor; import com.intellij.openapi.options.colors.ColorDescriptor; import com.intellij.openapi.options.colors.ColorSettingsPage; -import org.ballerinalang.BallerinaIcons; +import org.ballerinalang.plugins.idea.BallerinaIcons; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -29,13 +29,11 @@ import java.util.Map; -import static org.ballerinalang.highlighter.BallerinaSyntaxHighlightingColors.*; - public class BallerinaColorSettingsPage implements ColorSettingsPage { private static final AttributesDescriptor[] DESCRIPTORS = new AttributesDescriptor[]{ //todo: add more attributes - new AttributesDescriptor("Keywords", KEYWORD), - new AttributesDescriptor("Strings", STRING), + new AttributesDescriptor("Keywords", BallerinaSyntaxHighlightingColors.KEYWORD), + new AttributesDescriptor("Strings", BallerinaSyntaxHighlightingColors.STRING), }; @Nullable diff --git a/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighter.java b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlighter.java similarity index 89% rename from src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighter.java rename to src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlighter.java index 1f3dce1905ca..1b10d78c410d 100644 --- a/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighter.java +++ b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlighter.java @@ -14,16 +14,16 @@ * limitations under the License. */ -package org.ballerinalang.highlighter; +package org.ballerinalang.plugins.idea.highlighter; import com.intellij.lexer.Lexer; import com.intellij.openapi.editor.colors.TextAttributesKey; import com.intellij.openapi.fileTypes.SyntaxHighlighterBase; import com.intellij.psi.TokenType; import com.intellij.psi.tree.IElementType; -import org.ballerinalang.lexer.BallerinaLexerAdapter; -import org.ballerinalang.BallerinaParserDefinition; -import org.ballerinalang.psi.BallerinaTypes; +import org.ballerinalang.plugins.idea.lexer.BallerinaLexerAdapter; +import org.ballerinalang.plugins.idea.BallerinaParserDefinition; +import org.ballerinalang.plugins.idea.psi.BallerinaTypes; import org.jetbrains.annotations.NotNull; import java.util.HashMap; diff --git a/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighterFactory.java b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlighterFactory.java similarity index 95% rename from src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighterFactory.java rename to src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlighterFactory.java index 760a2ce56462..f6a010baa35e 100644 --- a/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlighterFactory.java +++ b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlighterFactory.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.highlighter; +package org.ballerinalang.plugins.idea.highlighter; import com.intellij.openapi.fileTypes.SyntaxHighlighter; import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory; @@ -23,6 +23,7 @@ import org.jetbrains.annotations.NotNull; public class BallerinaSyntaxHighlighterFactory extends SyntaxHighlighterFactory { + @NotNull @Override public SyntaxHighlighter getSyntaxHighlighter(Project project, VirtualFile virtualFile) { diff --git a/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlightingColors.java b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlightingColors.java similarity index 97% rename from src/org/ballerinalang/highlighter/BallerinaSyntaxHighlightingColors.java rename to src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlightingColors.java index 036f901b8b04..cb894a290ac8 100644 --- a/src/org/ballerinalang/highlighter/BallerinaSyntaxHighlightingColors.java +++ b/src/org/ballerinalang/plugins/idea/highlighter/BallerinaSyntaxHighlightingColors.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.highlighter; +package org.ballerinalang.plugins.idea.highlighter; import com.intellij.openapi.editor.DefaultLanguageHighlighterColors; import com.intellij.openapi.editor.HighlighterColors; diff --git a/src/org/ballerinalang/lexer/Ballerina.flex b/src/org/ballerinalang/plugins/idea/lexer/Ballerina.flex similarity index 98% rename from src/org/ballerinalang/lexer/Ballerina.flex rename to src/org/ballerinalang/plugins/idea/lexer/Ballerina.flex index fc8c0492bd28..c33dd2b8d658 100644 --- a/src/org/ballerinalang/lexer/Ballerina.flex +++ b/src/org/ballerinalang/plugins/idea/lexer/Ballerina.flex @@ -1,8 +1,8 @@ -package org.ballerinalang.lexer; +package org.ballerinalang.plugins.idea.lexer; import com.intellij.lexer.FlexLexer; import com.intellij.psi.tree.IElementType; -import org.ballerinalang.psi.BallerinaTypes; +import org.ballerinalang.plugins.idea.psi.BallerinaTypes; import com.intellij.psi.TokenType; %% diff --git a/src/org/ballerinalang/lexer/BallerinaLexerAdapter.java b/src/org/ballerinalang/plugins/idea/lexer/BallerinaLexerAdapter.java similarity index 94% rename from src/org/ballerinalang/lexer/BallerinaLexerAdapter.java rename to src/org/ballerinalang/plugins/idea/lexer/BallerinaLexerAdapter.java index acdd27af25ea..44fdd15a959e 100644 --- a/src/org/ballerinalang/lexer/BallerinaLexerAdapter.java +++ b/src/org/ballerinalang/plugins/idea/lexer/BallerinaLexerAdapter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.lexer; +package org.ballerinalang.plugins.idea.lexer; import com.intellij.lexer.FlexAdapter; diff --git a/src/org/ballerinalang/psi/BallerinaElementType.java b/src/org/ballerinalang/plugins/idea/psi/BallerinaElementType.java similarity index 90% rename from src/org/ballerinalang/psi/BallerinaElementType.java rename to src/org/ballerinalang/plugins/idea/psi/BallerinaElementType.java index 908afb0275c1..a0078789ef90 100644 --- a/src/org/ballerinalang/psi/BallerinaElementType.java +++ b/src/org/ballerinalang/plugins/idea/psi/BallerinaElementType.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import com.intellij.psi.tree.IElementType; -import org.ballerinalang.BallerinaLanguage; +import org.ballerinalang.plugins.idea.BallerinaLanguage; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; diff --git a/src/org/ballerinalang/psi/BallerinaFile.java b/src/org/ballerinalang/plugins/idea/psi/BallerinaFile.java similarity index 89% rename from src/org/ballerinalang/psi/BallerinaFile.java rename to src/org/ballerinalang/plugins/idea/psi/BallerinaFile.java index 2fb9337e6f3f..c687c5b09691 100644 --- a/src/org/ballerinalang/psi/BallerinaFile.java +++ b/src/org/ballerinalang/plugins/idea/psi/BallerinaFile.java @@ -14,13 +14,13 @@ * limitations under the License. */ -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import com.intellij.extapi.psi.PsiFileBase; import com.intellij.openapi.fileTypes.FileType; import com.intellij.psi.FileViewProvider; -import org.ballerinalang.BallerinaFileType; -import org.ballerinalang.BallerinaLanguage; +import org.ballerinalang.plugins.idea.BallerinaFileType; +import org.ballerinalang.plugins.idea.BallerinaLanguage; import org.jetbrains.annotations.NotNull; import javax.swing.Icon; diff --git a/src/org/ballerinalang/psi/BallerinaTokenType.java b/src/org/ballerinalang/plugins/idea/psi/BallerinaTokenType.java similarity index 91% rename from src/org/ballerinalang/psi/BallerinaTokenType.java rename to src/org/ballerinalang/plugins/idea/psi/BallerinaTokenType.java index 3991f97b2fe8..507ba7cded66 100644 --- a/src/org/ballerinalang/psi/BallerinaTokenType.java +++ b/src/org/ballerinalang/plugins/idea/psi/BallerinaTokenType.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.ballerinalang.psi; +package org.ballerinalang.plugins.idea.psi; import com.intellij.psi.tree.IElementType; -import org.ballerinalang.BallerinaLanguage; +import org.ballerinalang.plugins.idea.BallerinaLanguage; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; diff --git a/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java b/src/org/ballerinalang/plugins/idea/psi/impl/BallerinaPsiImplUtil.java similarity index 97% rename from src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java rename to src/org/ballerinalang/plugins/idea/psi/impl/BallerinaPsiImplUtil.java index a9208c5bde42..404896fc6b3e 100644 --- a/src/org/ballerinalang/psi/impl/BallerinaPsiImplUtil.java +++ b/src/org/ballerinalang/plugins/idea/psi/impl/BallerinaPsiImplUtil.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package org.ballerinalang.psi.impl; +package org.ballerinalang.plugins.idea.psi.impl; import com.intellij.openapi.util.text.StringUtil; import com.intellij.util.PathUtil; diff --git a/src/org/ballerinalang/util/BallerinaUtil.java b/src/org/ballerinalang/plugins/idea/util/BallerinaUtil.java similarity index 89% rename from src/org/ballerinalang/util/BallerinaUtil.java rename to src/org/ballerinalang/plugins/idea/util/BallerinaUtil.java index 093375be605c..70c2f234ee89 100644 --- a/src/org/ballerinalang/util/BallerinaUtil.java +++ b/src/org/ballerinalang/plugins/idea/util/BallerinaUtil.java @@ -14,10 +14,10 @@ * limitations under the License. */ -package org.ballerinalang.util; +package org.ballerinalang.plugins.idea.util; import com.intellij.psi.PsiDirectory; -import org.ballerinalang.psi.impl.BallerinaPsiImplUtil; +import org.ballerinalang.plugins.idea.psi.impl.BallerinaPsiImplUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;