23 references to UnsafeKeyword
Microsoft.CodeAnalysis.CSharp (18)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1975
=> node.Update(VisitToken(node.GlobalKeyword), VisitToken(node.UsingKeyword), VisitToken(node.StaticKeyword), VisitToken(node.
UnsafeKeyword
), (NameEqualsSyntax?)Visit(node.Alias), (TypeSyntax?)Visit(node.NamespaceOrType) ?? throw new ArgumentNullException("namespaceOrType"), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (7)
9488
if (globalKeyword != this.GlobalKeyword || usingKeyword != this.UsingKeyword || staticKeyword != this.StaticKeyword || unsafeKeyword != this.
UnsafeKeyword
|| alias != this.Alias || namespaceOrType != this.NamespaceOrType || semicolonToken != this.SemicolonToken)
9498
public UsingDirectiveSyntax WithGlobalKeyword(SyntaxToken globalKeyword) => Update(globalKeyword, this.UsingKeyword, this.StaticKeyword, this.
UnsafeKeyword
, this.Alias, this.NamespaceOrType, this.SemicolonToken);
9499
public UsingDirectiveSyntax WithUsingKeyword(SyntaxToken usingKeyword) => Update(this.GlobalKeyword, usingKeyword, this.StaticKeyword, this.
UnsafeKeyword
, this.Alias, this.NamespaceOrType, this.SemicolonToken);
9500
public UsingDirectiveSyntax WithStaticKeyword(SyntaxToken staticKeyword) => Update(this.GlobalKeyword, this.UsingKeyword, staticKeyword, this.
UnsafeKeyword
, this.Alias, this.NamespaceOrType, this.SemicolonToken);
9502
public UsingDirectiveSyntax WithAlias(NameEqualsSyntax? alias) => Update(this.GlobalKeyword, this.UsingKeyword, this.StaticKeyword, this.
UnsafeKeyword
, alias, this.NamespaceOrType, this.SemicolonToken);
9503
public UsingDirectiveSyntax WithNamespaceOrType(TypeSyntax namespaceOrType) => Update(this.GlobalKeyword, this.UsingKeyword, this.StaticKeyword, this.
UnsafeKeyword
, this.Alias, namespaceOrType, this.SemicolonToken);
9504
public UsingDirectiveSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.GlobalKeyword, this.UsingKeyword, this.StaticKeyword, this.
UnsafeKeyword
, this.Alias, this.NamespaceOrType, semicolonToken);
Symbols\AliasSymbol.cs (4)
377
if (usingDirective.
UnsafeKeyword
!= default)
379
MessageID.IDS_FeatureUsingTypeAlias.CheckFeatureAvailability(diagnostics, usingDirective.
UnsafeKeyword
);
388
if (usingDirective.
UnsafeKeyword
!= default)
390
this.CheckUnsafeModifier(DeclarationModifiers.Unsafe, usingDirective.
UnsafeKeyword
.GetLocation(), diagnostics);
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (4)
737
if (usingDirective.
UnsafeKeyword
!= default)
739
var unsafeKeywordLocation = usingDirective.
UnsafeKeyword
.GetLocation();
1010
if (alias.UsingDirective.
UnsafeKeyword
== default)
1044
if (usingDirective.
UnsafeKeyword
== default)
Syntax\UsingDirectiveSyntax.cs (2)
22
=> this.Update(this.GlobalKeyword, usingKeyword, staticKeyword, this.
UnsafeKeyword
, alias, namespaceOrType: name, semicolonToken);
25
=> this.Update(globalKeyword, usingKeyword, staticKeyword, this.
UnsafeKeyword
, alias, namespaceOrType: name, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
507
targetToken.GetAncestors<UsingDirectiveSyntax>().Any(d => d.
UnsafeKeyword
.IsKind(SyntaxKind.UnsafeKeyword));
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\SyntaxComparer.cs (2)
849
if (leftUsing.
UnsafeKeyword
.IsKind(SyntaxKind.None) != rightUsing.
UnsafeKeyword
.IsKind(SyntaxKind.None))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
507
targetToken.GetAncestors<UsingDirectiveSyntax>().Any(d => d.
UnsafeKeyword
.IsKind(SyntaxKind.UnsafeKeyword));
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
507
targetToken.GetAncestors<UsingDirectiveSyntax>().Any(d => d.
UnsafeKeyword
.IsKind(SyntaxKind.UnsafeKeyword));