11 references to WithAsClause
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
ParameterSyntaxExtensions.vb (1)
19
Dim newParameterSyntax = parameter.
WithAsClause
(Nothing).WithAdditionalAnnotations(annotation)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.vb (1)
19325
Dim withObj = objectUnderTest.WithAttributeLists(objectUnderTest.AttributeLists).WithModifiers(objectUnderTest.Modifiers).WithIdentifier(objectUnderTest.Identifier).
WithAsClause
(objectUnderTest.AsClause).WithDefault(objectUnderTest.Default)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeGeneration\PropertyGenerator.vb (1)
141
SyntaxFactory.Parameter(identifier:=SyntaxFactory.ModifiedIdentifier("value")).
WithAsClause
(SyntaxFactory.SimpleAsClause(type:=[property].Type.GenerateTypeSyntax()))))),
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
742
Return Cast(Of TDeclarationNode)(parameterSyntax.
WithAsClause
(newAsClause))
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
2353
Return DirectCast(declaration, ParameterSyntax).
WithAsClause
(DirectCast(asClause, SimpleAsClauseSyntax))
ParameterSyntaxExtensions.vb (1)
19
Dim newParameterSyntax = parameter.
WithAsClause
(Nothing).WithAdditionalAnnotations(annotation)
Simplification\Reducers\VisualBasicMiscellaneousReducer.vb (1)
35
Dim newParameter = parameter.
WithAsClause
(Nothing).NormalizeWhitespace()
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.vb (4)
1916
Return SyntaxFactory.Parameter(SyntaxFactory.ModifiedIdentifier(name)).
WithAsClause
(SyntaxFactory.SimpleAsClause(SyntaxFactory.ParseTypeName(type)))
3103
newFirstParameter = firstParameter.
WithAsClause
(SyntaxFactory.SimpleAsClause(newType))
3297
parameter = parameter.
WithAsClause
(SyntaxFactory.SimpleAsClause(newType))
3367
newFirstParameter = firstParameter.
WithAsClause
(SyntaxFactory.SimpleAsClause(newType))