195 references to CreateCompilationWithIndexAndRange
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (36)
CodeGen\CodeGenForEachTests.cs (1)
3323var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\IndexAndRangeTests.cs (35)
22var comp = CreateCompilationWithIndexAndRange( 70var comp = CreateCompilationWithIndexAndRange( 104var comp = CreateCompilationWithIndexAndRange(src); 951var comp = CreateCompilationWithIndexAndRange(src, TestOptions.ReleaseExe); 1578var comp = CreateCompilationWithIndexAndRange(@" 2084var comp = CreateCompilationWithIndexAndRange(@" 2175var compilation = CreateCompilationWithIndexAndRange(@" 2221var compilation = CreateCompilationWithIndexAndRange(@" 2242var compilation = CreateCompilationWithIndexAndRange(@" 2279var compilation = CreateCompilationWithIndexAndRange(@" 2316var compilation = CreateCompilationWithIndexAndRange(@" 2357var compilation = CreateCompilationWithIndexAndRange(@" 2377var compilation = CreateCompilationWithIndexAndRange(@" 2410var compilation = CreateCompilationWithIndexAndRange(@" 2430var compilation = CreateCompilationWithIndexAndRange(@" 2463var compilation = CreateCompilationWithIndexAndRange(@" 2482var compilation = CreateCompilationWithIndexAndRange(@" 2575var compilation = CreateCompilationWithIndexAndRange(@" 2600var compilation = CreateCompilationWithIndexAndRange(@" 2664var compilation = CreateCompilationWithIndexAndRange(@" 2728CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2744CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2774CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2803CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2832CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2862CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2891CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2923CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2955CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2990CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3007CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3024CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3045CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3068CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3088CompileAndVerify(CreateCompilationWithIndexAndRange(@"
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (60)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2653CreateCompilationWithIndexAndRange(@"
Semantics\PatternMatchingTests_ListPatterns.cs (59)
452var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular10); 465compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular11); 531var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 719var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 903var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 939var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1003var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1033var compilation = CreateCompilationWithIndexAndRange(source); 1076var compilation = CreateCompilationWithIndexAndRange(source); 1125var compilation = CreateCompilationWithIndexAndRange(source); 1156var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1180var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1225var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1325var compilation = CreateCompilationWithIndexAndRange(source); 1481var compilation = CreateCompilationWithIndexAndRange(source); 1568var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1613var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 1854var compilation = CreateCompilationWithIndexAndRange(source); 1880var compilation = CreateCompilationWithIndexAndRange(source); 1906var compilation = CreateCompilationWithIndexAndRange(source); 1932var compilation = CreateCompilationWithIndexAndRange(source); 1958var compilation = CreateCompilationWithIndexAndRange(source); 1984var compilation = CreateCompilationWithIndexAndRange(source); 2010var compilation = CreateCompilationWithIndexAndRange(source); 2038var compilation = CreateCompilationWithIndexAndRange(source); 2066var compilation = CreateCompilationWithIndexAndRange(source); 2094var compilation = CreateCompilationWithIndexAndRange(source); 2122var compilation = CreateCompilationWithIndexAndRange(source); 2150var compilation = CreateCompilationWithIndexAndRange(source); 2178var compilation = CreateCompilationWithIndexAndRange(source); 2206var compilation = CreateCompilationWithIndexAndRange(source); 2234var compilation = CreateCompilationWithIndexAndRange(source); 2276var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2310var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2335var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2439var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2570var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2920var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 2951var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 3776var comp = CreateCompilationWithIndexAndRange(src); 3813var comp = CreateCompilationWithIndexAndRange(src); 4403var compilation = CreateCompilationWithIndexAndRange(source); 6211var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6253var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6313var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6340var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6398var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6451var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6487var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6518var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6573var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6658var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6689var comp = CreateCompilationWithIndexAndRange(src); 6762var comp = CreateCompilationWithIndexAndRange(src); 6815var comp = CreateCompilationWithIndexAndRange(src); 6839var comp = CreateCompilationWithIndexAndRange(src); 6911var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 7324var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 7816var compilation = CreateCompilationWithIndexAndRange(source);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (48)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (10)
1676var comp = CreateCompilationWithIndexAndRange(source); 1718var comp = CreateCompilationWithIndexAndRange(source); 1805var comp = CreateCompilationWithIndexAndRange(source); 1898var comp = CreateCompilationWithIndexAndRange(source); 2021var comp = CreateCompilationWithIndexAndRange(source); 2048var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2090var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2177var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2270var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2393var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray });
IOperation\IOperationTests_IBinaryOperatorExpression.cs (9)
8029var compilation = CreateCompilationWithIndexAndRange(@" 8060var compilation = CreateCompilationWithIndexAndRange(@" 8090var compilation = CreateCompilationWithIndexAndRange(@" 8118var compilation = CreateCompilationWithIndexAndRange(@" 8146var compilation = CreateCompilationWithIndexAndRange(@" 8171var compilation = CreateCompilationWithIndexAndRange(@" 8202var compilation = CreateCompilationWithIndexAndRange(@" 8232var compilation = CreateCompilationWithIndexAndRange(@" 8260var compilation = CreateCompilationWithIndexAndRange(@"
IOperation\IOperationTests_IFromEndIndexOperation_IRangeOperation.cs (2)
33var comp = CreateCompilationWithIndexAndRange(src); 208var compilation = CreateCompilationWithIndexAndRange(source);
IOperation\IOperationTests_IImplicitIndexerReferenceExpression.cs (20)
41var comp = CreateCompilationWithIndexAndRange(source); 85var comp = CreateCompilationWithIndexAndRange(source); 174var comp = CreateCompilationWithIndexAndRange(source); 269var comp = CreateCompilationWithIndexAndRange(source); 394var comp = CreateCompilationWithIndexAndRange(source); 423var comp = CreateCompilationWithIndexAndRange(source); 467var comp = CreateCompilationWithIndexAndRange(source); 556var comp = CreateCompilationWithIndexAndRange(source); 651var comp = CreateCompilationWithIndexAndRange(source); 776var comp = CreateCompilationWithIndexAndRange(source); 814var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 858var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 947var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1042var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1167var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1196var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1240var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1329var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1424var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable }); 1549var comp = CreateCompilationWithIndexAndRange(new[] { source, IndexableAndSliceable });
IOperation\IOperationTests_IIsPatternExpression.cs (4)
2150var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2186var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2228var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2404var comp = CreateCompilationWithIndexAndRange(source);
IOperation\IOperationTests_IUnaryOperatorExpression.cs (3)
3623var compilation = CreateCompilationWithIndexAndRange(@" 3646var compilation = CreateCompilationWithIndexAndRange(@" 3669var compilation = CreateCompilationWithIndexAndRange(@"
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (49)
Semantics\ImplicitObjectCreationTests.cs (1)
2911var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: ImplicitObjectCreationTestOptions);
Semantics\IndexAndRangeTests.cs (31)
77var comp = CreateCompilationWithIndexAndRange(src); 79comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.Regular7_3); 109var comp = CreateCompilationWithIndexAndRange(src); 142var comp = CreateCompilationWithIndexAndRange(src); 169var comp = CreateCompilationWithIndexAndRange(src); 196var comp = CreateCompilationWithIndexAndRange(src); 223var comp = CreateCompilationWithIndexAndRange(src); 264var comp = CreateCompilationWithIndexAndRange(src); 310var comp = CreateCompilationWithIndexAndRange(src); 339var comp = CreateCompilationWithIndexAndRange(src); 368var comp = CreateCompilationWithIndexAndRange(src); 397var comp = CreateCompilationWithIndexAndRange(src); 426var comp = CreateCompilationWithIndexAndRange(src); 453var comp = CreateCompilationWithIndexAndRange(src); 544var comp = CreateCompilationWithIndexAndRange(@" 568var comp = CreateCompilationWithIndexAndRange(@" 741var comp = CreateCompilationWithIndexAndRange(@" 1324var compilation = CreateCompilationWithIndexAndRange(@" 1367var compilation = CreateCompilationWithIndexAndRange(@" 1410var compilation = CreateCompilationWithIndexAndRange(@" 1438var compilation = CreateCompilationWithIndexAndRange(@" 1481CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 1482CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1509CreateCompilationWithIndexAndRange(@" 1540CreateCompilationWithIndexAndRange(@" 1628var comp = CreateCompilationWithIndexAndRange(@" 1648var comp = CreateCompilationWithIndexAndRange(@" 1668CreateCompilationWithIndexAndRange(@" 1689var comp = CreateCompilationWithIndexAndRange(@" 1709var comp = CreateCompilationWithIndexAndRange(@" 1729CreateCompilationWithIndexAndRange(@"
Semantics\NullableReferenceTypesTests.cs (17)
1623CreateCompilationWithIndexAndRange(text).VerifyDiagnostics(); 4162var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4193var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4225var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4250var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4284var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4309var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4335var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4366var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4698var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4776var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4815var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4845var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4873var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 5154var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 127510var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 127531var comp = CreateCompilationWithIndexAndRange(src, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
26var comp = CreateCompilationWithIndexAndRange(@" 120var comp = CreateCompilationWithIndexAndRange(@"