43 references to Type
Microsoft.CodeAnalysis.VisualBasic (26)
Binding\Binder_Initializers.vb (2)
405
DisallowNewOnTupleType(asNew.
Type
, diagnostics)
516
boundInitValue = BindObjectCreationExpression(asNewSyntax.
Type
,
Binding\Binder_Statements.vb (5)
1155
Dim errSyntax = If(asClauseOpt Is Nothing, DirectCast(equalsValueOpt, VisualBasicSyntaxNode), asClauseOpt.
Type
)
1212
DisallowNewOnTupleType(asNew.
Type
, diagnostics)
1218
declarationInitializer = BindObjectCreationExpression(asNew.
Type
,
1269
errSyntax = If(asClauseOpt IsNot Nothing AndAlso Not type.IsArrayType, DirectCast(asClauseOpt.
Type
, VisualBasicSyntaxNode), name)
1752
Dim type As TypeSymbol = BindTypeSyntax(asClause.
Type
, diagnostics)
Binding\Binder_Utils.vb (7)
496
If asClauseSyntaxOpt.
Type
.Kind = SyntaxKind.NullableType Then
537
asClauseSyntaxOpt.
Type
,
546
If asClauseSyntaxOpt.
Type
.Kind = SyntaxKind.ArrayType Then
547
ReportDiagnostic(diagBag, asClauseSyntaxOpt.
Type
, ERRID.ERR_CantSpecifyArraysOnBoth)
548
ElseIf asClauseSyntaxOpt.
Type
.Kind = SyntaxKind.NullableType Then
588
asClauseType = BindTypeSyntax(asClauseOpt.
Type
, diagBag)
633
asClauseType = BindTypeSyntax(asClauseOpt.
Type
, diagBag)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
983
location = asClause.
Type
.GetLocation()
1091
location = syntax.AsClause.
Type
.GetLocation()
Symbols\Source\SourceMemberFieldSymbol.vb (4)
133
binder.ReportDiagnostic(diagBag, declarator.AsClause.
Type
, ERRID.ERR_ConstAsNonConstant)
143
binder.ReportDiagnostic(diagBag, declarator.AsClause.
Type
, ERRID.ERR_RestrictedType1, restrictedType)
170
asClauseType = binder.BindTypeSyntax(asClauseOpt.
Type
, If(ignoreTypeSyntaxDiagnostics, BindingDiagnosticBag.Discarded, diagnostics))
233
Dim typeSyntax = declarator.AsClause.
Type
Symbols\Source\SourceMethodSymbol.vb (1)
2335
errorLocation = asClause.
Type
Symbols\Source\SourceNamedTypeSymbol.vb (3)
1858
If underlyingType IsNot Nothing AndAlso Not underlyingType.
Type
.IsMissing Then
1859
Dim type = bodyBinder.BindTypeSyntax(underlyingType.
Type
, diagnostics)
1863
Binder.ReportDiagnostic(diagnostics, underlyingType.
Type
, ERRID.ERR_InvalidEnumBase)
Symbols\Source\SourceSymbolHelpers.vb (1)
16
Return asClauseOpt.
Type
Syntax\SyntaxFacts.vb (1)
83
Return DirectCast(parent, AsClauseSyntax).
Type
Is node
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\roslyn\src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
44
Dim asClauseType = variableDeclarator.AsClause?.
Type
()
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (1)
495
Return If(asClause IsNot Nothing, asClause.
Type
, Nothing)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
438
If expressionOpt Is asClause.
Type
OrElse previousToken.Kind = SyntaxKind.AsKeyword Then
865
Return GetTypes(variableDeclarator.AsClause.
Type
)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\KeywordRecommenders\Expressions\KeyKeywordRecommender.vb (1)
39
If asNewClause.
Type
.IsMissing Then
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
160
type = declarator.AsClause.
Type
src\roslyn\src\Analyzers\VisualBasic\Analyzers\SimplifyObjectCreation\VisualBasicSimplifyObjectCreationDiagnosticAnalyzer.vb (1)
44
Dim asClauseType = variableDeclarator.AsClause?.
Type
()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (2)
97
Dim returnType = semanticModel.GetTypeInfo(oldAsClauseOpt.
Type
, cancellationToken).Type
130
Dim returnType = semanticModel.GetTypeInfo(oldAsClauseOpt.
Type
, cancellationToken).Type
CodeGeneration\VisualBasicSyntaxGenerator.vb (2)
1116
accessors.Add(CreateSetAccessorBlock(prop.AsClause.
Type
, Nothing))
2073
Return asClause.
Type
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
438
If expressionOpt Is asClause.
Type
OrElse previousToken.Kind = SyntaxKind.AsKeyword Then
865
Return GetTypes(variableDeclarator.AsClause.
Type
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (1)
495
Return If(asClause IsNot Nothing, asClause.
Type
, Nothing)
Roslyn.Diagnostics.VisualBasic.Analyzers (3)
src\f736901a33c2b55b\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
438
If expressionOpt Is asClause.
Type
OrElse previousToken.Kind = SyntaxKind.AsKeyword Then
865
Return GetTypes(variableDeclarator.AsClause.
Type
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (1)
495
Return If(asClause IsNot Nothing, asClause.
Type
, Nothing)