예제 #1
0
파일: Extension.cs 프로젝트: tylike/Excess
 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);
     });
 }