205 references to CreateCompilationWithIndexAndRange
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (35)
CodeGen\CodeGenForEachTests.cs (1)
3329var comp = CreateCompilationWithIndexAndRange(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\IndexAndRangeTests.cs (34)
22var comp = CreateCompilationWithIndexAndRange( 70var comp = CreateCompilationWithIndexAndRange( 104var comp = CreateCompilationWithIndexAndRange(src); 951var comp = CreateCompilationWithIndexAndRange(src, TestOptions.ReleaseExe); 1578var 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 (15)
CodeGen\IndexAndRangeTests.cs (15)
2158var comp = CreateCompilationWithIndexAndRange(source); 2197var comp = CreateCompilationWithIndexAndRange(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview); 2485comp = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular12); 2534var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2658var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 2755var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3284var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3424var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 3545var comp = CreateCompilationWithIndexAndRange(new[] { source, TestSources.GetSubArray }); 4024var comp = CreateCompilationWithIndexAndRange(source); 4051var comp = CreateCompilationWithIndexAndRange(source); 4090var comp = CreateCompilationWithIndexAndRange(source); 4120var comp = CreateCompilationWithIndexAndRange(source); 4142var comp = CreateCompilationWithIndexAndRange(source); 4497var comp = CreateCompilationWithIndexAndRange(new[] { src, TestSources.GetSubArray });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (57)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2671CreateCompilationWithIndexAndRange(@"
Semantics\PatternMatchingTests_ListPatterns.cs (55)
451var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular10); 464compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular11); 530var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 718var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 902var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 938var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1032var compilation = CreateCompilationWithIndexAndRange(source); 1075var compilation = CreateCompilationWithIndexAndRange(source); 1124var compilation = CreateCompilationWithIndexAndRange(source); 1155var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1179var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1224var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1324var compilation = CreateCompilationWithIndexAndRange(source); 1480var compilation = CreateCompilationWithIndexAndRange(source); 1567var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 1612var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 1853var compilation = CreateCompilationWithIndexAndRange(source); 1879var compilation = CreateCompilationWithIndexAndRange(source); 1905var compilation = CreateCompilationWithIndexAndRange(source); 1931var compilation = CreateCompilationWithIndexAndRange(source); 1957var compilation = CreateCompilationWithIndexAndRange(source); 1983var compilation = CreateCompilationWithIndexAndRange(source); 2009var compilation = CreateCompilationWithIndexAndRange(source); 2037var compilation = CreateCompilationWithIndexAndRange(source); 2065var compilation = CreateCompilationWithIndexAndRange(source); 2093var compilation = CreateCompilationWithIndexAndRange(source); 2121var compilation = CreateCompilationWithIndexAndRange(source); 2149var compilation = CreateCompilationWithIndexAndRange(source); 2177var compilation = CreateCompilationWithIndexAndRange(source); 2205var compilation = CreateCompilationWithIndexAndRange(source); 2233var compilation = CreateCompilationWithIndexAndRange(source); 2275var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2309var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2334var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2438var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 2918var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 2949var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 3774var comp = CreateCompilationWithIndexAndRange(src); 3811var comp = CreateCompilationWithIndexAndRange(src); 4400var compilation = CreateCompilationWithIndexAndRange(source); 6204var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6246var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6306var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6333var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6391var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6444var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6480var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6511var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6566var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6651var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6808var comp = CreateCompilationWithIndexAndRange(src); 6832var comp = CreateCompilationWithIndexAndRange(src); 6904var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 7317var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 7807var compilation = CreateCompilationWithIndexAndRange(source);
Semantics\PatternMatchingTests_NullableTypes.cs (1)
633var comp = CreateCompilationWithIndexAndRange(source);
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)
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 (48)
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); 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 (16)
4174var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4205var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4237var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4262var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4296var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4321var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4347var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4378var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4710var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4788var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4827var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4857var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 4885var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 5166var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 131238var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 131259var comp = CreateCompilationWithIndexAndRange(src, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
26var comp = CreateCompilationWithIndexAndRange(@" 120var comp = CreateCompilationWithIndexAndRange(@"