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)
99
appendLine($"{local.
TypeWithAnnotations
.ToDisplayString()} {name(synthesized)};");
CodeGen\EmitStatement.cs (1)
1824
Debug.Assert(local.
TypeWithAnnotations
.Type.IsPointerType());
Compilation\CSharpSemanticModel.cs (1)
2082
nullability = local.LocalSymbol.
TypeWithAnnotations
.NullableAnnotation.ToNullabilityInfo(type);
FlowAnalysis\NullableWalker.cs (4)
2037
localType = local.
TypeWithAnnotations
;
3672
TypeWithAnnotations type = local.
TypeWithAnnotations
;
11447
local.
TypeWithAnnotations
;
11945
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)
2097
Assert.Equal("C.var", boundNode.IterationVariables.Single().
TypeWithAnnotations
.ToTestDisplayString());
Semantics\NullableReferenceTypesTests.cs (63)
35007
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
35025
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
59095
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59096
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59129
Assert.Equal("System.String", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59130
Assert.Equal(NullableAnnotation.Oblivious, symbol.
TypeWithAnnotations
.NullableAnnotation);
59157
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59158
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59189
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59190
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59218
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59219
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59251
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59252
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59283
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59284
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59316
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59317
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59350
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59351
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59377
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59378
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59405
var type = symbol.
TypeWithAnnotations
;
59435
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59436
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59439
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59440
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59443
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59444
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71353
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71354
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71356
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71358
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71389
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71390
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71392
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71393
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71430
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71431
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71433
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71434
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71467
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71468
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71470
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71471
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71504
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71505
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71507
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71508
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71539
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71540
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71542
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71543
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71572
Assert.Equal("T", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71573
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71609
Assert.Equal("T!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71610
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71612
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71613
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
81358
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
113714
Assert.Equal("var!", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
113745
Assert.Equal("var", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
155062
Assert.Equal(expectedAnnotation, symbol.GetSymbol<LocalSymbol>().
TypeWithAnnotations
.NullableAnnotation);