Private Shared Function SourceFilesFromMustachePaths(pathsData As IEnumerable(Of (String, String, String))) As IEnumerable(Of (String, String))
' TODO: Visual Basic does not support For Each Variable statement.
' Original statement:
' foreach ((string name, string template, string hash) in pathsData)
' {
' yield return (name, SourceFileFromMustachePath(name, template, hash));
' }
End Function
This isn't about tuple deconstructions in a foreach (filed separate issue on that); but rather that the Function is incorrectly converted to "regular" Function instead of an Iterator. This has caught me a little off guard a couple of times; so wondering if it would be possible to detect the yield before it being remarked to correctly tag the Function as being an Iterator. Basically the problem currently is I'm so focused on the lines that failed (remarked out) that I don't realize until after "stepping back" that Iterator is missing from the Function definition... in the mean time, I'm scratching my head reviewing the now manually converted code I just wrote wondering why I'm still having an error. ;-)
The following example:
Currently ends up with something like:
This isn't about tuple deconstructions in a foreach (filed separate issue on that); but rather that the Function is incorrectly converted to "regular" Function instead of an Iterator. This has caught me a little off guard a couple of times; so wondering if it would be possible to detect the yield before it being remarked to correctly tag the Function as being an Iterator. Basically the problem currently is I'm so focused on the lines that failed (remarked out) that I don't realize until after "stepping back" that Iterator is missing from the Function definition... in the mean time, I'm scratching my head reviewing the now manually converted code I just wrote wondering why I'm still having an error. ;-)