Skip to content

Commit

Permalink
fixed: interfaces can now have const methods (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jothepro authored Nov 17, 2020
1 parent 6f95332 commit cbc8792
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## [Unreleased]
### Fixed
- interfaces can now have `const` methods.

## [0.10.1]
### Fixed
- problem with new `flags` support: `all` and `none` must not interpreted as language keywords.

## [0.10.0]
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.github.cross_language_cpp.djinni_intellij_plugin
pluginName_ = djinni-intellij-plugin
pluginVersion = 0.10.1
pluginVersion = 0.10.2
pluginSinceBuild = 193
pluginUntilBuild = 202.*

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ interfaceTypeVariant ::= interface generator*

interfaceMember ::= constMember | interfaceMemberFunction

interfaceMemberFunction ::= [static] identifier LEFT_PARAM_BRACE interfaceFunctionParamList? RIGHT_PARAM_BRACE [COLON typeReference] SEMICOLON
interfaceMemberFunction ::= [static | const] identifier LEFT_PARAM_BRACE interfaceFunctionParamList? RIGHT_PARAM_BRACE [COLON typeReference] SEMICOLON

interfaceFunctionParamList ::= (interfaceFunctionParam ',' interfaceFunctionParamList) | interfaceFunctionParam

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public String getDemoText() {
"my_cpp_interface = interface +c {\n" +
" method_returning_nothing(value: i32);\n" +
" method_returning_some_type(key: string): another_record;\n" +
" const method_changing_nothing(): i32;\n" +
" static get_version(): i32;\n" +
"\n" +
" # Interfaces can also have constants\n" +
Expand Down

0 comments on commit cbc8792

Please sign in to comment.