roji / AsyncRewriter

Uses Roslyn to rewrite synchronous C# methods into async counterparts
MIT License
54 stars 10 forks source link

Comments cause mangled rewriting of await line #1

Closed roji closed 9 years ago

roji commented 9 years ago
// TODO: Can this be combined into the message chain?
_connector.SetBackendCommandTimeout(CommandTimeout);

Becomes:

await // TODO: Can this be combined into the message chain?
_connector.SetBackendCommandTimeoutAsync(CommandTimeout);
roji commented 9 years ago

Fixed somewhere along the way, probably because I was calling ToString() on the CompilationUnit rather than on the SyntaxTree