Skip to content

Commit 5a43790

Browse files
author
GitHub Actions Autoformatter
committed
Auto-format source code
1 parent 43011b9 commit 5a43790

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/rgen/Microsoft.Macios.Bindings.Analyzer/Validators/PropertyOrFieldValidator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bool ValidatePropertyOrField (Property property, RootContext context,
3737
if (errors.Count == 0)
3838
return true;
3939
// select all the errors from the inner validator
40-
diagnostics = [..errors.SelectMany (x => x.Value)];
40+
diagnostics = [.. errors.SelectMany (x => x.Value)];
4141
return false;
4242
}
4343

@@ -50,5 +50,5 @@ public PropertyOrFieldValidator () : base (p => p.Location)
5050
// add a global strategy based on the type of property (IsField or IsProperty) will call the appropriate strategy
5151
var errors = fieldValidator.Descriptors.AddRange (propertyValidator.Descriptors);
5252
AddGlobalStrategy (errors, ValidatePropertyOrField);
53-
}
53+
}
5454
}

tests/rgen/Microsoft.Macios.Bindings.Analyzer.Tests/Validators/PropertyValidatorTestLogic.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PropertyValidatorTestLogic {
2727
public PropertyValidatorTestLogic (Validator<Property> validator)
2828
{
2929
this.validator = validator;
30-
30+
3131
// Create a dummy compilation to get a semantic model and RootContext
3232
var syntaxTree = CSharpSyntaxTree.ParseText ("namespace Test { }");
3333
var compilation = CSharpCompilation.Create (
@@ -59,12 +59,12 @@ Property CreateProperty (string name = "TestProperty",
5959
modifiers.Add (SyntaxFactory.Token (SyntaxKind.PartialKeyword));
6060

6161
var accessors = ImmutableArray.CreateBuilder<Accessor> ();
62-
62+
6363
if (hasGetter) {
6464
getterSelector ??= "sampleGetter";
6565
var getterExportData = new ExportData<ObjCBindings.Property> (getterSelector,
6666
argumentSemantic, ObjCBindings.Property.Default);
67-
67+
6868
accessors.Add (new Accessor (
6969
accessorKind: AccessorKind.Getter,
7070
symbolAvailability: new SymbolAvailability.Builder ().ToImmutable (),
@@ -78,7 +78,7 @@ Property CreateProperty (string name = "TestProperty",
7878
setterSelector ??= "sampleSetter:";
7979
var setterExportData = new ExportData<ObjCBindings.Property> (setterSelector,
8080
argumentSemantic, ObjCBindings.Property.Default);
81-
81+
8282
accessors.Add (new Accessor (
8383
accessorKind: AccessorKind.Setter,
8484
symbolAvailability: new SymbolAvailability.Builder ().ToImmutable (),
@@ -102,7 +102,7 @@ Property CreateProperty (string name = "TestProperty",
102102
modifiers: modifiers.ToImmutable (),
103103
accessors: accessors.ToImmutable ()
104104
) {
105-
ExportPropertyData = new ExportData<ObjCBindings.Property> (propertySelector,
105+
ExportPropertyData = new ExportData<ObjCBindings.Property> (propertySelector,
106106
argumentSemantic, propertyFlags)
107107
};
108108
}

0 commit comments

Comments
 (0)