dotnet / dotnet/csharpstandard
Spec fails to say how line numbers are computed.
Open
- Dominant language
- C#
- Stars
- 815
- Forks
- 99
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 16
Description
The spec description of [`CallerLineNumber`](https://github.com/ljw1004/csharpspec/blob/gh-pages/attributes.md#the-callerlinenumber-attribute) says that it gives the line number of the caller, but nothing in the spec hints as to how that line number is to be calculated. For example, how are line numbers affected by a form-feed or vertical-tab appearing inside a single-line-comment or string literal? Is the first character in a source file on line zero or line one? Does a CR-LF combination add two or add one to the line count?
Contributor guide
Assessment
This issue has not been assessed yet.