85 references to NewKeyword
Microsoft.CodeAnalysis.VisualBasic (49)
Binding\Binder_Expressions.vb (1)
2811
CaseInsensitiveComparison.Equals(identifier.ValueText, SyntaxFacts.GetText(SyntaxKind.
NewKeyword
)) Then
Binding\DocumentationCommentCrefBinder.vb (2)
553
If IdentifierComparison.Equals(identifier.Identifier.ValueText, SyntaxFacts.GetText(SyntaxKind.
NewKeyword
)) AndAlso Not token.IsBracketed Then
631
If IdentifierComparison.Equals(identifier.Identifier.ValueText, SyntaxFacts.GetText(SyntaxKind.
NewKeyword
)) AndAlso Not token.IsBracketed Then
Generated\Syntax.xml.Internal.Generated.vb (8)
36288
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
42129
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
42149
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
42191
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
48354
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
54195
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
54215
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
54257
Debug.Assert(newKeyword IsNot Nothing AndAlso newKeyword.Kind = SyntaxKind.
NewKeyword
)
Generated\Syntax.xml.Main.Generated.vb (19)
8130
Case SyntaxKind.
NewKeyword
:
8151
Case SyntaxKind.
NewKeyword
:
8172
Case SyntaxKind.
NewKeyword
:
8201
Case SyntaxKind.
NewKeyword
:
9587
Case SyntaxKind.
NewKeyword
9615
Return SyntaxFactory.SubNewStatement(attributeLists, modifiers, SyntaxFactory.Token(SyntaxKind.SubKeyword), SyntaxFactory.Token(SyntaxKind.
NewKeyword
), parameterList)
9625
Return SyntaxFactory.SubNewStatement(Nothing, Nothing, SyntaxFactory.Token(SyntaxKind.SubKeyword), SyntaxFactory.Token(SyntaxKind.
NewKeyword
), Nothing)
26651
Case SyntaxKind.
NewKeyword
26694
Return SyntaxFactory.ObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.
NewKeyword
), attributeLists, type, argumentList, initializer)
26706
Return SyntaxFactory.ObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.
NewKeyword
), Nothing, type, Nothing, Nothing)
26725
Case SyntaxKind.
NewKeyword
26752
Return SyntaxFactory.AnonymousObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.
NewKeyword
), attributeLists, initializer)
26763
Return SyntaxFactory.AnonymousObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.
NewKeyword
), Nothing, initializer)
26792
Case SyntaxKind.
NewKeyword
26841
Return SyntaxFactory.ArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
NewKeyword
), attributeLists, type, arrayBounds, Nothing, initializer)
26855
Return SyntaxFactory.ArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
NewKeyword
), Nothing, type, Nothing, Nothing, initializer)
44118
SyntaxKind.
NewKeyword
,
45083
SyntaxKind.
NewKeyword
,
45532
Case SyntaxKind.
NewKeyword
Parser\ParseExpression.vb (2)
353
Case SyntaxKind.
NewKeyword
793
Debug.Assert(CurrentToken.Kind = SyntaxKind.
NewKeyword
, "must be at a New expression.")
Parser\Parser.vb (7)
2135
declarator = ResyncAt(declarator, SyntaxKind.AsKeyword, SyntaxKind.CommaToken, SyntaxKind.
NewKeyword
, SyntaxKind.EqualsToken)
2203
If CurrentToken.Kind = SyntaxKind.
NewKeyword
Then
2843
If Start.Kind = SyntaxKind.
NewKeyword
AndAlso PeekToken(1).Kind = SyntaxKind.IdentifierToken Then
2847
ElseIf Start.Kind = SyntaxKind.OpenBraceToken AndAlso prev IsNot Nothing AndAlso prev.Kind = SyntaxKind.
NewKeyword
Then
3636
If CurrentToken.Kind = SyntaxKind.
NewKeyword
Then
3832
If CurrentToken.Kind = SyntaxKind.
NewKeyword
Then
4421
If CurrentToken.Kind = SyntaxKind.
NewKeyword
Then
Parser\ParseXml.vb (1)
1306
ElseIf CurrentToken.Kind = SyntaxKind.
NewKeyword
Then
Scanner\KeywordTable.vb (1)
112
SyntaxKind.
NewKeyword
, None,
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
342
AddKeyword(SyntaxKind.
NewKeyword
)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
579
AddKeyword(SyntaxKind.
NewKeyword
)
SymbolDisplay\SymbolDisplayVisitor.vb (1)
100
CaseInsensitiveComparison.Equals(SyntaxFacts.GetText(SyntaxKind.
NewKeyword
), text) Then
Symbols\TypeParameterConstraint.vb (1)
76
Return SyntaxKind.
NewKeyword
Syntax\InternalSyntax\SyntaxNodeFactories.vb (1)
249
SyntaxKind.
NewKeyword
,
Syntax\SyntaxKindFacts.vb (2)
171
SyntaxKind.
NewKeyword
,
481
SyntaxKind.
NewKeyword
,
Syntax\SyntaxNodeFactories.vb (1)
563
SyntaxKind.
NewKeyword
,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (6)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\MemberAccessExpressionSyntaxExtensions.vb (2)
23
Return memberAccess.Name.Identifier.HasMatchingText(SyntaxKind.
NewKeyword
)
38
Return memberAccess.Name.Identifier.HasMatchingText(SyntaxKind.
NewKeyword
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\AdjustSpaceFormattingRule.vb (1)
145
Case SyntaxKind.
NewKeyword
, SyntaxKind.FunctionKeyword, SyntaxKind.SubKeyword, SyntaxKind.SetKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
246
If TypeOf token.Parent Is IdentifierNameSyntax AndAlso token.HasMatchingText(SyntaxKind.
NewKeyword
) Then
255
If TypeOf token.Parent Is IdentifierNameSyntax AndAlso token.HasMatchingText(SyntaxKind.
NewKeyword
) Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxKinds.vb (1)
75
Public ReadOnly Property NewKeyword As Integer = SyntaxKind.
NewKeyword
Implements ISyntaxKinds.NewKeyword
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
45
constraints.Add(SyntaxFactory.NewConstraint(SyntaxFactory.Token(SyntaxKind.
NewKeyword
)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
765
If Not targetToken.FollowsEndOfStatement(position) AndAlso targetToken.Kind = SyntaxKind.
NewKeyword
Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
42
keywordKind <> SyntaxKind.
NewKeyword
Then
Microsoft.CodeAnalysis.VisualBasic.Features (4)
Completion\CompletionProviders\ObjectCreationCompletionProvider.vb (1)
47
If newToken.Kind = SyntaxKind.
NewKeyword
Then
Debugging\BreakpointResolver.vb (1)
25
Return If(s_identifierComparer.Equals(name, SyntaxFacts.GetText(SyntaxKind.
NewKeyword
)),
LanguageServices\VisualBasicStructuralTypeDisplayService.vb (1)
32
members.Add(Keyword(SyntaxFacts.GetText(SyntaxKind.
NewKeyword
)))
SignatureHelp\GenericNameSignatureHelpProvider.vb (1)
199
parts.Add(Keyword(SyntaxKind.
NewKeyword
))
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocations.Fixer.vb (1)
85
Dim arrayCreationExpression = SyntaxFactory.ArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.
NewKeyword
), Nothing, CType(typeSyntax, TypeSyntax), Nothing, rankSpecifiers, initializer)
Microsoft.NetCore.Analyzers\Runtime\BasicForwardCancellationTokenToInvocationsFixer.TypeNameVisitor.vb (1)
222
keywordKind <> SyntaxKind.
NewKeyword
Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (12)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
2622
constraints = constraints.Add(SyntaxFactory.NewConstraint(SyntaxFactory.Token(SyntaxKind.
NewKeyword
)))
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
285
If newToken.IsKind(SyntaxKind.
NewKeyword
) Then
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
97
If SyntaxFacts.GetKeywordKind(unescapedIdentifier) = SyntaxKind.
NewKeyword
Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\MemberAccessExpressionSyntaxExtensions.vb (2)
23
Return memberAccess.Name.Identifier.HasMatchingText(SyntaxKind.
NewKeyword
)
38
Return memberAccess.Name.Identifier.HasMatchingText(SyntaxKind.
NewKeyword
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\AdjustSpaceFormattingRule.vb (1)
145
Case SyntaxKind.
NewKeyword
, SyntaxKind.FunctionKeyword, SyntaxKind.SubKeyword, SyntaxKind.SetKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
246
If TypeOf token.Parent Is IdentifierNameSyntax AndAlso token.HasMatchingText(SyntaxKind.
NewKeyword
) Then
255
If TypeOf token.Parent Is IdentifierNameSyntax AndAlso token.HasMatchingText(SyntaxKind.
NewKeyword
) Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxKinds.vb (1)
75
Public ReadOnly Property NewKeyword As Integer = SyntaxKind.
NewKeyword
Implements ISyntaxKinds.NewKeyword
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
45
constraints.Add(SyntaxFactory.NewConstraint(SyntaxFactory.Token(SyntaxKind.
NewKeyword
)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
765
If Not targetToken.FollowsEndOfStatement(position) AndAlso targetToken.Kind = SyntaxKind.
NewKeyword
Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
42
keywordKind <> SyntaxKind.
NewKeyword
Then
Roslyn.Diagnostics.VisualBasic.Analyzers (9)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\MemberAccessExpressionSyntaxExtensions.vb (2)
23
Return memberAccess.Name.Identifier.HasMatchingText(SyntaxKind.
NewKeyword
)
38
Return memberAccess.Name.Identifier.HasMatchingText(SyntaxKind.
NewKeyword
)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Formatting\Rules\AdjustSpaceFormattingRule.vb (1)
145
Case SyntaxKind.
NewKeyword
, SyntaxKind.FunctionKeyword, SyntaxKind.SubKeyword, SyntaxKind.SetKeyword,
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
246
If TypeOf token.Parent Is IdentifierNameSyntax AndAlso token.HasMatchingText(SyntaxKind.
NewKeyword
) Then
255
If TypeOf token.Parent Is IdentifierNameSyntax AndAlso token.HasMatchingText(SyntaxKind.
NewKeyword
) Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxKinds.vb (1)
75
Public ReadOnly Property NewKeyword As Integer = SyntaxKind.
NewKeyword
Implements ISyntaxKinds.NewKeyword
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\TypeParameterGenerator.vb (1)
45
constraints.Add(SyntaxFactory.NewConstraint(SyntaxFactory.Token(SyntaxKind.
NewKeyword
)))
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTreeExtensions.vb (1)
765
If Not targetToken.FollowsEndOfStatement(position) AndAlso targetToken.Kind = SyntaxKind.
NewKeyword
Then
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
42
keywordKind <> SyntaxKind.
NewKeyword
Then