49 references to Empty
Microsoft.CodeAnalysis (5)
Collections\ConsListExtensions.cs (2)
17
return new ConsList<T>(head, list ?? ConsList<T>.
Empty
);
22
for (; list != ConsList<T>.
Empty
; list = list.Tail)
InternalUtilities\ConsList`1.cs (3)
100
Debug.Assert(this !=
Empty
);
110
Debug.Assert(this !=
Empty
);
118
return this !=
Empty
;
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Lookup.cs (3)
992
for (; list != null && list != ConsList<TypeSymbol>.
Empty
; list = list.Tail)
996
if (TypeSymbol.Equals(other, type, TypeCompareKind.ConsiderEverything2) && list.Tail != null && list.Tail != ConsList<TypeSymbol>.
Empty
)
1068
var cycleGuard = ConsList<NamedTypeSymbol>.
Empty
.Prepend(type.OriginalDefinition);
Binder\BuckStopsHereBinder.cs (1)
85
return ConsList<FieldSymbol>.
Empty
;
Compilation\SyntaxTreeSemanticModel.cs (1)
509
return ConsList<TypeSymbol>.
Empty
.Prepend(symbol.GetSymbol().OriginalDefinition);
FlowAnalysis\EmptyStructTypeCache.cs (1)
86
return IsEmptyStructType(type, ConsList<NamedTypeSymbol>.
Empty
);
Parser\Directives.cs (3)
120
public static readonly DirectiveStack Empty = new DirectiveStack(ConsList<Directive>.
Empty
);
144
return _directives == ConsList<Directive>.
Empty
;
249
return new DirectiveStack(new ConsList<Directive>(directive, _directives ?? ConsList<Directive>.
Empty
));
Symbols\ConstraintsHelper.cs (1)
159
constraintsInProgress = ConsList<TypeParameterSymbol>.
Empty
;
Symbols\FieldSymbol.cs (1)
62
return GetFieldType(ConsList<FieldSymbol>.
Empty
);
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
196
visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.
Empty
);
Symbols\Metadata\PE\PETypeParameterSymbol.cs (3)
533
else if (GetDeclaredConstraintTypes(ConsList<PETypeParameterSymbol>.
Empty
).IsEmpty)
583
GetDeclaredConstraintTypes(ConsList<PETypeParameterSymbol>.
Empty
);
656
var constraintTypes = GetDeclaredConstraintTypes(ConsList<PETypeParameterSymbol>.
Empty
);
Symbols\Source\SourceAssemblySymbol.cs (1)
2843
visitedAssemblies = new ConsList<AssemblySymbol>(this, visitedAssemblies ?? ConsList<AssemblySymbol>.
Empty
);
Symbols\Source\SourceMemberFieldSymbol.cs (2)
282
GetFieldType(ConsList<FieldSymbol>.
Empty
);
417
public sealed override RefKind RefKind => GetTypeAndRefKind(ConsList<FieldSymbol>.
Empty
).RefKind;
Symbols\Source\TypeParameterConstraintClause.cs (2)
138
isValueType(typeParameter, constraintClauses, isValueTypeMap, ConsList<TypeParameterSymbol>.
Empty
);
203
isReferenceTypeFromConstraintTypes(typeParameter, constraintClauses, isReferenceTypeFromConstraintTypesMap, ConsList<TypeParameterSymbol>.
Empty
);
Symbols\SubstitutedTypeParameterSymbol.cs (1)
162
_map.SubstituteConstraintTypesDistinctWithoutModifiers(_underlyingTypeParameter, _underlyingTypeParameter.GetConstraintTypes(ConsList<TypeParameterSymbol>.
Empty
), constraintTypes, null);
Symbols\TypeParameterSymbol.cs (5)
87
return this.GetConstraintTypes(ConsList<TypeParameterSymbol>.
Empty
);
264
return this.GetEffectiveBaseClass(ConsList<TypeParameterSymbol>.
Empty
);
289
return this.GetInterfaces(ConsList<TypeParameterSymbol>.
Empty
);
313
return this.GetDeducedBaseType(ConsList<TypeParameterSymbol>.
Empty
);
379
var unused = typeParameter.GetConstraintTypes(ConsList<TypeParameterSymbol>.
Empty
);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (4)
CompilationContext.cs (3)
1425
possiblyCapturingTypeInstance: (Instance: null, Fields: ConsList<FieldSymbol>.
Empty
),
1441
possiblyCapturingTypeInstance: (Instance: null, Fields: ConsList<FieldSymbol>.
Empty
),
1893
: this(instance, ConsList<FieldSymbol>.
Empty
)
Symbols\DisplayClassVariable.cs (1)
92
return ConsList<FieldSymbol>.
Empty
;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
UsesIsNullableVisitor.cs (1)
202
inProgress = inProgress ?? ConsList<TypeParameterSymbol>.
Empty
;
Microsoft.CodeAnalysis.VisualBasic (11)
Binding\BackstopBinder.vb (1)
48
Return ConsList(Of LocalSymbol).
Empty
Binding\BasesBeingResolvedBinder.vb (4)
39
For Each inheritsBeingResolved In If(basesBeingResolved.InheritsBeingResolvedOpt, ConsList(Of TypeSymbol).
Empty
)
42
For Each implementsBeingResolved In If(basesBeingResolved.ImplementsBeingResolvedOpt, ConsList(Of TypeSymbol).
Empty
)
66
Return New BasesBeingResolved(If(InheritsBeingResolvedOpt, ConsList(Of TypeSymbol).
Empty
).Prepend(symbol), ImplementsBeingResolvedOpt)
70
Return New BasesBeingResolved(InheritsBeingResolvedOpt, If(ImplementsBeingResolvedOpt, ConsList(Of TypeSymbol).
Empty
).Prepend(symbol))
Symbols\BaseTypeAnalysis.vb (2)
51
Dim dependency As ConsList(Of DependencyDesc) = ConsList(Of DependencyDesc).
Empty
.Prepend(New DependencyDesc(DependencyKind.Inheritance, this))
204
Return ConsList(Of DependencyDesc).
Empty
Symbols\Metadata\PE\PEAssemblySymbol.vb (1)
195
visitedAssemblies = New ConsList(Of AssemblySymbol)(Me, If(visitedAssemblies, ConsList(Of AssemblySymbol).
Empty
))
Symbols\Source\SourceAssemblySymbol.vb (1)
1749
visitedAssemblies = New ConsList(Of AssemblySymbol)(Me, If(visitedAssemblies, ConsList(Of AssemblySymbol).
Empty
))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2104
data.Queue.Enqueue(New StructureCircularityDetectionDataSet.QueueElement(Me, ConsList(Of FieldSymbol).
Empty
))
Symbols\TypeParameterSymbol.vb (1)
177
typeParameter.ResolveConstraints(ConsList(Of TypeParameterSymbol).
Empty
)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
CompilationContext.vb (1)
1453
MyClass.New(instance, ConsList(Of FieldSymbol).
Empty
)
Symbols\DisplayClassVariable.vb (1)
86
Return ConsList(Of FieldSymbol).
Empty