Skip to content

Commit 9ba8677

Browse files
author
mmews-n4
authored
GH-2603: As a smith I want to migrate some Xtend files to Java (part 8) (#2605)
* some migrations * migrate formatter * more migrations * migrate migrate * migrate migrate * some fixes * fix recursion * fix recursion * fix wrong cast * migrate migrate * migrate migrate * fix * migrate migrate * migrate migrate * migrate migrate * migrate migrate * migrate migrate * migrate * fix * migrate N4JSScopeProvider * migrate migrate * migrate MemberScopingHelper * migrate migrate * migrate migrate * fix * migrate more * migrate * fix * migrate * migrate * migrate * migrate * my great migrate * migrate * migrate the migratable * migrate * migrate * migrate
1 parent f2b2ce1 commit 9ba8677

File tree

138 files changed

+18443
-15564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+18443
-15564
lines changed

plugins/org.eclipse.n4js/src/org/eclipse/n4js/compileTime/CompileTimeEvaluator.java

+521
Large diffs are not rendered by default.

plugins/org.eclipse.n4js/src/org/eclipse/n4js/compileTime/CompileTimeEvaluator.xtend

-447
This file was deleted.

plugins/org.eclipse.n4js/src/org/eclipse/n4js/formatting2/N4JSFormatter.java

+2,379
Large diffs are not rendered by default.

plugins/org.eclipse.n4js/src/org/eclipse/n4js/formatting2/N4JSFormatter.xtend

-1,441
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* Copyright (c) 2016 NumberFour AG.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* NumberFour AG - Initial API and implementation
10+
*/
11+
package org.eclipse.n4js.formatting2;
12+
13+
import org.eclipse.xtext.formatting2.FormatterPreferenceKeys;
14+
import org.eclipse.xtext.preferences.BooleanKey;
15+
import org.eclipse.xtext.preferences.IntegerKey;
16+
17+
/**
18+
*
19+
*/
20+
public class N4JSFormatterPreferenceKeys extends FormatterPreferenceKeys {
21+
/***/
22+
public static BooleanKey FORMAT_PARENTHESIS = new BooleanKey("format.parenthesis", false);
23+
/***/
24+
public static BooleanKey FORMAT_SURROUND_PAREN_CONTENT_WITH_SPACE = new BooleanKey(
25+
"format.surround_paren_content_with_space", false);
26+
/***/
27+
public static IntegerKey FORMAT_MAX_CONSECUTIVE_NEWLINES = new IntegerKey("format.max_consecutive_newlines", 2);
28+
/***/
29+
public static BooleanKey FORMAT_SWITCH_CASES_HAVE_SPACE_IN_FRONT_OF_COLON = new BooleanKey(
30+
"format.switch_cases_have_space_in_front_of_colon", false);
31+
/***/
32+
public static BooleanKey FORMAT_AUTO_WRAP_IN_FRONT_OF_LOGICAL_OPERATOR = new BooleanKey(
33+
"format.auto_wrap_in_front_of_logical_operator", true);
34+
/**
35+
* Considering the code <code>import a, {b,c,d} from "xy";</code> a value of <code>true</code> will render an
36+
* additional space after "{" and one before the closing bracket "}" Default value is <code>false</code> and the
37+
* line will be rendered as above.
38+
*/
39+
public static BooleanKey FORMAT_SURROUND_IMPORT_LIST_WITH_SPACE = new BooleanKey(
40+
"format.surround_import_list_with_space", false);
41+
42+
}

plugins/org.eclipse.n4js/src/org/eclipse/n4js/formatting2/N4JSFormatterPreferenceKeys.xtend

-31
This file was deleted.

0 commit comments

Comments
 (0)