Skip to content
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

[RE-361] add datetime operator #10

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ezerozen
Copy link

@ezerozen ezerozen commented Jan 9, 2024

No description provided.

}

func (o *DateTimeOperation) get(left Operand, right Operand) (time.Time, time.Time, error) {
if left == nil {
Copy link

@mibarrera01 mibarrera01 Jan 10, 2024

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

NullOperation
}

func (o *DateTimeOperation) getTime(operand Operand) (time.Time, error) {

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

@ezerozen ezerozen requested a review from mibarrera01 January 10, 2024 13:21
@@ -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)
Copy link

@mibarrera01 mibarrera01 Jan 10, 2024

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.

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants