212 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)
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 (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 (62)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2671CreateCompilationWithIndexAndRange(@"
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); 2981var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns); 3012var compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 3841var comp = CreateCompilationWithIndexAndRange(src); 3878var comp = CreateCompilationWithIndexAndRange(src); 4467var compilation = CreateCompilationWithIndexAndRange(source); 6337var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6379var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6439var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6466var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6524var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6577var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 6613var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6644var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6699var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6784var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns); 6815var comp = CreateCompilationWithIndexAndRange(src); 6888var comp = CreateCompilationWithIndexAndRange(src); 6941var comp = CreateCompilationWithIndexAndRange(src); 6965var comp = CreateCompilationWithIndexAndRange(src); 7037var comp = CreateCompilationWithIndexAndRange(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe); 7459var compilation = CreateCompilationWithIndexAndRange(source, options: TestOptions.ReleaseExe); 7995var compilation = CreateCompilationWithIndexAndRange(source);
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)
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)
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()); 131361var comp = CreateCompilationWithIndexAndRange(source, options: WithNullableEnable()); 131382var comp = CreateCompilationWithIndexAndRange(src, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
26var comp = CreateCompilationWithIndexAndRange(@" 120var comp = CreateCompilationWithIndexAndRange(@"