Skip to content

Commit

Permalink
Remove duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardDrummer committed Feb 19, 2024
1 parent 5e2651c commit 0cdbacc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Source/DafnyCore/Backends/Python/PythonCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@
using System.Diagnostics.Contracts;
using System.Linq;
using System.Numerics;
using DafnyCore.Backends.Python;
using JetBrains.Annotations;
using Microsoft.BaseTypes;

namespace Microsoft.Dafny.Compilers {
public static class PythonExtensions {
public static ConcreteSyntaxTree NewBlockPy(this ConcreteSyntaxTree tree, string header = "", string footer = "",
BlockStyle open = BlockStyle.Newline,
BlockStyle close = BlockStyle.Nothing) {
return tree.NewBlock(header, footer, open, close);
}
}

class PythonCodeGenerator : SinglePassCodeGenerator {
public PythonCodeGenerator(DafnyOptions options, ErrorReporter reporter) : base(options, reporter) {
Expand Down

0 comments on commit 0cdbacc

Please sign in to comment.