6 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2400
public override TypeWithAnnotations
TypeWithAnnotations
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
52
public override TypeWithAnnotations
TypeWithAnnotations
=> _type;
Symbols\Source\SourceLocalSymbol.cs (1)
291
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\Synthesized\SynthesizedLocal.cs (1)
138
public sealed override TypeWithAnnotations
TypeWithAnnotations
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
88
public override TypeWithAnnotations
TypeWithAnnotations
Symbols\UpdatedContainingSymbolLocal.cs (1)
41
public override TypeWithAnnotations
TypeWithAnnotations
{ get; }
80 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (16)
BoundTree\BoundNode_Source.cs (1)
98
appendLine($"{local.
TypeWithAnnotations
.ToDisplayString()} {name(synthesized)};");
CodeGen\EmitStatement.cs (1)
1797
Debug.Assert(local.
TypeWithAnnotations
.Type.IsPointerType());
Compilation\CSharpSemanticModel.cs (1)
2079
nullability = local.LocalSymbol.
TypeWithAnnotations
.NullableAnnotation.ToNullabilityInfo(type);
FlowAnalysis\NullableWalker.cs (4)
2039
localType = local.
TypeWithAnnotations
;
3674
TypeWithAnnotations type = local.
TypeWithAnnotations
;
11413
local.
TypeWithAnnotations
;
11914
TypeWithAnnotations destinationType = iterationVariable.
TypeWithAnnotations
;
Lowering\ClosureConversion\LambdaCapturedVariable.cs (1)
136
return frame.TypeMap.SubstituteType(((object)local != null ? local.
TypeWithAnnotations
: ((ParameterSymbol)variable).TypeWithAnnotations).Type).Type;
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
44
cleanup[i] = _factory.Assignment(_factory.Local(pinnedTemp), _factory.NullRef(pinnedTemp.
TypeWithAnnotations
), isRef: true);
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
91
if (local.
TypeWithAnnotations
.IsRestrictedType())
94
diagnostics.Add(ErrorCode.ERR_ByRefTypeAndAwait, syntax.Location, local.
TypeWithAnnotations
);
Symbols\LocalSymbol.cs (1)
73
public TypeSymbol Type =>
TypeWithAnnotations
.Type;
Symbols\PublicModel\LocalSymbol.cs (2)
31
Interlocked.CompareExchange(ref _lazyType, _underlying.
TypeWithAnnotations
.GetPublicSymbol(), null);
38
CodeAnalysis.NullableAnnotation ILocalSymbol.NullableAnnotation => _underlying.
TypeWithAnnotations
.ToPublicAnnotation();
Symbols\SymbolExtensions.cs (1)
506
returnType = local.
TypeWithAnnotations
;
Symbols\UpdatedContainingSymbolLocal.cs (1)
69
(TypeWithAnnotations.Equals(otherLocal.
TypeWithAnnotations
, compareKind) &&
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (64)
Semantics\ForEachTests.cs (1)
1649
Assert.Equal("C.var", boundNode.IterationVariables.Single().
TypeWithAnnotations
.ToTestDisplayString());
Semantics\NullableReferenceTypesTests.cs (63)
34985
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
35003
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
59061
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59062
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59095
Assert.Equal("System.String", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59096
Assert.Equal(NullableAnnotation.Oblivious, symbol.
TypeWithAnnotations
.NullableAnnotation);
59123
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59124
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59155
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59156
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59184
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59185
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59217
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59218
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59249
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59250
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59282
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59283
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59316
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59317
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59343
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59344
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59371
var type = symbol.
TypeWithAnnotations
;
59401
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59402
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59405
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59406
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59409
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59410
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71319
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71320
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71322
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71324
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71355
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71356
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71358
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71359
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71396
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71397
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71399
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71400
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71433
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71434
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71436
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71437
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71470
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71471
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71473
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71474
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71505
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71506
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71508
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71509
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71538
Assert.Equal("T", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71539
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71575
Assert.Equal("T!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71576
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71578
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71579
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
81326
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
113660
Assert.Equal("var!", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
113691
Assert.Equal("var", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
154977
Assert.Equal(expectedAnnotation, symbol.GetSymbol<LocalSymbol>().
TypeWithAnnotations
.NullableAnnotation);