()
| 256 | } |
| 257 | |
| 258 | func (d DocumentIdentifier) ToFileName() string { |
| 259 | if d.URI != "" { |
| 260 | return d.URI.FileName() |
| 261 | } |
| 262 | return d.FileName |
| 263 | } |
| 264 | |
| 265 | // ToURI returns the document URI for this identifier. An explicitly provided URI |
| 266 | // is returned as-is; a file name is first normalized to an absolute path against |
no test coverage detected