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
61 Slash token.Pos // position of "/" starting the comment
65 func (c *Comment) Pos() token.Pos { return c.Slash } func
66 func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
75 func (g *CommentGroup) Pos() token.Pos { return g.List[0].Pos() } func
76 func (g *CommentGroup) End() token.Pos { return g.List[len(g.List)-1].End() }
165 func (f *Field) Pos() token.Pos { func
167 return f.Names[0].Pos()
169 return f.Type.Pos()
172 func (f *Field) End() token.Pos {
181 Opening token.Pos // position of opening parenthesis/brace, if any
183 Closing token.Pos // position of closing parenthesis/brace, if any
186 func (f *FieldList) Pos() token.Pos { func
193 return f.List[0].Pos()
198 func (f *FieldList) End() token.Pos {
234 From, To token.Pos // position range of bad expression
239 NamePos token.Pos // identifier position
248 Ellipsis token.Pos // position of "..."
254 ValuePos token.Pos // literal position
268 Lbrace token.Pos // position of "{"
270 Rbrace token.Pos // position of "}"
276 Lparen token.Pos // position of "("
278 Rparen token.Pos // position of ")"
290 Lbrack token.Pos // position of "["
292 Rbrack token.Pos // position of "]"
298 Lbrack token.Pos // position of "["
303 Rbrack token.Pos // position of "]"
311 Lparen token.Pos // position of "("
313 Rparen token.Pos // position of ")"
319 Lparen token.Pos // position of "("
321 Ellipsis token.Pos // position of "..." (token.NoPos if there is no "...")
322 Rparen token.Pos // position of ")"
329 Star token.Pos // position of "*"
337 OpPos token.Pos // position of Op
345 OpPos token.Pos // position of Op
355 Colon token.Pos // position of ":"
377 Lbrack token.Pos // position of "["
384 Struct token.Pos // position of "struct" keyword
393 Func token.Pos // position of "func" keyword (token.NoPos if there is no "func")
400 Interface token.Pos // position of "interface" keyword
407 Map token.Pos // position of "map" keyword
414 Begin token.Pos // position of "chan" keyword or "<-" (whichever comes first)
415 Arrow token.Pos // position of "<-" (token.NoPos if there is no "<-")
423 func (x *BadExpr) Pos() token.Pos { return x.From } func
424 func (x *Ident) Pos() token.Pos { return x.NamePos } func
425 func (x *Ellipsis) Pos() token.Pos { return x.Ellipsis } func
426 func (x *BasicLit) Pos() token.Pos { return x.ValuePos } func
427 func (x *FuncLit) Pos() token.Pos { return x.Type.Pos() } func
428 func (x *CompositeLit) Pos() token.Pos { func
430 return x.Type.Pos()
434 func (x *ParenExpr) Pos() token.Pos { return x.Lparen } func
435 func (x *SelectorExpr) Pos() token.Pos { return x.X.Pos() } func
436 func (x *IndexExpr) Pos() token.Pos { return x.X.Pos() } func
437 func (x *SliceExpr) Pos() token.Pos { return x.X.Pos() } func
438 func (x *TypeAssertExpr) Pos() token.Pos { return x.X.Pos() } func
439 func (x *CallExpr) Pos() token.Pos { return x.Fun.Pos() } func
440 func (x *StarExpr) Pos() token.Pos { return x.Star } func
441 func (x *UnaryExpr) Pos() token.Pos { return x.OpPos } func
442 func (x *BinaryExpr) Pos() token.Pos { return x.X.Pos() } func
443 func (x *KeyValueExpr) Pos() token.Pos { return x.Key.Pos() } func
444 func (x *ArrayType) Pos() token.Pos { return x.Lbrack } func
445 func (x *StructType) Pos() token.Pos { return x.Struct } func
446 func (x *FuncType) Pos() token.Pos { func
450 return x.Params.Pos() // interface method declarations have no "func" keyword
452 func (x *InterfaceType) Pos() token.Pos { return x.Interface } func
453 func (x *MapType) Pos() token.Pos { return x.Map } func
454 func (x *ChanType) Pos() token.Pos { return x.Begin } func
456 func (x *BadExpr) End() token.Pos { return x.To }
457 func (x *Ident) End() token.Pos { return token.Pos(int(x.NamePos) + len(x.Name)) }
458 func (x *Ellipsis) End() token.Pos {
464 func (x *BasicLit) End() token.Pos { return token.Pos(int(x.ValuePos) + len(x.Value)) }
465 func (x *FuncLit) End() token.Pos { return x.Body.End() }
466 func (x *CompositeLit) End() token.Pos { return x.Rbrace + 1 }
467 func (x *ParenExpr) End() token.Pos { return x.Rparen + 1 }
468 func (x *SelectorExpr) End() token.Pos { return x.Sel.End() }
469 func (x *IndexExpr) End() token.Pos { return x.Rbrack + 1 }
470 func (x *SliceExpr) End() token.Pos { return x.Rbrack + 1 }
471 func (x *TypeAssertExpr) End() token.Pos { return x.Rparen + 1 }
472 func (x *CallExpr) End() token.Pos { return x.Rparen + 1 }
473 func (x *StarExpr) End() token.Pos { return x.X.End() }
474 func (x *UnaryExpr) End() token.Pos { return x.X.End() }
475 func (x *BinaryExpr) End() token.Pos { return x.Y.End() }
476 func (x *KeyValueExpr) End() token.Pos { return x.Value.End() }
477 func (x *ArrayType) End() token.Pos { return x.Elt.End() }
478 func (x *StructType) End() token.Pos { return x.Fields.End() }
479 func (x *FuncType) End() token.Pos {
485 func (x *InterfaceType) End() token.Pos { return x.Methods.End() }
486 func (x *MapType) End() token.Pos { return x.Value.End() }
487 func (x *ChanType) End() token.Pos { return x.Value.End() }
551 From, To token.Pos // position range of bad statement
564 Semicolon token.Pos // position of following ";"
571 Colon token.Pos // position of ":"
585 Arrow token.Pos // position of "<-"
592 TokPos token.Pos // position of Tok
601 TokPos token.Pos // position of Tok
608 Go token.Pos // position of "go" keyword
614 Defer token.Pos // position of "defer" keyword
620 Return token.Pos // position of "return" keyword
628 TokPos token.Pos // position of Tok
635 Lbrace token.Pos // position of "{"
637 Rbrace token.Pos // position of "}", if any (may be absent due to syntax error)
642 If token.Pos // position of "if" keyword
651 Case token.Pos // position of "case" or "default" keyword
653 Colon token.Pos // position of ":"
659 Switch token.Pos // position of "switch" keyword
667 Switch token.Pos // position of "switch" keyword
675 Case token.Pos // position of "case" or "default" keyword
677 Colon token.Pos // position of ":"
683 Select token.Pos // position of "select" keyword
689 For token.Pos // position of "for" keyword
698 For token.Pos // position of "for" keyword
700 TokPos token.Pos // position of Tok; invalid if Key == nil
709 func (s *BadStmt) Pos() token.Pos { return s.From } func
710 func (s *DeclStmt) Pos() token.Pos { return s.Decl.Pos() } func
711 func (s *EmptyStmt) Pos() token.Pos { return s.Semicolon } func
712 func (s *LabeledStmt) Pos() token.Pos { return s.Label.Pos() } func
713 func (s *ExprStmt) Pos() token.Pos { return s.X.Pos() } func
714 func (s *SendStmt) Pos() token.Pos { return s.Chan.Pos() } func
715 func (s *IncDecStmt) Pos() token.Pos { return s.X.Pos() } func
716 func (s *AssignStmt) Pos() token.Pos { return s.Lhs[0].Pos() } func
717 func (s *GoStmt) Pos() token.Pos { return s.Go } func
718 func (s *DeferStmt) Pos() token.Pos { return s.Defer } func
719 func (s *ReturnStmt) Pos() token.Pos { return s.Return } func
720 func (s *BranchStmt) Pos() token.Pos { return s.TokPos } func
721 func (s *BlockStmt) Pos() token.Pos { return s.Lbrace } func
722 func (s *IfStmt) Pos() token.Pos { return s.If } func
723 func (s *CaseClause) Pos() token.Pos { return s.Case } func
724 func (s *SwitchStmt) Pos() token.Pos { return s.Switch } func
725 func (s *TypeSwitchStmt) Pos() token.Pos { return s.Switch } func
726 func (s *CommClause) Pos() token.Pos { return s.Case } func
727 func (s *SelectStmt) Pos() token.Pos { return s.Select } func
728 func (s *ForStmt) Pos() token.Pos { return s.For } func
729 func (s *RangeStmt) Pos() token.Pos { return s.For } func
731 func (s *BadStmt) End() token.Pos { return s.To }
732 func (s *DeclStmt) End() token.Pos { return s.Decl.End() }
733 func (s *EmptyStmt) End() token.Pos {
739 func (s *LabeledStmt) End() token.Pos { return s.Stmt.End() }
740 func (s *ExprStmt) End() token.Pos { return s.X.End() }
741 func (s *SendStmt) End() token.Pos { return s.Value.End() }
742 func (s *IncDecStmt) End() token.Pos {
745 func (s *AssignStmt) End() token.Pos { return s.Rhs[len(s.Rhs)-1].End() }
746 func (s *GoStmt) End() token.Pos { return s.Call.End() }
747 func (s *DeferStmt) End() token.Pos { return s.Call.End() }
748 func (s *ReturnStmt) End() token.Pos {
754 func (s *BranchStmt) End() token.Pos {
758 return token.Pos(int(s.TokPos) + len(s.Tok.String()))
760 func (s *BlockStmt) End() token.Pos {
769 func (s *IfStmt) End() token.Pos {
775 func (s *CaseClause) End() token.Pos {
781 func (s *SwitchStmt) End() token.Pos { return s.Body.End() }
782 func (s *TypeSwitchStmt) End() token.Pos { return s.Body.End() }
783 func (s *CommClause) End() token.Pos {
789 func (s *SelectStmt) End() token.Pos { return s.Body.End() }
790 func (s *ForStmt) End() token.Pos { return s.Body.End() }
791 func (s *RangeStmt) End() token.Pos { return s.Body.End() }
837 EndPos token.Pos // end of spec (overrides Path.Pos if nonzero)
855 Assign token.Pos // position of '=', if any
863 func (s *ImportSpec) Pos() token.Pos { func
865 return s.Name.Pos()
867 return s.Path.Pos()
869 func (s *ValueSpec) Pos() token.Pos { return s.Names[0].Pos() } func
870 func (s *TypeSpec) Pos() token.Pos { return s.Name.Pos() } func
872 func (s *ImportSpec) End() token.Pos {
879 func (s *ValueSpec) End() token.Pos {
888 func (s *TypeSpec) End() token.Pos { return s.Type.End() }
905 From, To token.Pos // position range of bad declaration
921 TokPos token.Pos // position of Tok
923 Lparen token.Pos // position of '(', if any
925 Rparen token.Pos // position of ')', if any
940 func (d *BadDecl) Pos() token.Pos { return d.From } func
941 func (d *GenDecl) Pos() token.Pos { return d.TokPos } func
942 func (d *FuncDecl) Pos() token.Pos { return d.Type.Pos() } func
944 func (d *BadDecl) End() token.Pos { return d.To }
945 func (d *GenDecl) End() token.Pos {
951 func (d *FuncDecl) End() token.Pos {
989 Package token.Pos // position of "package" keyword
998 func (f *File) Pos() token.Pos { return f.Package } func
999 func (f *File) End() token.Pos {
1016 func (p *Package) Pos() token.Pos { return token.NoPos } func
1017 func (p *Package) End() token.Pos { return token.NoPos }