195 references to CreateCompilationWithIndexAndRange
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (36)
CodeGen\CodeGenForEachTests.cs (1)
3323
var comp =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular9);
CodeGen\IndexAndRangeTests.cs (35)
22
var comp =
CreateCompilationWithIndexAndRange
(
70
var comp =
CreateCompilationWithIndexAndRange
(
104
var comp =
CreateCompilationWithIndexAndRange
(src);
951
var comp =
CreateCompilationWithIndexAndRange
(src, TestOptions.ReleaseExe);
1578
var comp =
CreateCompilationWithIndexAndRange
(@"
2084
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 (60)
FlowAnalysis\FlowDiagnosticTests.cs (1)
2653
CreateCompilationWithIndexAndRange
(@"
Semantics\PatternMatchingTests_ListPatterns.cs (59)
452
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular10);
465
compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular11);
531
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
719
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
903
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
939
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1003
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1033
var compilation =
CreateCompilationWithIndexAndRange
(source);
1076
var compilation =
CreateCompilationWithIndexAndRange
(source);
1125
var compilation =
CreateCompilationWithIndexAndRange
(source);
1156
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1180
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1225
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1325
var compilation =
CreateCompilationWithIndexAndRange
(source);
1481
var compilation =
CreateCompilationWithIndexAndRange
(source);
1568
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
1613
var compilation =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.ReleaseExe);
1854
var compilation =
CreateCompilationWithIndexAndRange
(source);
1880
var compilation =
CreateCompilationWithIndexAndRange
(source);
1906
var compilation =
CreateCompilationWithIndexAndRange
(source);
1932
var compilation =
CreateCompilationWithIndexAndRange
(source);
1958
var compilation =
CreateCompilationWithIndexAndRange
(source);
1984
var compilation =
CreateCompilationWithIndexAndRange
(source);
2010
var compilation =
CreateCompilationWithIndexAndRange
(source);
2038
var compilation =
CreateCompilationWithIndexAndRange
(source);
2066
var compilation =
CreateCompilationWithIndexAndRange
(source);
2094
var compilation =
CreateCompilationWithIndexAndRange
(source);
2122
var compilation =
CreateCompilationWithIndexAndRange
(source);
2150
var compilation =
CreateCompilationWithIndexAndRange
(source);
2178
var compilation =
CreateCompilationWithIndexAndRange
(source);
2206
var compilation =
CreateCompilationWithIndexAndRange
(source);
2234
var compilation =
CreateCompilationWithIndexAndRange
(source);
2276
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2310
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2335
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2439
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2570
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
2920
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns);
2951
var compilation =
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
3776
var comp =
CreateCompilationWithIndexAndRange
(src);
3813
var comp =
CreateCompilationWithIndexAndRange
(src);
4403
var compilation =
CreateCompilationWithIndexAndRange
(source);
6211
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6253
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6313
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6340
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6398
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
6451
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
6487
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6518
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6573
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6658
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns);
6689
var comp =
CreateCompilationWithIndexAndRange
(src);
6762
var comp =
CreateCompilationWithIndexAndRange
(src);
6815
var comp =
CreateCompilationWithIndexAndRange
(src);
6839
var comp =
CreateCompilationWithIndexAndRange
(src);
6911
var comp =
CreateCompilationWithIndexAndRange
(src, parseOptions: TestOptions.RegularWithListPatterns, options: TestOptions.ReleaseExe);
7324
var compilation =
CreateCompilationWithIndexAndRange
(source, options: TestOptions.ReleaseExe);
7816
var compilation =
CreateCompilationWithIndexAndRange
(source);
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (48)
IOperation\IOperationTests_IArrayElementReferenceExpression.cs (10)
1676
var comp =
CreateCompilationWithIndexAndRange
(source);
1718
var comp =
CreateCompilationWithIndexAndRange
(source);
1805
var comp =
CreateCompilationWithIndexAndRange
(source);
1898
var comp =
CreateCompilationWithIndexAndRange
(source);
2021
var comp =
CreateCompilationWithIndexAndRange
(source);
2048
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2090
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2177
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2270
var comp =
CreateCompilationWithIndexAndRange
(new[] { source, TestSources.GetSubArray });
2393
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 (49)
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);
264
var comp =
CreateCompilationWithIndexAndRange
(src);
310
var comp =
CreateCompilationWithIndexAndRange
(src);
339
var comp =
CreateCompilationWithIndexAndRange
(src);
368
var comp =
CreateCompilationWithIndexAndRange
(src);
397
var comp =
CreateCompilationWithIndexAndRange
(src);
426
var comp =
CreateCompilationWithIndexAndRange
(src);
453
var comp =
CreateCompilationWithIndexAndRange
(src);
544
var comp =
CreateCompilationWithIndexAndRange
(@"
568
var comp =
CreateCompilationWithIndexAndRange
(@"
741
var comp =
CreateCompilationWithIndexAndRange
(@"
1324
var compilation =
CreateCompilationWithIndexAndRange
(@"
1367
var compilation =
CreateCompilationWithIndexAndRange
(@"
1410
var compilation =
CreateCompilationWithIndexAndRange
(@"
1438
var compilation =
CreateCompilationWithIndexAndRange
(@"
1481
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular7_3).VerifyDiagnostics(expected);
1482
CreateCompilationWithIndexAndRange
(source, parseOptions: TestOptions.Regular8).VerifyDiagnostics();
1509
CreateCompilationWithIndexAndRange
(@"
1540
CreateCompilationWithIndexAndRange
(@"
1628
var comp =
CreateCompilationWithIndexAndRange
(@"
1648
var comp =
CreateCompilationWithIndexAndRange
(@"
1668
CreateCompilationWithIndexAndRange
(@"
1689
var comp =
CreateCompilationWithIndexAndRange
(@"
1709
var comp =
CreateCompilationWithIndexAndRange
(@"
1729
CreateCompilationWithIndexAndRange
(@"
Semantics\NullableReferenceTypesTests.cs (17)
1623
CreateCompilationWithIndexAndRange
(text).VerifyDiagnostics();
4162
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4193
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4225
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4250
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4284
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4309
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4335
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4366
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4698
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4776
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4815
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4845
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
4873
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
5154
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
127510
var comp =
CreateCompilationWithIndexAndRange
(source, options: WithNullableEnable());
127531
var comp =
CreateCompilationWithIndexAndRange
(src, options: WithNullableEnable());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Compilation\SemanticModelAPITests.cs (2)
26
var comp =
CreateCompilationWithIndexAndRange
(@"
120
var comp =
CreateCompilationWithIndexAndRange
(@"