40 references to AddressOfExpression
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Expressions.cs (1)
682case SyntaxKind.AddressOfExpression:
Binder\Binder_Operators.cs (1)
3062case SyntaxKind.AddressOfExpression:
FlowAnalysis\UnassignedAddressTakenVariablesWalker.cs (1)
54if (node.Parent.Kind() == SyntaxKind.AddressOfExpression)
Parser\LanguageParser.cs (1)
10831case SyntaxKind.AddressOfExpression:
Syntax\SyntaxKindFacts.cs (1)
430return SyntaxKind.AddressOfExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
93if (addressOfExpression.Kind() == SyntaxKind.AddressOfExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
356if (expression.Parent.IsKind(SyntaxKind.AddressOfExpression)) 730case SyntaxKind.AddressOfExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
528SyntaxKind.AddressOfExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
92public int AddressOfExpression => (int)SyntaxKind.AddressOfExpression;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1933case SyntaxKind.AddressOfExpression:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenFunctionPointersTests.cs (1)
3339var declarators = syntaxTree.GetRoot().DescendantNodes().OfType<VariableDeclaratorSyntax>().Where(d => d.Initializer!.Value.IsKind(SyntaxKind.AddressOfExpression)).ToArray();
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
117SyntaxKind.AddressOfExpression)
src\Analyzers\CSharp\Analyzers\UseAutoProperty\CSharpUseAutoPropertyAnalyzer.cs (1)
93if (addressOfExpression.Kind() == SyntaxKind.AddressOfExpression)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\UnsafeTests.cs (4)
7258Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind()); 7324Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind()); 7362Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind()); 7405Assert.Equal(SyntaxKind.AddressOfExpression, syntax.Kind());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (11)
IncrementalParsing\UnaryExpression.cs (2)
28MakeUnaryChange(SyntaxKind.UnaryPlusExpression, SyntaxKind.AddressOfExpression); 125case SyntaxKind.AddressOfExpression:
Parsing\AnonymousFunctionParsingTests.cs (4)
1954N(SyntaxKind.AddressOfExpression); 2083N(SyntaxKind.AddressOfExpression); 2161N(SyntaxKind.AddressOfExpression); 2247N(SyntaxKind.AddressOfExpression);
Parsing\CollectionExpressionParsingTests.cs (4)
7398N(SyntaxKind.AddressOfExpression); 7422N(SyntaxKind.AddressOfExpression); 7454N(SyntaxKind.AddressOfExpression); 7507N(SyntaxKind.AddressOfExpression);
Parsing\FunctionPointerTests.cs (1)
2921N(SyntaxKind.AddressOfExpression);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
182case PrefixUnaryExpressionSyntax { RawKind: (int)SyntaxKind.AddressOfExpression, Operand: var operand }:
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ExpressionSyntaxExtensions.cs (2)
356if (expression.Parent.IsKind(SyntaxKind.AddressOfExpression)) 730case SyntaxKind.AddressOfExpression:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
528SyntaxKind.AddressOfExpression)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
92public int AddressOfExpression => (int)SyntaxKind.AddressOfExpression;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1933case SyntaxKind.AddressOfExpression:
Microsoft.Interop.ComInterfaceGenerator (1)
VirtualMethodPointerStubGenerator.cs (1)
253PrefixUnaryExpression(SyntaxKind.AddressOfExpression,
Microsoft.Interop.SourceGeneration (4)
Marshalling\BlittableMarshaller.cs (1)
54PrefixUnaryExpression(SyntaxKind.AddressOfExpression,
Marshalling\CharMarshaller.cs (1)
63SyntaxKind.AddressOfExpression,
Marshalling\MarshallingGeneratorExtensions.cs (1)
148ValueBoundaryBehavior.AddressOfNativeIdentifier => Argument(PrefixUnaryExpression(SyntaxKind.AddressOfExpression, IdentifierName(nativeIdentifier))),
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
85PrefixUnaryExpression(SyntaxKind.AddressOfExpression,