83 references to Type
Microsoft.CodeAnalysis.VisualBasic (17)
Binding\Binder_ObjectInitializer.vb (3)
18
DisallowNewOnTupleType(node.
Type
, diagnostics)
19
Dim type As TypeSymbol = Me.BindTypeSyntax(node.
Type
, diagnostics)
61
Return BindObjectCreationExpression(node.
Type
, node.ArgumentList, type, node, diagnostics, Nothing)
Compilation\SemanticModel.vb (4)
929
DirectCast(boundNodes.LowestBoundNodeOfSyntacticParent.Syntax, ObjectCreationExpressionSyntax).
Type
Is lowestExpr.Syntax Then
995
((parentSyntax.Kind = SyntaxKind.ObjectCreationExpression AndAlso (DirectCast(parentSyntax, ObjectCreationExpressionSyntax).
Type
Is boundNodes.LowestBoundNode.Syntax))) Then
1035
DirectCast(boundNodes.LowestBoundNodeOfSyntacticParent.Syntax, ObjectCreationExpressionSyntax).
Type
Is boundNodes.LowestBoundNode.Syntax AndAlso
1144
Dim typeSyntax = DirectCast(lowestExpr.Syntax, ObjectCreationExpressionSyntax).
Type
Generated\Syntax.xml.Main.Generated.vb (2)
3977
Dim newType = DirectCast(Visit(node.
Type
), TypeSyntax)
3978
If node.
Type
IsNot newType Then anyChanges = True
Generated\Syntax.xml.Syntax.Generated.vb (6)
23356
return Update(newKeyword, Me.AttributeLists, Me.
Type
, Me.ArgumentList, Me.Initializer)
23387
return Update(Me.NewKeyword, attributeLists, Me.
Type
, Me.ArgumentList, Me.Initializer)
23434
return Update(Me.NewKeyword, Me.AttributeLists, Me.
Type
, argumentList, Me.Initializer)
23460
return Update(Me.NewKeyword, Me.AttributeLists, Me.
Type
, Me.ArgumentList, initializer)
23483
Return Me.
Type
23522
If newKeyword <> Me.NewKeyword OrElse attributeLists <> Me.AttributeLists OrElse type IsNot Me.
Type
OrElse argumentList IsNot Me.ArgumentList OrElse initializer IsNot Me.Initializer Then
Syntax\SyntaxExtensions.vb (1)
55
Return DirectCast(newExpressionSyntax, ObjectCreationExpressionSyntax).
Type
Syntax\SyntaxFacts.vb (1)
101
Return DirectCast(parent, ObjectCreationExpressionSyntax).
Type
Is node
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
ParenthesizedExpressionSyntaxExtensions.vb (1)
236
Return TypeOf objectCreation.
Type
Is PredefinedTypeSyntax
VisualBasicSyntaxFacts.vb (2)
1077
If objectCreation.
Type
Is node Then
1853
type = objectCreationExpression.
Type
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
ObjectCreationExpressionExtensions.vb (1)
28
If Not TypeOf objectCreationExpression.
Type
Is PredefinedTypeSyntax Then
SyntaxTreeExtensions.vb (3)
907
ElseIf objectCreation.
Type
.IsKind(SyntaxKind.QualifiedName) Then
908
Return DirectCast(objectCreation.
Type
, QualifiedNameSyntax).Right.GetLastToken()
910
Return objectCreation.
Type
.GetLastToken()
UseInitializerHelpers.vb (1)
17
objectCreation = objectCreation.WithType(objectCreation.
Type
.WithTrailingTrivia(objectCreation.ArgumentList.GetTrailingTrivia())).
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
293
Dim info = SemanticModel.GetSymbolInfo(creation.
Type
)
Microsoft.CodeAnalysis.VisualBasic.Features (11)
ChangeSignature\VisualBasicChangeSignatureService.vb (3)
129
If token.Parent.AncestorsAndSelf().Any(Function(a) a Is objectCreation.
Type
) Then
130
Dim typeSymbol = semanticModel.GetSymbolInfo(objectCreation.
Type
, cancellationToken).Symbol
254
nodeContainingOriginal = DirectCast(nodeContainingOriginal, ObjectCreationExpressionSyntax).
Type
Completion\CompletionProviders\ObjectInitializerCompletionProvider.vb (1)
94
Dim symbolInfo = semanticModel.GetSymbolInfo(objectCreationExpression.
Type
, cancellationToken)
Completion\KeywordRecommenders\Declarations\OfKeywordRecommender.vb (1)
119
Dim type = objectCreationExpression.
Type
Completion\KeywordRecommenders\Expressions\FromKeywordRecommender.vb (1)
32
Dim type = TryCast(context.SemanticModel.GetSymbolInfo(objectCreation.
Type
, cancellationToken).Symbol, ITypeSymbol)
Completion\KeywordRecommenders\RecommendationHelpers.vb (1)
65
objectCreation.
Type
.GetLastToken(includeZeroWidth:=True))
GenerateConstructor\GenerateConstructorCodeFixProvider.vb (2)
47
If objectCreation IsNot Nothing AndAlso objectCreation.
Type
IsNot Nothing Then
48
Return objectCreation.
Type
.GetRightmostName()
GenerateConstructor\VisualBasicGenerateConstructorService.vb (1)
114
Dim symbolInfo = semanticModel.GetSymbolInfo(objectCreationExpression.
Type
, cancellationToken)
UseInitializerHelpers.vb (1)
17
objectCreation = objectCreation.WithType(objectCreation.
Type
.WithTrailingTrivia(objectCreation.ArgumentList.GetTrailingTrivia())).
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (32)
Semantics\GetExtendedSemanticInfoTests.vb (20)
9166
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
9172
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
9175
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
9178
Dim conv = model.GetConversion(creation.
Type
)
9230
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
9236
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
9239
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
9242
Dim conv = model.GetConversion(creation.
Type
)
9294
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
9300
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
9303
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
9306
Dim conv = model.GetConversion(creation.
Type
)
9359
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
9365
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
9368
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
9371
Dim conv = model.GetConversion(creation.
Type
)
9420
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
9426
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
9429
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
9432
Dim conv = model.GetConversion(creation.
Type
)
Semantics\GetSemanticInfoTests.vb (12)
5349
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
5354
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
5357
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
5361
Dim conv = model.GetConversion(creation.
Type
)
5438
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
5443
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
5446
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
5450
Dim conv = model.GetConversion(creation.
Type
)
5543
Dim symbolInfo As SymbolInfo = model.GetSymbolInfo(creation.
Type
)
5548
Dim memberGroup = model.GetMemberGroup(creation.
Type
)
5551
Dim typeInfo As TypeInfo = model.GetTypeInfo(creation.
Type
)
5555
Dim conv = model.GetConversion(creation.
Type
)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.vb (2)
20583
Assert.NotNull(objectUnderTest.
type
)
20584
Dim withObj = objectUnderTest.WithNewKeyword(objectUnderTest.NewKeyword).WithAttributeLists(objectUnderTest.AttributeLists).WithType(objectUnderTest.
Type
).WithArgumentList(objectUnderTest.ArgumentList).WithInitializer(objectUnderTest.Initializer)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
CodeCleanup\Providers\AddMissingTokensCodeCleanupProvider.vb (1)
95
name.CheckParent(Of ObjectCreationExpressionSyntax)(Function(p) p.
Type
Is name) OrElse
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (3)
907
ElseIf objectCreation.
Type
.IsKind(SyntaxKind.QualifiedName) Then
908
Return DirectCast(objectCreation.
Type
, QualifiedNameSyntax).Right.GetLastToken()
910
Return objectCreation.
Type
.GetLastToken()
ObjectCreationExpressionExtensions.vb (1)
28
If Not TypeOf objectCreationExpression.
Type
Is PredefinedTypeSyntax Then
ParenthesizedExpressionSyntaxExtensions.vb (1)
236
Return TypeOf objectCreation.
Type
Is PredefinedTypeSyntax
Simplification\VisualBasicSimplificationService.Expander.vb (2)
284
Dim trailingTrivia = newObjectCreationExpression.
Type
.GetTrailingTrivia()
287
.WithType(newObjectCreationExpression.
Type
.WithTrailingTrivia(SyntaxTriviaList.Empty)) _
VisualBasicSyntaxFacts.vb (2)
1077
If objectCreation.
Type
Is node Then
1853
type = objectCreationExpression.
Type
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
293
Dim info = SemanticModel.GetSymbolInfo(creation.
Type
)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
294
Dim type = TryCast(SemanticModel.GetSymbolInfo(objectCreationExpression.
Type
).Symbol, ITypeSymbol)