diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/UNI-18437.cs')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/UNI-18437.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/UNI-18437.cs b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/UNI-18437.cs new file mode 100644 index 00000000..aab6c498 --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cs/UNI-18437.cs @@ -0,0 +1,22 @@ +private static Type[] GetAllVisualElementTypes() +{ + return typeof(VisualElement).Assembly.GetTypes() + .Where(t => t != typeof(VisualElement) && + t != typeof(Panel) && + !t.IsAbstract && + !typeof(IMElement).IsAssignableFrom(t) && + !typeof(IMContainer).IsAssignableFrom(t) && + typeof(VisualElement).IsAssignableFrom(t)).ToArray(); +} + +// to this +private static Type[] GetAllVisualElementAssetTypes() +{ + return typeof(VisualElement).Assembly.GetTypes() + .Where(t => t != typeof(VisualElement) && + t != typeof(Panel) && + !t.IsAbstract && + !typeof(IMElement).IsAssignableFrom(t) && + !typeof(IMContainer).IsAssignableFrom(t) && + typeof(VisualElement).IsAssignableFrom(t)).ToArray(); +} |