go/ast.Node.End (method)

45 uses

	go/ast (current package)
		ast.go#L34: 	End() token.Pos // position of first character immediately after the node
		ast.go#L220: 		return f.Type.End()
		ast.go#L530: 		return x.Elt.End()
		ast.go#L544: func (x *StarExpr) End() token.Pos       { return x.X.End() }
		ast.go#L545: func (x *UnaryExpr) End() token.Pos      { return x.X.End() }
		ast.go#L546: func (x *BinaryExpr) End() token.Pos     { return x.Y.End() }
		ast.go#L547: func (x *KeyValueExpr) End() token.Pos   { return x.Value.End() }
		ast.go#L548: func (x *ArrayType) End() token.Pos      { return x.Elt.End() }
		ast.go#L557: func (x *MapType) End() token.Pos       { return x.Value.End() }
		ast.go#L558: func (x *ChanType) End() token.Pos      { return x.Value.End() }
		ast.go#L800: func (s *DeclStmt) End() token.Pos { return s.Decl.End() }
		ast.go#L807: func (s *LabeledStmt) End() token.Pos { return s.Stmt.End() }
		ast.go#L808: func (s *ExprStmt) End() token.Pos    { return s.X.End() }
		ast.go#L809: func (s *SendStmt) End() token.Pos    { return s.Value.End() }
		ast.go#L813: func (s *AssignStmt) End() token.Pos { return s.Rhs[len(s.Rhs)-1].End() }
		ast.go#L818: 		return s.Results[n-1].End()
		ast.go#L833: 		return s.List[n-1].End()
		ast.go#L839: 		return s.Else.End()
		ast.go#L845: 		return s.Body[n-1].End()
		ast.go#L853: 		return s.Body[n-1].End()
		ast.go#L948: 		return s.Values[n-1].End()
		ast.go#L951: 		return s.Type.End()
		ast.go#L955: func (s *TypeSpec) End() token.Pos { return s.Type.End() }
		ast.go#L1014: 	return d.Specs[0].End()
		ast.go#L1079: 		return f.Decls[n-1].End()
		commentmap.go#L104: 	for i > 0 && (*s)[i-1].End() <= pos {
		commentmap.go#L171: 				pgend = fset.Position(pg.End())
		commentmap.go#L214: 		pend = fset.Position(p.End())
		commentmap.go#L309: 		return cmp.Compare(a.End(), b.End())
		import.go#L34: 			if j > i && lineAt(fset, s.Pos()) > 1+lineAt(fset, d.Specs[j-1].End()) {
		import.go#L123: 		pos[i] = posSpan{s.Pos(), s.End()}

	go/parser
		parser.go#L1995: 		p.error(p.safePos(x.End()), fmt.Sprintf("expression in %s must be function call", callType))
		parser.go#L2073: 	return &ast.BadExpr{From: s.Pos(), To: p.safePos(s.End())}

	go/printer
		nodes.go#L144: 	endLine := p.lineFor(list[len(list)-1].End())
		nodes.go#L1322: 		var e = p.lineFor(list[len(list)-1].End())
		nodes.go#L1329: 				xe := p.lineFor(x.End())
		nodes.go#L1834: 		if to := n.End(); to.IsValid() {
		printer.go#L1106: 		end := n.End()

	go/types
		errors.go#L284: 	start, end := node.Pos(), node.End()
		errors.go#L302: 		return posSpan{pos, pos, x.End()}
		errors.go#L306: 			return posSpan{pos, pos, x.expr.End()}
		stmt.go#L154: 	scope := NewScope(check.scope, node.Pos(), node.End(), comment)
		util.go#L53: func endPos(n ast.Node) token.Pos { return n.End() }

	gotest.tools/v3/internal/source
		defers.go#L15: 		case fileset.Position(node.End()).Line == lineNum: