File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,9 @@ public List<BoundVar> UncompilableBoundVars() {
143
143
144
144
public bool SetIndent ( int indentBefore , TokenNewIndentCollector formatter ) {
145
145
formatter . SetIndentLikeLoop ( OwnedTokens , Body , indentBefore ) ;
146
+ if ( Range != null ) {
147
+ formatter . Visit ( Range , indentBefore + formatter . SpaceTab ) ;
148
+ }
146
149
foreach ( var ens in Ens ) {
147
150
formatter . SetAttributedExpressionIndentation ( ens , indentBefore + formatter . SpaceTab ) ;
148
151
}
Original file line number Diff line number Diff line change @@ -4,6 +4,21 @@ namespace DafnyPipeline.Test;
4
4
5
5
[ Collection ( "Singleton Test Collection - FormatterForTopLevelDeclarations" ) ]
6
6
public class FormatterIssues : FormatterBaseTest {
7
+ [ Fact ]
8
+ public void GitIssue3960FormattingIssueForallStatements ( ) {
9
+ FormatterWorksFor ( @"
10
+ lemma Lemma()
11
+ {
12
+ forall pd0: int
13
+ | && true
14
+ && (true
15
+ && true)
16
+ && true
17
+ ensures true {
18
+ }
19
+ }" ) ;
20
+ }
21
+
7
22
[ Fact ]
8
23
public void GitIssue3944FormatterArgumentsDefaultValue ( ) {
9
24
FormatterWorksFor ( @"
Original file line number Diff line number Diff line change
1
+ Formatting issue in forall statement range
You can’t perform that action at this time.
0 commit comments