Esempio n. 1
0
 private static Func <SyntaxNode, Scope, SyntaxNode> AddFunctionClass(ClassDeclarationSyntax @class)
 {
     return((node, scope) =>
     {
         var document = scope.GetDocument();
         @class = (ClassDeclarationSyntax)document.change(@class, CompileFunctionClass);
         return Roslyn.AddMember(@class)(node, scope);
     });
 }