47 references to AsClause
Microsoft.CodeAnalysis.VisualBasic (14)
Generated\Syntax.xml.Main.Generated.vb (2)
2129Dim newAsClause = DirectCast(Visit(node.AsClause), SimpleAsClauseSyntax) 2130If node.AsClause IsNot newAsClause Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (10)
6638return Update(Me.Kind, attributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6682return Update(Me.Kind, Me.AttributeLists, modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6708return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, subOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6726return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6748return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, typeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6783return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, parameterList, Me.AsClause, Me.HandlesClause, Me.ImplementsClause) 6835return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, handlesClause, Me.ImplementsClause) 6862return Update(Me.Kind, Me.AttributeLists, Me.Modifiers, Me.SubOrFunctionKeyword, Me.Identifier, Me.TypeParameterList, Me.ParameterList, Me.AsClause, Me.HandlesClause, implementsClause) 6898Return Me.AsClause 6952If kind <> Me.Kind OrElse attributeLists <> Me.AttributeLists OrElse modifiers <> Me.Modifiers OrElse subOrFunctionKeyword <> Me.SubOrFunctionKeyword OrElse identifier <> Me.Identifier OrElse typeParameterList IsNot Me.TypeParameterList OrElse parameterList IsNot Me.ParameterList OrElse asClause IsNot Me.AsClause OrElse handlesClause IsNot Me.HandlesClause OrElse implementsClause IsNot Me.ImplementsClause Then
Syntax\SyntaxNodePartials.vb (1)
98Return DirectCast(Me, MethodStatementSyntax).AsClause
VisualBasicDeclarationComputer.vb (1)
203Return DirectCast(methodBase, MethodStatementSyntax).AsClause
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
StatementSyntaxExtensions.vb (2)
467Return DirectCast(member, MethodBlockSyntax).SubOrFunctionStatement.AsClause 471Return DirectCast(member, MethodStatementSyntax).AsClause
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (1)
91newFunctionStatement.AsClause.WithType(returnType))
VisualBasicMakeMethodSynchronousCodeFixProvider.vb (3)
60Dim newAsClause = functionStatement.AsClause.WithType(methodSymbol.ReturnType.GetTypeArguments()(0).GenerateTypeSyntax()) 73functionStatement.AsClause, 77subStatement = subStatement.RemoveNode(subStatement.AsClause, SyntaxRemoveOptions.KeepTrailingTrivia)
VisualBasicSyntaxContext.vb (2)
297(methodDeclaration.AsClause IsNot Nothing AndAlso 298TargetToken = methodDeclaration.AsClause.GetLastToken(includeZeroWidth:=True)) _
Microsoft.CodeAnalysis.VisualBasic.Features (7)
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (2)
84getMethodStatement.AsClause, initializer:=Nothing, implementsClause:=getMethodStatement.ImplementsClause) 99getMethodStatement.AsClause, initializer:=Nothing, implementsClause:=getMethodStatement.ImplementsClause)
VisualBasicDeclarationComputer.vb (1)
203Return DirectCast(methodBase, MethodStatementSyntax).AsClause
VisualBasicMakeMethodAsynchronousCodeFixProvider.vb (1)
91newFunctionStatement.AsClause.WithType(returnType))
VisualBasicMakeMethodSynchronousCodeFixProvider.vb (3)
60Dim newAsClause = functionStatement.AsClause.WithType(methodSymbol.ReturnType.GetTypeArguments()(0).GenerateTypeSyntax()) 73functionStatement.AsClause, 77subStatement = subStatement.RemoveNode(subStatement.AsClause, SyntaxRemoveOptions.KeepTrailingTrivia)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\SemanticModelAPITests.vb (1)
1867TestGetSpeculativeSemanticModelForTypeSyntax_Common(model, methodDecl.AsClause.Type.Position,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (3)
Generated\Syntax.Test.xml.Generated.vb (2)
19045Dim withObj = objectUnderTest.WithAttributeLists(objectUnderTest.AttributeLists).WithModifiers(objectUnderTest.Modifiers).WithSubOrFunctionKeyword(objectUnderTest.SubOrFunctionKeyword).WithIdentifier(objectUnderTest.Identifier).WithTypeParameterList(objectUnderTest.TypeParameterList).WithParameterList(objectUnderTest.ParameterList).WithAsClause(objectUnderTest.AsClause).WithHandlesClause(objectUnderTest.HandlesClause).WithImplementsClause(objectUnderTest.ImplementsClause) 19054Dim withObj = objectUnderTest.WithAttributeLists(objectUnderTest.AttributeLists).WithModifiers(objectUnderTest.Modifiers).WithSubOrFunctionKeyword(objectUnderTest.SubOrFunctionKeyword).WithIdentifier(objectUnderTest.Identifier).WithTypeParameterList(objectUnderTest.TypeParameterList).WithParameterList(objectUnderTest.ParameterList).WithAsClause(objectUnderTest.AsClause).WithHandlesClause(objectUnderTest.HandlesClause).WithImplementsClause(objectUnderTest.ImplementsClause)
TestSyntaxNodes.vb (1)
1166node.AsClause,
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (2)
20Dim asClauseOpt = func.AsClause 21Dim oldAsClauseOpt = oldFunc.AsClause
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
706Dim newAsClause = UpdateSimpleAsClause(methodStatementSyntax.AsClause, newType)
CodeGeneration\VisualBasicSyntaxGenerator.vb (2)
2296Return DirectCast(declaration, MethodBlockSyntax).SubOrFunctionStatement.AsClause 2298Return DirectCast(declaration, MethodStatementSyntax).AsClause
StatementSyntaxExtensions.vb (2)
467Return DirectCast(member, MethodBlockSyntax).SubOrFunctionStatement.AsClause 471Return DirectCast(member, MethodStatementSyntax).AsClause
VisualBasicSyntaxContext.vb (2)
297(methodDeclaration.AsClause IsNot Nothing AndAlso 298TargetToken = methodDeclaration.AsClause.GetLastToken(includeZeroWidth:=True)) _
Microsoft.VisualStudio.LanguageServices.VisualBasic (5)
CodeModel\SyntaxExtensions.vb (1)
60asClause = DirectCast(method, MethodStatementSyntax).AsClause
CodeModel\VisualBasicCodeModelService.vb (4)
3227asClause:=methodStatement.AsClause, 3232If methodStatement.AsClause IsNot Nothing Then 3233Debug.Assert(TypeOf methodStatement.AsClause Is SimpleAsClauseSyntax) 3235Dim oldType = DirectCast(methodStatement.AsClause, SimpleAsClauseSyntax).Type