use of org.eclipse.xtext.preferences.MapBasedPreferenceValues in project xtext-xtend by eclipse.
the class XtendAnnotationTypeFormatterTest method formatFieldInit04.
@Ignore
@Test
public void formatFieldInit04() {
final Procedure1<MapBasedPreferenceValues> _function = (MapBasedPreferenceValues it) -> {
};
StringConcatenation _builder = new StringConcatenation();
_builder.append("annotation Bar {");
_builder.newLine();
_builder.append("\t");
_builder.append("val foo = 1 + 1");
_builder.newLine();
_builder.append("\t");
_builder.append("val baz = 1 + 1");
_builder.newLine();
_builder.append("}");
_builder.newLine();
this.assertFormatted(_function, _builder);
}
use of org.eclipse.xtext.preferences.MapBasedPreferenceValues in project xtext-xtend by eclipse.
the class XtendAnnotationTypeFormatterTest method formatBraces_02.
@Test
public void formatBraces_02() {
final Procedure1<MapBasedPreferenceValues> _function = (MapBasedPreferenceValues it) -> {
it.<Boolean>put(XbaseFormatterPreferenceKeys.bracesInNewLine, Boolean.valueOf(true));
};
StringConcatenation _builder = new StringConcatenation();
_builder.append("package foo");
_builder.newLine();
_builder.newLine();
_builder.append("annotation Bar");
_builder.newLine();
_builder.append("{");
_builder.newLine();
_builder.append("}");
_builder.newLine();
this.assertFormatted(_function, _builder);
}
use of org.eclipse.xtext.preferences.MapBasedPreferenceValues in project xtext-xtend by eclipse.
the class XtendAnnotationTypeFormatterTest method formatField02.
@Test
public void formatField02() {
final Procedure1<MapBasedPreferenceValues> _function = (MapBasedPreferenceValues it) -> {
};
StringConcatenation _builder = new StringConcatenation();
_builder.append("annotation Bar {");
_builder.newLine();
_builder.append("\t");
_builder.append("int foo");
_builder.newLine();
_builder.append("\t");
_builder.append("int baz");
_builder.newLine();
_builder.append("}");
_builder.newLine();
this.assertFormatted(_function, _builder);
}
use of org.eclipse.xtext.preferences.MapBasedPreferenceValues in project xtext-xtend by eclipse.
the class XtendAnnotationTypeFormatterTest method formatFieldInit03.
@Ignore
@Test
public void formatFieldInit03() {
final Procedure1<MapBasedPreferenceValues> _function = (MapBasedPreferenceValues it) -> {
};
StringConcatenation _builder = new StringConcatenation();
_builder.append("annotation Bar {");
_builder.newLine();
_builder.append("\t");
_builder.append("val foo = 1 + 1");
_builder.newLine();
_builder.append("}");
_builder.newLine();
this.assertFormatted(_function, _builder);
}
use of org.eclipse.xtext.preferences.MapBasedPreferenceValues in project xtext-xtend by eclipse.
the class XtendAnnotationsFormatterTest method formatFieldTwoAnnotations1.
@Test
public void formatFieldTwoAnnotations1() {
final Procedure1<MapBasedPreferenceValues> _function = (MapBasedPreferenceValues it) -> {
it.<Boolean>put(XbaseFormatterPreferenceKeys.newLineAfterFieldAnnotations, Boolean.valueOf(true));
it.<Boolean>put(XbaseFormatterPreferenceKeys.preserveNewLines, Boolean.valueOf(true));
};
StringConcatenation _builder = new StringConcatenation();
_builder.append("@Override");
_builder.newLine();
_builder.append("@Deprecated");
_builder.newLine();
_builder.append("int value");
_builder.newLine();
this.assertFormattedMember(_function, _builder.toString());
}
Aggregations