Skip to content
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

ReviewBot puts System.Diagnostics.Contracts before #define #5

Open
scottcarr opened this issue Mar 23, 2015 · 1 comment
Open

ReviewBot puts System.Diagnostics.Contracts before #define #5

scottcarr opened this issue Mar 23, 2015 · 1 comment

Comments

@scottcarr
Copy link
Owner

define needs to be the first thing in the file, so this is an error.

Repro: the nancy project

@scottcarr
Copy link
Owner Author

There's a CompilationUnitSyntaxExtension.AddUsingDirective that takes a context SyntaxNode. It tries to put the using directive in the inner most namespace that contains usings. This could potentially work.

http://source.roslyn.io/#Microsoft.CodeAnalysis.CSharp.Workspaces/Extensions/CompilationUnitSyntaxExtensions.cs,662722bbfdbce681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant