47 references to AsClause
Microsoft.CodeAnalysis.VisualBasic (22)
Binding\Binder_Utils.vb (7)
1096ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, restrictedType) 1100ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedType1, paramType) 1104ReportDiagnostic(diagBag, paramSyntax.AsClause.Type, ERRID.ERR_RestrictedResumableType1, paramType) 1112If(paramSyntax.AsClause IsNot Nothing, 1113paramSyntax.AsClause.Type, 1120If HasDefaultType(paramSyntax.Identifier, paramSyntax.AsClause) Then 1134If HasDefaultType(paramSyntax.Identifier, paramSyntax.AsClause) Then
Generated\Syntax.xml.Main.Generated.vb (2)
2589Dim newAsClause = DirectCast(Visit(node.AsClause), SimpleAsClauseSyntax) 2590If node.AsClause IsNot newAsClause Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (6)
11505return Update(attributeLists, Me.Modifiers, Me.Identifier, Me.AsClause, Me.Default) 11535return Update(Me.AttributeLists, modifiers, Me.Identifier, Me.AsClause, Me.Default) 11557return Update(Me.AttributeLists, Me.Modifiers, identifier, Me.AsClause, Me.Default) 11601return Update(Me.AttributeLists, Me.Modifiers, Me.Identifier, Me.AsClause, [default]) 11626Return Me.AsClause 11663If attributeLists <> Me.AttributeLists OrElse modifiers <> Me.Modifiers OrElse identifier IsNot Me.Identifier OrElse asClause IsNot Me.AsClause OrElse [default] IsNot Me.[Default] Then
Symbols\Source\SourceComplexParameterSymbol.vb (1)
339Dim paramType = binder.DecodeModifiedIdentifierType(syntax.Identifier, syntax.AsClause, Nothing, getErrorInfo, diagnostics, ModifiedIdentifierTypeDecoderContext.ParameterType)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
1026If syntax IsNot Nothing AndAlso syntax.AsClause IsNot Nothing Then 1027location = syntax.AsClause.Type.GetLocation()
Symbols\Source\UnboundLambdaParameterSymbol.vb (4)
87Dim paramType As TypeSymbol = binder.DecodeModifiedIdentifierType(syntax.Identifier, syntax.AsClause, Nothing, getErrorInfo, diagBag, Binder.ModifiedIdentifierTypeDecoderContext.LambdaParameterType) 92If paramType.IsObjectType() AndAlso syntax.AsClause Is Nothing Then 98If(syntax.AsClause Is Nothing, CType(syntax.Identifier, SyntaxNodeOrToken), syntax.AsClause.Type))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
ParameterSyntaxExtensions.vb (1)
14If parameter.AsClause IsNot Nothing AndAlso
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\SemanticModelAPITests.vb (1)
1870TestGetSpeculativeSemanticModelForTypeSyntax_Common(model, methodDecl.ParameterList.Parameters.First.AsClause.Type.Position,
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Generated\Syntax.Test.xml.Generated.vb (1)
19325Dim withObj = objectUnderTest.WithAttributeLists(objectUnderTest.AttributeLists).WithModifiers(objectUnderTest.Modifiers).WithIdentifier(objectUnderTest.Identifier).WithAsClause(objectUnderTest.AsClause).WithDefault(objectUnderTest.Default)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
741Dim newAsClause = UpdateSimpleAsClause(parameterSyntax.AsClause, newType)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
2308Return DirectCast(declaration, ParameterSyntax).AsClause
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (3)
533If parameter.AsClause?.Type IsNot Nothing Then 534builder.Append(parameter.AsClause.Type.ConvertToSingleLine().ToString()) 551TryGetSimpleTypeNameWorker(funcDecl.ParameterList.Parameters(0).AsClause?.Type, typeParameterNames, targetTypeName, isArray)
ParameterSyntaxExtensions.vb (1)
14If parameter.AsClause IsNot Nothing AndAlso
Recommendations\VisualBasicRecommendationServiceRunner.vb (2)
72If parameterSyntax.AsClause IsNot Nothing Then 73explicitLambdaParameterType = _context.SemanticModel.GetTypeInfo(parameterSyntax.AsClause.Type, _cancellationToken).Type
Simplification\VisualBasicSimplificationService.Expander.vb (1)
105If newNode IsNot Nothing AndAlso newNode.AsClause Is Nothing AndAlso _expandParameter Then
Microsoft.VisualStudio.LanguageServices.VisualBasic (13)
CodeModel\SyntaxExtensions.vb (2)
91Return If(parameter.AsClause IsNot Nothing, 92parameter.AsClause.Type,
CodeModel\VisualBasicCodeModelService.NodeNameGenerator.vb (2)
99If parameter.AsClause IsNot Nothing Then 101AppendTypeName(builder, parameter.AsClause.Type)
CodeModel\VisualBasicCodeModelService.vb (9)
3097If firstParameter.AsClause IsNot Nothing Then 3098Debug.Assert(TypeOf firstParameter.AsClause Is SimpleAsClauseSyntax) 3100Dim oldType = DirectCast(firstParameter.AsClause, SimpleAsClauseSyntax).Type 3291If parameter.AsClause IsNot Nothing Then 3292Debug.Assert(TypeOf parameter.AsClause Is SimpleAsClauseSyntax) 3294Dim oldType = DirectCast(parameter.AsClause, SimpleAsClauseSyntax).Type 3361If firstParameter.AsClause IsNot Nothing Then 3362Debug.Assert(TypeOf firstParameter.AsClause Is SimpleAsClauseSyntax) 3364Dim oldType = DirectCast(firstParameter.AsClause, SimpleAsClauseSyntax).Type