-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOPE-239: implemented all objectFunctions with extensions for cm and added tests #64
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you purposefully leave out the OBJECT_FIELD function because of the ObjectEntry?
...gon/dope/resolvable/expression/unaliased/type/function/object/ObjectInnerValuesExpression.kt
Outdated
Show resolved
Hide resolved
...ch/ergon/dope/resolvable/expression/unaliased/type/function/object/ObjectUnwrapExpression.kt
Outdated
Show resolved
Hide resolved
...rgon/dope/resolvable/expression/unaliased/type/function/object/ObjectRemoveExpressionTest.kt
Outdated
Show resolved
Hide resolved
...-map-connector/src/main/kotlin/ch/ergon/dope/extension/type/objectfunction/ObjectFunction.kt
Show resolved
Hide resolved
...-map-connector/src/main/kotlin/ch/ergon/dope/extension/type/objectfunction/ObjectFunction.kt
Show resolved
Hide resolved
...-map-connector/src/main/kotlin/ch/ergon/dope/extension/type/objectfunction/ObjectFunction.kt
Show resolved
Hide resolved
...ch/ergon/dope/resolvable/expression/unaliased/type/function/object/ObjectRenameExpression.kt
Show resolved
Hide resolved
.../ch/ergon/dope/resolvable/expression/unaliased/type/function/object/ObjectFieldExpression.kt
Show resolved
Hide resolved
.../ch/ergon/dope/resolvable/expression/unaliased/type/function/object/ObjectFieldExpression.kt
Show resolved
Hide resolved
.../ch/ergon/dope/resolvable/expression/unaliased/type/function/object/ObjectFieldExpression.kt
Show resolved
Hide resolved
.../ch/ergon/dope/resolvable/expression/unaliased/type/function/object/ObjectFieldExpression.kt
Show resolved
Hide resolved
...gon/dope/resolvable/expression/unaliased/type/function/object/ObjectInnerValuesExpression.kt
Outdated
Show resolved
Hide resolved
...-map-connector/src/main/kotlin/ch/ergon/dope/extension/type/objectfunction/ObjectFunction.kt
Show resolved
Hide resolved
...-map-connector/src/main/kotlin/ch/ergon/dope/extension/type/objectfunction/ObjectFunction.kt
Show resolved
Hide resolved
...tal-map-connector/src/test/kotlin/ch/ergon/dope/extensions/type/object/ObjectFunctionTest.kt
Show resolved
Hide resolved
...tal-map-connector/src/test/kotlin/ch/ergon/dope/extensions/type/object/ObjectFunctionTest.kt
Show resolved
Hide resolved
...tal-map-connector/src/test/kotlin/ch/ergon/dope/extensions/type/object/ObjectFunctionTest.kt
Show resolved
Hide resolved
...gon/dope/resolvable/expression/unaliased/type/function/object/ObjectInnerValuesExpression.kt
Outdated
Show resolved
Hide resolved
… can return array of different types
2da79e1
to
c5b7e69
Compare
newAttributeKey: TypeExpression<StringType>, | ||
newAttributeValue: TypeExpression<out ValidType>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a ObjectEntryPrimitive?
objectExpression: TypeExpression<ObjectType>, | ||
) : FunctionExpression<NumberType>("OBJECT_LENGTH", objectExpression) | ||
|
||
fun TypeExpression<ObjectType>.length() = ObjectLengthExpression(this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should be consistent with arrays. Using arrays we don't use extension-functions and name it arrayLength. It's confusing for the user if we change the syntax always
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Comment is for all the object-functions)
|
||
class ObjectRenameExpression( | ||
objectExpression: TypeExpression<ObjectType>, | ||
oldField: TypeExpression<StringType>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would go for oldFieldName and newFieldName
|
||
class ObjectValuesExpression( | ||
objectExpression: TypeExpression<ObjectType>, | ||
) : FunctionExpression<ArrayType<StringType>>("OBJECT_VALUES", objectExpression) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not correct right? I guess it returns an array of ValidType
No description provided.