- 
                Notifications
    
You must be signed in to change notification settings  - Fork 4.2k
 
Preserve trailing directives when converting a Program.Main program to top level statements. #79062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve trailing directives when converting a Program.Main program to top level statements. #79062
Conversation
        
          
                src/Features/CSharp/Portable/ConvertProgram/ConvertProgramTransform_TopLevelStatements.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                src/Features/CSharp/Portable/ConvertProgram/ConvertProgramTransform_TopLevelStatements.cs
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …sform_TopLevelStatements.cs Co-authored-by: DoctorKrolic <[email protected]>
…sform_TopLevelStatements.cs Co-authored-by: DoctorKrolic <[email protected]>
| 
           @akhera99 @AbhitejJohn ptal.  | 
    
| using System; | ||
| #if true | ||
| Console.WriteLine("true"); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it feels a bit weird for the statements to be differently tabbed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Though it matches our philosophy of not touching pp contents as we do not actually know what they represent.
Fixes #78002