13 overrides of SetMethod
Microsoft.CodeAnalysis.VisualBasic (13)
Binding\Binder_XmlLiterals.vb (1)
1675
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (1)
100
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
41
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (1)
77
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\Metadata\PE\PEPropertySymbol.vb (1)
295
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
109
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\SignatureOnlyPropertySymbol.vb (1)
154
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
1795
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\Source\SourcePropertySymbol.vb (1)
676
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
67
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\SubstitutedPropertySymbol.vb (1)
124
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
118
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
Symbols\Tuples\TuplePropertySymbol.vb (1)
68
Public Overrides ReadOnly Property
SetMethod
As MethodSymbol
165 references to SetMethod
Microsoft.CodeAnalysis.VisualBasic (40)
Binding\Binder_Attributes.vb (1)
470
Dim setMethod = propertySym.
SetMethod
Binding\Binder_Invocation.vb (2)
1001
ElseIf [property].
SetMethod
Is ContainingMember Then
2905
propertyAccess.PropertySymbol.
SetMethod
?.IsInitOnly Then
Binding\Binder_XmlLiterals.vb (1)
1677
Return ReduceAccessorIfAny(_originalDefinition.
SetMethod
)
Emit\NoPia\EmbeddedTypesManager.vb (1)
440
Dim setMethod = [property].AdaptedPropertySymbol.
SetMethod
Emit\PropertySymbolAdapter.vb (2)
28
Dim setter = AdaptedPropertySymbol.
SetMethod
?.GetCciAdapter()
84
Return AdaptedPropertySymbol.
SetMethod
?.GetCciAdapter()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
600
Me._factory.MethodInfo((DirectCast(leftSymbol, PropertySymbol)).
SetMethod
))
Symbols\Attributes\AttributeData.vb (1)
428
[property].HasSet AndAlso [property].
SetMethod
.DeclaredAccessibility = Accessibility.Public Then
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (2)
261
If [property].
SetMethod
IsNot Nothing Then
262
AddReferencedSymbolWithDependents([property].
SetMethod
, allSymbols)
Symbols\Metadata\PE\PEPropertySymbol.vb (2)
354
Dim setMethod As MethodSymbol = prop.
SetMethod
421
Dim setMethod = [property].
SetMethod
Symbols\PropertySignatureComparer.vb (2)
170
prop1.
SetMethod
?.IsInitOnly <> prop2.
SetMethod
?.IsInitOnly Then
Symbols\PropertySymbol.vb (4)
112
Return (Me.
SetMethod
Is Nothing)
267
Dim setMethod = [property].
SetMethod
333
Return If(getter, overriddenProp.GetMethod, overriddenProp.
SetMethod
)
570
Return Me.
SetMethod
Symbols\PropertySymbolExtensions.vb (1)
52
Dim accessor = [property].
SetMethod
Symbols\Retargeting\RetargetingPropertySymbol.vb (2)
111
Return If(_underlyingProperty.
SetMethod
Is Nothing, Nothing, RetargetingTranslator.Retarget(_underlyingProperty.
SetMethod
))
Symbols\Source\ImplementsHelper.vb (5)
371
accessorToCheck = [property].
SetMethod
478
Dim implementedPropertySetMethod As MethodSymbol = implementedProperty.
SetMethod
486
(implementedPropertySetMethod IsNot Nothing AndAlso implementingProperty.
SetMethod
Is Nothing) Then
494
implementingProperty.GetMethod IsNot Nothing AndAlso implementingProperty.
SetMethod
IsNot Nothing Then
502
If implementedPropertySetMethod?.IsInitOnly <> implementingProperty.
SetMethod
?.IsInitOnly Then
Symbols\Source\OverrideHidingHelper.vb (2)
924
CheckOverridePropertyAccessor(overridingProperty.
SetMethod
, overriddenProperty.
SetMethod
, diagnostics)
Symbols\Source\SourceMemberMethodSymbol.vb (1)
774
hookupMethod = witheventsPropertyInCurrentClass.
SetMethod
Symbols\Source\SourceMethodSymbol.vb (1)
1068
Dim accessor = If(syntax.Kind = SyntaxKind.GetAccessorStatement, propertySymbol.GetMethod, propertySymbol.
SetMethod
)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
399
Dim setter As MethodSymbol = prop.
SetMethod
426
If prop.Type.IsObjectType() AndAlso prop.
SetMethod
IsNot Nothing Then
613
If LexicalOrderSymbolComparer.Instance.Compare(prop.GetMethod, prop.
SetMethod
) <= 0 Then
Symbols\Source\SourcePropertySymbol.vb (1)
900
Dim accessor = If(getter, implementedProp.GetMethod, implementedProp.
SetMethod
)
Symbols\SubstitutedNamedType.vb (3)
319
Dim setMethod = If(memberProperty.
SetMethod
Is Nothing, Nothing, SubstituteTypeParametersForMemberMethod(memberProperty.
SetMethod
))
371
Dim setMethod = GetMethodSubstitute(methodSubstitutions, memberProperty.
SetMethod
)
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
65
baseProperty.
SetMethod
.ReturnType,
Symbols\Tuples\TuplePropertySymbol.vb (1)
70
Return Me._containingType.GetTupleMemberSymbolForUnderlyingMember(Of MethodSymbol)(Me._underlyingProperty.
SetMethod
)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (3)
EditAndContinue\TopLevelEditingTests.vb (3)
3787
SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of PropertySymbol)("P1").
SetMethod
),
4026
SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of PropertySymbol)("P").
SetMethod
)
8136
SemanticEdit(SemanticEditKind.Update, Function(c) c.GetMember(Of NamedTypeSymbol)("C").GetMember(Of PropertySymbol)("P").
SetMethod
)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (25)
Attributes\AttributeTests.vb (19)
524
Assert.Equal(0, auto.
SetMethod
.GetReturnTypeAttributes().Length)
525
Assert.Equal(0, auto.
SetMethod
.Parameters(0).GetAttributes().Length)
529
Assert.Null(autoRO.
SetMethod
)
533
Assert.Equal(0, autoWO.
SetMethod
.GetReturnTypeAttributes().Length)
534
Assert.Equal(0, auto.
SetMethod
.Parameters(0).GetAttributes().Length)
539
Assert.Equal(0, auto.
SetMethod
.GetReturnTypeAttributes().Length)
540
Assert.Equal(0, auto.
SetMethod
.Parameters(0).GetAttributes().Length)
545
Assert.Null(roa.
SetMethod
)
549
Assert.Equal(0, woa.
SetMethod
.GetReturnTypeAttributes().Length)
550
Assert.Equal(0, woa.
SetMethod
.Parameters(0).GetAttributes().Length)
554
Assert.Equal(0, a.
SetMethod
.GetReturnTypeAttributes().Length)
555
Assert.Equal(0, a.
SetMethod
.Parameters(0).GetAttributes().Length)
560
Assert.Equal(0, ab.
SetMethod
.GetReturnTypeAttributes().Length)
561
Assert.Equal(1, ab.
SetMethod
.Parameters(0).GetAttributes().Length)
562
Assert.Equal("B", ab.
SetMethod
.Parameters(0).GetAttributes()(0).AttributeClass.Name)
602
Assert.Null(auto.
SetMethod
.ReturnTypeMarshallingInformation)
603
Assert.Equal(UnmanagedType.I4, auto.
SetMethod
.Parameters(0).MarshallingInformation.UnmanagedType)
604
Assert.Equal(0, auto.
SetMethod
.Parameters(0).GetAttributes().Length)
661
attrs = prop.
SetMethod
.GetAttributes()
Attributes\AttributeTests_Conditional.vb (2)
177
Dim propSetMethod = propP1.
SetMethod
193
propSetMethod = propP3.
SetMethod
Attributes\AttributeTests_Synthesized.vb (3)
169
attrs = p.
SetMethod
.GetAttributes()
175
attrs = q.
SetMethod
.GetAttributes()
181
attrs = we.
SetMethod
.GetAttributes()
Emit\EditAndContinue\EditAndContinueTests.vb (1)
1901
Dim method1 = prop1.
SetMethod
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (42)
Semantics\GetSemanticInfoTests.vb (2)
3790
Assert.Null([property].
SetMethod
)
3800
Assert.Null([property].
SetMethod
)
Semantics\InitOnlyMemberTests.vb (37)
75
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Property0").
SetMethod
, IMethodSymbol).IsInitOnly)
348
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Property0").
SetMethod
, IMethodSymbol).IsInitOnly)
569
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Item").
SetMethod
, IMethodSymbol).IsInitOnly)
861
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Item").
SetMethod
, IMethodSymbol).IsInitOnly)
1118
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Property0").
SetMethod
, IMethodSymbol).IsInitOnly)
1306
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Item").
SetMethod
, IMethodSymbol).IsInitOnly)
1852
Dim p0Set = comp1.GetMember(Of PropertySymbol)("B1.P0").
SetMethod
1855
Dim p1Set = comp1.GetMember(Of PropertySymbol)("B1.P1").
SetMethod
1858
Assert.False(comp1.GetMember(Of PropertySymbol)("B2.P0").
SetMethod
.IsInitOnly)
1956
Dim p0Set = comp1.GetTypeByMetadataName("B1").GetMembers("Item").OfType(Of PropertySymbol).First().
SetMethod
2123
Dim pSet = p.
SetMethod
2211
Dim pSet = p.
SetMethod
2306
Dim pSet = p.
SetMethod
2400
Dim pSet = p.
SetMethod
2617
Assert.NotEmpty(cl2p1.
SetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2622
Assert.NotEmpty(cl2p2.
SetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2627
Assert.Empty(cl3p1.
SetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2632
Assert.Empty(cl3p2.
SetMethod
.OverriddenMethod.ReturnTypeCustomModifiers)
2712
Dim p0Set = comp1.GetMember(Of PropertySymbol)("B1.P0").
SetMethod
2714
Dim p1Set = comp1.GetMember(Of PropertySymbol)("B1.P1").
SetMethod
2716
Assert.False(comp1.GetMember(Of PropertySymbol)("B2.P0").
SetMethod
.IsInitOnly)
2942
Dim pSet = p.
SetMethod
3025
Dim pSet = p.
SetMethod
3454
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Item").
SetMethod
, IMethodSymbol).IsInitOnly)
3863
Assert.True(DirectCast(comp1.GetMember(Of PropertySymbol)("C.Item").
SetMethod
, IMethodSymbol).IsInitOnly)
4366
Dim pSet = p.
SetMethod
4443
Dim pSet = p.
SetMethod
4617
Dim pSet = p.
SetMethod
4694
Dim pSet = p.
SetMethod
4777
Dim pSet = p.
SetMethod
4865
Dim pSet = p.
SetMethod
4958
Dim pSet = p.
SetMethod
5053
Dim pSet = p.
SetMethod
5116
Dim pSet = p.
SetMethod
5189
Dim pSet = p.
SetMethod
5254
Assert.False(p.
SetMethod
.IsInitOnly)
5262
Assert.False(p.
SetMethod
.IsInitOnly)
Semantics\IteratorTests.vb (2)
1019
Assert.False([property].
SetMethod
.IsIterator)
1022
Assert.False([property].
SetMethod
.IsIterator)
Semantics\XmlLiteralSemanticModelTests.vb (1)
424
Assert.Equal(1, symbol.
SetMethod
.Parameters().Length)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (55)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (2)
675
Dim setter = prop.
SetMethod
683
Assert.Null(prop.
SetMethod
)
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (1)
1953
Dim setter As MethodSymbol = [property].
SetMethod
SymbolsTests\AttributeTests_UnmanagedCallersOnly.vb (4)
208
Assert.NotNull(prop.
SetMethod
.GetUseSiteErrorInfo())
209
Assert.True(prop.
SetMethod
.HasUnsupportedMetadata)
338
Assert.NotNull(prop.
SetMethod
.GetUseSiteErrorInfo())
339
Assert.True(prop.
SetMethod
.HasUnsupportedMetadata)
SymbolsTests\CustomModifiersTests.vb (1)
1052
Assert.Equal("Sub CL3.set_Test(Value As System.Int32 modopt(System.Runtime.CompilerServices.IsConst) modopt(System.Runtime.CompilerServices.IsLong))", test.
SetMethod
.ToTestDisplayString())
SymbolsTests\DefaultInterfaceImplementationTests.vb (4)
4251
Dim p1Set = p1.
SetMethod
4312
Dim p1Set = p1.
SetMethod
4379
Dim p1Set = p1.
SetMethod
4442
Dim p1Set = p1.
SetMethod
SymbolsTests\Metadata\MetadataMemberTests.vb (2)
764
Assert.NotNull(propWithoutGetter.
SetMethod
)
769
Assert.Null(propWithoutSetter.
SetMethod
)
SymbolsTests\Metadata\PE\LoadingAttributes.vb (1)
1207
Assert.Equal(1, prop.
SetMethod
.GetAttributes().Length)
SymbolsTests\Metadata\PE\VisualBasicCompilerFeatureRequiredTests.vb (2)
190
Assert.False(onPropertyGetterProperty.
SetMethod
.HasUnsupportedMetadata)
197
Assert.True(onPropertySetterProperty.
SetMethod
.HasUnsupportedMetadata)
SymbolsTests\MyBaseMyClassSemanticsTests.vb (1)
102
Dim setter As MethodSymbol = [property].
SetMethod
SymbolsTests\Source\ImplementsTests.vb (1)
2227
Dim fooXSetter = fooX.
SetMethod
SymbolsTests\Source\PropertyTests.vb (22)
729
accessor = [property].
SetMethod
787
Assert.Equal(SpecialType.System_Int32, [property].
SetMethod
.Parameters(0).Type.SpecialType)
788
Assert.Equal(SpecialType.System_Object, [property].
SetMethod
.Parameters(1).Type.SpecialType)
789
Assert.Equal([property].
SetMethod
.Parameters(1).Name, "value")
1358
Assert.NotNull(autoProp.
SetMethod
)
1359
For Each p In autoProp.
SetMethod
.Parameters
1363
Assert.NotNull(deftProp.
SetMethod
)
1364
For Each p In deftProp.
SetMethod
.Parameters
1423
Assert.Null(defaultCapacityProperty.
SetMethod
)
5976
Assert.True(p.
SetMethod
.IsImplicitlyDeclared)
5979
Assert.True(p.
SetMethod
.IsImplicitlyDeclared)
5982
Assert.True(q.
SetMethod
.IsImplicitlyDeclared)
8098
VerifyMethodAndAccessorSame(type, [property], [property].
SetMethod
)
8121
CheckPropertyAccessorAccessibility([property], propertyAccessibility, [property].
SetMethod
, setterAccessibility)
8157
Dim setterAttribute = [property].
SetMethod
.GetAttributes().Single()
8185
Dim interfacePropertySetter = interfaceProperty.
SetMethod
8192
Dim classPropertySetter = classProperty.
SetMethod
8246
If [property].
SetMethod
IsNot Nothing Then
8247
Assert.Equal([property].
SetMethod
.Parameters.Length, expectedCount + 1)
8252
Assert.Equal([property].
SetMethod
.Parameters.Last().Type, [property].Type)
8258
If [property].
SetMethod
IsNot Nothing Then
8259
Assert.True((From param In [property].
SetMethod
.Parameters Select param.Type).Take([property].Parameters.Length - 1).SequenceEqual(expectedTypes))
SymbolsTests\StaticAbstractMembersInInterfacesTests.vb (8)
827
Assert.False(i1P1.
SetMethod
.IsShared)
857
Assert.False(i1P1.
SetMethod
.IsShared)
896
Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.
SetMethod
))
901
Assert.Null(c.FindImplementationForInterfaceMember(i1P1.
SetMethod
))
945
Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.
SetMethod
))
950
Assert.Null(c.FindImplementationForInterfaceMember(i1P1.
SetMethod
))
994
Assert.Null(i1P1.ContainingType.FindImplementationForInterfaceMember(i1P1.
SetMethod
))
999
Assert.Null(c.FindImplementationForInterfaceMember(i1P1.
SetMethod
))
SymbolsTests\SymbolErrorTests.vb (6)
10591
Assert.True(baseP1.
SetMethod
.IsOverridable)
10594
Dim p1Set = p1.
SetMethod
10599
Assert.Same(baseP1.
SetMethod
, p1Set.OverriddenMethod)
10651
Assert.False(baseP1.
SetMethod
.IsOverridable)
10654
Dim p1Set = p1.
SetMethod
10659
Assert.Same(baseP1.
SetMethod
, p1Set.OverriddenMethod)