Lines Matching refs:Pos

34 	Pos() token.Pos // position of first character belonging to the node  methodSpec
35 End() token.Pos // position of first character immediately after the node
66 Slash token.Pos // position of "/" starting the comment
70 func (c *Comment) Pos() token.Pos { return c.Slash } func
71 func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
80 func (g *CommentGroup) Pos() token.Pos { return g.List[0].Pos() } func
81 func (g *CommentGroup) End() token.Pos { return g.List[len(g.List)-1].End() }
204 func (f *Field) Pos() token.Pos { func
206 return f.Names[0].Pos()
209 return f.Type.Pos()
214 func (f *Field) End() token.Pos {
229 Opening token.Pos // position of opening parenthesis/brace, if any
231 Closing token.Pos // position of closing parenthesis/brace, if any
234 func (f *FieldList) Pos() token.Pos { func
241 return f.List[0].Pos()
246 func (f *FieldList) End() token.Pos {
282 From, To token.Pos // position range of bad expression
287 NamePos token.Pos // identifier position
296 Ellipsis token.Pos // position of "..."
302 ValuePos token.Pos // literal position
316 Lbrace token.Pos // position of "{"
318 Rbrace token.Pos // position of "}"
324 Lparen token.Pos // position of "("
326 Rparen token.Pos // position of ")"
338 Lbrack token.Pos // position of "["
340 Rbrack token.Pos // position of "]"
347 Lbrack token.Pos // position of "["
349 Rbrack token.Pos // position of "]"
355 Lbrack token.Pos // position of "["
360 Rbrack token.Pos // position of "]"
368 Lparen token.Pos // position of "("
370 Rparen token.Pos // position of ")"
376 Lparen token.Pos // position of "("
378 Ellipsis token.Pos // position of "..." (token.NoPos if there is no "...")
379 Rparen token.Pos // position of ")"
386 Star token.Pos // position of "*"
394 OpPos token.Pos // position of Op
402 OpPos token.Pos // position of Op
412 Colon token.Pos // position of ":"
434 Lbrack token.Pos // position of "["
441 Struct token.Pos // position of "struct" keyword
450 Func token.Pos // position of "func" keyword (token.NoPos if there is no "func")
458 Interface token.Pos // position of "interface" keyword
465 Map token.Pos // position of "map" keyword
472 Begin token.Pos // position of "chan" keyword or "<-" (whichever comes first)
473 Arrow token.Pos // position of "<-" (token.NoPos if there is no "<-")
481 func (x *BadExpr) Pos() token.Pos { return x.From } func
482 func (x *Ident) Pos() token.Pos { return x.NamePos } func
483 func (x *Ellipsis) Pos() token.Pos { return x.Ellipsis } func
484 func (x *BasicLit) Pos() token.Pos { return x.ValuePos } func
485 func (x *FuncLit) Pos() token.Pos { return x.Type.Pos() } func
486 func (x *CompositeLit) Pos() token.Pos { func
488 return x.Type.Pos()
492 func (x *ParenExpr) Pos() token.Pos { return x.Lparen } func
493 func (x *SelectorExpr) Pos() token.Pos { return x.X.Pos() } func
494 func (x *IndexExpr) Pos() token.Pos { return x.X.Pos() } func
495 func (x *IndexListExpr) Pos() token.Pos { return x.X.Pos() } func
496 func (x *SliceExpr) Pos() token.Pos { return x.X.Pos() } func
497 func (x *TypeAssertExpr) Pos() token.Pos { return x.X.Pos() } func
498 func (x *CallExpr) Pos() token.Pos { return x.Fun.Pos() } func
499 func (x *StarExpr) Pos() token.Pos { return x.Star } func
500 func (x *UnaryExpr) Pos() token.Pos { return x.OpPos } func
501 func (x *BinaryExpr) Pos() token.Pos { return x.X.Pos() } func
502 func (x *KeyValueExpr) Pos() token.Pos { return x.Key.Pos() } func
503 func (x *ArrayType) Pos() token.Pos { return x.Lbrack } func
504 func (x *StructType) Pos() token.Pos { return x.Struct } func
505 func (x *FuncType) Pos() token.Pos { func
509 return x.Params.Pos() // interface method declarations have no "func" keyword
511 func (x *InterfaceType) Pos() token.Pos { return x.Interface } func
512 func (x *MapType) Pos() token.Pos { return x.Map } func
513 func (x *ChanType) Pos() token.Pos { return x.Begin } func
515 func (x *BadExpr) End() token.Pos { return x.To }
516 func (x *Ident) End() token.Pos { return token.Pos(int(x.NamePos) + len(x.Name)) }
517 func (x *Ellipsis) End() token.Pos {
523 func (x *BasicLit) End() token.Pos { return token.Pos(int(x.ValuePos) + len(x.Value)) }
524 func (x *FuncLit) End() token.Pos { return x.Body.End() }
525 func (x *CompositeLit) End() token.Pos { return x.Rbrace + 1 }
526 func (x *ParenExpr) End() token.Pos { return x.Rparen + 1 }
527 func (x *SelectorExpr) End() token.Pos { return x.Sel.End() }
528 func (x *IndexExpr) End() token.Pos { return x.Rbrack + 1 }
529 func (x *IndexListExpr) End() token.Pos { return x.Rbrack + 1 }
530 func (x *SliceExpr) End() token.Pos { return x.Rbrack + 1 }
531 func (x *TypeAssertExpr) End() token.Pos { return x.Rparen + 1 }
532 func (x *CallExpr) End() token.Pos { return x.Rparen + 1 }
533 func (x *StarExpr) End() token.Pos { return x.X.End() }
534 func (x *UnaryExpr) End() token.Pos { return x.X.End() }
535 func (x *BinaryExpr) End() token.Pos { return x.Y.End() }
536 func (x *KeyValueExpr) End() token.Pos { return x.Value.End() }
537 func (x *ArrayType) End() token.Pos { return x.Elt.End() }
538 func (x *StructType) End() token.Pos { return x.Fields.End() }
539 func (x *FuncType) End() token.Pos {
545 func (x *InterfaceType) End() token.Pos { return x.Methods.End() }
546 func (x *MapType) End() token.Pos { return x.Value.End() }
547 func (x *ChanType) End() token.Pos { return x.Value.End() }
612 From, To token.Pos // position range of bad statement
625 Semicolon token.Pos // position of following ";"
632 Colon token.Pos // position of ":"
646 Arrow token.Pos // position of "<-"
653 TokPos token.Pos // position of Tok
662 TokPos token.Pos // position of Tok
669 Go token.Pos // position of "go" keyword
675 Defer token.Pos // position of "defer" keyword
681 Return token.Pos // position of "return" keyword
689 TokPos token.Pos // position of Tok
696 Lbrace token.Pos // position of "{"
698 Rbrace token.Pos // position of "}", if any (may be absent due to syntax error)
703 If token.Pos // position of "if" keyword
712 Case token.Pos // position of "case" or "default" keyword
714 Colon token.Pos // position of ":"
720 Switch token.Pos // position of "switch" keyword
728 Switch token.Pos // position of "switch" keyword
736 Case token.Pos // position of "case" or "default" keyword
738 Colon token.Pos // position of ":"
744 Select token.Pos // position of "select" keyword
750 For token.Pos // position of "for" keyword
759 For token.Pos // position of "for" keyword
761 TokPos token.Pos // position of Tok; invalid if Key == nil
770 func (s *BadStmt) Pos() token.Pos { return s.From } func
771 func (s *DeclStmt) Pos() token.Pos { return s.Decl.Pos() } func
772 func (s *EmptyStmt) Pos() token.Pos { return s.Semicolon } func
773 func (s *LabeledStmt) Pos() token.Pos { return s.Label.Pos() } func
774 func (s *ExprStmt) Pos() token.Pos { return s.X.Pos() } func
775 func (s *SendStmt) Pos() token.Pos { return s.Chan.Pos() } func
776 func (s *IncDecStmt) Pos() token.Pos { return s.X.Pos() } func
777 func (s *AssignStmt) Pos() token.Pos { return s.Lhs[0].Pos() } func
778 func (s *GoStmt) Pos() token.Pos { return s.Go } func
779 func (s *DeferStmt) Pos() token.Pos { return s.Defer } func
780 func (s *ReturnStmt) Pos() token.Pos { return s.Return } func
781 func (s *BranchStmt) Pos() token.Pos { return s.TokPos } func
782 func (s *BlockStmt) Pos() token.Pos { return s.Lbrace } func
783 func (s *IfStmt) Pos() token.Pos { return s.If } func
784 func (s *CaseClause) Pos() token.Pos { return s.Case } func
785 func (s *SwitchStmt) Pos() token.Pos { return s.Switch } func
786 func (s *TypeSwitchStmt) Pos() token.Pos { return s.Switch } func
787 func (s *CommClause) Pos() token.Pos { return s.Case } func
788 func (s *SelectStmt) Pos() token.Pos { return s.Select } func
789 func (s *ForStmt) Pos() token.Pos { return s.For } func
790 func (s *RangeStmt) Pos() token.Pos { return s.For } func
792 func (s *BadStmt) End() token.Pos { return s.To }
793 func (s *DeclStmt) End() token.Pos { return s.Decl.End() }
794 func (s *EmptyStmt) End() token.Pos {
800 func (s *LabeledStmt) End() token.Pos { return s.Stmt.End() }
801 func (s *ExprStmt) End() token.Pos { return s.X.End() }
802 func (s *SendStmt) End() token.Pos { return s.Value.End() }
803 func (s *IncDecStmt) End() token.Pos {
806 func (s *AssignStmt) End() token.Pos { return s.Rhs[len(s.Rhs)-1].End() }
807 func (s *GoStmt) End() token.Pos { return s.Call.End() }
808 func (s *DeferStmt) End() token.Pos { return s.Call.End() }
809 func (s *ReturnStmt) End() token.Pos {
815 func (s *BranchStmt) End() token.Pos {
819 return token.Pos(int(s.TokPos) + len(s.Tok.String()))
821 func (s *BlockStmt) End() token.Pos {
830 func (s *IfStmt) End() token.Pos {
836 func (s *CaseClause) End() token.Pos {
842 func (s *SwitchStmt) End() token.Pos { return s.Body.End() }
843 func (s *TypeSwitchStmt) End() token.Pos { return s.Body.End() }
844 func (s *CommClause) End() token.Pos {
850 func (s *SelectStmt) End() token.Pos { return s.Body.End() }
851 func (s *ForStmt) End() token.Pos { return s.Body.End() }
852 func (s *RangeStmt) End() token.Pos { return s.Body.End() }
898 EndPos token.Pos // end of spec (overrides Path.Pos if nonzero)
917 Assign token.Pos // position of '=', if any
925 func (s *ImportSpec) Pos() token.Pos { func
927 return s.Name.Pos()
929 return s.Path.Pos()
931 func (s *ValueSpec) Pos() token.Pos { return s.Names[0].Pos() } func
932 func (s *TypeSpec) Pos() token.Pos { return s.Name.Pos() } func
934 func (s *ImportSpec) End() token.Pos {
941 func (s *ValueSpec) End() token.Pos {
950 func (s *TypeSpec) End() token.Pos { return s.Type.End() }
967 From, To token.Pos // position range of bad declaration
983 TokPos token.Pos // position of Tok
985 Lparen token.Pos // position of '(', if any
987 Rparen token.Pos // position of ')', if any
1002 func (d *BadDecl) Pos() token.Pos { return d.From } func
1003 func (d *GenDecl) Pos() token.Pos { return d.TokPos } func
1004 func (d *FuncDecl) Pos() token.Pos { return d.Type.Pos() } func
1006 func (d *BadDecl) End() token.Pos { return d.To }
1007 func (d *GenDecl) End() token.Pos {
1013 func (d *FuncDecl) End() token.Pos {
1051 Package token.Pos // position of "package" keyword
1060 func (f *File) Pos() token.Pos { return f.Package } func
1061 func (f *File) End() token.Pos {
1078 func (p *Package) Pos() token.Pos { return token.NoPos } func
1079 func (p *Package) End() token.Pos { return token.NoPos }