generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for aggregate/entity binding by impl
- Loading branch information
Showing
6 changed files
with
229 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/// Hello Got event ? | ||
impl HelloGot { | ||
aggregate: Hello; | ||
endpoint { | ||
GET "/hello"; | ||
response: String; | ||
} | ||
} | ||
|
||
layered DDD { | ||
// by default | ||
dependency { | ||
"interface" -> "application" | ||
"interface" -> "domain" | ||
"domain" -> "application" | ||
"application" -> "infrastructure" | ||
"interface" -> "infrastructure" | ||
} | ||
layer interface { | ||
package: "com.feakin.demo.rest"; | ||
} | ||
layer domain { | ||
package: "com.feakin.demo.domain"; | ||
} | ||
layer application { | ||
package: "com.feakin.demo.application"; | ||
} | ||
layer infrastructure { | ||
package: "com.feakin.demo.infrastructure"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
Feakin | ||
PsiComment(FeakinTokenType.COMMENT)('/// Hello Got event ?') | ||
PsiWhiteSpace('\n') | ||
FkDeclarationImpl(DECLARATION) | ||
FkImplDeclarationImpl(IMPL_DECLARATION) | ||
PsiElement(FeakinTokenType.impl)('impl') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.IDENTIFIER)('HelloGot') | ||
PsiWhiteSpace(' ') | ||
FkImplBodyImpl(IMPL_BODY) | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
FkSetTargetObjectImpl(SET_TARGET_OBJECT) | ||
PsiElement(FeakinTokenType.aggregate)('aggregate') | ||
PsiElement(FeakinTokenType.:)(':') | ||
PsiWhiteSpace(' ') | ||
FkSetAggregateNameImpl(SET_AGGREGATE_NAME) | ||
PsiElement(FeakinTokenType.IDENTIFIER)('Hello') | ||
PsiElement(FeakinTokenType.;)(';') | ||
PsiWhiteSpace('\n ') | ||
FkEndpointDeclarationImpl(ENDPOINT_DECLARATION) | ||
PsiElement(FeakinTokenType.endpoint)('endpoint') | ||
PsiWhiteSpace(' ') | ||
FkEndpointBodyImpl(ENDPOINT_BODY) | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
FkRequestDeclarationImpl(REQUEST_DECLARATION) | ||
FkHttpMethodImpl(HTTP_METHOD) | ||
PsiElement(FeakinTokenType.GET)('GET') | ||
PsiWhiteSpace(' ') | ||
FkUriImpl(URI) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"/hello"') | ||
PsiElement(FeakinTokenType.;)(';') | ||
PsiWhiteSpace('\n ') | ||
FkResponseDeclarationImpl(RESPONSE_DECLARATION) | ||
PsiElement(FeakinTokenType.response)('response') | ||
PsiElement(FeakinTokenType.:)(':') | ||
PsiWhiteSpace(' ') | ||
FkResponseEntityNameImpl(RESPONSE_ENTITY_NAME) | ||
PsiElement(FeakinTokenType.IDENTIFIER)('String') | ||
PsiElement(FeakinTokenType.;)(';') | ||
PsiWhiteSpace('\n ') | ||
PsiElement(FeakinTokenType.})('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(FeakinTokenType.})('}') | ||
PsiWhiteSpace('\n\n') | ||
FkDeclarationImpl(DECLARATION) | ||
FkLayeredDeclarationImpl(LAYERED_DECLARATION) | ||
PsiElement(FeakinTokenType.layered)('layered') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.IDENTIFIER)('DDD') | ||
PsiWhiteSpace(' ') | ||
FkLayeredBodyImpl(LAYERED_BODY) | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
PsiComment(FeakinTokenType.COMMENT)('// by default') | ||
PsiWhiteSpace('\n ') | ||
FkDependencyImpl(DEPENDENCY) | ||
PsiElement(FeakinTokenType.dependency)('dependency') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
FkDependencyBodyImpl(DEPENDENCY_BODY) | ||
FkDependencyRuleImpl(DEPENDENCY_RULE) | ||
FkDepSourceImpl(DEP_SOURCE) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"interface"') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.->)('->') | ||
PsiWhiteSpace(' ') | ||
FkDepTargetImpl(DEP_TARGET) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"application"') | ||
PsiWhiteSpace('\n ') | ||
FkDependencyRuleImpl(DEPENDENCY_RULE) | ||
FkDepSourceImpl(DEP_SOURCE) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"interface"') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.->)('->') | ||
PsiWhiteSpace(' ') | ||
FkDepTargetImpl(DEP_TARGET) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"domain"') | ||
PsiWhiteSpace('\n ') | ||
FkDependencyRuleImpl(DEPENDENCY_RULE) | ||
FkDepSourceImpl(DEP_SOURCE) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"domain"') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.->)('->') | ||
PsiWhiteSpace(' ') | ||
FkDepTargetImpl(DEP_TARGET) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"application"') | ||
PsiWhiteSpace('\n ') | ||
FkDependencyRuleImpl(DEPENDENCY_RULE) | ||
FkDepSourceImpl(DEP_SOURCE) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"application"') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.->)('->') | ||
PsiWhiteSpace(' ') | ||
FkDepTargetImpl(DEP_TARGET) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"infrastructure"') | ||
PsiWhiteSpace('\n ') | ||
FkDependencyRuleImpl(DEPENDENCY_RULE) | ||
FkDepSourceImpl(DEP_SOURCE) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"interface"') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.->)('->') | ||
PsiWhiteSpace(' ') | ||
FkDepTargetImpl(DEP_TARGET) | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"infrastructure"') | ||
PsiWhiteSpace('\n ') | ||
PsiElement(FeakinTokenType.})('}') | ||
PsiWhiteSpace('\n ') | ||
FkLayerDeclarationImpl(LAYER_DECLARATION) | ||
PsiElement(FeakinTokenType.layer)('layer') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.IDENTIFIER)('interface') | ||
PsiWhiteSpace(' ') | ||
FkLayerBodyImpl(LAYER_BODY) | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
FkPackageNameImpl(PACKAGE_NAME) | ||
PsiElement(FeakinTokenType.package)('package') | ||
PsiElement(FeakinTokenType.:)(':') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"com.feakin.demo.rest"') | ||
PsiElement(FeakinTokenType.;)(';') | ||
PsiWhiteSpace('\n ') | ||
PsiElement(FeakinTokenType.})('}') | ||
PsiWhiteSpace('\n ') | ||
FkLayerDeclarationImpl(LAYER_DECLARATION) | ||
PsiElement(FeakinTokenType.layer)('layer') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.IDENTIFIER)('domain') | ||
PsiWhiteSpace(' ') | ||
FkLayerBodyImpl(LAYER_BODY) | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
FkPackageNameImpl(PACKAGE_NAME) | ||
PsiElement(FeakinTokenType.package)('package') | ||
PsiElement(FeakinTokenType.:)(':') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"com.feakin.demo.domain"') | ||
PsiElement(FeakinTokenType.;)(';') | ||
PsiWhiteSpace('\n ') | ||
PsiElement(FeakinTokenType.})('}') | ||
PsiWhiteSpace('\n ') | ||
FkLayerDeclarationImpl(LAYER_DECLARATION) | ||
PsiElement(FeakinTokenType.layer)('layer') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.IDENTIFIER)('application') | ||
PsiWhiteSpace(' ') | ||
FkLayerBodyImpl(LAYER_BODY) | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
FkPackageNameImpl(PACKAGE_NAME) | ||
PsiElement(FeakinTokenType.package)('package') | ||
PsiElement(FeakinTokenType.:)(':') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"com.feakin.demo.application"') | ||
PsiElement(FeakinTokenType.;)(';') | ||
PsiWhiteSpace('\n ') | ||
PsiElement(FeakinTokenType.})('}') | ||
PsiWhiteSpace('\n ') | ||
FkLayerDeclarationImpl(LAYER_DECLARATION) | ||
PsiElement(FeakinTokenType.layer)('layer') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.IDENTIFIER)('infrastructure') | ||
PsiWhiteSpace(' ') | ||
FkLayerBodyImpl(LAYER_BODY) | ||
PsiElement(FeakinTokenType.{)('{') | ||
PsiWhiteSpace('\n ') | ||
FkPackageNameImpl(PACKAGE_NAME) | ||
PsiElement(FeakinTokenType.package)('package') | ||
PsiElement(FeakinTokenType.:)(':') | ||
PsiWhiteSpace(' ') | ||
PsiElement(FeakinTokenType.STRING_LITERAL)('"com.feakin.demo.infrastructure"') | ||
PsiElement(FeakinTokenType.;)(';') | ||
PsiWhiteSpace('\n ') | ||
PsiElement(FeakinTokenType.})('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(FeakinTokenType.})('}') |