Lines Matching refs:Position
33 Pos scanner.Position
46 func (f *File) Pos() scanner.Position {
47 return scanner.Position{
55 func (f *File) End() scanner.Position {
124 pos := p.scanner.Position
161 if len(comments) > 0 && p.scanner.Position.Line > comments[len(comments)-1].End().Line+1 {
165 comments = append(comments, &Comment{lines, p.scanner.Position})
179 pos := p.scanner.Position
205 func (p *parser) parseAssignment(name string, namePos scanner.Position,
210 pos := p.scanner.Position
250 func (p *parser) parseModule(typ string, typPos scanner.Position) *Module {
253 lbracePos := p.scanner.Position
262 rbracePos := p.scanner.Position
300 namePos := p.scanner.Position
302 pos := p.scanner.Position
342 pos scanner.Position) (*Operator, error) {
388 func (p *parser) addMaps(map1, map2 []*Property, pos scanner.Position) ([]*Property, error) {
431 pos := p.scanner.Position
471 LiteralPos: p.scanner.Position,
488 NamePos: p.scanner.Position,
505 LiteralPos: p.scanner.Position,
514 literalPos := p.scanner.Position
540 lBracePos := p.scanner.Position
562 rBracePos := p.scanner.Position
573 lBracePos := p.scanner.Position
580 rBracePos := p.scanner.Position