MCPcopy Index your code
hub / github.com/yuin/gopher-lua / Name

Method Name

iolib.go:120–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118}
119
120func (file *lFile) Name() string {
121 switch file.Type() {
122 case lFileFile:
123 return fmt.Sprintf("file %s", file.fp.Name())
124 case lFileProcess:
125 return fmt.Sprintf("process %s", file.pp.Path)
126 }
127 return ""
128}
129
130func (file *lFile) AbandonReadBuffer() error {
131 if file.Type() == lFileFile && file.reader != nil {

Callers 9

osTmpnameFunction · 0.80
TestLoadFileForShebangFunction · 0.80
TestLoadFileForEmptyFileFunction · 0.80
fileIsWritableFunction · 0.80
fileIsReadableFunction · 0.80
CloseMethod · 0.80
CloseMethod · 0.80
compileExprFunction · 0.80
dumpFunction · 0.80

Calls 1

TypeMethod · 0.95

Tested by 2

TestLoadFileForShebangFunction · 0.64
TestLoadFileForEmptyFileFunction · 0.64