Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
DavePearce committed Dec 9, 2024
1 parent 6bec8ad commit 9c9f095
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/corset/translator.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ func (t *translator) translateExpressionsInModule(exprs []Expr, module string) (
func (t *translator) translateExpressionInModule(expr Expr, module string, shift int) (hir.Expr, []SyntaxError) {
if e, ok := expr.(*Constant); ok {
var val fr.Element
// Initialise field from bigint
val.SetBigInt(&e.Val)
//
return &hir.Constant{Val: val}, nil
} else if v, ok := expr.(*Add); ok {
args, errs := t.translateExpressionsInModule(v.Args, module)
Expand Down Expand Up @@ -423,7 +425,8 @@ func (t *translator) translateShiftInModule(expr *Shift, module string, shift in
return t.translateExpressionInModule(expr.Arg, module, shift+int(constant.Int64()))
}

func (t *translator) translateVariableAccessInModule(expr *VariableAccess, module string, shift int) (hir.Expr, []SyntaxError) {
func (t *translator) translateVariableAccessInModule(expr *VariableAccess, module string,
shift int) (hir.Expr, []SyntaxError) {
if binding, ok := expr.Binding().(*ColumnBinding); ok {
// Lookup column binding
cinfo := t.env.Column(binding.module, expr.Name())
Expand Down

0 comments on commit 9c9f095

Please sign in to comment.