84 references to UsingDeclaration
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (84)
Parsing\DeclarationScopeParsingTests.cs (6)
24
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
71
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
244
UsingDeclaration
(source, TestOptions.Regular11);
683
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
800
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(langVersion));
1352
UsingDeclaration
(source, TestOptions.Regular11);
Parsing\LambdaReturnTypeParsingTests.cs (2)
5080
UsingDeclaration
(source, TestOptions.Regular9);
5293
UsingDeclaration
(source, parseOptions);
Parsing\LocalFunctionParsingTests.cs (6)
1736
UsingDeclaration
(text, options: TestOptions.Regular7_3);
1739
UsingDeclaration
(text, options: TestOptions.Regular8);
1742
UsingDeclaration
(text, options: TestOptions.Regular9);
1851
UsingDeclaration
(text, options: TestOptions.Regular7_3);
1854
UsingDeclaration
(text, options: TestOptions.Regular8);
1857
UsingDeclaration
(text, options: TestOptions.Regular9);
Parsing\MemberDeclarationParsingTests.cs (36)
155
UsingDeclaration
("class C { }", options: options);
173
UsingDeclaration
("void M() { }", options: options);
202
UsingDeclaration
("static int F1 = a, F2 = b;", options: options);
250
UsingDeclaration
("public ThisClassName(int x) : base(x) { }", options: options);
301
UsingDeclaration
("public ~ThisClassName() { }", options: options);
328
UsingDeclaration
("public implicit operator long(int x) => x;", options: options);
371
UsingDeclaration
("public int operator +(int x, int y) => x + y;", options: options);
430
UsingDeclaration
("C operator >>>(C x, C y) => x;", options: options);
1054
UsingDeclaration
("string Property { get; init; }", options: options);
1136
UsingDeclaration
("string Property { init; set; }", options: options);
1170
UsingDeclaration
("string Property { set; init; }", options: options);
1202
UsingDeclaration
("required string Prop { get; }", options: parseOptions);
1229
UsingDeclaration
("required Prop { get; }", options: parseOptions);
1277
UsingDeclaration
("required required { get; }", options: parseOptions);
1344
UsingDeclaration
("required Type required { get; }", options: RequiredMembersOptions);
1371
UsingDeclaration
("required string Field;", options: parseOptions);
1395
UsingDeclaration
("required Field;", options: parseOptions);
1440
UsingDeclaration
("required required;", options: parseOptions);
1483
UsingDeclaration
("required string M() {}", options: parseOptions);
1510
UsingDeclaration
("required M() {}", options: parseOptions);
1535
UsingDeclaration
("required M() {}", options: RequiredMembersOptions);
1559
UsingDeclaration
("static required C operator+(C c1, C c2) {}", options: parseOptions);
1606
UsingDeclaration
("static required implicit operator C(S s) {}", options: parseOptions);
2351
UsingDeclaration
(text, options: options.WithLanguageVersion(version));
3016
UsingDeclaration
("public int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
3067
UsingDeclaration
("public int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
4271
UsingDeclaration
(text, options: options.WithLanguageVersion(version));
4904
UsingDeclaration
("int I.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
4954
UsingDeclaration
("int I<T>.operator +(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
6296
UsingDeclaration
(text, options: options.WithLanguageVersion(version));
6814
UsingDeclaration
("implicit I.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
6864
UsingDeclaration
("explicit I<T>.operator int(int x) => x;", options: options.WithLanguageVersion(LanguageVersion.Preview));
9116
UsingDeclaration
("int N1::I.M1() => 0;", options: options);
9717
UsingDeclaration
("C I.operator checked " + op + "(C x) => x;", options: TestOptions.RegularPreview);
9848
UsingDeclaration
("C I.operator checked " + op + "(C x, C y) => x;", options: TestOptions.RegularPreview);
9949
UsingDeclaration
(op + " I.operator checked D(C x) => x;", options: TestOptions.RegularPreview);
Parsing\RefFieldParsingTests.cs (7)
24
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(languageVersion));
61
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(languageVersion));
172
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(languageVersion));
230
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(languageVersion));
405
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(languageVersion));
467
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(languageVersion));
653
UsingDeclaration
(source, TestOptions.Regular.WithLanguageVersion(languageVersion));
Parsing\RefReadonlyTests.cs (27)
501
UsingDeclaration
(source, TestOptions.Regular11);
504
UsingDeclaration
(source, TestOptions.Regular12);
544
UsingDeclaration
(source, TestOptions.Regular11);
547
UsingDeclaration
(source, TestOptions.Regular12);
588
UsingDeclaration
(source, TestOptions.Regular11);
591
UsingDeclaration
(source, TestOptions.Regular12);
631
UsingDeclaration
(source, TestOptions.Regular11);
634
UsingDeclaration
(source, TestOptions.Regular12);
675
UsingDeclaration
(source, TestOptions.Regular11);
678
UsingDeclaration
(source, TestOptions.Regular12);
719
UsingDeclaration
(source, TestOptions.Regular11);
722
UsingDeclaration
(source, TestOptions.Regular12);
764
UsingDeclaration
(source, TestOptions.Regular11);
767
UsingDeclaration
(source, TestOptions.Regular12);
808
UsingDeclaration
(source, TestOptions.Regular11);
811
UsingDeclaration
(source, TestOptions.Regular12);
852
UsingDeclaration
(source, TestOptions.Regular11);
855
UsingDeclaration
(source, TestOptions.Regular12);
896
UsingDeclaration
(source, TestOptions.Regular11);
899
UsingDeclaration
(source, TestOptions.Regular12);
1187
UsingDeclaration
(source, TestOptions.Regular11);
1190
UsingDeclaration
(source, TestOptions.Regular12);
1230
UsingDeclaration
(source, TestOptions.Regular11);
1233
UsingDeclaration
(source, TestOptions.Regular12);
1273
UsingDeclaration
(source, TestOptions.Regular11);
1276
UsingDeclaration
(source, TestOptions.Regular12);
1279
UsingDeclaration
(source, TestOptions.Regular9);