github.com/v2fly/tools@v0.100.0/internal/span/token112.go (about)

     1  // Copyright 2019 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.12
     6  // +build go1.12
     7  
     8  package span
     9  
    10  import (
    11  	"go/token"
    12  )
    13  
    14  // TODO(rstambler): Delete this file when we no longer support Go 1.11.
    15  func lineStart(f *token.File, line int) token.Pos {
    16  	return f.LineStart(line)
    17  }