1 override of PropertyDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
375
public override SyntaxNode
PropertyDeclaration
(
80 references to PropertyDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (36)
CodeGeneration\SyntaxGeneratorTests.cs (36)
1034
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.Abstract | DeclarationModifiers.ReadOnly),
1038
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.Abstract | DeclarationModifiers.WriteOnly),
1042
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.ReadOnly),
1050
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.WriteOnly),
1058
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.Abstract),
1062
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers: DeclarationModifiers.Required),
1177
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility: Accessibility.Private, modifiers: DeclarationModifiers.Abstract),
1480
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility: Accessibility.Internal, modifiers: DeclarationModifiers.Abstract),
1634
Generator.InterfaceDeclaration("i", members: [Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.Sealed)]),
1638
Generator.InterfaceDeclaration("i", members: [Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility: Accessibility.Public, modifiers: DeclarationModifiers.ReadOnly)]),
1870
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), accessibility: Accessibility.NotApplicable, modifiers: DeclarationModifiers.Abstract),
1958
var prop = Generator.
PropertyDeclaration
("P", Generator.IdentifierName("T"));
2822
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
2882
Assert.Equal(DeclarationKind.Property, Generator.GetDeclarationKind(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))));
2905
Assert.Equal("p", Generator.GetName(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))));
2928
Assert.Equal("p", Generator.GetName(Generator.WithName(Generator.
PropertyDeclaration
("x", Generator.IdentifierName("t")), "p")));
2951
Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility: Accessibility.Internal)));
2975
Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility: Accessibility.Internal), Accessibility.Private)));
2999
Assert.Equal(DeclarationModifiers.Abstract, Generator.GetModifiers(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), modifiers: DeclarationModifiers.Abstract)));
3022
Assert.Equal(DeclarationModifiers.Abstract, Generator.GetModifiers(Generator.WithModifiers(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), DeclarationModifiers.Abstract)));
3078
Generator.GetModifiers(Generator.WithModifiers(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), allModifiers)));
3198
Assert.Equal("t", Generator.GetType(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))).ToString());
3219
Assert.Equal("t", Generator.GetType(Generator.WithType(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")), Generator.IdentifierName("t"))).ToString());
3351
var prop = Generator.
PropertyDeclaration
("p", Generator.IdentifierName("T"));
3403
Generator.WithAccessorDeclarations(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"))),
3408
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
3414
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
3420
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
3591
Assert.Equal(0, Generator.GetGetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))).Count);
3592
Assert.Equal(2, Generator.GetGetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), getAccessorStatements: stmts)).Count);
3600
Assert.Equal(0, Generator.GetSetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))).Count);
3601
Assert.Equal(2, Generator.GetSetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), setAccessorStatements: stmts)).Count);
3624
Assert.Equal(2, Generator.GetGetAccessorStatements(Generator.WithGetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), stmts)).Count);
3629
Assert.Equal(2, Generator.GetSetAccessorStatements(Generator.WithSetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), stmts)).Count);
4042
Generator.InsertMembers(declC, 0, Generator.
PropertyDeclaration
("A", Generator.IdentifierName("T"))),
4060
Generator.InsertMembers(declC, 0, Generator.
PropertyDeclaration
("A", Generator.IdentifierName("T"))),
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (42)
CodeGeneration\SyntaxGeneratorTests.vb (42)
1119
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.Abstract + DeclarationModifiers.ReadOnly),
1123
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.Abstract + DeclarationModifiers.WriteOnly),
1127
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.ReadOnly),
1134
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.WriteOnly),
1141
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.Abstract),
1145
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.ReadOnly, getAccessorStatements:={Generator.IdentifierName("y")}),
1153
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.WriteOnly, setAccessorStatements:={Generator.IdentifierName("y")}),
1161
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), setAccessorStatements:={Generator.IdentifierName("y")}),
1175
Generator.WithAccessorDeclarations(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"))),
1180
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
1190
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
1205
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
1215
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
1549
Generator.InterfaceDeclaration("i", members:={Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.Sealed)}),
1557
Generator.InterfaceDeclaration("i", members:={Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Public, modifiers:=DeclarationModifiers.ReadOnly)}),
1769
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.Abstract),
1781
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Private, modifiers:=DeclarationModifiers.None),
1837
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal, modifiers:=DeclarationModifiers.Abstract),
2178
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x"), modifiers:=DeclarationModifiers.Abstract),
2185
Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")),
2262
Dim prop = Generator.
PropertyDeclaration
("P", Generator.IdentifierName("T"))
2575
Assert.Equal(DeclarationKind.Property, Generator.GetDeclarationKind(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))))
2576
Assert.Equal(DeclarationKind.Property, Generator.GetDeclarationKind(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.Abstract)))
2600
Assert.Equal("p", Generator.GetName(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.Abstract)))
2601
Assert.Equal("p", Generator.GetName(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))))
2625
Assert.Equal("p", Generator.GetName(Generator.WithName(Generator.
PropertyDeclaration
("x", Generator.IdentifierName("t")), "p")))
2626
Assert.Equal("p", Generator.GetName(Generator.WithName(Generator.
PropertyDeclaration
("x", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.Abstract), "p")))
2649
Assert.Equal(Accessibility.Internal, Generator.GetAccessibility(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal)))
2677
Assert.Equal(Accessibility.Private, Generator.GetAccessibility(Generator.WithAccessibility(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), accessibility:=Accessibility.Internal), Accessibility.Private)))
2704
Assert.Equal(DeclarationModifiers.Abstract, Generator.GetModifiers(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), modifiers:=DeclarationModifiers.Abstract)))
2726
Assert.Equal(DeclarationModifiers.Abstract, Generator.GetModifiers(Generator.WithModifiers(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), DeclarationModifiers.Abstract)))
2768
Assert.Equal("t", Generator.GetType(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))).ToString())
2789
Assert.Equal("t", Generator.GetType(Generator.WithType(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("x")), Generator.IdentifierName("t"))).ToString())
2844
Assert.Equal(0, Generator.GetParameters(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))).Count)
2875
Assert.Equal(1, Generator.GetParameters(Generator.AddParameters(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), {Generator.ParameterDeclaration("p", Generator.IdentifierName("t"))})).Count)
3054
Dim prop = _g.
PropertyDeclaration
("p", _g.IdentifierName("T"))
3105
Assert.Equal(0, Generator.GetGetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))).Count)
3106
Assert.Equal(2, Generator.GetGetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), getAccessorStatements:=stmts)).Count)
3114
Assert.Equal(0, Generator.GetSetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"))).Count)
3115
Assert.Equal(2, Generator.GetSetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t"), setAccessorStatements:=stmts)).Count)
3130
Assert.Equal(2, Generator.GetGetAccessorStatements(Generator.WithGetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), stmts)).Count)
3135
Assert.Equal(2, Generator.GetSetAccessorStatements(Generator.WithSetAccessorStatements(Generator.
PropertyDeclaration
("p", Generator.IdentifierName("t")), stmts)).Count)
Microsoft.Interop.LibraryImportGenerator (2)
Analyzers\CustomMarshallerAttributeFixer.cs (2)
247
gen.
PropertyDeclaration
(ShapeMemberNames.BufferSize,
459
gen.
PropertyDeclaration
(ShapeMemberNames.BufferSize,