pragma parameters missing after SyntaxTree.ToString() #188

Open
opened 2013-05-29 02:27:00 -05:00 by asker9 · 0 comments
asker9 commented 2013-05-29 02:27:00 -05:00 (Migrated from github.com)

Hello

try this code:
ICSharpcode.NRefactory.CSharp.CSharpParser parser = new ICSharpcode.NRefactory.CSharp.CSharpParser();
SyntaxTree CCU = parser.Parse("#pragma warning disable 414","a.cs");
Console.Write( CCU.ToString() );

result:

pragma

The parameters "warning disable 414" for "#pragma" is missing

Hello try this code: ICSharpcode.NRefactory.CSharp.CSharpParser parser = new ICSharpcode.NRefactory.CSharp.CSharpParser(); SyntaxTree CCU = parser.Parse("#pragma warning disable 414","a.cs"); Console.Write( CCU.ToString() ); result: # pragma The parameters "warning disable 414" for "#pragma" is missing
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/NRefactory#188
No description provided.