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)
101public bool IsStatic => (_modifiers & Modifiers.Static) != 0; 103public bool IsAbstract => (_modifiers & Modifiers.Abstract) != 0; 105public bool IsNew => (_modifiers & Modifiers.New) != 0; 107public bool IsUnsafe => (_modifiers & Modifiers.Unsafe) != 0; 109public bool IsReadOnly => (_modifiers & Modifiers.ReadOnly) != 0; 111public bool IsVirtual => (_modifiers & Modifiers.Virtual) != 0; 113public bool IsOverride => (_modifiers & Modifiers.Override) != 0; 115public bool IsSealed => (_modifiers & Modifiers.Sealed) != 0; 117public bool IsConst => (_modifiers & Modifiers.Const) != 0; 119public bool IsWithEvents => (_modifiers & Modifiers.WithEvents) != 0; 121public bool IsPartial => (_modifiers & Modifiers.Partial) != 0; 123public bool IsAsync => (_modifiers & Modifiers.Async) != 0; 125public bool IsWriteOnly => (_modifiers & Modifiers.WriteOnly) != 0; 127public bool IsRef => (_modifiers & Modifiers.Ref) != 0; 129public bool IsVolatile => (_modifiers & Modifiers.Volatile) != 0; 131public bool IsExtern => (_modifiers & Modifiers.Extern) != 0; 133public bool IsRequired => (_modifiers & Modifiers.Required) != 0; 135public 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();