10 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2268public override TypeWithAnnotations TypeWithAnnotations
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
52public override TypeWithAnnotations TypeWithAnnotations => _type;
Symbols\Source\SourceLocalSymbol.cs (1)
292public override TypeWithAnnotations TypeWithAnnotations
Symbols\Synthesized\SynthesizedLocal.cs (1)
138public sealed override TypeWithAnnotations TypeWithAnnotations
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
77public override TypeWithAnnotations TypeWithAnnotations
Symbols\UpdatedContainingSymbolLocal.cs (1)
41public override TypeWithAnnotations TypeWithAnnotations { get; }
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
Symbols\EEDisplayClassFieldLocalSymbol.cs (1)
55public override TypeWithAnnotations TypeWithAnnotations
Symbols\EELocalConstantSymbol.cs (1)
67public override TypeWithAnnotations TypeWithAnnotations
Symbols\EELocalSymbol.cs (1)
119public override TypeWithAnnotations TypeWithAnnotations
Symbols\PlaceholderLocalSymbol.cs (1)
94public override TypeWithAnnotations TypeWithAnnotations
80 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (14)
BoundTree\BoundNode_Source.cs (1)
83appendLine($"{local.TypeWithAnnotations.ToDisplayString()} {name(synthesized)};");
CodeGen\EmitStatement.cs (1)
1767Debug.Assert(local.TypeWithAnnotations.Type.IsPointerType());
Compilation\CSharpSemanticModel.cs (1)
2089nullability = local.LocalSymbol.TypeWithAnnotations.NullableAnnotation.ToNullabilityInfo(type);
FlowAnalysis\NullableWalker.cs (4)
1867localType = local.TypeWithAnnotations; 3293TypeWithAnnotations type = local.TypeWithAnnotations; 9770local.TypeWithAnnotations; 10181TypeWithAnnotations destinationType = iterationVariable.TypeWithAnnotations;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
116return frame.TypeMap.SubstituteType(((object)local != null ? local.TypeWithAnnotations : ((ParameterSymbol)variable).TypeWithAnnotations).Type).Type;
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
44cleanup[i] = _factory.Assignment(_factory.Local(pinnedTemp), _factory.NullRef(pinnedTemp.TypeWithAnnotations), isRef: true);
Symbols\LocalSymbol.cs (1)
73public TypeSymbol Type => TypeWithAnnotations.Type;
Symbols\PublicModel\LocalSymbol.cs (2)
31Interlocked.CompareExchange(ref _lazyType, _underlying.TypeWithAnnotations.GetPublicSymbol(), null); 38CodeAnalysis.NullableAnnotation ILocalSymbol.NullableAnnotation => _underlying.TypeWithAnnotations.ToPublicAnnotation();
Symbols\SymbolExtensions.cs (1)
513returnType = local.TypeWithAnnotations;
Symbols\UpdatedContainingSymbolLocal.cs (1)
69(TypeWithAnnotations.Equals(otherLocal.TypeWithAnnotations, compareKind) &&
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\EELocalSymbolBase.cs (2)
25var type = typeMap.SubstituteType(local.TypeWithAnnotations); 80var type = this.TypeWithAnnotations;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (64)
Semantics\ForEachTests.cs (1)
1648Assert.Equal("C.var", boundNode.IterationVariables.Single().TypeWithAnnotations.ToTestDisplayString());
Semantics\NullableReferenceTypesTests.cs (63)
33047Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.TestDisplayFormat)); 33065Assert.Equal(expectedType, symbol.TypeWithAnnotations.ToDisplayString(TypeWithAnnotations.TestDisplayFormat)); 56565Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56566Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56599Assert.Equal("System.String", symbol.TypeWithAnnotations.ToTestDisplayString()); 56600Assert.Equal(NullableAnnotation.Oblivious, symbol.TypeWithAnnotations.NullableAnnotation); 56627Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56628Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56659Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56660Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56688Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56689Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56721Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56722Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56753Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56754Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56786Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56787Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56820Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56821Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56847Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56848Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56875var type = symbol.TypeWithAnnotations; 56905Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56906Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56909Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56910Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 56913Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString()); 56914Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67837Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67838Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67840Assert.Equal("System.Int32", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67842Assert.Equal(NullableAnnotation.NotAnnotated, symbol.TypeWithAnnotations.NullableAnnotation); 67873Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67874Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67876Assert.Equal("System.Int32?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67877Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67914Assert.Equal("T?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67915Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67917Assert.Equal("T?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67918Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67951Assert.Equal("T?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67952Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67954Assert.Equal("T?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67955Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 67988Assert.Equal("System.String!", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67989Assert.Equal(NullableAnnotation.NotAnnotated, symbol.TypeWithAnnotations.NullableAnnotation); 67991Assert.Equal("System.Int32", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 67992Assert.Equal(NullableAnnotation.NotAnnotated, symbol.TypeWithAnnotations.NullableAnnotation); 68023Assert.Equal("System.String?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 68024Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 68026Assert.Equal("System.Int32?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 68027Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 68056Assert.Equal("T", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 68057Assert.Equal(NullableAnnotation.NotAnnotated, symbol.TypeWithAnnotations.NullableAnnotation); 68093Assert.Equal("T!", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 68094Assert.Equal(NullableAnnotation.NotAnnotated, symbol.TypeWithAnnotations.NullableAnnotation); 68096Assert.Equal("T?", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 68097Assert.Equal(NullableAnnotation.Annotated, symbol.TypeWithAnnotations.NullableAnnotation); 77614Assert.Equal("System.String!", symbol.TypeWithAnnotations.ToTestDisplayString(true)); 109867Assert.Equal("var!", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().TypeWithAnnotations.ToTestDisplayString(includeNonNullable: true)); 109898Assert.Equal("var", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().TypeWithAnnotations.ToTestDisplayString(includeNonNullable: true)); 150524Assert.Equal(expectedAnnotation, symbol.GetSymbol<LocalSymbol>().TypeWithAnnotations.NullableAnnotation);