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