Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #243 from codiga/new-ast-types
Browse files Browse the repository at this point in the history
#242: Add support for variabledeclaration and any AST types
  • Loading branch information
dastrong-codiga authored Jan 25, 2023
2 parents beacf0a + bb3d370 commit 36f7d95
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginGroup=codiga.io.plugins
pluginName=codiga-jetbrains-plugin
pluginVersion=1.8.15
pluginVersion=1.8.16
pluginSinceBuild=213
pluginUntilBuild=223.*
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
Expand Down
2 changes: 1 addition & 1 deletion src/main/graphql/io/codiga/api/schema.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ final class RosieRuleAstTypes {
private final static String ENTITY_CHECKED_HTML_ELEMENT = "htmlelement";
private final static String ENTITY_CHECKED_CLASS_DEFINITION = "classdefinition";
private final static String ENTITY_CHECKED_FUNCTION_EXPRESSION = "functionexpression";
private final static String ENTITY_CHECKED_VARIABLE_DECLARATION = "variabledeclaration";
private final static String ENTITY_CHECKED_ANY = "any";

/**
* Maps the argument element checked to its Rosie counterpart value.
Expand Down Expand Up @@ -51,6 +53,10 @@ static String elementCheckedToRosieEntityChecked(ElementCheckedEnumeration eleme
return ENTITY_CHECKED_CLASS_DEFINITION;
case FUNCTIONEXPRESSION:
return ENTITY_CHECKED_FUNCTION_EXPRESSION;
case VARIABLEDECLARATION:
return ENTITY_CHECKED_VARIABLE_DECLARATION;
case ANY:
return ENTITY_CHECKED_ANY;
default:
return null;
}
Expand Down

0 comments on commit 36f7d95

Please sign in to comment.