137 references to SystemRef
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenTests.cs (1)
16170CompileAndVerifyWithMscorlib40(source, references: new[] { SystemRef, SystemCoreRef },
CodeGen\CodeGenTupleTest.cs (1)
16430var comp = CreateCompilation(source, references: new[] { SystemRef });
Emit\EditAndContinue\AssemblyReferencesTests.cs (1)
137var md1 = AssemblyMetadata.CreateFromStream(CreateEmptyCompilation(srcPE, parseOptions: parseOptions, references: new[] { MscorlibRef, SystemRef }).EmitToStream());
Emit\NoPiaEmbedTypes.cs (1)
3319references: new MetadataReference[] { piaReference, SystemRef });
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (32)
Attributes\AttributeTests_CallerInfoAttributes.cs (29)
2677var compilation = CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 2711var compilation = CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 2755var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 2785CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }).VerifyDiagnostics( 3375new[] { SystemRef }, 3415var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 3441var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }); 3472var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3508var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3550var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 3593var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 3769var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3817var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3855var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3894new[] { SystemRef }, 3953var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 3995var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 4047var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 4121var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 4161new[] { SystemRef }, 4257new[] { SystemRef }, 4323var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef }, TestOptions.ReleaseExe); 4366var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 4388var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 4418var compilation = CreateCompilationWithMscorlib45(source, references: new MetadataReference[] { SystemRef }, options: TestOptions.ReleaseExe); 5371var compilation = CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 5407var compilation = CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 5443var compilation = CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe); 5482var compilation = CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef }, TestOptions.ReleaseExe);
Diagnostics\DiagnosticAnalyzerTests.cs (3)
1535var compilation = CreateCompilationWithMscorlib45(trees, new MetadataReference[] { SystemRef }); 1570var compilation = CreateCompilationWithMscorlib45(new[] { tree }, new MetadataReference[] { SystemRef }); 1613var compilation = CreateCompilationWithMscorlib45(new[] { tree1, tree2 }, new MetadataReference[] { SystemRef });
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
LocalsTests.cs (1)
3406WithRuntimeInstance(comp, new[] { MscorlibRef, SystemRef, SystemCoreRef, SystemXmlLinqRef, libRef }, runtime =>
ReferencedModulesTests.cs (1)
584var systemRefIdentity = SystemRef.GetAssemblyIdentity();
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (3)
IOperation\IOperationTests.cs (2)
489var compilation = CreateCompilationWithMscorlib40(sourceCode, new[] { SystemRef, SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef }, sourceFileName: "file.cs"); 523var compilation = CreateCompilationWithMscorlib40(sourceCode, new[] { SystemRef, SystemCoreRef, ValueTupleRef, SystemRuntimeFacadeRef }, sourceFileName: "file.cs");
IOperation\IOperationTests_IParameterReferenceExpression.cs (1)
987references: new[] { MscorlibRef, SystemRef, compilation0.EmitToImageReference(embedInteropTypes: true) });
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
ScriptTests.cs (2)
195, ScriptOptions.Default.WithReferences(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef)); 210, ScriptOptions.Default.WithReferences(MscorlibRef, SystemRef, SystemCoreRef, CSharpRef));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\AwaitExpressionTests.cs (1)
155var comp = CreateCompilationWithMscorlib45(new SyntaxTree[] { tree }, new MetadataReference[] { SystemRef });
Semantics\BindingAsyncTests.cs (14)
412CreateCompilationWithMscorlib45(source, new MetadataReference[] { LinqAssemblyRef, SystemRef }).VerifyDiagnostics( 449CreateCompilationWithMscorlib45(source, new MetadataReference[] { LinqAssemblyRef, SystemRef }).VerifyDiagnostics(); 479CreateCompilationWithMscorlib45(source, new MetadataReference[] { LinqAssemblyRef, SystemRef }).VerifyDiagnostics( 512CreateCompilationWithMscorlib45(source, new MetadataReference[] { LinqAssemblyRef, SystemRef }).VerifyDiagnostics( 546CreateCompilationWithMscorlib45(source, new MetadataReference[] { LinqAssemblyRef, SystemRef }).VerifyDiagnostics( 580CreateCompilationWithMscorlib45(source, new MetadataReference[] { LinqAssemblyRef, SystemRef }).VerifyDiagnostics( 1292CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef, LinqAssemblyRef }).VerifyDiagnostics(); 1321CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef, LinqAssemblyRef }).VerifyDiagnostics(); 1349CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef, LinqAssemblyRef }).VerifyDiagnostics( 1381CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef, LinqAssemblyRef }).VerifyDiagnostics( 1416CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef, LinqAssemblyRef }).VerifyDiagnostics( 1454new MetadataReference[] { SystemRef, LinqAssemblyRef }, 1495new MetadataReference[] { SystemRef, LinqAssemblyRef }, 1527CreateCompilationWithMscorlib45(source, new MetadataReference[] { SystemRef, LinqAssemblyRef }).VerifyDiagnostics(
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\CompilationAPITests.cs (2)
1167vbComp = vbComp.AddReferences(SystemRef); 1381vbComp = vbComp.AddReferences(SystemRef);
Compilation\ReferenceManagerTests.cs (1)
1336references: new[] { MscorlibRef, SystemCoreRef, SystemRef });
Symbols\MissingSpecialMember.cs (1)
2591var compilation = CreateCompilationWithMscorlib45(source, new[] { SystemRef });
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Semantics\SpeculationAnalyzerTestsBase.cs (1)
24SystemRef,
Microsoft.CodeAnalysis.Test.Utilities (2)
CommonTestBase.cs (2)
347references.Add(SystemRef); 427references.Add(SystemRef);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (31)
Attributes\AttributeTests.vb (4)
1945Dim compilation2 = CreateCompilationWithMscorlib40AndReferences(source, {SystemRef, MsvbRef, classLibrary}) 1997Dim compilation2 = CreateCompilationWithMscorlib40AndReferences(source, {SystemRef, MsvbRef, classLibrary}) 2032Dim compilation = CreateCompilationWithMscorlib40AndReferences(source, {SystemRef, MsvbRef}) 2067Dim compilation = CreateCompilationWithMscorlib40AndReferences(source, {SystemRef, MsvbRef})
Attributes\AttributeTests_WellKnownAttributes.vb (2)
2453references:={MscorlibRef, SystemRef, SystemCoreRef}, 3365Dim compilation2 = CreateCompilationWithMscorlib40AndReferences(source, {SystemRef, MsvbRef, classLibrary})
CodeGen\CodeGenRefReturnTests.vb (3)
566referencedAssemblies:={MscorlibRef, SystemRef, MsvbRef, ref1}, 675referencedAssemblies:={MscorlibRef, SystemRef, MsvbRef, ref1}, 835referencedAssemblies:={MscorlibRef, SystemRef, MsvbRef, ref1},
CodeGen\CodeGenSyncLock.vb (1)
91SystemRef,
CodeGen\CodeGenTuples.vb (1)
27SystemRef,
CodeGen\CodeGenUnstructuredErrorHandling.vb (1)
1404references:={MscorlibRef, SystemRef, SystemCoreRef},
CodeGen\CodeGenVBCore.vb (8)
2603references:={SystemRef, SystemCoreRef}, 2629references:={SystemRef, SystemCoreRef}, 2655references:={SystemRef, SystemCoreRef}, 2681references:={SystemRef, SystemCoreRef}, 2713references:={SystemRef, SystemCoreRef}, 2758references:={SystemRef, SystemCoreRef}, 2847references:={SystemRef, SystemCoreRef}, 3292Protected NoVbRuntimeReferences As MetadataReference() = {MscorlibRef, SystemRef, SystemCoreRef}
Emit\DeterministicTests.vb (1)
196referencedAssemblies:={MscorlibRef, SystemRef, forwardedToReference1})
Emit\EmitErrorTests.vb (1)
598Dim compilation = CreateEmptyCompilationWithReferences(VisualBasicSyntaxTree.ParseText(source.ToString()), {MscorlibRef, SystemRef, MsvbRef})
Emit\NoPiaEmbedTypes.vb (3)
1865references:={MscorlibRef, SystemRef, MetadataReference.CreateFromImage(compilation0.EmitToArray())}) 1870references:={MscorlibRef, SystemRef, compilation0.EmitToImageReference(embedInteropTypes:=True)}) 2848references:={SystemRef})
ErrorHandling.vb (6)
469references:={MscorlibRef, SystemRef, SystemCoreRef}, 503references:={MscorlibRef, SystemRef, SystemCoreRef}, 528references:={MscorlibRef, SystemRef, SystemCoreRef}, 551references:={MscorlibRef, SystemRef, SystemCoreRef}, 576references:={MscorlibRef, SystemRef, SystemCoreRef}, 596references:={MscorlibRef, SystemRef, SystemCoreRef},
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (12)
ExpressionCompilerTestBase.vb (1)
324{MscorlibRef_v4_0_30316_17626, SystemRef, MsvbRef},
LocalsTests.vb (2)
2655Dim comp = CreateEmptyCompilationWithReferences({VisualBasicSyntaxTree.ParseText(source)}, {MscorlibRef, SystemRef}, TestOptions.DebugDll) 2659WithRuntimeInstance(comp, {MscorlibRef, SystemRef, SystemCoreRef, SystemXmlLinqRef, libRef},
MissingAssemblyTests.vb (1)
187Dim comp = CreateCompilationWithMscorlib40({source}, {SystemRef, SystemCoreRef, SystemXmlRef, SystemXmlLinqRef}, TestOptions.DebugDll)
PseudoVariableTests.vb (1)
938{MscorlibRef_v4_0_30316_17626, SystemRef, MsvbRef},
ReferencedModulesTests.vb (6)
543references:={MscorlibRef, SystemRef, MsvbRef, SystemCoreRef}) 551references:={MscorlibRef, SystemRef, MsvbRef, SystemCoreRef, moduleA.GetReference()}).ToModuleInstance() 556SystemRef.ToModuleInstance(), 666references:={MscorlibRef, SystemRef, MsvbRef}).EmitToImageReference() 672references:={MscorlibRef, SystemRef, MsvbRef}).EmitToImageReference() 680WithRuntimeInstance(compilationB, {MscorlibRef, SystemRef, MsvbRef, referenceA1, referenceA2},
StatementTests.vb (1)
829{MscorlibRef_v4_0_30316_17626, SystemRef, MsvbRef},
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Binding\BindingErrorTests.vb (3)
24212references:={MscorlibRef, SystemRef, SystemCoreRef}, 25816Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(source, {SystemRef}, parseOptions:=VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12)) 26026Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(source, {SystemRef}, parseOptions:=VisualBasicParseOptions.Default.WithLanguageVersion(LanguageVersion.VisualBasic12))
Compilation\CompilationAPITests.vb (2)
1038csComp = csComp.AddReferences(SystemRef) 2691</compilation>, options:=TestOptions.ReleaseExe.WithEmbedVbCoreRuntime(True), references:={SystemRef})
Compilation\ReferenceManagerTests.vb (1)
1181references:={MscorlibRef, MsvbRef, SystemRef, SystemRef_v20},
Diagnostics\DiagnosticAnalyzerTests.vb (2)
883Dim compilation = CreateCompilationWithMscorlib45(trees.ToArray(), {SystemRef}, TestOptions.ReleaseDll) 915Dim compilation = CreateCompilationWithMscorlib45({tree}, {SystemRef}, TestOptions.ReleaseDll)
Semantics\GetExtendedSemanticInfoTests.vb (1)
8194</compilation>, references:={SystemRef})
Semantics\MethodCalls.vb (1)
4778compilation = CreateCompilationWithMscorlib40AndReferences(source, {SystemRef}, TestOptions.ReleaseExe.WithEmbedVbCoreRuntime(True))
Semantics\OptionalArgumentTests.vb (5)
2278CompileAndVerify(source, {MscorlibRef, SystemRef}, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False)) 2365CompileAndVerify(source, {MscorlibRef, SystemRef}, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False)) 2478CompileAndVerify(source, {MscorlibRef, SystemRef}, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False)) 2643CompileAndVerify(source, {MscorlibRef, SystemRef}, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False)) 2785CompileAndVerify(source, {MscorlibRef, SystemRef}, sourceSymbolValidator:=validator(True), symbolValidator:=validator(False))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (11)
SymbolDisplay\SymbolDisplayTests.vb (1)
3850SymbolDisplayPartKind.ClassName}, minimal:=True, references:={SystemRef, MsvbRef})
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (4)
101Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(compilationDef, {SystemRef, SystemCoreRef, MsvbRef}) 223Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(compilationDef, {SystemRef, SystemCoreRef, MsvbRef}) 296Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(compilationDef, {SystemRef, SystemCoreRef, MsvbRef}) 365Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(compilationDef, {SystemRef, SystemCoreRef, MsvbRef})
SymbolsTests\MyBaseMyClassSemanticsTests.vb (1)
120Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(text, {SystemRef, SystemCoreRef, MsvbRef})
SymbolsTests\Source\GroupClassTests.vb (3)
2408Dim compilation = CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(compilationDef, {SystemRef}, 2468compilation = CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(compilationDef, {SystemRef}, 2592compilation = CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(compilationDef, {SystemRef},
SymbolsTests\SymbolErrorTests.vb (1)
7729</compilation>, {SystemRef}, TestOptions.ReleaseDll)
SymbolsTests\WithStatementSymbolsTests.vb (1)
273Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndReferences(text, {SystemRef, SystemCoreRef, MsvbRef})
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
CompilationTestUtils.vb (2)
206Dim references = {MscorlibRef, SystemRef, MsvbRef} 215Public ReadOnly XmlReferences As MetadataReference() = {SystemRef, SystemCoreRef, SystemXmlRef, SystemXmlLinqRef}
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IParameterReferenceExpression.vb (1)
954references:={MscorlibRef, SystemRef, compilation0.EmitToImageReference(embedInteropTypes:=True)})