-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Partial conversion of the
model
package to Kotlin (#1455)
* WIP * WIP * WIP * merge nondeterminism fixes * WIP * Further work on kotlin conversion of model * Signature converted * More Signature updates * Update gradle version, fix deprecations, change XJC task configuration, add foojay resolver to buildSrc * further updates to signature * Move FhirLibrarySourceLoader to correct project * Kotlin for LibraryRef, InstantiationResult * FunctionHeader * Fix usage of spread operator * Version * PropertyResolution, OperatorResolution, Operator * Add Kotlin toolchain back * Small code reduction (#1456) Small suggestions * Fixes for Sonar * QueryContext * Suppress warnings on refactored code * Fixes for Sonar warnings * Make version pattern a constant --------- Co-authored-by: Anton Vasetenkov <[email protected]>
- Loading branch information
Showing
48 changed files
with
3,722 additions
and
4,071 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
61 changes: 0 additions & 61 deletions
61
Src/java/cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/model/CallContext.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
Src/java/cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/model/CallContext.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,35 @@ | ||
package org.cqframework.cql.cql2elm.model | ||
|
||
import org.hl7.cql.model.DataType | ||
|
||
class CallContext( | ||
val libraryName: String?, | ||
val operatorName: String, | ||
val allowPromotionAndDemotion: Boolean, | ||
val allowFluent: Boolean, | ||
val mustResolve: Boolean, | ||
operandTypes: List<DataType> | ||
) { | ||
constructor( | ||
libraryName: String?, | ||
operatorName: String, | ||
allowPromotionAndDemotion: Boolean, | ||
allowFluent: Boolean, | ||
mustResolve: Boolean, | ||
vararg operandTypes: DataType | ||
) : this( | ||
libraryName, | ||
operatorName, | ||
allowPromotionAndDemotion, | ||
allowFluent, | ||
mustResolve, | ||
operandTypes.toList() | ||
) | ||
|
||
val signature: Signature | ||
|
||
init { | ||
require(operatorName.isNotEmpty()) { "operatorName is empty" } | ||
signature = Signature(operandTypes) | ||
} | ||
} |
131 changes: 0 additions & 131 deletions
131
Src/java/cql-to-elm/src/main/java/org/cqframework/cql/cql2elm/model/Chunk.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.