diff options
author | Michele Calgaro <[email protected]> | 2022-12-04 19:16:43 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-12-04 19:38:30 +0900 |
commit | fdcd72088371b3d8dfd31f2a5159861ce0be5535 (patch) | |
tree | 06c160cc34157344f62b6c19af297858a0e57157 /debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10045-UNI-1288.cs | |
parent | a5d7db3b2c6171ea9e76b84155d2dfb66c243e5a (diff) | |
download | extra-dependencies-fdcd72088371b3d8dfd31f2a5159861ce0be5535.tar.gz extra-dependencies-fdcd72088371b3d8dfd31f2a5159861ce0be5535.zip |
uncrustify-trinity: updated based on upstream version 0.76.0
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10045-UNI-1288.cs')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10045-UNI-1288.cs | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10045-UNI-1288.cs b/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10045-UNI-1288.cs deleted file mode 100644 index 03d60f5b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/cs/10045-UNI-1288.cs +++ /dev/null @@ -1,77 +0,0 @@ -public class Class
-{
- public Foo GetFoo()
- {
- return new Foo
- {
- enabled = false,
- };
- }
-
- public override Bar GetBar()
- {
- return new Bar()
- {
- m_Name = TestPropertyName
- };
- return new
- AA();
- return new AA<Type>
- {
- };
- }
-
- //It appears uncrustify is adding double-indentation no matter what, to the initializer block.
- // Both of the above examples start out at a different level of indentation, and both get double-indented past original.
-}
-
-// The following code consolidates examples from the topic.
-class ObjInitializers
-{
- class Cat
- {
- // Auto-implemented properties.
- public int Age { get; set; }
- public string Name { get; set; }
- }
-
- static void Main()
- {
- Cat cat = new Cat { Age = 10, Name = "Fluffy" };
-
- List<Cat> cats = new List<Cat>
- {
- new Cat() { Name = "Sylvester", Age = 8 },
- new Cat() { Name = "Whiskers", Age = 2 },
- new Cat() { Name = "Sasha", Age = 14 }
- };
-
- List<Cat> moreCats = new List<Cat>
- {
- new Cat() { Name = "Furrytail", Age = 5 },
- new Cat() { Name = "Peaches", Age = 4 },
- null
- };
-
- // Display results.
- System.Console.WriteLine(cat.Name);
-
- foreach (Cat c in cats)
- System.Console.WriteLine(c.Name);
-
- foreach (Cat c in moreCats)
- if (c != null)
- System.Console.WriteLine(c.Name);
- else
- System.Console.WriteLine("List element has null value.");
- }
-
- // Output:
- //Fluffy
- //Sylvester
- //Whiskers
- //Sasha
- //Furrytail
- //Peaches
- //List element has null value.
-}
|