205 references to CreateCompilationWithIndexAndRange
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (35)
CodeGen\CodeGenForEachTests.cs (1)
3329
var comp =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\IndexAndRangeTests.cs (34)
22
var comp =
CreateCompilationWithIndexAndRange
(
70
var comp =
CreateCompilationWithIndexAndRange
(
104
var comp =
CreateCompilationWithIndexAndRange
(src);
951
var comp =
CreateCompilationWithIndexAndRange
(src, TestOptions.ReleaseExe);
1578
var comp =
CreateCompilationWithIndexAndRange
(@"
2175
var compilation =
CreateCompilationWithIndexAndRange
(@"
2221
var compilation =
CreateCompilationWithIndexAndRange
(@"
2242
var compilation =
CreateCompilationWithIndexAndRange
(@"
2279
var compilation =
CreateCompilationWithIndexAndRange
(@"
2316
var compilation =
CreateCompilationWithIndexAndRange
(@"
2357
var compilation =
CreateCompilationWithIndexAndRange
(@"
2377
var compilation =
CreateCompilationWithIndexAndRange
(@"
2410
var compilation =
CreateCompilationWithIndexAndRange
(@"
2430
var compilation =
CreateCompilationWithIndexAndRange
(@"
2463
var compilation =
CreateCompilationWithIndexAndRange
(@"
2482
var compilation =
CreateCompilationWithIndexAndRange
(@"
2575
var compilation =
CreateCompilationWithIndexAndRange
(@"
2600
var compilation =
CreateCompilationWithIndexAndRange
(@"
2664
var compilation =
CreateCompilationWithIndexAndRange
(@"
2728
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2744
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2774
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2803
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2832
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2862
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2891
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2923
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2955
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
2990
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3007
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3024
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3045
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3068
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
3088
CompileAndVerify(
CreateCompilationWithIndexAndRange
(@"
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (15)
CodeGen\IndexAndRangeTests.cs (15)
2158
var comp =
CreateCompilationWithIndexAndRange
(source);
2197
var comp =
CreateCompilationWithIndexAndRange
(source, parseOptions: useCsharp13 ? TestOptions.Regular13 : TestOptions.RegularPreview);
2485
comp =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular12);
2534
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2658
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2755
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
3284
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
3424
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
3545
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
4024
var comp =
CreateCompilationWithIndexAndRange
(source);
4051
var comp =
CreateCompilationWithIndexAndRange
(source);
4090
var comp =
CreateCompilationWithIndexAndRange
(source);
4120
var comp =
CreateCompilationWithIndexAndRange
(source);
4142
var comp =
CreateCompilationWithIndexAndRange
(source);
4497
var comp =
CreateCompilationWithIndexAndRange
(new[] { src, TestSources.GetSubArray });
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (57)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2671
CreateCompilationWithIndexAndRange
(@"
Semantics\PatternMatchingTests_ListPatterns.cs (55)
451
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular10);
464
compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular11);
530
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
718
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
902
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
938
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1032
var compilation =
CreateCompilationWithIndexAndRange
(source);
1075
var compilation =
CreateCompilationWithIndexAndRange
(source);
1124
var compilation =
CreateCompilationWithIndexAndRange
(source);
1155
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1179
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1224
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1324
var compilation =
CreateCompilationWithIndexAndRange
(source);
1480
var compilation =
CreateCompilationWithIndexAndRange
(source);
1567
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1612
var compilation =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.ReleaseExe);
1853
var compilation =
CreateCompilationWithIndexAndRange
(source);
1879
var compilation =
CreateCompilationWithIndexAndRange
(source);
1905
var compilation =
CreateCompilationWithIndexAndRange
(source);
1931
var compilation =
CreateCompilationWithIndexAndRange
(source);
1957
var compilation =
CreateCompilationWithIndexAndRange
(source);
1983
var compilation =
CreateCompilationWithIndexAndRange
(source);
2009
var compilation =
CreateCompilationWithIndexAndRange
(source);
2037
var compilation =
CreateCompilationWithIndexAndRange
(source);
2065
var compilation =
CreateCompilationWithIndexAndRange
(source);
2093
var compilation =
CreateCompilationWithIndexAndRange
(source);
2121
var compilation =
CreateCompilationWithIndexAndRange
(source);
2149
var compilation =
CreateCompilationWithIndexAndRange
(source);
2177
var compilation =
CreateCompilationWithIndexAndRange
(source);
2205
var compilation =
CreateCompilationWithIndexAndRange
(source);
2233
var compilation =
CreateCompilationWithIndexAndRange
(source);
2275
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2309
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2334
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2438
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2918
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
2949
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
3774
var comp =
CreateCompilationWithIndexAndRange
(src);
3811
var comp =
CreateCompilationWithIndexAndRange
(src);
4400
var compilation =
CreateCompilationWithIndexAndRange
(source);
6204
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6246
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6306
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6333
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6391
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
6444
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
6480
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6511
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6566
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6651
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6808
var comp =
CreateCompilationWithIndexAndRange
(src);
6832
var comp =
CreateCompilationWithIndexAndRange
(src);
6904
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
7317
var compilation =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.ReleaseExe);
7807
var compilation =
CreateCompilationWithIndexAndRange
(source);
Semantics\PatternMatchingTests_NullableTypes.cs (1)
633
var comp =
CreateCompilationWithIndexAndRange
(source);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (48)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (10)
1708
var comp =
CreateCompilationWithIndexAndRange
(source);
1750
var comp =
CreateCompilationWithIndexAndRange
(source);
1837
var comp =
CreateCompilationWithIndexAndRange
(source);
1930
var comp =
CreateCompilationWithIndexAndRange
(source);
2053
var comp =
CreateCompilationWithIndexAndRange
(source);
2080
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2122
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2209
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2302
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2425
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
IOperation\IOperationTests_IBinaryOperatorExpression.cs (9)
8029
var compilation =
CreateCompilationWithIndexAndRange
(@"
8060
var compilation =
CreateCompilationWithIndexAndRange
(@"
8090
var compilation =
CreateCompilationWithIndexAndRange
(@"
8118
var compilation =
CreateCompilationWithIndexAndRange
(@"
8146
var compilation =
CreateCompilationWithIndexAndRange
(@"
8171
var compilation =
CreateCompilationWithIndexAndRange
(@"
8202
var compilation =
CreateCompilationWithIndexAndRange
(@"
8232
var compilation =
CreateCompilationWithIndexAndRange
(@"
8260
var compilation =
CreateCompilationWithIndexAndRange
(@"
IOperation\IOperationTests_IFromEndIndexOperation_IRangeOperation.cs (2)
33
var comp =
CreateCompilationWithIndexAndRange
(src);
208
var compilation =
CreateCompilationWithIndexAndRange
(source);
IOperation\IOperationTests_IImplicitIndexerReferenceExpression.cs (20)
41
var comp =
CreateCompilationWithIndexAndRange
(source);
85
var comp =
CreateCompilationWithIndexAndRange
(source);
174
var comp =
CreateCompilationWithIndexAndRange
(source);
269
var comp =
CreateCompilationWithIndexAndRange
(source);
394
var comp =
CreateCompilationWithIndexAndRange
(source);
423
var comp =
CreateCompilationWithIndexAndRange
(source);
467
var comp =
CreateCompilationWithIndexAndRange
(source);
556
var comp =
CreateCompilationWithIndexAndRange
(source);
651
var comp =
CreateCompilationWithIndexAndRange
(source);
776
var comp =
CreateCompilationWithIndexAndRange
(source);
814
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
858
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
947
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1042
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1167
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1196
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1240
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1329
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1424
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
1549
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, IndexableAndSliceable });
IOperation\IOperationTests_IIsPatternExpression.cs (4)
2150
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2186
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2228
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2404
var comp =
CreateCompilationWithIndexAndRange
(source);
IOperation\IOperationTests_IUnaryOperatorExpression.cs (3)
3623
var compilation =
CreateCompilationWithIndexAndRange
(@"
3646
var compilation =
CreateCompilationWithIndexAndRange
(@"
3669
var compilation =
CreateCompilationWithIndexAndRange
(@"
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (48)
Semantics\ImplicitObjectCreationTests.cs (1)
2911
var comp =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.DebugExe, parseOptions: ImplicitObjectCreationTestOptions);
Semantics\IndexAndRangeTests.cs (31)
77
var comp =
CreateCompilationWithIndexAndRange
(src);
79
comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.Regular7_3);
109
var comp =
CreateCompilationWithIndexAndRange
(src);
142
var comp =
CreateCompilationWithIndexAndRange
(src);
169
var comp =
CreateCompilationWithIndexAndRange
(src);
196
var comp =
CreateCompilationWithIndexAndRange
(src);
223
var comp =
CreateCompilationWithIndexAndRange
(src);
265
var comp =
CreateCompilationWithIndexAndRange
(src);
311
var comp =
CreateCompilationWithIndexAndRange
(src);
340
var comp =
CreateCompilationWithIndexAndRange
(src);
369
var comp =
CreateCompilationWithIndexAndRange
(src);
398
var comp =
CreateCompilationWithIndexAndRange
(src);
427
var comp =
CreateCompilationWithIndexAndRange
(src);
454
var comp =
CreateCompilationWithIndexAndRange
(src);
545
var comp =
CreateCompilationWithIndexAndRange
(@"
569
var comp =
CreateCompilationWithIndexAndRange
(@"
742
var comp =
CreateCompilationWithIndexAndRange
(@"
1325
var compilation =
CreateCompilationWithIndexAndRange
(@"
1368
var compilation =
CreateCompilationWithIndexAndRange
(@"
1411
var compilation =
CreateCompilationWithIndexAndRange
(@"
1439
var compilation =
CreateCompilationWithIndexAndRange
(@"
1482
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected);
1483
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
1510
CreateCompilationWithIndexAndRange
(@"
1541
CreateCompilationWithIndexAndRange
(@"
1629
var comp =
CreateCompilationWithIndexAndRange
(@"
1649
var comp =
CreateCompilationWithIndexAndRange
(@"
1669
CreateCompilationWithIndexAndRange
(@"
1690
var comp =
CreateCompilationWithIndexAndRange
(@"
1710
var comp =
CreateCompilationWithIndexAndRange
(@"
1730
CreateCompilationWithIndexAndRange
(@"
Semantics\NullableReferenceTypesTests.cs (16)
4174
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4205
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4237
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4262
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4296
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4321
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4347
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4378
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4710
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4788
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4827
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4857
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4885
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
5166
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
131238
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
131259
var comp =
CreateCompilationWithIndexAndRange
(src, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
26
var comp =
CreateCompilationWithIndexAndRange
(@"
120
var comp =
CreateCompilationWithIndexAndRange
(@"