// 2. the constant value of BoundEventAccess is always null.
// 3. the syntax of the boundEventAssignmentOperator is always AssignmentExpressionSyntax, so the syntax for the event reference would be the LHS of the assignment.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
ImportsMicrosoft.CodeAnalysis.Test.Utilities
ImportsMicrosoft.CodeAnalysis.VisualBasic.Syntax
...
...
@@ -70,5 +70,122 @@ IPropertyReferenceOperation: Property M1.C1.P1 As System.Object (OperationKind.P
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
ImportsMicrosoft.CodeAnalysis.Operations
ImportsMicrosoft.CodeAnalysis.Test.Utilities
...
...
@@ -463,5 +463,43 @@ BC30059: Constant expression is required.
@@ -309,6 +309,21 @@ public static void ValidateIOperations(Func<Compilation> createCompilation)
Assert.True(argument.Descendants().All(n=>n.IsImplicit),$"Explicit node in default argument value ({argument.Syntax.RawKind}): {argument.Syntax.ToString()}");
}
}
// Make sure that all static member references or invocations of static methods do not have implicit IInstanceReferenceOperations