This project is read-only.
1
Vote

VB Trivia Issue?

description

To be honest I don't know if this is an issue with how I use the API or an issue in the API.
  1. I use a LINQ expression to find the Single LIne If Statements and Multi-Line If Statements.
  2. .ToList on it
    Assumming that it would preserve the trivia (eg comments), since it is Immutable
  3. Remove those nodes from the source.
  4. Put statements from item 2 in Parameter Order (as they appear the method signature.
  5. Insert the new Guard
  6. Put the guards backing to the source.
I can get most of that to work except for the trivia part.

Source

Help.

comments