| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This is a Roslyn-based tool for C# syntax rewriting with the purpose of source-code desugaring.
There are 2 varieties of rewriter:
For the rewriting, the former relies on syntactic information only; the latter also relies on symbolic information by means of a SemanticModel.
Hint: A "description" of the exact rewrite performed by a given rewriter, you might want to check the tests.
void ApplyRewrite(IRewriter rewriter, SyntaxTree tree)
{
SyntaxTree tree_P;
if (rewriter.IsPurelySyntactic())
{
tree_P = ((Rewriter)rewriter).Apply(tree);
}
else
{
Compilation compilation = /* ... */
tree_P = ((SymbolicRewriter)rewriter).Apply(tree,
compilation.GetSemanticModel(tree));
}
}| Back | FazBrowse Home | New Git URL |