20 references to IsEmpty
Microsoft.CodeAnalysis (2)
src\Dependencies\Collections\OneOrMany.cs (2)
96
IsEmpty
? OneOrMany.Create(item) :
177
=> !
IsEmpty
;
Microsoft.CodeAnalysis.CSharp (10)
CodeGen\EmitStatement.cs (2)
680
if (!instrumentation.Locals.
IsEmpty
)
728
if (!instrumentation.Locals.
IsEmpty
)
Compilation\MemberSemanticModel.cs (8)
1642
if (!nodes.
IsEmpty
)
1679
if (!nodes.
IsEmpty
)
1701
if (!nodes.
IsEmpty
)
2099
if (!results.
IsEmpty
)
2119
if (!results.
IsEmpty
)
2139
if (results.
IsEmpty
)
2149
if (!results.
IsEmpty
)
2479
if (!boundNodes.
IsEmpty
)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Semantics\OutVarTests.cs (4)
18821
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration).
IsEmpty
);
18822
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration.Initializer).
IsEmpty
);
18823
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration.Body).
IsEmpty
);
18824
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration.ExpressionBody).
IsEmpty
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\TopLevelStatementsTests.cs (4)
6461
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(globalStatement.Statement).
IsEmpty
);
6939
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(unit).
IsEmpty
);
7007
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(unit).
IsEmpty
);
7093
Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(node).
IsEmpty
);