26 references to Unsafe
Microsoft.CodeAnalysis.CSharp (26)
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)
377
public bool IsUnsafe => (_declarationModifiers & DeclarationModifiers.
Unsafe
) != 0;
Symbols\Source\ModifierUtils.cs (2)
331
case DeclarationModifiers.
Unsafe
:
383
return DeclarationModifiers.
Unsafe
;
Symbols\Source\SourceConstructorSymbol.cs (1)
143
DeclarationModifiers.
Unsafe
;
Symbols\Source\SourceDestructorSymbol.cs (1)
132
const DeclarationModifiers allowedModifiers = DeclarationModifiers.Extern | DeclarationModifiers.
Unsafe
;
Symbols\Source\SourceEventSymbol.cs (2)
452
get { return (_modifiers & DeclarationModifiers.
Unsafe
) != 0; }
505
var allowedModifiers = DeclarationModifiers.Partial | 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)
189
DeclarationModifiers.
Unsafe
|
219
Debug.Assert((result & ~(DeclarationModifiers.AccessibilityMask | DeclarationModifiers.Fixed | DeclarationModifiers.
Unsafe
| DeclarationModifiers.New)) == 0);
232
reportBadMemberFlagIfAny(result, DeclarationModifiers.
Unsafe
, diagnostics, errorLocation);
Symbols\Source\SourceMemberMethodSymbol.cs (1)
675
return (this.DeclarationModifiers & DeclarationModifiers.
Unsafe
) != 0;
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
746
declaringSymbol.CheckUnsafeModifier(DeclarationModifiers.
Unsafe
, unsafeKeywordLocation, diagnostics);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
707
var allowedModifiers = DeclarationModifiers.Partial | DeclarationModifiers.
Unsafe
;
Symbols\Source\SourcePropertySymbol.cs (3)
385
var allowedModifiers = DeclarationModifiers.Partial | DeclarationModifiers.
Unsafe
;
732
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
&&