83 references to None
Microsoft.CodeAnalysis.CSharp (61)
FlowAnalysis\NullableWalker.cs (13)
3143annotations = FlowAnalysisAnnotations.None; 3154annotations = FlowAnalysisAnnotations.None; 3168annotations = FlowAnalysisAnnotations.None; 3173annotations = FlowAnalysisAnnotations.None; 7008return FlowAnalysisAnnotations.None; 7020return FlowAnalysisAnnotations.None; 8267return (parameter, paramsIterationType, FlowAnalysisAnnotations.None, isExpandedParamsArgument: true); 10523var annotations = IsAnalyzingAttribute ? FlowAnalysisAnnotations.None : property.GetFlowAnalysisAnnotations(); 10562return FlowAnalysisAnnotations.None; 10572_ => FlowAnalysisAnnotations.None 10591return FlowAnalysisAnnotations.None; 10594var annotations = memberSymbol switch { PropertySymbol prop => prop.GetFlowAnalysisAnnotations(), FieldSymbol field => GetFieldAnnotations(field), _ => FlowAnalysisAnnotations.None }; 10601var annotations = FlowAnalysisAnnotations.None;
Lowering\IteratorRewriter\IteratorFinallyMethodSymbol.cs (1)
150public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Lowering\SynthesizedMethodBaseSymbol.cs (1)
197public sealed override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
45=> FlowAnalysisAnnotations.None;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
104public sealed override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\ErrorMethodSymbol.cs (2)
175public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 179public override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (2)
845public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 847public override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (1)
90internal override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Metadata\PE\PEFieldSymbol.cs (2)
69value = FlowAnalysisAnnotations.None; 417FlowAnalysisAnnotations annotations = FlowAnalysisAnnotations.None;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
681return _packedFlags.DoesNotReturn ? FlowAnalysisAnnotations.DoesNotReturn : FlowAnalysisAnnotations.None;
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
794FlowAnalysisAnnotations annotations = FlowAnalysisAnnotations.None;
Symbols\SignatureOnlyMethodSymbol.cs (2)
79public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 83public override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
249var annotations = FlowAnalysisAnnotations.None;
Symbols\Source\SourceClonedParameterSymbol.cs (1)
152get { return FlowAnalysisAnnotations.None; }
Symbols\Source\SourceComplexParameterSymbol.cs (2)
156return FlowAnalysisAnnotations.None; 158FlowAnalysisAnnotations annotations = FlowAnalysisAnnotations.None;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
681=> attributeData?.HasDoesNotReturnAttribute == true ? FlowAnalysisAnnotations.DoesNotReturn : FlowAnalysisAnnotations.None; 1616FlowAnalysisAnnotations annotations = FlowAnalysisAnnotations.None;
Symbols\Source\SourcePropertyAccessorSymbol.cs (2)
361return FlowAnalysisAnnotations.None; 364var result = FlowAnalysisAnnotations.None;
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
134get { return FlowAnalysisAnnotations.None; }
Symbols\Source\ThisParameterSymbol.cs (1)
75get { return FlowAnalysisAnnotations.None; }
Symbols\SymbolExtensions.cs (2)
439var annotations = property.GetOwnOrInheritedGetMethod()?.ReturnTypeFlowAnalysisAnnotations ?? FlowAnalysisAnnotations.None; 470_ => FlowAnalysisAnnotations.None
Symbols\Synthesized\SynthesizedAccessorValueParameterSymbol.cs (1)
38var result = FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedBackingFieldSymbol.cs (1)
134if (FlowAnalysisAnnotations != FlowAnalysisAnnotations.None)
Symbols\Synthesized\SynthesizedDelegateSymbol.cs (1)
167public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
145public sealed override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 149public sealed override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
90=> FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedGlobalMethodSymbol.cs (2)
120public sealed override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 218get { return FlowAnalysisAnnotations.None; }
Symbols\Synthesized\SynthesizedImplementationMethod.cs (1)
106public sealed override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
159public sealed override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
149public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (2)
233public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 237public override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedMethodSymbol.cs (1)
86public sealed override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
122get { return FlowAnalysisAnnotations.None; }
Symbols\Synthesized\SynthesizedSealedPropertyAccessor.cs (1)
197public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
163public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 167public override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\Synthesized\SynthesizedStaticConstructor.cs (2)
143public override FlowAnalysisAnnotations ReturnTypeFlowAnalysisAnnotations => FlowAnalysisAnnotations.None; 147public override FlowAnalysisAnnotations FlowAnalysisAnnotations => FlowAnalysisAnnotations.None;
Symbols\TypeWithState.cs (1)
40public static TypeWithState Create(TypeWithAnnotations typeWithAnnotations, FlowAnalysisAnnotations annotations = FlowAnalysisAnnotations.None)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (19)
Semantics\NullableReferenceTypesTests.cs (19)
20678VerifyAnnotationsAndMetadata(c, "C.op_Equality", NotNull, None); 20724VerifyAnnotationsAndMetadata(c, "C.op_Equality", None, NotNull); 30226Assert.Equal(FlowAnalysisAnnotations.None, setter.ReturnTypeFlowAnalysisAnnotations); 36869VerifyAnnotationsAndMetadata(c, "C.Main", None); 36870VerifyAnnotationsAndMetadata(c, "C.TryGetValue", None, NotNullWhenTrue); 37836VerifyAnnotationsAndMetadata(c, "C.Main", None); 38061VerifyAnnotations(c, "C.MyIsNullOrEmpty", None); 38121VerifyAnnotationsAndMetadata(c, "C.MyIsNullOrEmpty", None); 38235VerifyAnnotationsAndMetadata(c, "Extension.MyIsNullOrEmpty", None, NotNullWhenFalse); 38658VerifyAnnotationsAndMetadata(c, "C.ThrowIfNull", None, NotNull); 38902VerifyAnnotationsAndMetadata(c, "Interface.ThrowIfNull", None, NotNull); 38940VerifyAnnotationsAndMetadata(c, "Interface.ThrowIfNull", None, NotNull); 38941VerifyAnnotationsAndMetadata(c, "C.ThrowIfNull", None, None); 38972VerifyAnnotationsAndMetadata(c, "Interface.ThrowIfNull", None, None); 38973VerifyAnnotationsAndMetadata(c, "C.ThrowIfNull", None, NotNull); 39495VerifyAnnotationsAndMetadata(c, "C.ThrowIfNull", NotNull, None); 40996Assert.Equal(FlowAnalysisAnnotations.None, setter.ReturnTypeFlowAnalysisAnnotations);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
FunctionPointerUtilities.cs (3)
63Assert.Equal(FlowAnalysisAnnotations.None, symbol.ReturnTypeFlowAnalysisAnnotations); 64Assert.Equal(FlowAnalysisAnnotations.None, symbol.FlowAnalysisAnnotations); 110Assert.Equal(FlowAnalysisAnnotations.None, symbol.FlowAnalysisAnnotations);