public Void visitContainedProcedures(ContainedProceduresContext ctx) {
    	if (ctx.children == null) return null;
    	increaseIndentLevel();
    	int loc = 1;
    	for (ParseTree child : ctx.children) {
    		if (child instanceof ProcedureContext) {
    			visitProcedure((ProcedureContext) child);
    			if (loc == ctx.children.size() ||
    				!(ctx.getChild(loc) instanceof CppDirectiveContext))
    				appendCode("\n");
    		} else if (child instanceof CppDirectiveContext) {
        		if (loc == ctx.children.size())
        			appendCode("\n");
    			visitCppDirective((CppDirectiveContext) child);
    			if (((CppDirectiveContext) child).endifDirective() != null)
    				appendCode("\n");
    		}
    		loc++;
    	}
    	decreaseIndentLevel();
    	return null;
    }