213 references to CreateCompilationWithIndexAndRange
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (36)
CodeGen\CodeGenForEachTests.cs (1)
3317var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\IndexAndRangeTests.cs (35)
27var comp = CreateCompilationWithIndexAndRange( 75var comp = CreateCompilationWithIndexAndRange( 109var comp = CreateCompilationWithIndexAndRange(src); 1011var comp = CreateCompilationWithIndexAndRange(src, TestOptions.ReleaseExe); 1640var comp = CreateCompilationWithIndexAndRange(@" 2146var comp = CreateCompilationWithIndexAndRange(@" 2237var compilation = CreateCompilationWithIndexAndRange(@" 2283var compilation = CreateCompilationWithIndexAndRange(@" 2304var compilation = CreateCompilationWithIndexAndRange(@" 2341var compilation = CreateCompilationWithIndexAndRange(@" 2378var compilation = CreateCompilationWithIndexAndRange(@" 2419var compilation = CreateCompilationWithIndexAndRange(@" 2439var compilation = CreateCompilationWithIndexAndRange(@" 2472var compilation = CreateCompilationWithIndexAndRange(@" 2492var compilation = CreateCompilationWithIndexAndRange(@" 2525var compilation = CreateCompilationWithIndexAndRange(@" 2544var compilation = CreateCompilationWithIndexAndRange(@" 2637var compilation = CreateCompilationWithIndexAndRange(@" 2662var compilation = CreateCompilationWithIndexAndRange(@" 2726var compilation = CreateCompilationWithIndexAndRange(@" 2790CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2806CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2836CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2865CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2894CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2924CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2953CompileAndVerify(CreateCompilationWithIndexAndRange(@" 2985CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3017CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3052CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3069CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3086CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3107CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3130CompileAndVerify(CreateCompilationWithIndexAndRange(@" 3150CompileAndVerify(CreateCompilationWithIndexAndRange(@"
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
CodeGen\IndexAndRangeTests.cs (15)
2163var comp = CreateCompilationWithIndexAndRange(source); 2202var comp = CreateCompilationWithIndexAndRange(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2490comp = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular12); 2539var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2663var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2760var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3289var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3429var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3550var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 4029var comp = CreateCompilationWithIndexAndRange(source); 4056var comp = CreateCompilationWithIndexAndRange(source); 4095var comp = CreateCompilationWithIndexAndRange(source); 4125var comp = CreateCompilationWithIndexAndRange(source); 4147var comp = CreateCompilationWithIndexAndRange(source); 4502var comp = CreateCompilationWithIndexAndRange(new[] { src, TestSources.GetSubArray });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (63)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2671CreateCompilationWithIndexAndRange(@"
Semantics\PatternMatchingTests_ListPatterns.cs (60)
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); 2562var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2973var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 3004var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 3834var comp = CreateCompilationWithIndexAndRange(src); 3871var comp = CreateCompilationWithIndexAndRange(src); 4460var compilation = CreateCompilationWithIndexAndRange(source); 6330var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6369var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6420var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6447var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6500var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6553var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6589var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6620var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6674var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6758var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6789var comp = CreateCompilationWithIndexAndRange(src); 6856var comp = CreateCompilationWithIndexAndRange(src); 6908var comp = CreateCompilationWithIndexAndRange(src); 6932var comp = CreateCompilationWithIndexAndRange(src); 6988var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 7409var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 7945var compilation = CreateCompilationWithIndexAndRange(source); 9673var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe);
Semantics\PatternMatchingTests_NullableTypes.cs (2)
635var comp = CreateCompilationWithIndexAndRange(source); 665var comp = CreateCompilationWithIndexAndRange([source, TestSources.GetSubArray]);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (48)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (10)
1708var comp = CreateCompilationWithIndexAndRange(source); 1750var comp = CreateCompilationWithIndexAndRange(source); 1837var comp = CreateCompilationWithIndexAndRange(source); 1930var comp = CreateCompilationWithIndexAndRange(source); 2053var comp = CreateCompilationWithIndexAndRange(source); 2080var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2122var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2209var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2302var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2425var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray });
IOperation\IOperationTests_IBinaryOperatorExpression.cs (9)
8028var compilation = CreateCompilationWithIndexAndRange(@" 8059var compilation = CreateCompilationWithIndexAndRange(@" 8089var compilation = CreateCompilationWithIndexAndRange(@" 8117var compilation = CreateCompilationWithIndexAndRange(@" 8145var compilation = CreateCompilationWithIndexAndRange(@" 8170var compilation = CreateCompilationWithIndexAndRange(@" 8201var compilation = CreateCompilationWithIndexAndRange(@" 8231var compilation = CreateCompilationWithIndexAndRange(@" 8259var 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)
2902var 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); 265var comp = CreateCompilationWithIndexAndRange(src); 311var comp = CreateCompilationWithIndexAndRange(src); 340var comp = CreateCompilationWithIndexAndRange(src); 369var comp = CreateCompilationWithIndexAndRange(src); 398var comp = CreateCompilationWithIndexAndRange(src); 427var comp = CreateCompilationWithIndexAndRange(src); 454var comp = CreateCompilationWithIndexAndRange(src); 545var comp = CreateCompilationWithIndexAndRange(@" 569var comp = CreateCompilationWithIndexAndRange(@" 742var comp = CreateCompilationWithIndexAndRange(@" 1325var compilation = CreateCompilationWithIndexAndRange(@" 1368var compilation = CreateCompilationWithIndexAndRange(@" 1411var compilation = CreateCompilationWithIndexAndRange(@" 1439var compilation = CreateCompilationWithIndexAndRange(@" 1482CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected); 1483CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics(); 1510CreateCompilationWithIndexAndRange(@" 1541CreateCompilationWithIndexAndRange(@" 1629var comp = CreateCompilationWithIndexAndRange(@" 1649var comp = CreateCompilationWithIndexAndRange(@" 1669CreateCompilationWithIndexAndRange(@" 1690var comp = CreateCompilationWithIndexAndRange(@" 1710var comp = CreateCompilationWithIndexAndRange(@" 1730CreateCompilationWithIndexAndRange(@"
Semantics\NullableReferenceTypesTests.cs (17)
1635CreateCompilationWithIndexAndRange(text).VerifyDiagnostics(); 4181var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4212var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4244var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4269var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4303var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4328var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4354var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4385var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4717var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4795var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4834var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4864var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4892var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 5173var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 131349var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 131370var comp = CreateCompilationWithIndexAndRange(src, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
26var comp = CreateCompilationWithIndexAndRange(@" 120var comp = CreateCompilationWithIndexAndRange(@"