1 write to _modifiers
Microsoft.CodeAnalysis.Workspaces (1)
Editing\DeclarationModifiers.cs (1)
22
=>
_modifiers
= modifiers;
45 references to _modifiers
Microsoft.CodeAnalysis.Workspaces (45)
Editing\DeclarationModifiers.cs (45)
101
public bool IsStatic => (
_modifiers
& Modifiers.Static) != 0;
103
public bool IsAbstract => (
_modifiers
& Modifiers.Abstract) != 0;
105
public bool IsNew => (
_modifiers
& Modifiers.New) != 0;
107
public bool IsUnsafe => (
_modifiers
& Modifiers.Unsafe) != 0;
109
public bool IsReadOnly => (
_modifiers
& Modifiers.ReadOnly) != 0;
111
public bool IsVirtual => (
_modifiers
& Modifiers.Virtual) != 0;
113
public bool IsOverride => (
_modifiers
& Modifiers.Override) != 0;
115
public bool IsSealed => (
_modifiers
& Modifiers.Sealed) != 0;
117
public bool IsConst => (
_modifiers
& Modifiers.Const) != 0;
119
public bool IsWithEvents => (
_modifiers
& Modifiers.WithEvents) != 0;
121
public bool IsPartial => (
_modifiers
& Modifiers.Partial) != 0;
123
public bool IsAsync => (
_modifiers
& Modifiers.Async) != 0;
125
public bool IsWriteOnly => (
_modifiers
& Modifiers.WriteOnly) != 0;
127
public bool IsRef => (
_modifiers
& Modifiers.Ref) != 0;
129
public bool IsVolatile => (
_modifiers
& Modifiers.Volatile) != 0;
131
public bool IsExtern => (
_modifiers
& Modifiers.Extern) != 0;
133
public bool IsRequired => (
_modifiers
& Modifiers.Required) != 0;
135
public bool IsFile => (
_modifiers
& Modifiers.File) != 0;
138
=> new(SetFlag(
_modifiers
, Modifiers.Static, isStatic));
141
=> new(SetFlag(
_modifiers
, Modifiers.Abstract, isAbstract));
144
=> new(SetFlag(
_modifiers
, Modifiers.New, isNew));
147
=> new(SetFlag(
_modifiers
, Modifiers.Unsafe, isUnsafe));
150
=> new(SetFlag(
_modifiers
, Modifiers.ReadOnly, isReadOnly));
153
=> new(SetFlag(
_modifiers
, Modifiers.Virtual, isVirtual));
156
=> new(SetFlag(
_modifiers
, Modifiers.Override, isOverride));
159
=> new(SetFlag(
_modifiers
, Modifiers.Sealed, isSealed));
162
=> new(SetFlag(
_modifiers
, Modifiers.Const, isConst));
165
=> new(SetFlag(
_modifiers
, Modifiers.WithEvents, withEvents));
168
=> new(SetFlag(
_modifiers
, Modifiers.Partial, isPartial));
172
=> new(SetFlag(
_modifiers
, Modifiers.Async, isAsync));
175
=> new(SetFlag(
_modifiers
, Modifiers.WriteOnly, isWriteOnly));
178
=> new(SetFlag(
_modifiers
, Modifiers.Ref, isRef));
181
=> new(SetFlag(
_modifiers
, Modifiers.Volatile, isVolatile));
184
=> new(SetFlag(
_modifiers
, Modifiers.Extern, isExtern));
187
=> new(SetFlag(
_modifiers
, Modifiers.Required, isRequired));
190
=> new(SetFlag(
_modifiers
, Modifiers.File, isFile));
243
=> new(left.
_modifiers
| right.
_modifiers
);
246
=> new(left.
_modifiers
& right.
_modifiers
);
249
=> new(left.
_modifiers
| right.
_modifiers
);
252
=> new(left.
_modifiers
& ~right.
_modifiers
);
255
=>
_modifiers
.ToString();