public static ClassStatement NestedClass(this ClassStatement classStatement, string name, Action<ClassStatement> @class) { var nestedClassStatement = new ClassStatement(name); @class(nestedClassStatement); classStatement.AddNestedClass(nestedClassStatement); return nestedClassStatement; }
public static ClassStatement Class(string name, Action<ClassStatement> @class) { var classStatement = new ClassStatement(name); @class(classStatement); return classStatement; }
public void AddNestedClass(ClassStatement classStatement) { body.AddStatement(classStatement); }