13 references to Expression
Microsoft.CodeAnalysis.CSharp (9)
Binder\Binder_WithExpression.cs (5)
19var receiver = BindRValueWithoutTargetType(syntax.Expression, diagnostics); 25diagnostics.Add(ErrorCode.ERR_InvalidWithReceiverType, syntax.Expression.Location); 46diagnostics.Add(ErrorCode.ERR_CannotClone, syntax.Expression.Location, receiverType); 53diagnostics.Add(syntax.Expression, useSiteInfo); 59syntax.Expression,
Syntax.xml.Main.Generated.cs (1)
1690=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.WithKeyword), (InitializerExpressionSyntax?)Visit(node.Initializer) ?? throw new ArgumentNullException("initializer"));
Syntax.xml.Syntax.Generated.cs (3)
3748if (expression != this.Expression || withKeyword != this.WithKeyword || initializer != this.Initializer) 3759public WithExpressionSyntax WithWithKeyword(SyntaxToken withKeyword) => Update(this.Expression, withKeyword, this.Initializer); 3760public WithExpressionSyntax WithInitializer(InitializerExpressionSyntax initializer) => Update(this.Expression, this.WithKeyword, initializer);
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
163return semanticModel.GetTypeInfo(withExpression.Expression, cancellationToken).Type;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
11829Assert.NotNull(node.Expression); 11832var newNode = node.WithExpression(node.Expression).WithWithKeyword(node.WithKeyword).WithInitializer(node.Initializer);
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\ControlFlowGraphVerifier.cs (1)
1118&& withExpr.Expression == (object)syntax)