Skip to content

Commit d669730

Browse files
authored
Inline append past local declaration (#853)
* Reach a hint past a local declaration when appending A member floor judged the recorded line stale whenever any declaration sat between the member's declaration and the hint, and IsDeclaration answers "is this identifier being declared rather than called", which a local satisfies: var hash = Hash(), and F#'s let hash = hash (), read as declarations exactly as a sibling test method does. That dropped the hint from the first try and from the outward walk both, so the call sitting exactly where the hint said was never looked at. Every test of the ordinary shape - a local, then a verify call on it - failed to accept, reporting "No Verify or Throws call at line N". Indentation is what tells the two apart, since nothing in front of the name does. A declaration indented past the member's own is inside its body - a local, a local function, a nested type - and none of those put the recorded line in another member. A sibling shares the member's indentation, so the comparison is inclusive and the stale-hint protection is unchanged. Fixtures that a raw string can carry are now written as one, normalized on the way in because a raw string takes the line endings of the file holding it. The rest stay hand-built: runs of three or more quotes, tabs, and the fixtures whose subject is line endings. * Update Directory.Build.props
1 parent 51604b8 commit d669730

4 files changed

Lines changed: 419 additions & 235 deletions

File tree

0 commit comments

Comments
 (0)