25 references to Unsafe
Microsoft.CodeAnalysis.CSharp (25)
Parser\LanguageParser.cs (1)
1324
return DeclarationModifiers.
Unsafe
;
Symbols\AliasSymbol.cs (1)
388
this.CheckUnsafeModifier(DeclarationModifiers.
Unsafe
, usingDirective.UnsafeKeyword.GetLocation(), diagnostics);
Symbols\Source\LocalFunctionSymbol.cs (1)
371
public bool IsUnsafe => (_declarationModifiers & DeclarationModifiers.
Unsafe
) != 0;
Symbols\Source\ModifierUtils.cs (2)
309
case DeclarationModifiers.
Unsafe
:
361
return DeclarationModifiers.
Unsafe
;
Symbols\Source\SourceConstructorSymbol.cs (1)
133
DeclarationModifiers.
Unsafe
;
Symbols\Source\SourceDestructorSymbol.cs (1)
132
const DeclarationModifiers allowedModifiers = DeclarationModifiers.Extern | DeclarationModifiers.
Unsafe
;
Symbols\Source\SourceEventSymbol.cs (1)
452
var allowedModifiers = DeclarationModifiers.
Unsafe
;
Symbols\Source\SourceMemberContainerSymbol.cs (5)
320
| DeclarationModifiers.
Unsafe
;
329
allowedModifiers |= DeclarationModifiers.Partial | DeclarationModifiers.ReadOnly | DeclarationModifiers.
Unsafe
;
338
allowedModifiers |= DeclarationModifiers.Partial | DeclarationModifiers.
Unsafe
;
341
allowedModifiers |= DeclarationModifiers.
Unsafe
;
857
internal bool IsUnsafe => HasFlag(DeclarationModifiers.
Unsafe
);
Symbols\Source\SourceMemberFieldSymbol.cs (3)
179
DeclarationModifiers.
Unsafe
|
209
Debug.Assert((result & ~(DeclarationModifiers.AccessibilityMask | DeclarationModifiers.Fixed | DeclarationModifiers.
Unsafe
| DeclarationModifiers.New)) == 0);
222
reportBadMemberFlagIfAny(result, DeclarationModifiers.
Unsafe
, diagnostics, errorLocation);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
663
return (this.DeclarationModifiers & DeclarationModifiers.
Unsafe
) != 0;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
746
declaringSymbol.CheckUnsafeModifier(DeclarationModifiers.
Unsafe
, unsafeKeywordLocation, diagnostics);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
697
var allowedModifiers = DeclarationModifiers.Partial | DeclarationModifiers.
Unsafe
;
Symbols\Source\SourcePropertySymbol.cs (3)
372
var allowedModifiers = DeclarationModifiers.Partial | DeclarationModifiers.
Unsafe
;
730
if ((_modifiers & DeclarationModifiers.
Unsafe
) != (implementation._modifiers & DeclarationModifiers.
Unsafe
) && this.CompilationAllowsUnsafe()) // Don't cascade.
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
132
DeclarationModifiers.
Unsafe
;
Symbols\SymbolExtensions.cs (2)
302
(modifiers & DeclarationModifiers.
Unsafe
) == DeclarationModifiers.
Unsafe
&&