golang.org/x/tools@v0.21.1-0.20240520172518-788d39e776b1/go/ssa/util_go120.go (about)

     1  // Copyright 2024 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build go1.20
     6  // +build go1.20
     7  
     8  package ssa
     9  
    10  import (
    11  	"go/ast"
    12  	"go/token"
    13  )
    14  
    15  func init() {
    16  	rangePosition = func(rng *ast.RangeStmt) token.Pos { return rng.Range }
    17  }