10 references to AddParameters
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (9)
CodeGeneration\SyntaxGeneratorTests.vb (9)
2864
Assert.Equal(1, Generator.GetParameters(Generator.
AddParameters
(Generator.MethodDeclaration("m"), {Generator.ParameterDeclaration("p", Generator.IdentifierName("t"))})).Count)
2865
Assert.Equal(1, Generator.GetParameters(Generator.
AddParameters
(Generator.ConstructorDeclaration(), {Generator.ParameterDeclaration("p", Generator.IdentifierName("t"))})).Count)
2866
Assert.Equal(3, Generator.GetParameters(Generator.
AddParameters
(Generator.IndexerDeclaration({Generator.ParameterDeclaration("p", Generator.IdentifierName("t"))}, Generator.IdentifierName("t")), {Generator.ParameterDeclaration("p2", Generator.IdentifierName("t2")), Generator.ParameterDeclaration("p3", Generator.IdentifierName("t3"))})).Count)
2868
Assert.Equal(1, Generator.GetParameters(Generator.
AddParameters
(Generator.ValueReturningLambdaExpression(Generator.IdentifierName("expr")), {Generator.LambdaParameter("p")})).Count)
2869
Assert.Equal(1, Generator.GetParameters(Generator.
AddParameters
(Generator.VoidReturningLambdaExpression(Generator.IdentifierName("expr")), {Generator.LambdaParameter("p")})).Count)
2871
Assert.Equal(1, Generator.GetParameters(Generator.
AddParameters
(Generator.DelegateDeclaration("d"), {Generator.ParameterDeclaration("p", Generator.IdentifierName("t"))})).Count)
2873
Assert.Equal(0, Generator.GetParameters(Generator.
AddParameters
(Generator.ClassDeclaration("c"), {Generator.ParameterDeclaration("p", Generator.IdentifierName("t"))})).Count)
2874
Assert.Equal(0, Generator.GetParameters(Generator.
AddParameters
(Generator.IdentifierName("x"), {Generator.ParameterDeclaration("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)
Microsoft.Interop.LibraryImportGenerator (1)
Analyzers\ConvertToLibraryImportFixer.cs (1)
241
generatedDeclaration = editor.Generator.
AddParameters
(