3 types derived from NewExpressionSyntax
Microsoft.CodeAnalysis.VisualBasic (3)
Generated\Syntax.xml.Syntax.Generated.vb (3)
23317Inherits NewExpressionSyntax 23545Inherits NewExpressionSyntax 23715Inherits NewExpressionSyntax
3 instantiations of NewExpressionSyntax
Microsoft.CodeAnalysis.VisualBasic (3)
Generated\Syntax.xml.Syntax.Generated.vb (3)
23324MyBase.New(green, parent, startLocation) 23550MyBase.New(green, parent, startLocation) 23723MyBase.New(green, parent, startLocation)
37 references to NewExpressionSyntax
Microsoft.CodeAnalysis.VisualBasic (25)
Binding\Binder_Statements.vb (1)
1301Dim newExpression As NewExpressionSyntax = asNewClause.NewExpression
Generated\Syntax.xml.Main.Generated.vb (3)
2485Dim newNewExpression = DirectCast(Visit(node.NewExpression), NewExpressionSyntax) 11733Public Shared Function AsNewClause(asKeyword As SyntaxToken, newExpression As NewExpressionSyntax) As AsNewClauseSyntax 11762Public Shared Function AsNewClause(newExpression As NewExpressionSyntax) As AsNewClauseSyntax
Generated\Syntax.xml.Syntax.Generated.vb (20)
10579Friend _newExpression as NewExpressionSyntax 10587Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), asKeyword As InternalSyntax.KeywordSyntax, newExpression As NewExpressionSyntax) 10620Public ReadOnly Property NewExpression As NewExpressionSyntax 10631Public Shadows Function WithNewExpression(newExpression as NewExpressionSyntax) As AsNewClauseSyntax 10672Public Function Update(asKeyword As SyntaxToken, newExpression As NewExpressionSyntax) As AsNewClauseSyntax 23267Public Function WithNewKeyword(newKeyword As SyntaxToken) As NewExpressionSyntax 23270Friend MustOverride Function WithNewKeywordCore(newKeyword As SyntaxToken) As NewExpressionSyntax 23295Public Function WithAttributeLists(attributeLists As SyntaxList(Of AttributeListSyntax)) As NewExpressionSyntax 23298Friend MustOverride Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As NewExpressionSyntax 23300Public Shadows Function AddAttributeLists(ParamArray items As AttributeListSyntax()) As NewExpressionSyntax 23303Friend MustOverride Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As NewExpressionSyntax 23346Friend Overrides Function WithNewKeywordCore(newKeyword As SyntaxToken) As NewExpressionSyntax 23377Friend Overrides Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As NewExpressionSyntax 23394Friend Overrides Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As NewExpressionSyntax 23572Friend Overrides Function WithNewKeywordCore(newKeyword As SyntaxToken) As NewExpressionSyntax 23603Friend Overrides Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As NewExpressionSyntax 23620Friend Overrides Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As NewExpressionSyntax 23745Friend Overrides Function WithNewKeywordCore(newKeyword As SyntaxToken) As NewExpressionSyntax 23776Friend Overrides Function WithAttributeListsCore(attributeLists As SyntaxList(Of AttributeListSyntax)) As NewExpressionSyntax 23793Friend Overrides Function AddAttributeListsCore(ParamArray items As AttributeListSyntax()) As NewExpressionSyntax
Syntax\SyntaxExtensions.vb (1)
52Public Function Type(newExpressionSyntax As NewExpressionSyntax) As TypeSyntax
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
SyntaxTreeExtensions.vb (2)
323TypeOf targetToken.Parent.Parent Is NewExpressionSyntax Then 325Dim symbolInfo = semanticModel.GetSymbolInfo(DirectCast(targetToken.Parent.Parent, NewExpressionSyntax).Type(), cancellationToken)
VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
39Dim asNewClause = SyntaxFactory.AsNewClause(node.AsClause.AsKeyword, DirectCast(node.Initializer.Value, NewExpressionSyntax))
VisualBasicSyntaxContextExtensions.vb (2)
120TypeOf token.Parent.Parent Is NewExpressionSyntax Then 122Dim symbolInfo = context.SemanticModel.GetSymbolInfo(DirectCast(token.Parent.Parent, NewExpressionSyntax).Type())
Microsoft.CodeAnalysis.VisualBasic.Features (1)
VisualBasicSimplifyObjectCreationCodeFixProvider.vb (1)
39Dim asNewClause = SyntaxFactory.AsNewClause(node.AsClause.AsKeyword, DirectCast(node.Initializer.Value, NewExpressionSyntax))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\GetSemanticInfoTests.vb (1)
3740Dim info = semanticModel.GetSymbolInfo(DirectCast(node.Parent, NewExpressionSyntax).Type)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
CodeGeneration\VisualBasicCodeGenerationService.vb (1)
683Dim updatedNewExpression As NewExpressionSyntax
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb\SyntaxTreeExtensions.vb (2)
323TypeOf targetToken.Parent.Parent Is NewExpressionSyntax Then 325Dim symbolInfo = semanticModel.GetSymbolInfo(DirectCast(targetToken.Parent.Parent, NewExpressionSyntax).Type(), cancellationToken)
VisualBasicSyntaxContextExtensions.vb (2)
120TypeOf token.Parent.Parent Is NewExpressionSyntax Then 122Dim symbolInfo = context.SemanticModel.GetSymbolInfo(DirectCast(token.Parent.Parent, NewExpressionSyntax).Type())