private TypeWithState(TypeSymbol type, NullableFlowState state) { Debug.Assert(state == NullableFlowState.NotNull || type?.CanContainNull() != false); Type = type; State = state; }
public void Deconstruct(out TypeSymbol type, out NullableFlowState state) => (type, state) = (Type, State);
public TokenInformation(ImmutableArray <ISymbol> symbols, bool showAwaitReturn = false, NullableFlowState nullableFlowState = NullableFlowState.None) { Symbols = symbols; ShowAwaitReturn = showAwaitReturn; NullableFlowState = nullableFlowState; }
public static TypeWithState Create(TypeSymbol type, NullableFlowState defaultState) { var state = defaultState == NullableFlowState.MaybeNull && type?.CanContainNull() != false ? NullableFlowState.MaybeNull : NullableFlowState.NotNull; return(new TypeWithState(type, state)); }
internal NullabilityInfo(NullableAnnotation annotation, NullableFlowState flowState) { Annotation = annotation; FlowState = flowState; }
public static NullableFlowState Meet(this NullableFlowState a, NullableFlowState b) => (a < b) ? a : b;
public static bool MayBeNull(this NullableFlowState state) => state != NullableFlowState.NotNull;
public string ToDisplayString(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) => throw new NotImplementedException();
public string ToMinimalDisplayString(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) { return(WrappedSymbol.ToMinimalDisplayString(semanticModel, topLevelNullability, position, format)); }
public TypeWithState(TypeSymbol type, NullableFlowState state) => (Type, State) = (type, state);
public ImmutableArray <SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) { return(WrappedSymbol.ToMinimalDisplayParts(semanticModel, topLevelNullability, position, format)); }
public string ToDisplayString(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) { return(WrappedSymbol.ToDisplayString(topLevelNullability, format)); }
public ImmutableArray <SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) { return(WrappedSymbol.ToDisplayParts(topLevelNullability, format)); }
public string ToMinimalDisplayString(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) { throw new NotImplementedException(); }
public static bool IsNotNull(this NullableFlowState state) => state == NullableFlowState.NotNull;
public ImmutableArray <SymbolDisplayPart> ToMinimalDisplayParts(SemanticModel semanticModel, NullableFlowState topLevelNullability, int position, SymbolDisplayFormat format = null) { throw new NotImplementedException(); }
public static NullableFlowState Join(this NullableFlowState a, NullableFlowState b) => (a > b) ? a : b;
public ImmutableArray <SymbolDisplayPart> ToDisplayParts(NullableFlowState topLevelNullability, SymbolDisplayFormat format = null) => throw new NotImplementedException();
public static bool MayBeNull(this NullableFlowState state) => state == NullableFlowState.MaybeNull;