64 references to Create
Microsoft.CodeAnalysis.CSharp (64)
FlowAnalysis\NullableWalker.cs (59)
128
RValueType = TypeWithState.
Create
(type, state);
210
private static readonly TypeWithState _invalidType = TypeWithState.
Create
(new UnsupportedMetadataTypeSymbol(), NullableFlowState.NotNull);
2928
return TypeWithState.
Create
(parameterType.Type, NullableFlowState.MaybeDefault);
2933
return TypeWithState.
Create
(parameterType.Type, NullableFlowState.NotNull);
3735
SetResultType(node, TypeWithState.
Create
(null, NullableFlowState.NotNull));
3743
SetResultType(node, TypeWithState.
Create
(null, NullableFlowState.NotNull));
3849
var resultTypeWithState = TypeWithState.
Create
(strippedTargetCollectionType, resultState);
3952
var result = TypeWithState.
Create
(type, resultState);
4452
TypeWithState.
Create
(containingType, receiverResult.RValueType.State),
4471
SetResultType(node, TypeWithState.
Create
(node.Type, NullableFlowState.NotNull));
4476
var resultType = TypeWithState.
Create
(node.Type, NullableFlowState.NotNull);
4584
SetResultType(node, TypeWithState.
Create
(anonymousType, NullableFlowState.NotNull));
4616
SetResultType(node, TypeWithState.
Create
(node.Type, NullableFlowState.NotNull));
4621
SetResultType(node, TypeWithState.
Create
(arrayType, NullableFlowState.NotNull));
4698
inferredType = TypeWithState.
Create
(inferredType.Type, elementState).ToTypeWithAnnotations(compilation);
4939
return TypeWithState.
Create
(resultType, resultState);
5637
TypeWithState resultType = TypeWithState.
Create
(targetType.Type, rightResult.State);
5656
SetResultType(node, TypeWithState.
Create
(node.Type, rightUnconditionalResult.State));
5723
TypeWithState.
Create
(leftType, NullableFlowState.NotNull),
5906
SetResultType(node, TypeWithState.
Create
(resultType, NullableFlowState.MaybeDefault));
5982
SetResult(node, TypeWithState.
Create
(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6046
SetResultType(node, TypeWithState.
Create
(resultType, default));
6091
var typeWithState = TypeWithState.
Create
(resultTypeWithAnnotations.Type, resultState);
6104
return TypeWithState.
Create
(resultTypeWithAnnotations.Type, resultState);
6229
SetResultType(node, TypeWithState.
Create
(rvalueType, NullableFlowState.NotNull));
6707
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.NotNull);
6712
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.MaybeDefault);
7020
TrackAnalyzedNullabilityThroughConversionGroup(TypeWithState.
Create
(argument.Type, result.RValueType.State), argument as BoundConversion, argumentNoConversion);
7572
parameterWithState = TypeWithState.
Create
(parameterType.Type, adjustedState);
7695
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.MaybeDefault);
7701
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.NotNull);
7716
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.MaybeDefault);
7720
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.NotNull);
7735
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.MaybeDefault);
7739
return TypeWithState.
Create
(typeWithState.Type, NullableFlowState.NotNull);
8214
return TypeWithState.
Create
(type.Type, state);
8486
SetResultType(node, TypeWithState.
Create
(null, NullableFlowState.NotNull));
8511
SetResultType(node, TypeWithState.
Create
(tupleOpt, NullableFlowState.NotNull));
8942
return TypeWithState.
Create
(targetType, NullableFlowState.NotNull);
9203
var resultType = TypeWithState.
Create
(targetType, resultState);
9412
var resultType = TypeWithState.
Create
(targetType, NullableFlowState.NotNull);
9580
return TypeWithState.
Create
(type, state);
9692
var result = TypeWithState.
Create
(delegateType, NullableFlowState.NotNull);
9977
var rvalueResult = TypeWithState.
Create
(node.Type, NullableFlowState.NotNull);
10039
SetResult(node, TypeWithState.
Create
(leftLValueType.Type, rightState.State), leftLValueType);
10380
var valueBeforeNullableWrapping = TypeWithState.
Create
(underlyingType.Type, NullableFlowState.NotNull);
10646
SetResultType(node.Expression, TypeWithState.
Create
(node.Expression.Type, ResultType.State));
10845
resultType = TypeWithState.
Create
(resultType.Type, state);
11351
TypeWithState.
Create
(node.Type, node.OperatorKind.IsLifted() ? argumentResult.State : NullableFlowState.NotNull);
11398
return TypeWithState.
Create
(node.Type, NullableFlowState.NotNull);
11516
SetResultType(node, TypeWithState.
Create
(node.Type, NullableFlowState.NotNull));
11538
SetResultType(node, TypeWithState.
Create
(node.Type, NullableFlowState.MaybeDefault));
11620
SetResultType(node, TypeWithState.
Create
(type, resultState));
11652
SetResultType(node, TypeWithState.
Create
(node.Type, node.Type?.CanContainNull() != false && node.ConstantValueOpt?.IsNull == true ? NullableFlowState.MaybeDefault : NullableFlowState.NotNull));
11829
SetResultType(expression, TypeWithState.
Create
(expression.Type, default));
11936
SetResultType(node, TypeWithState.
Create
(node.Type, NullableFlowState.NotNull));
11951
SetResultType(node, TypeWithState.
Create
(node.Type, NullableFlowState.NotNull));
12000
SetResultType(node, TypeWithState.
Create
(node.Type, NullableFlowState.NotNull));
12006
SetResultType(node, TypeWithState.
Create
(type, NullableFlowState.NotNull));
FlowAnalysis\NullableWalker_Patterns.cs (2)
970
resultType = TypeWithState.
Create
(inferredType, inferredState);
1020
TypeWithState resultType = TypeWithState.
Create
(inferredTypeWithAnnotations.Type, inferredState);
Symbols\TypeWithAnnotations.cs (1)
811
return TypeWithState.
Create
(Type, getFlowState(Type, NullableAnnotation));
Symbols\TypeWithState.cs (2)
25
return
Create
(type, NullableFlowState.MaybeDefault);
66
return
Create
(type, state);