Signature positions are stored properly
This commit is contained in:
parent
498df4fad8
commit
775671442b
|
@ -10,12 +10,12 @@ var startTokensSignature = []lexer.TokenKind { lexer.LBracket }
|
|||
func (this *Parser) parseSignature () (*entity.Signature, error) {
|
||||
err := this.expectDesc(descriptionSignature, startTokensSignature...)
|
||||
if err != nil { return nil, err }
|
||||
pos := this.pos()
|
||||
err = this.expectNext(lexer.Ident)
|
||||
if err != nil { return nil, err }
|
||||
signature := &entity.Signature{
|
||||
Position: this.pos(),
|
||||
Position: pos,
|
||||
Name: this.value(),
|
||||
|
||||
}
|
||||
this.next()
|
||||
|
||||
|
|
Loading…
Reference in New Issue