Skip to content

Commit

Permalink
Fix parser semantic symbol creation for element hook
Browse files Browse the repository at this point in the history
  • Loading branch information
xllora committed Jun 4, 2016
1 parent ac06b2a commit c41b1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bql/grammar/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (p *Parser) expect(llk *LLk, st *semantic.Statement, s semantic.Symbol, cls
if cls.ProcessedElement != nil {
var ce semantic.ConsumedElement
if elem.isSymbol {
ce = semantic.NewConsumedSymbol(ce.Symbol())
ce = semantic.NewConsumedSymbol(elem.Symbol())
} else {
ce = semantic.NewConsumedToken(tkn)
}
Expand Down

0 comments on commit c41b1d2

Please sign in to comment.