Loading plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/formatting2/TDLan2Formatter.xtend +12 −5 Original line number Diff line number Diff line Loading @@ -71,11 +71,6 @@ class TDLan2Formatter extends AbstractFormatter2 { p.allRegionsFor.keyword(',').prepend[noSpace] p.append[newLine] interior( p.regionFor.keyword('{').append[newLine], p.regionFor.keyword('}').prepend[newLine], [indent] ) if (p instanceof StructuredDataType) { // interior(p, [indent]) Loading @@ -90,11 +85,23 @@ class TDLan2Formatter extends AbstractFormatter2 { m.prepend[newLine] m.format } } else { interior( p.regionFor.keyword('{').append[newLine], p.regionFor.keyword('}').prepend[newLine], [indent] ) } for (Comment comment : p.getComment()) { comment.surround[newLine] comment.surround[indent] comment.format; } for (Annotation a : p.getAnnotation()) { a.surround[newLine] a.surround[indent] a.format; } } Loading Loading
plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/formatting2/TDLan2Formatter.xtend +12 −5 Original line number Diff line number Diff line Loading @@ -71,11 +71,6 @@ class TDLan2Formatter extends AbstractFormatter2 { p.allRegionsFor.keyword(',').prepend[noSpace] p.append[newLine] interior( p.regionFor.keyword('{').append[newLine], p.regionFor.keyword('}').prepend[newLine], [indent] ) if (p instanceof StructuredDataType) { // interior(p, [indent]) Loading @@ -90,11 +85,23 @@ class TDLan2Formatter extends AbstractFormatter2 { m.prepend[newLine] m.format } } else { interior( p.regionFor.keyword('{').append[newLine], p.regionFor.keyword('}').prepend[newLine], [indent] ) } for (Comment comment : p.getComment()) { comment.surround[newLine] comment.surround[indent] comment.format; } for (Annotation a : p.getAnnotation()) { a.surround[newLine] a.surround[indent] a.format; } } Loading