closeBuf closes the file in its buffer if it is open. returns true if closed.
()
| 486 | // closeBuf closes the file in its buffer if it is open. |
| 487 | // returns true if closed. |
| 488 | func (fn *Node) closeBuf() bool { |
| 489 | if fn.Buffer == nil { |
| 490 | return false |
| 491 | } |
| 492 | fn.Buffer.Close(nil) |
| 493 | fn.Buffer = nil |
| 494 | return true |
| 495 | } |
| 496 | |
| 497 | // RelativePathFrom returns the relative path from node for given full path |
| 498 | func (fn *Node) RelativePathFrom(fpath core.Filename) string { |
no test coverage detected