type text/template/parse.Pos
74 uses
text/template/parse (current package)
lex.go#L17: pos Pos // The starting position, in bytes, of this item in the input string.
lex.go#L106: trimMarkerLen = Pos(1 + 1) // marker plus space before or after
lex.go#L119: pos Pos // current position in the input
lex.go#L120: start Pos // start position of this item
lex.go#L121: width Pos // width of last rune read from input
lex.go#L137: l.width = Pos(w)
lex.go#L254: ldn := Pos(len(l.leftDelim))
lex.go#L255: l.pos += Pos(x)
lex.go#L256: trimLength := Pos(0)
lex.go#L269: l.pos = Pos(len(l.input))
lex.go#L280: func rightTrimLength(s string) Pos {
lex.go#L281: return Pos(len(s) - len(strings.TrimRight(s, spaceChars)))
lex.go#L296: func leftTrimLength(s string) Pos {
lex.go#L297: return Pos(len(s) - len(strings.TrimLeft(s, spaceChars)))
lex.go#L302: l.pos += Pos(len(l.leftDelim))
lex.go#L304: afterMarker := Pos(0)
lex.go#L322: l.pos += Pos(len(leftComment))
lex.go#L327: l.pos += Pos(i + len(rightComment))
lex.go#L338: l.pos += Pos(len(l.rightDelim))
lex.go#L353: l.pos += Pos(len(l.rightDelim))
lex.go#L399: if l.pos < Pos(len(l.input)) {
node.go#L27: Position() Pos // byte position of start of node in full original input string
node.go#L40: type Pos int
node.go#L42: func (p Pos) Position() Pos {
node.go#L83: Pos
node.go#L88: func (t *Tree) newList(pos Pos) *ListNode {
node.go#L130: Pos
node.go#L135: func (t *Tree) newText(pos Pos, text string) *TextNode {
node.go#L158: Pos
node.go#L163: func (t *Tree) newComment(pos Pos, text string) *CommentNode {
node.go#L190: Pos
node.go#L198: func (t *Tree) newPipeline(pos Pos, line int, vars []*VariableNode) *PipeNode {
node.go#L259: Pos
node.go#L265: func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode {
node.go#L293: Pos
node.go#L298: func (t *Tree) newCommand(pos Pos) *CommandNode {
node.go#L345: Pos
node.go#L358: func (i *IdentifierNode) SetPos(pos Pos) *IdentifierNode {
node.go#L391: Pos
node.go#L396: func (t *Tree) newVariable(pos Pos, ident string) *VariableNode {
node.go#L426: Pos
node.go#L430: func (t *Tree) newDot(pos Pos) *DotNode {
node.go#L460: Pos
node.go#L464: func (t *Tree) newNil(pos Pos) *NilNode {
node.go#L496: Pos
node.go#L501: func (t *Tree) newField(pos Pos, ident string) *FieldNode {
node.go#L531: Pos
node.go#L537: func (t *Tree) newChain(pos Pos, node Node) *ChainNode {
node.go#L584: Pos
node.go#L589: func (t *Tree) newBool(pos Pos, true bool) *BoolNode {
node.go#L617: Pos
node.go#L630: func (t *Tree) newNumber(pos Pos, text string, typ itemType) (*NumberNode, error) {
node.go#L754: Pos
node.go#L760: func (t *Tree) newString(pos Pos, orig, text string) *StringNode {
node.go#L784: Pos
node.go#L788: func (t *Tree) newEnd(pos Pos) *endNode {
node.go#L811: Pos
node.go#L816: func (t *Tree) newElse(pos Pos, line int) *elseNode {
node.go#L843: Pos
node.go#L904: func (t *Tree) newIf(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *IfNode {
node.go#L916: Pos
node.go#L920: func (t *Tree) newBreak(pos Pos, line int) *BreakNode {
node.go#L933: Pos
node.go#L937: func (t *Tree) newContinue(pos Pos, line int) *ContinueNode {
node.go#L951: func (t *Tree) newRange(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *RangeNode {
node.go#L964: func (t *Tree) newWith(pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) *WithNode {
node.go#L975: Pos
node.go#L982: func (t *Tree) newTemplate(pos Pos, line int, name string, pipe *PipeNode) *TemplateNode {
parse.go#L417: func (t *Tree) breakControl(pos Pos, line int) Node {
parse.go#L430: func (t *Tree) continueControl(pos Pos, line int) Node {
parse.go#L512: func (t *Tree) parseControl(allowElseIf bool, context string) (pos Pos, line int, pipe *PipeNode, list, elseList *ListNode) {
parse.go#L786: func (t *Tree) useVar(pos Pos, name string) Node {
html/template
escape.go#L404: func newIdentCmd(identifier string, pos parse.Pos) *parse.CommandNode {