Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #228 from PSPDFKit-labs/add-class-prefix
Browse files Browse the repository at this point in the history
Add --ident-java-type option to djinni
  • Loading branch information
artwyman authored Jan 20, 2017
2 parents c5b923f + 622b870 commit 1d74e31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/source/Main.scala
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ object Main {
note("\nIdentifier styles (ex: \"FooBar\", \"fooBar\", \"foo_bar\", \"FOO_BAR\", \"m_fooBar\")\n")
identStyle("ident-java-enum", c => { javaIdentStyle = javaIdentStyle.copy(enum = c) })
identStyle("ident-java-field", c => { javaIdentStyle = javaIdentStyle.copy(field = c) })
identStyle("ident-java-type", c => { javaIdentStyle = javaIdentStyle.copy(ty = c) })
identStyle("ident-cpp-enum", c => { cppIdentStyle = cppIdentStyle.copy(enum = c) })
identStyle("ident-cpp-field", c => { cppIdentStyle = cppIdentStyle.copy(field = c) })
identStyle("ident-cpp-method", c => { cppIdentStyle = cppIdentStyle.copy(method = c) })
Expand All @@ -209,8 +210,8 @@ object Main {
identStyle("ident-cpp-type-param", c => { cppIdentStyle = cppIdentStyle.copy(typeParam = c) })
identStyle("ident-cpp-local", c => { cppIdentStyle = cppIdentStyle.copy(local = c) })
identStyle("ident-cpp-file", c => { cppFileIdentStyle = c })
identStyle("ident-jni-class", c => {jniClassIdentStyleOptional = Some(c)})
identStyle("ident-jni-file", c => {jniFileIdentStyleOptional = Some(c)})
identStyle("ident-jni-class", c => { jniClassIdentStyleOptional = Some(c)})
identStyle("ident-jni-file", c => { jniFileIdentStyleOptional = Some(c)})
identStyle("ident-objc-enum", c => { objcIdentStyle = objcIdentStyle.copy(enum = c) })
identStyle("ident-objc-field", c => { objcIdentStyle = objcIdentStyle.copy(field = c) })
identStyle("ident-objc-method", c => { objcIdentStyle = objcIdentStyle.copy(method = c) })
Expand Down

0 comments on commit 1d74e31

Please sign in to comment.