Loading plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/formatting2/TDLan2Formatter.xtend +7 −0 Original line number Diff line number Diff line Loading @@ -66,7 +66,9 @@ class TDLan2Formatter extends AbstractFormatter2 { def dispatch void format(PackageableElement p, extension IFormattableDocument document) { p.prepend[newLine] p.allRegionsFor.keyword(';').prepend[noSpace] p.allRegionsFor.keyword(';').append[newLine] p.allRegionsFor.keyword(',').prepend[noSpace] p.append[newLine] interior( Loading @@ -86,6 +88,7 @@ class TDLan2Formatter extends AbstractFormatter2 { } for (m : p.member) { m.prepend[newLine] m.format } } for (Comment comment : p.getComment()) { Loading Loading @@ -355,6 +358,8 @@ class TDLan2Formatter extends AbstractFormatter2 { def dispatch void format(Element e, extension IFormattableDocument document) { e.prepend[newLine] e.allRegionsFor.keyword(',').prepend[noSpace] e.allRegionsFor.keyword(';').prepend[noSpace] interior( e.regionFor.keyword('{').append[newLine], Loading @@ -363,9 +368,11 @@ class TDLan2Formatter extends AbstractFormatter2 { ) for (c : e.getComment()) { c.prepend[newLine] c.format; } for (a : e.getAnnotation()) { a.prepend[newLine] a.format } Loading Loading
plugins/org.etsi.mts.tdl.TDLan2/src/org/etsi/mts/tdl/formatting2/TDLan2Formatter.xtend +7 −0 Original line number Diff line number Diff line Loading @@ -66,7 +66,9 @@ class TDLan2Formatter extends AbstractFormatter2 { def dispatch void format(PackageableElement p, extension IFormattableDocument document) { p.prepend[newLine] p.allRegionsFor.keyword(';').prepend[noSpace] p.allRegionsFor.keyword(';').append[newLine] p.allRegionsFor.keyword(',').prepend[noSpace] p.append[newLine] interior( Loading @@ -86,6 +88,7 @@ class TDLan2Formatter extends AbstractFormatter2 { } for (m : p.member) { m.prepend[newLine] m.format } } for (Comment comment : p.getComment()) { Loading Loading @@ -355,6 +358,8 @@ class TDLan2Formatter extends AbstractFormatter2 { def dispatch void format(Element e, extension IFormattableDocument document) { e.prepend[newLine] e.allRegionsFor.keyword(',').prepend[noSpace] e.allRegionsFor.keyword(';').prepend[noSpace] interior( e.regionFor.keyword('{').append[newLine], Loading @@ -363,9 +368,11 @@ class TDLan2Formatter extends AbstractFormatter2 { ) for (c : e.getComment()) { c.prepend[newLine] c.format; } for (a : e.getAnnotation()) { a.prepend[newLine] a.format } Loading