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