github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/tools/trim/testdata/comprehensions.txtar (about)

     1  # TODO(fmt): comprehension incorrectly indented: cuelang.org/issue/1544
     2  
     3  #Issue: 1299
     4  
     5  -- in.cue --
     6   if true {
     7  	a_map: {
     8  		"first": {}
     9  	}
    10  }
    11  
    12  a_map: {
    13  	if true {
    14  		// keep. TODO: allow this to be removed if the dominator includes all
    15  		// fields unconditionally.
    16  		"second": true
    17  	}
    18  }
    19  -- out/trim --
    20  == in.cue
    21   if true {
    22  	a_map: {
    23  		"first": {}
    24  	}
    25  }
    26  
    27  a_map: {
    28  	if true {
    29  		// keep. TODO: allow this to be removed if the dominator includes all
    30  		// fields unconditionally.
    31  		"second": true
    32  	}
    33  }