1 instantiation of WithElementSyntax
Microsoft.CodeAnalysis.CSharp (1)
Syntax.xml.Internal.Generated.cs (1)
6732internal override SyntaxNode CreateRed(SyntaxNode? parent, int position) => new CSharp.Syntax.WithElementSyntax(this, parent, position);
57 references to WithElementSyntax
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder_Expressions.cs (2)
5349if (element is WithElementSyntax withElementSyntax) 5442WithElementSyntax withElementSyntax,
BoundTree\BoundExpression.cs (1)
26or WithElementSyntax
Compilation\CSharpSemanticModel.cs (3)
125or WithElementSyntax 660internal SymbolInfo GetSymbolInfo(WithElementSyntax withElement, CancellationToken cancellationToken = default(CancellationToken)) 5024case WithElementSyntax withElement:
Compilation\MemberSemanticModel.cs (1)
2294!(node is WithElementSyntax) &&
Syntax.xml.Main.Generated.cs (6)
232public virtual TResult? VisitWithElement(WithElementSyntax node) => this.DefaultVisit(node); 979public virtual void VisitWithElement(WithElementSyntax node) => this.DefaultVisit(node); 1725public override SyntaxNode? VisitWithElement(WithElementSyntax node) 3449public static WithElementSyntax WithElement(SyntaxToken withKeyword, ArgumentListSyntax argumentList) 3453return (WithElementSyntax)Syntax.InternalSyntax.SyntaxFactory.WithElement((Syntax.InternalSyntax.SyntaxToken)withKeyword.Node!, (Syntax.InternalSyntax.ArgumentListSyntax)argumentList.Green).CreateRed(); 3457public static WithElementSyntax WithElement(ArgumentListSyntax? argumentList = default)
Syntax.xml.Syntax.Generated.cs (5)
4302public WithElementSyntax Update(SyntaxToken withKeyword, ArgumentListSyntax argumentList) 4306var newNode = SyntaxFactory.WithElement(withKeyword, argumentList); 4314public WithElementSyntax WithWithKeyword(SyntaxToken withKeyword) => Update(withKeyword, this.ArgumentList); 4315public WithElementSyntax WithArgumentList(ArgumentListSyntax argumentList) => Update(this.WithKeyword, argumentList); 4317public WithElementSyntax AddArgumentListArguments(params ArgumentSyntax[] items) => WithArgumentList(this.ArgumentList.WithArguments(this.ArgumentList.Arguments.AddRange(items)));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (1)
18this WithElementSyntax? withElement, SemanticModel semanticModel, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (23)
Semantics\CollectionExpressionTests_WithElement_ArraysAndSpans.cs (2)
825var withElement = tree.GetRoot().DescendantNodes().OfType<WithElementSyntax>().Single();
Semantics\CollectionExpressionTests_WithElement_Constructor.cs (13)
372var withElements = root.DescendantNodes().OfType<WithElementSyntax>().ToArray(); 1665var withExpression = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<WithElementSyntax>().Single(); 1698var withExpression = comp.SyntaxTrees[0].GetRoot().DescendantNodes().OfType<WithElementSyntax>().Single(); 2036var withElement = tree.GetRoot().DescendantNodes().OfType<WithElementSyntax>().Single(); 2065var withElement = tree.GetRoot().DescendantNodes().OfType<WithElementSyntax>().Single(); 3150var withElement = root.DescendantNodes().OfType<WithElementSyntax>().Single(); 3192var withElement = root.DescendantNodes().OfType<WithElementSyntax>().Single();
Semantics\CollectionExpressionTests_WithElement_Extra.cs (6)
1556var withElements = root.DescendantNodes().OfType<WithElementSyntax>().ToArray(); 1634var withElements = root.DescendantNodes().OfType<WithElementSyntax>().ToArray(); 9231var withElement = root.DescendantNodes().OfType<WithElementSyntax>().Single(); 9278var withElement = root.DescendantNodes().OfType<WithElementSyntax>().Single();
Semantics\CollectionExpressionTests_WithElement_Nullable.cs (2)
41var withElement = root.DescendantNodes().OfType<WithElementSyntax>().Single();
Microsoft.CodeAnalysis.CSharp.Features (9)
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (2)
142WithElementSyntax withElement => GetWithElementParameterLists(semanticModel, withElement, cancellationToken), 249WithElementSyntax withElement,
SignatureHelp\WithElementSignatureHelpProvider.cs (7)
29private async Task<WithElementSyntax?> TryGetWithElementAsync( 35var withElement = await CommonSignatureHelpUtilities.TryGetSyntaxAsync<WithElementSyntax>( 42=> SignatureHelpUtilities.IsTriggerParenOrComma<WithElementSyntax>(token, TriggerCharacters); 44private static bool IsArgumentListToken(WithElementSyntax expression, SyntaxToken token) 54var withElement = await TryGetWithElementAsync( 102var expression = await TryGetWithElementAsync(
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Generated\Syntax.Test.xml.Generated.cs (5)
10616private static WithElementSyntax GenerateWithElement() 11990var node = GenerateWithElement(); 11994var newNode = node.WithWithKeyword(node.WithKeyword).WithArgumentList(node.ArgumentList); 16189var oldNode = GenerateWithElement(); 16205var oldNode = GenerateWithElement();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\WithElementSyntaxExtensions.cs (1)
18this WithElementSyntax? withElement, SemanticModel semanticModel, CancellationToken cancellationToken)