8 references to WithExpression
Microsoft.AspNetCore.App.CodeFixes (2)
Kestrel\ListenOnIPv6AnyFixer.cs (1)
67.WithExpression(SyntaxFactory.ParseExpression($"{instanceVariableInvoked.ToString()}.ListenAnyIP"))
WebApplicationBuilderFixer.cs (1)
162invocation = invocation.WithExpression(hostBasedInvocationMethodExpr).WithArgumentList(arguments);
Microsoft.CodeAnalysis.CSharp.Analyzers (1)
MetaAnalyzers\Fixers\CSharpPreferIsKindFix.cs (1)
57newInvocation = invocation.WithExpression(ConvertKindNameToIsKind(invocation.Expression));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
310Argument(innerInvocation.WithExpression(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
186? invocation.WithExpression(memberAccess.Expression).WithTriviaFrom(invocation) // remove it
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
310Argument(innerInvocation.WithExpression(
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
186? invocation.WithExpression(memberAccess.Expression).WithTriviaFrom(invocation) // remove it
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.cs (1)
11634var newNode = node.WithExpression(node.Expression).WithArgumentList(node.ArgumentList);