// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#nullableenable
usingSystem.Collections.Immutable;
usingSystem.Diagnostics;
...
...
@@ -27,7 +28,7 @@ public static bool HasErrors<T>(this ImmutableArray<T> nodeArray)
}
// Like HasErrors property, but also returns false for a null node.
publicstaticboolHasErrors(thisBoundNodenode)
publicstaticboolHasErrors(thisBoundNode?node)
{
returnnode!=null&&node.HasErrors;
}
...
...
@@ -35,7 +36,7 @@ public static bool HasErrors(this BoundNode node)