6 overrides of TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2403
public override TypeWithAnnotations
TypeWithAnnotations
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
52
public override TypeWithAnnotations
TypeWithAnnotations
=> _type;
Symbols\Source\SourceLocalSymbol.cs (1)
325
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; }
82 references to TypeWithAnnotations
Microsoft.CodeAnalysis.CSharp (18)
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)
2069
nullability = local.LocalSymbol.
TypeWithAnnotations
.NullableAnnotation.ToNullabilityInfo(type);
FlowAnalysis\NullableWalker.cs (4)
2037
localType = local.
TypeWithAnnotations
;
3671
TypeWithAnnotations type = local.
TypeWithAnnotations
;
11446
local.
TypeWithAnnotations
;
11944
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 (3)
71
/// This API should be used during binding references to the local instead of the <see cref="
TypeWithAnnotations
"/> property.
77
return
TypeWithAnnotations
;
83
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)
2165
Assert.Equal("C.var", boundNode.IterationVariables.Single().
TypeWithAnnotations
.ToTestDisplayString());
Semantics\NullableReferenceTypesTests.cs (63)
35014
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
35032
Assert.Equal(expectedType, symbol.
TypeWithAnnotations
.ToDisplayString(TypeWithAnnotations.TestDisplayFormat));
59102
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59103
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59136
Assert.Equal("System.String", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59137
Assert.Equal(NullableAnnotation.Oblivious, symbol.
TypeWithAnnotations
.NullableAnnotation);
59164
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59165
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59196
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59197
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59225
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59226
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59258
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59259
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59290
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59291
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59323
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59324
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59357
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59358
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59384
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59385
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59412
var type = symbol.
TypeWithAnnotations
;
59442
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59443
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59446
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59447
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
59450
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString());
59451
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71360
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71361
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71363
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71365
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71396
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71397
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71399
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71400
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71437
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71438
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71440
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71441
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71474
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71475
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71477
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71478
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71511
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71512
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71514
Assert.Equal("System.Int32", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71515
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71546
Assert.Equal("System.String?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71547
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71549
Assert.Equal("System.Int32?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71550
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71579
Assert.Equal("T", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71580
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71616
Assert.Equal("T!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71617
Assert.Equal(NullableAnnotation.NotAnnotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
71619
Assert.Equal("T?", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
71620
Assert.Equal(NullableAnnotation.Annotated, symbol.
TypeWithAnnotations
.NullableAnnotation);
81365
Assert.Equal("System.String!", symbol.
TypeWithAnnotations
.ToTestDisplayString(true));
113721
Assert.Equal("var!", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
113752
Assert.Equal("var", model.GetDeclaredSymbol(decl.Designation).GetSymbol<LocalSymbol>().
TypeWithAnnotations
.ToTestDisplayString(includeNonNullable: true));
155069
Assert.Equal(expectedAnnotation, symbol.GetSymbol<LocalSymbol>().
TypeWithAnnotations
.NullableAnnotation);