Пример #1
0
        public static void Transpile(this Syntax.NewDeclarationSyntax newDeclarationNode, ref StringBuilder sb)
        {
            _ = newDeclarationNode ?? throw new ArgumentNullException(nameof(newDeclarationNode));

            newDeclarationNode.Declaration.Transpile(ref sb);
        }
Пример #2
0
        public static IEnumerable <MemberDeclarationSyntax> Transpile(this Syntax.NewDeclarationSyntax newDeclarationNode)
        {
            _ = newDeclarationNode ?? throw new ArgumentNullException(nameof(newDeclarationNode));

            return(newDeclarationNode.Declaration.Transpile());
        }