41 references to MethodSemanticsAttributes
Microsoft.CodeAnalysis (9)
PEWriter\MetadataWriter.cs (9)
2692
MethodSemanticsAttributes
semantics;
2695
semantics =
MethodSemanticsAttributes
.Setter;
2699
semantics =
MethodSemanticsAttributes
.Getter;
2703
semantics =
MethodSemanticsAttributes
.Other;
2724
MethodSemanticsAttributes
semantics;
2727
semantics =
MethodSemanticsAttributes
.Adder;
2731
semantics =
MethodSemanticsAttributes
.Remover;
2735
semantics =
MethodSemanticsAttributes
.Raiser;
2739
semantics =
MethodSemanticsAttributes
.Other;
Microsoft.DotNet.ILAssembler (14)
Actions\GrammarActions.Members.PropertiesEvents.cs (9)
92
=> AddPropertyAccessor(body,
MethodSemanticsAttributes
.Setter, value);
97
=> AddPropertyAccessor(body,
MethodSemanticsAttributes
.Getter, value);
102
=> AddPropertyAccessor(body,
MethodSemanticsAttributes
.Other, value);
106
MethodSemanticsAttributes
semantics,
205
=> AddEventAccessor(body,
MethodSemanticsAttributes
.Adder, value);
208
=> AddEventAccessor(body,
MethodSemanticsAttributes
.Remover, value);
211
=> AddEventAccessor(body,
MethodSemanticsAttributes
.Raiser, value);
214
=> AddEventAccessor(body,
MethodSemanticsAttributes
.Other, value);
218
MethodSemanticsAttributes
semantics,
EntityRegistry.cs (2)
2215
public List<(
MethodSemanticsAttributes
Semantic, EntityBase Method)> Accessors { get; } = new();
2226
public List<(
MethodSemanticsAttributes
Semantic, EntityBase Method)> Accessors { get; } = new();
PseudoCustomAttributes.MarshalAs.cs (3)
55
foreach ((
MethodSemanticsAttributes
semantic, EntityRegistry.EntityBase accessor) in property.Accessors)
63
if (semantic ==
MethodSemanticsAttributes
.Getter)
67
else if (semantic ==
MethodSemanticsAttributes
.Setter)
System.Reflection.Emit (8)
System\Reflection\Emit\ModuleBuilderImpl.cs (8)
242
AddMethodSemantics(eventHandle,
MethodSemanticsAttributes
.Adder, aMb._handle);
247
AddMethodSemantics(eventHandle,
MethodSemanticsAttributes
.Raiser, rMb._handle);
252
AddMethodSemantics(eventHandle,
MethodSemanticsAttributes
.Remover, remMb._handle);
259
AddMethodSemantics(eventHandle,
MethodSemanticsAttributes
.Other, method._handle);
280
AddMethodSemantics(propertyHandle,
MethodSemanticsAttributes
.Getter, gMb._handle);
285
AddMethodSemantics(propertyHandle,
MethodSemanticsAttributes
.Setter, sMb._handle);
292
AddMethodSemantics(propertyHandle,
MethodSemanticsAttributes
.Other, method._handle);
890
private void AddMethodSemantics(EntityHandle parentHandle,
MethodSemanticsAttributes
attribute, MethodDefinitionHandle methodHandle) =>
System.Reflection.Metadata (10)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (1)
693
public void AddMethodSemantics(EntityHandle association,
MethodSemanticsAttributes
semantics, MethodDefinitionHandle methodDefinition)
System\Reflection\Metadata\Internal\Tables.cs (2)
1513
internal
MethodSemanticsAttributes
GetSemantics(int rowId)
1516
return (
MethodSemanticsAttributes
)this.Block.PeekUInt16(rowOffset + _SemanticsFlagOffset);
System\Reflection\Metadata\TypeSystem\EventDefinition.cs (4)
78
case
MethodSemanticsAttributes
.Adder:
82
case
MethodSemanticsAttributes
.Remover:
86
case
MethodSemanticsAttributes
.Raiser:
90
case
MethodSemanticsAttributes
.Other:
System\Reflection\Metadata\TypeSystem\PropertyDefinition.cs (3)
89
case
MethodSemanticsAttributes
.Getter:
93
case
MethodSemanticsAttributes
.Setter:
97
case
MethodSemanticsAttributes
.Other: