-
Notifications
You must be signed in to change notification settings - Fork 0
[RE-361] add datetime operator #10
base: main
Are you sure you want to change the base?
Conversation
parser/datetime_operation.go
Outdated
} | ||
|
||
func (o *DateTimeOperation) get(left Operand, right Operand) (time.Time, time.Time, error) { | ||
if left == nil { |
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.
esta linea o no es necesaria y/o se puede mover al metodo getTime
parser/datetime_operation.go
Outdated
NullOperation | ||
} | ||
|
||
func (o *DateTimeOperation) getTime(operand Operand) (time.Time, error) { |
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.
opinion: dejando lo metodos visibles al inicio el package queda mas legible para el uso
@@ -1643,7 +1677,7 @@ func (p *JsonQueryParser) Value() (localctx IValueContext) { | |||
p.EnterRule(localctx, 6, JsonQueryParserRULE_value) | |||
var _la int | |||
|
|||
p.SetState(95) | |||
p.SetState(96) |
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.
estos números de estado que son o como fucionan y si podemos hace una forma para no tener que cambiarlos con otro cambio, por ejemplo usando constantes.
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.
Ese codigo es autogenerado. No se cambia a mano.
No description provided.