40 references to TypeExpression
Microsoft.CodeAnalysis.CSharp (40)
Binder\Binder.ValueChecks.cs (2)
739case BoundKind.TypeExpression: 1019case BoundKind.TypeExpression:
Binder\Binder_Expressions.cs (4)
254if (valueOrType.Kind == BoundKind.TypeExpression) 7697case BoundKind.TypeExpression: 8058else if (boundLeft.Kind == BoundKind.TypeExpression || 8786case BoundKind.TypeExpression:
Binder\Binder_Invocation.cs (1)
1901if ((object)expr != null && expr.Kind != BoundKind.TypeExpression)
Binder\Binder_Operators.cs (2)
474if (result.Kind == BoundKind.TypeExpression 2447case BoundKind.TypeExpression:
Binder\Binder_Patterns.cs (3)
508wasExpression = expression.Kind != BoundKind.TypeExpression; 515Debug.Assert(expression is { Kind: BoundKind.TypeExpression, Type: { } }); 537wasExpression = expression.Kind switch { BoundKind.BadExpression => false, BoundKind.TypeExpression => false, _ => true };
Binder\Binder_Query.cs (1)
977else if (ultimateReceiver.Kind == BoundKind.TypeExpression)
Binder\Semantics\OverloadResolution\MethodGroup.cs (1)
112if (this.Receiver.Kind == BoundKind.TypeExpression)
BoundTree\BoundMethodGroup.cs (1)
61if (this.ReceiverOpt == null || this.ReceiverOpt.Kind == BoundKind.TypeExpression)
BoundTree\BoundTreeVisitors.cs (1)
33case BoundKind.TypeExpression:
CodeGen\EmitExpression.cs (3)
859Debug.Assert(sequence.Value.Kind != BoundKind.TypeExpression || !used); 860if (sequence.Value.Kind != BoundKind.TypeExpression) 2132case BoundKind.TypeExpression:
Compilation\CSharpSemanticModel.cs (2)
2300if (boundExpr != null && boundExpr.Kind != BoundKind.TypeExpression) 3391case BoundKind.TypeExpression:
Compilation\MemberSemanticModel.NodeMapBuilder.cs (2)
93if (existing[i].Kind == BoundKind.TypeExpression && nodesToAdd[i].Kind == BoundKind.TypeOrValueExpression) 101else if (existing[i].Kind == BoundKind.TypeOrValueExpression && nodesToAdd[i].Kind == BoundKind.TypeExpression)
FlowAnalysis\AbstractFlowPass.cs (1)
2238receiverOpt.Kind != BoundKind.TypeExpression &&
FlowAnalysis\DefiniteAssignment.cs (2)
1124receiver.Kind != BoundKind.TypeExpression && 1141receiverOpt.Kind != BoundKind.TypeExpression &&
FlowAnalysis\NullableWalker.cs (1)
1993receiver.Kind != BoundKind.TypeExpression &&
FlowAnalysis\NullableWalker.SnapshotManager.cs (1)
106if (node.Kind == BoundKind.TypeExpression || node.WasCompilerGenerated)
FlowAnalysis\RegionAnalysisContext.cs (1)
52case BoundKind.TypeExpression:
Generated\BoundNodes.xml.Generated.cs (2)
1069: base(BoundKind.TypeExpression, syntax, type, hasErrors || boundContainingTypeOpt.HasErrors() || boundDimensionsOpt.HasErrors()) 8876case BoundKind.TypeExpression:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1380receiver.Kind == BoundKind.TypeExpression &&
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
189Debug.Assert(receiverOpt.Kind != BoundKind.TypeExpression); 480Debug.Assert(receiver.Kind != BoundKind.TypeExpression); 860case BoundKind.TypeExpression:
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
225if (loweredReceiver.Kind == BoundKind.TypeExpression)
Lowering\SpillSequenceSpiller.cs (1)
423case BoundKind.TypeExpression:
Operations\CSharpOperationFactory.cs (2)
305case BoundKind.TypeExpression: 958if (receiver?.Kind == BoundKind.TypeExpression)
Operations\CSharpOperationFactory_Methods.cs (1)
100if (instance == null || instance.Kind == BoundKind.TypeExpression)