37 references to ParameterDeclaration
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (3)
327generator.ParameterDeclaration(LeftIdentifierName, generator.TypeExpression(containingType)), 328generator.ParameterDeclaration(RightIdentifierName, generator.TypeExpression(containingType)) 386generator.ParameterDeclaration(argumentName.ToString(), generator.TypeExpression(SpecialType.System_Object))
Microsoft.Analyzers.Extra (4)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (4)
373var loggerParam = gen.ParameterDeclaration("logger", loggerType); 386parameters.Add(gen.ParameterDeclaration("exception", gen.TypeExpression(invocationOp.Arguments[details.ExceptionParamIndex].Value.Type!))); 394parameters.Add(gen.ParameterDeclaration(details.MessageArgs[index++], gen.TypeExpression(o.Type!))); 416parameters.Add(gen.ParameterDeclaration(name, gen.TypeExpression(type)));
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (3)
327generator.ParameterDeclaration(LeftIdentifierName, generator.TypeExpression(containingType)), 328generator.ParameterDeclaration(RightIdentifierName, generator.TypeExpression(containingType)) 386generator.ParameterDeclaration(argumentName.ToString(), generator.TypeExpression(SpecialType.System_Object))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3672=> this.ParameterDeclaration(identifier, type, initializer: null, RefKind.None);
Microsoft.CodeAnalysis.Features (3)
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (2)
275var parameter = _generator.ParameterDeclaration(parameterName, _generator.TypeExpression(parameterType)); 536var parameter = _generator.ParameterDeclaration(name: parameterName, type:
Snippets\SnippetProviders\AbstractMainMethodSnippetProvider.cs (1)
27parameters: [generator.ParameterDeclaration(
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
503Return ParameterDeclaration(identifier, type)
Microsoft.Interop.LibraryImportGenerator (17)
Analyzers\ConvertToLibraryImportFixer.cs (1)
257editor.Generator.ParameterDeclaration("@return", editor.Generator.GetType(generatedDeclaration), refKind: RefKind.Out)
Analyzers\CustomMarshallerAttributeFixer.cs (16)
224parameters: new[] { gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)) }, 236parameters: new[] { gen.ParameterDeclaration("unmanaged", unmanagedTypeSyntax.Value) }, 261gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)), 262gen.ParameterDeclaration("numElements", type: gen.TypeExpression(SpecialType.System_Int32), refKind: RefKind.Out), 277gen.ParameterDeclaration("unmanaged", unmanagedTypeSyntax.Value), 278gen.ParameterDeclaration("numElements", type: gen.TypeExpression(SpecialType.System_Int32)), 293gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)) 308gen.ParameterDeclaration("unmanaged", unmanagedTypeSyntax.Value), 309gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32)) 324gen.ParameterDeclaration("unmanaged", unmanagedTypeSyntax.Value), 325gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32)) 340gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)) 420parameters: new[] { gen.ParameterDeclaration("managed", gen.TypeExpression(managedType)) }, 440parameters: new[] { gen.ParameterDeclaration("unmanaged", unmanagedTypeSyntax.Value) }, 493gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32)) 507gen.ParameterDeclaration("numElements", gen.TypeExpression(SpecialType.System_Int32))
Roslyn.Diagnostics.Analyzers (5)
AbstractCreateTestAccessor`1.cs (1)
87parameters: new[] { syntaxGenerator.ParameterDeclaration(parameterName, syntaxGenerator.TypeExpression(type)) },
AbstractRunIterations`1.cs (1)
115syntaxGenerator.ParameterDeclaration(
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (3)
327generator.ParameterDeclaration(LeftIdentifierName, generator.TypeExpression(containingType)), 328generator.ParameterDeclaration(RightIdentifierName, generator.TypeExpression(containingType)) 386generator.ParameterDeclaration(argumentName.ToString(), generator.TypeExpression(SpecialType.System_Object))