mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Explorer: Remove PrintDepth and implement PrintIndent. (#3113)
This PR removes `PrintDepth` from statement and declaration. Implements `PrintIndent` for better indented formatting along with various changes to make printing of statements and declarations better. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
05e061fe96
commit
289d05813e
+3
-4
@@ -19,10 +19,9 @@ fn Main() -> i32 {
|
||||
// CHECK:STDOUT: --------------------------------------------------------
|
||||
// CHECK:STDOUT: interface TestInterface {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: fn Main ()-> i32 {
|
||||
// CHECK:STDOUT: {
|
||||
// CHECK:STDOUT: return 0;
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn Main () -> i32
|
||||
// CHECK:STDOUT: {
|
||||
// CHECK:STDOUT: return 0;
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: result: 0
|
||||
|
||||
Reference in New Issue
Block a user