github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/lang/deprecated.go (about)

     1  package lang
     2  
     3  import (
     4  	"fmt"
     5  	"os"
     6  )
     7  
     8  func Deprecated(p *Process) {
     9  	message := fmt.Sprintf("!!! WARNING: The builtin `%s` has been deprecated and will be removed in the next release\n!!!        : Module: %s\n!!!        : File:   %s\n!!!        : Line:   %d\n!!!        : Column: %d\n",
    10  		p.Name.String(), p.FileRef.Source.Module, p.FileRef.Source.Filename, p.FileRef.Line, p.FileRef.Column)
    11  	os.Stderr.WriteString(message)
    12  }