Strip trivia from tokens. (#88856)
authorJeremy Koritzinsky <jekoritz@microsoft.com>
Fri, 14 Jul 2023 02:10:18 +0000 (19:10 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Jul 2023 02:10:18 +0000 (19:10 -0700)
commit1deac177b2b63d1122225f5a53a0780fd99ed12b
tree21e83bcdc1a21c41736f7553af443ae674735fc8
parent45db21d4fc613d21a29b41721e5631b1dddad78b
Strip trivia from tokens. (#88856)

* Strip trivia from tokens.

Fixes #88798

* Move the trivia stripping into ContainingSyntax record constructor

* Make ContainingSyntax a regular struct with a primary constructor instead of a record struct.

* Fix #88867

* Suppress compiler diagnostics based on the linked issue.
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/JSExportGenerator.cs
src/libraries/System.Runtime.InteropServices.JavaScript/gen/JSImportGenerator/JSImportGenerator.cs
src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/ComInterfaceGenerator.cs
src/libraries/System.Runtime.InteropServices/gen/ComInterfaceGenerator/VtableIndexStubGenerator.cs
src/libraries/System.Runtime.InteropServices/gen/LibraryImportGenerator/LibraryImportGenerator.cs
src/libraries/System.Runtime.InteropServices/gen/Microsoft.Interop.SourceGeneration/ContainingSyntaxContext.cs
src/libraries/System.Runtime.InteropServices/tests/ComInterfaceGenerator.Unit.Tests/CompileFails.cs