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