5 instantiations of BitVector
Microsoft.CodeAnalysis (5)
Collections\BitVector.cs (5)
25
private static readonly BitVector s_emptyValue =
new
(0, s_emptyArray, 0);
156
return new
BitVector
(bits0, bits, capacity);
166
return new
BitVector
(0, bits, capacity);
206
return new
BitVector
(bits0, bits, capacity);
225
return new
BitVector
(_bits0, newBits, _capacity);
37 references to BitVector
Microsoft.CodeAnalysis (26)
Collections\BitVector.cs (17)
14
internal struct BitVector : IEquatable<
BitVector
>
24
private static readonly
BitVector
s_nullValue = default;
25
private static readonly
BitVector
s_emptyValue = new(0, s_emptyArray, 0);
41
public bool Equals(
BitVector
other)
52
return obj is
BitVector
other && Equals(other);
55
public static bool operator ==(
BitVector
left,
BitVector
right)
60
public static bool operator !=(
BitVector
left,
BitVector
right)
154
public static
BitVector
FromWords(Word bits0, Word[] bits, int capacity)
162
public static
BitVector
Create(int capacity)
174
public static
BitVector
AllSet(int capacity)
213
public
BitVector
Clone()
254
public static
BitVector
Null => s_nullValue;
256
public static
BitVector
Empty => s_emptyValue;
263
public bool IntersectWith(in
BitVector
other)
315
public bool UnionWith(in
BitVector
other)
Diagnostic\DiagnosticInfo.cs (3)
135
var
bits =
BitVector
.Create(actualLength);
146
Debug.Assert(bits ==
BitVector
.AllSet(actualLength));
Operations\ControlFlowGraphBuilder.cs (4)
239
private static
BitVector
MarkReachableBlocks(
248
var
visited =
BitVector
.Empty;
380
BitVector
isolated = MarkReachableBlocks(blocks,
ReferenceManager\CommonReferenceManager.State.cs (2)
619
var
visitedAssemblies =
BitVector
.Create(bindingResult.Length);
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder.ValueChecks.cs (1)
2962
var
paramsMatched = BitVector.Create(parameters.Length);
Binder\Binder_Invocation.cs (1)
1477
var
visitedParameters = BitVector.Create(parameters.Length);
Binder\Binder_Query.cs (1)
324
var
defaultArguments = result.DefaultArguments.Clone();
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (1)
299
var
badArguments = BitVector.Create(argumentPosition + 1);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
952
var
needsFixing = BitVector.Create(_methodTypeParameters.Length);
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
729
var
argumentsAssignedToTemp = BitVector.Null;
Symbols\Synthesized\RefKindVector.cs (1)
139
var
bitVector = BitVector.FromWords(firstWord.Value, otherWords?.ToArrayAndFree() ?? Array.Empty<ulong>(), capacity * BitsPerRefKind);
Microsoft.CodeAnalysis.UnitTests (4)
Collections\BitArrayTests.cs (4)
264
var
b = BitVector.Create(capacity);
280
var
b = BitVector.Create(capacity);
300
var
b = BitVector.Create(capacity);
314
var
b = BitVector.Create(capacity);