-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert cql-to-elm preprocessor Java code to Kotlin (#1450)
* Rename .java to .kt * Convert cql-to-elm preprocessor Java code to Kotlin * Use builtin methods for size and length checks * Use builtin trimStart method * Use more builtin methods and vals * Cleanup * Cleanup * Couple of tweaks * More clean-up --------- Co-authored-by: JP <[email protected]>
- Loading branch information
Showing
29 changed files
with
1,467 additions
and
2,078 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
35 changes: 0 additions & 35 deletions
35
Src/java/cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/BaseInfo.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
Src/java/cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/BaseInfo.kt
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,9 @@ | ||
package org.cqframework.cql.cql2elm.preprocessor | ||
|
||
import org.antlr.v4.runtime.misc.Interval | ||
import org.antlr.v4.runtime.tree.ParseTree | ||
|
||
open class BaseInfo(open val definition: ParseTree?) { | ||
var header: String? = null | ||
var headerInterval: Interval? = null | ||
} |
37 changes: 0 additions & 37 deletions
37
...cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/CodeDefinitionInfo.java
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...a/cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/CodeDefinitionInfo.kt
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,7 @@ | ||
package org.cqframework.cql.cql2elm.preprocessor | ||
|
||
import org.cqframework.cql.gen.cqlParser.CodeDefinitionContext | ||
|
||
/** Created by Bryn on 5/22/2016. */ | ||
class CodeDefinitionInfo(val name: String, override val definition: CodeDefinitionContext) : | ||
BaseInfo(definition) |
34 changes: 0 additions & 34 deletions
34
...-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/CodesystemDefinitionInfo.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/CodesystemDefinitionInfo.kt
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,8 @@ | ||
package org.cqframework.cql.cql2elm.preprocessor | ||
|
||
import org.cqframework.cql.gen.cqlParser.CodesystemDefinitionContext | ||
|
||
class CodesystemDefinitionInfo( | ||
val name: String, | ||
override val definition: CodesystemDefinitionContext | ||
) : BaseInfo(definition) |
37 changes: 0 additions & 37 deletions
37
...-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/ConceptDefinitionInfo.java
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...ql-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/ConceptDefinitionInfo.kt
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,7 @@ | ||
package org.cqframework.cql.cql2elm.preprocessor | ||
|
||
import org.cqframework.cql.gen.cqlParser.ConceptDefinitionContext | ||
|
||
/** Created by Bryn on 5/22/2016. */ | ||
class ConceptDefinitionInfo(val name: String, override val definition: ConceptDefinitionContext) : | ||
BaseInfo(definition) |
24 changes: 0 additions & 24 deletions
24
...-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/ContextDefinitionInfo.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...ql-to-elm/src/main/java/org/cqframework/cql/cql2elm/preprocessor/ContextDefinitionInfo.kt
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,8 @@ | ||
package org.cqframework.cql.cql2elm.preprocessor | ||
|
||
import org.cqframework.cql.gen.cqlParser.ContextDefinitionContext | ||
|
||
class ContextDefinitionInfo(override val definition: ContextDefinitionContext) : | ||
BaseInfo(definition) { | ||
var context: String? = null | ||
} |
Oops, something went wrong.