42 references to AsNewClause
Microsoft.CodeAnalysis.VisualBasic (42)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
2032If declarator.AsClause IsNot Nothing AndAlso declarator.AsClause.Kind = SyntaxKind.AsNewClause Then
Binding\Binder_Initializers.vb (3)
295If equalsValueOrAsNewSyntax.Kind() = SyntaxKind.AsNewClause Then 317If equalsValueOrAsNewSyntax.Kind = SyntaxKind.AsNewClause Then 401If equalsValueOrAsNewSyntax.Kind = SyntaxKind.AsNewClause Then
Binding\Binder_Statements.vb (3)
1051ElseIf asClauseOpt Is Nothing OrElse asClauseOpt.Kind <> SyntaxKind.AsNewClause Then 1154Dim isInitializedByAsNew As Boolean = asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause 1328If asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then
Binding\Binder_Utils.vb (2)
503ElseIf asClauseSyntaxOpt.Kind = SyntaxKind.AsNewClause Then 585Debug.Assert(asClauseOpt.Kind <> SyntaxKind.AsNewClause OrElse
Binding\InitializerSemanticModel.vb (5)
54If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then 66If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then 79Case SyntaxKind.EqualsValue, SyntaxKind.AsNewClause 182If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then 192If initSyntax Is Nothing OrElse initSyntax.Kind <> SyntaxKind.AsNewClause Then
Binding\StatementListBinder.vb (1)
68(declarator.AsClause Is Nothing OrElse declarator.AsClause.Kind <> SyntaxKind.AsNewClause)
Binding\UsingBlockBinder.vb (1)
50(variableDeclarator.AsClause Is Nothing OrElse variableDeclarator.AsClause.Kind <> SyntaxKind.AsNewClause)
Generated\Syntax.xml.Internal.Generated.vb (4)
37237Dim cached = SyntaxNodeCache.TryGetNode(SyntaxKind.AsNewClause, asKeyword, newExpression, hash) 37242Dim result = New AsNewClauseSyntax(SyntaxKind.AsNewClause, asKeyword, newExpression) 49303Dim cached = VisualBasicSyntaxNodeCache.TryGetNode(SyntaxKind.AsNewClause, asKeyword, newExpression, _factoryContext, hash) 49308Dim result = New AsNewClauseSyntax(SyntaxKind.AsNewClause, asKeyword, newExpression, _factoryContext)
Generated\Syntax.xml.Main.Generated.vb (1)
11749Return New AsNewClauseSyntax(SyntaxKind.AsNewClause, Nothing, Nothing, DirectCast(asKeyword.Node, InternalSyntax.KeywordSyntax), newExpression)
Generated\Syntax.xml.Syntax.Generated.vb (1)
10573''' <item><description><see cref="SyntaxKind.AsNewClause"/></description></item>
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (2)
130If syntax.IsKind(SyntaxKind.AsNewClause) Then 164Debug.Assert(declarator.AsClause.IsKind(SyntaxKind.AsNewClause))
Lowering\Instrumentation\Instrumenter.vb (1)
342Debug.Assert(original.Syntax.IsKind(SyntaxKind.AsNewClause) OrElse ' Dim a As New C(); Dim a,b As New C(); Property P As New C()
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (1)
41syntax.IsKind(SyntaxKind.AsNewClause) OrElse ' Dim a As New C(); Dim a,b As New C(); Property P As New C()
src\Compilers\VisualBasic\BasicAnalyzerDriver\VisualBasicDeclarationComputer.vb (1)
273Return If(asClause.IsKind(SyntaxKind.AsNewClause), asClause, Nothing)
Symbols\FieldOrPropertyInitializer.vb (3)
55Debug.Assert(syntax.GetSyntax().IsKind(SyntaxKind.AsNewClause) OrElse 70Debug.Assert(syntax.GetSyntax().IsKind(SyntaxKind.AsNewClause) OrElse syntax.GetSyntax().IsKind(SyntaxKind.EqualsValue)) 85Debug.Assert(syntax.GetSyntax().IsKind(SyntaxKind.AsNewClause) OrElse syntax.GetSyntax().IsKind(SyntaxKind.EqualsValue))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2655If asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then
Symbols\Source\SourceMemberFieldSymbol.vb (5)
168If (asClauseOpt.Kind <> SyntaxKind.AsNewClause OrElse (DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.Kind <> SyntaxKind.AnonymousObjectCreationExpression)) Then 171If asClauseOpt.Kind = SyntaxKind.AsNewClause Then 179If (asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause AndAlso 518If asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then 536ElseIf asClauseOpt IsNot Nothing AndAlso asClauseOpt.Kind = SyntaxKind.AsNewClause Then
Symbols\Source\SourcePropertySymbol.vb (1)
357asClause.Kind = SyntaxKind.AsNewClause AndAlso
Symbols\Source\SourceSymbolHelpers.vb (1)
14(asClauseOpt.Kind <> SyntaxKind.AsNewClause OrElse
Syntax\SyntaxEquivalence.vb (1)
118ignoreChildNode = Function(childKind) childKind = SyntaxKind.EqualsValue OrElse childKind = SyntaxKind.AsNewClause
Syntax\SyntaxExtensions.vb (2)
73Case SyntaxKind.AsNewClause 88Case SyntaxKind.AsNewClause
Syntax\SyntaxFacts.vb (1)
82Case SyntaxKind.SimpleAsClause, SyntaxKind.AsNewClause