311 references to NewKeyword
Microsoft.CodeAnalysis.CSharp (23)
Parser\LanguageParser.cs (16)
348case SyntaxKind.NewKeyword: 1315case SyntaxKind.NewKeyword: 2204case SyntaxKind.NewKeyword: 2221SyntaxKind.NewKeyword => 2320case SyntaxKind.NewKeyword: 2527case SyntaxKind.NewKeyword: 8479Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 10582case SyntaxKind.NewKeyword: 10856case SyntaxKind.NewKeyword: 11501case SyntaxKind.NewKeyword: 12654Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 12714return this.CurrentToken.Kind == SyntaxKind.NewKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken; 12720var @new = this.EatToken(SyntaxKind.NewKeyword); 12774SyntaxToken @new = this.EatToken(SyntaxKind.NewKeyword); 13002Debug.Assert(this.CurrentToken.Kind is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword); 13008var @new = this.EatToken(SyntaxKind.NewKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
929AddKeyword(SyntaxKind.NewKeyword);
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
55return SyntaxFacts.IsInNamespaceOrTypeContext(startNode as ExpressionSyntax) || token.IsKind(SyntaxKind.NewKeyword) || this.InNamespaceOrType;
Symbols\Source\ModifierUtils.cs (2)
286return SyntaxFacts.GetText(SyntaxKind.NewKeyword); 344case SyntaxKind.NewKeyword:
Syntax\SyntaxKindFacts.cs (2)
953return SyntaxKind.NewKeyword; 1601case SyntaxKind.NewKeyword:
Syntax\SyntaxNormalizer.cs (1)
973case SyntaxKind.NewKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
54public static readonly SyntaxToken NewKeyword = Token(SyntaxKind.NewKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
157SyntaxKind.NewKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
92case SyntaxKind.NewKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
313if (previousToken.Kind() == SyntaxKind.NewKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
131SyntaxKind.NewKeyword => DeclarationModifiers.New,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
70public int NewKeyword => (int)SyntaxKind.NewKeyword;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1930if (token.IsKind(SyntaxKind.NewKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
423if (previousToken.Kind() == SyntaxKind.NewKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
16SyntaxKind.NewKeyword, 33SyntaxKind.NewKeyword, 51SyntaxKind.NewKeyword,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (7)
926await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 948await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 973await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 993await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 1017await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 1041await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 2300SyntaxKind.NewKeyword);
Microsoft.CodeAnalysis.CSharp.Features (37)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
113if (token.IsKind(SyntaxKind.NewKeyword) && token.Parent.IsKind(SyntaxKind.ObjectCreationExpression))
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
557case SyntaxKind.NewKeyword:
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
51if (newToken.Kind() == SyntaxKind.NewKeyword)
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
18SyntaxKind.NewKeyword, 29SyntaxKind.NewKeyword, 40SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
16SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
16SyntaxKind.NewKeyword, 25SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
17SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (2)
18SyntaxKind.NewKeyword, 32SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
16SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
46: base(SyntaxKind.NewKeyword)
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
18SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
16SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
31SyntaxKind.NewKeyword, 52SyntaxKind.NewKeyword, 70SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
18SyntaxKind.NewKeyword, 29SyntaxKind.NewKeyword, 40SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
18SyntaxKind.NewKeyword, 31SyntaxKind.NewKeyword, 46SyntaxKind.NewKeyword, 61SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (3)
18SyntaxKind.NewKeyword, 32SyntaxKind.NewKeyword, 48SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
18SyntaxKind.NewKeyword, 29SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
17SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
17SyntaxKind.NewKeyword,
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
191=> field.DeclaringSyntaxReferences.Any(static d => d.GetSyntax().GetAncestor<FieldDeclarationSyntax>().Modifiers.Any(SyntaxKind.NewKeyword));
LanguageServices\CSharpStructuralTypeDisplayService.cs (1)
37members.Add(Keyword(SyntaxFacts.GetText(SyntaxKind.NewKeyword)));
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
284parts.Add(Keyword(SyntaxKind.NewKeyword));
Snippets\CSharpClassSnippetProvider.cs (1)
27SyntaxKind.NewKeyword,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Symbols\AnonymousTypesSemanticsTests.cs (27)
69data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 73data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 3).Span, 77data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 5).Span, 87data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 7).Span); 89data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 8).Span); 309data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 313data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 3).Span, 422data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 484data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 541data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 717data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 737data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span); 774data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, NumberOfNewKeywords(LINQ) + 2).Span, 841data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, NumberOfNewKeywords(LINQ) + 2).Span, 916data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 920data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 2).Span); 981data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 985data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 2).Span); 1046data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 1052data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 2).Span); 1140data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 1144data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 3).Span, 1148data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 5).Span, 1337data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span); 1401data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 1489data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 1).Span, 1509data.Tree.FindNodeOrTokenByKind(SyntaxKind.NewKeyword, 2).Span);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (188)
Generated\Syntax.Test.xml.Generated.cs (24)
191=> InternalSyntaxFactory.ImplicitObjectCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArgumentList(), null); 194=> InternalSyntaxFactory.ObjectCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateIdentifierName(), null, null); 203=> InternalSyntaxFactory.AnonymousObjectCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenBraceToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.AnonymousObjectMemberDeclaratorSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.CloseBraceToken)); 206=> InternalSyntaxFactory.ArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArrayType(), null); 209=> InternalSyntaxFactory.ImplicitArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenBracketToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression()); 536=> InternalSyntaxFactory.ConstructorConstraint(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken)); 1445Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1457Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1493Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1506Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1518Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 2944Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 10407=> SyntaxFactory.ImplicitObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArgumentList(), default(InitializerExpressionSyntax)); 10410=> SyntaxFactory.ObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateIdentifierName(), default(ArgumentListSyntax), default(InitializerExpressionSyntax)); 10419=> SyntaxFactory.AnonymousObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), SyntaxFactory.Token(SyntaxKind.OpenBraceToken), new SeparatedSyntaxList<AnonymousObjectMemberDeclaratorSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseBraceToken)); 10422=> SyntaxFactory.ArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArrayType(), default(InitializerExpressionSyntax)); 10425=> SyntaxFactory.ImplicitArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), SyntaxFactory.Token(SyntaxKind.OpenBracketToken), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression()); 10752=> SyntaxFactory.ConstructorConstraint(SyntaxFactory.Token(SyntaxKind.NewKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), SyntaxFactory.Token(SyntaxKind.CloseParenToken)); 11661Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11673Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11709Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11722Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11734Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 13160Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind());
Parsing\AllowsConstraintParsing.cs (3)
1466N(SyntaxKind.NewKeyword); 1535N(SyntaxKind.NewKeyword); 1880N(SyntaxKind.NewKeyword);
Parsing\AnonymousFunctionParsingTests.cs (10)
1193N(SyntaxKind.NewKeyword); 1250N(SyntaxKind.NewKeyword); 1296N(SyntaxKind.NewKeyword); 1363N(SyntaxKind.NewKeyword); 1441N(SyntaxKind.NewKeyword); 1497N(SyntaxKind.NewKeyword); 1551N(SyntaxKind.NewKeyword); 1645N(SyntaxKind.NewKeyword); 1749N(SyntaxKind.NewKeyword); 1826N(SyntaxKind.NewKeyword);
Parsing\AwaitParsingTests.cs (2)
709N(SyntaxKind.NewKeyword); 1921N(SyntaxKind.NewKeyword);
Parsing\CollectionExpressionParsingTests.cs (8)
6668N(SyntaxKind.NewKeyword); 6700N(SyntaxKind.NewKeyword); 6737N(SyntaxKind.NewKeyword); 6781N(SyntaxKind.NewKeyword); 6832N(SyntaxKind.NewKeyword); 7708N(SyntaxKind.NewKeyword); 7739N(SyntaxKind.NewKeyword); 7771N(SyntaxKind.NewKeyword);
Parsing\DeclarationParsingTests.cs (3)
4655TestClassPropertyWithModifier(SyntaxKind.NewKeyword); 4669TestClassPropertyWithModifier(SyntaxKind.NewKeyword); 4862TestClassEventPropertyWithModifier(SyntaxKind.NewKeyword);
Parsing\DeclarationScopeParsingTests.cs (6)
8060N(SyntaxKind.NewKeyword); 8109N(SyntaxKind.NewKeyword); 8163N(SyntaxKind.NewKeyword); 8208N(SyntaxKind.NewKeyword); 8271N(SyntaxKind.NewKeyword); 8327N(SyntaxKind.NewKeyword);
Parsing\DeconstructionTests.cs (1)
1703N(SyntaxKind.NewKeyword);
Parsing\ExpressionParsingTests.cs (23)
375N(SyntaxKind.NewKeyword); 1389N(SyntaxKind.NewKeyword); 1433N(SyntaxKind.NewKeyword); 1471N(SyntaxKind.NewKeyword); 1515N(SyntaxKind.NewKeyword); 1567N(SyntaxKind.NewKeyword); 1613N(SyntaxKind.NewKeyword); 1653N(SyntaxKind.NewKeyword); 1693N(SyntaxKind.NewKeyword); 1733N(SyntaxKind.NewKeyword); 1781N(SyntaxKind.NewKeyword); 1813N(SyntaxKind.NewKeyword); 4898N(SyntaxKind.NewKeyword); 6027N(SyntaxKind.NewKeyword); 6058N(SyntaxKind.NewKeyword); 6088N(SyntaxKind.NewKeyword); 6123N(SyntaxKind.NewKeyword); 6152N(SyntaxKind.NewKeyword); 6193N(SyntaxKind.NewKeyword); 6229N(SyntaxKind.NewKeyword); 6406N(SyntaxKind.NewKeyword); 6433N(SyntaxKind.NewKeyword); 6461N(SyntaxKind.NewKeyword);
Parsing\FieldKeywordParsingTests.cs (1)
1662N(SyntaxKind.NewKeyword);
Parsing\FunctionPointerTests.cs (1)
2026N(SyntaxKind.NewKeyword);
Parsing\ImplicitObjectCreationParsingTests.cs (17)
30N(SyntaxKind.NewKeyword); 51N(SyntaxKind.NewKeyword); 99N(SyntaxKind.NewKeyword); 119N(SyntaxKind.NewKeyword); 137N(SyntaxKind.NewKeyword); 184N(SyntaxKind.NewKeyword); 227N(SyntaxKind.NewKeyword); 265N(SyntaxKind.NewKeyword); 319N(SyntaxKind.NewKeyword); 355N(SyntaxKind.NewKeyword); 392N(SyntaxKind.NewKeyword); 420N(SyntaxKind.NewKeyword); 436N(SyntaxKind.NewKeyword); 469N(SyntaxKind.NewKeyword); 490N(SyntaxKind.NewKeyword); 556N(SyntaxKind.NewKeyword); 604N(SyntaxKind.NewKeyword);
Parsing\LambdaAttributeParsingTests.cs (7)
1055N(SyntaxKind.NewKeyword); 1108N(SyntaxKind.NewKeyword); 2708N(SyntaxKind.NewKeyword); 2802N(SyntaxKind.NewKeyword); 2893N(SyntaxKind.NewKeyword); 2968N(SyntaxKind.NewKeyword); 3021N(SyntaxKind.NewKeyword);
Parsing\LocalFunctionParsingTests.cs (5)
1444N(SyntaxKind.NewKeyword); 1492N(SyntaxKind.NewKeyword); 1546N(SyntaxKind.NewKeyword); 1594N(SyntaxKind.NewKeyword); 1651N(SyntaxKind.NewKeyword);
Parsing\MemberDeclarationParsingTests.cs (1)
12509N(SyntaxKind.NewKeyword);
Parsing\NullableParsingTests.cs (7)
1392N(SyntaxKind.NewKeyword); 1444N(SyntaxKind.NewKeyword); 1503N(SyntaxKind.NewKeyword); 1567N(SyntaxKind.NewKeyword); 1631N(SyntaxKind.NewKeyword); 1695N(SyntaxKind.NewKeyword); 1722N(SyntaxKind.NewKeyword);
Parsing\ParsingErrorRecoveryTests.cs (5)
5232N(SyntaxKind.NewKeyword); 5344N(SyntaxKind.NewKeyword); 5491N(SyntaxKind.NewKeyword); 5604N(SyntaxKind.NewKeyword); 5741N(SyntaxKind.NewKeyword);
Parsing\PatternParsingTests.cs (1)
12707N(SyntaxKind.NewKeyword);
Parsing\RecordParsing.cs (2)
1036N(SyntaxKind.NewKeyword); 3763N(SyntaxKind.NewKeyword);
Parsing\RefFieldParsingTests.cs (11)
703N(SyntaxKind.NewKeyword); 747N(SyntaxKind.NewKeyword); 794N(SyntaxKind.NewKeyword); 852N(SyntaxKind.NewKeyword); 884N(SyntaxKind.NewKeyword); 942N(SyntaxKind.NewKeyword); 992N(SyntaxKind.NewKeyword); 1023N(SyntaxKind.NewKeyword); 1062N(SyntaxKind.NewKeyword); 1101N(SyntaxKind.NewKeyword); 1148N(SyntaxKind.NewKeyword);
Parsing\RefReadonlyTests.cs (1)
465N(SyntaxKind.NewKeyword);
Parsing\ScriptParsingTests.cs (26)
109N(SyntaxKind.NewKeyword); 321N(SyntaxKind.NewKeyword); 354N(SyntaxKind.NewKeyword); 393N(SyntaxKind.NewKeyword); 435N(SyntaxKind.NewKeyword); 486N(SyntaxKind.NewKeyword); 518N(SyntaxKind.NewKeyword); 544N(SyntaxKind.NewKeyword); 583N(SyntaxKind.NewKeyword); 611N(SyntaxKind.NewKeyword); 651N(SyntaxKind.NewKeyword); 692N(SyntaxKind.NewKeyword); 721N(SyntaxKind.NewKeyword); 750N(SyntaxKind.NewKeyword); 785N(SyntaxKind.NewKeyword); 813N(SyntaxKind.NewKeyword); 857N(SyntaxKind.NewKeyword); 917N(SyntaxKind.NewKeyword); 964NewModifier_WithOtherModifier("new", SyntaxKind.NewKeyword); 979N(SyntaxKind.NewKeyword); 1008N(SyntaxKind.NewKeyword); 1029N(SyntaxKind.NewKeyword); 1057N(SyntaxKind.NewKeyword); 1086N(SyntaxKind.NewKeyword); 1612N(SyntaxKind.NewKeyword); 1659N(SyntaxKind.NewKeyword);
Parsing\SeparatedSyntaxListParsingTests.cs (10)
367N(SyntaxKind.NewKeyword); 407N(SyntaxKind.NewKeyword); 822N(SyntaxKind.NewKeyword); 861N(SyntaxKind.NewKeyword); 900N(SyntaxKind.NewKeyword); 944N(SyntaxKind.NewKeyword); 988N(SyntaxKind.NewKeyword); 1037N(SyntaxKind.NewKeyword); 1081N(SyntaxKind.NewKeyword); 1125N(SyntaxKind.NewKeyword);
Parsing\StatementAttributeParsingTests.cs (5)
3804N(SyntaxKind.NewKeyword); 3878N(SyntaxKind.NewKeyword); 3971N(SyntaxKind.NewKeyword); 5241N(SyntaxKind.NewKeyword); 5319N(SyntaxKind.NewKeyword);
Parsing\StatementParsingTests.cs (4)
4076N(SyntaxKind.NewKeyword); 4135N(SyntaxKind.NewKeyword); 4262N(SyntaxKind.NewKeyword); 4631N(SyntaxKind.NewKeyword);
Parsing\SwitchExpressionParsingTests.cs (1)
431N(SyntaxKind.NewKeyword);
Parsing\TopLevelStatementsParsingTests.cs (2)
1593N(SyntaxKind.NewKeyword); 1849N(SyntaxKind.NewKeyword);
Parsing\TypeArgumentListParsingTests.cs (1)
749N(SyntaxKind.NewKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpSyntaxTokens.cs (1)
54public static readonly SyntaxToken NewKeyword = Token(SyntaxKind.NewKeyword);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (1)
157SyntaxKind.NewKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTokenExtensions.cs (1)
92case SyntaxKind.NewKeyword:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (1)
313if (previousToken.Kind() == SyntaxKind.NewKeyword)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (1)
131SyntaxKind.NewKeyword => DeclarationModifiers.New,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxKinds.cs (1)
70public int NewKeyword => (int)SyntaxKind.NewKeyword;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
1930if (token.IsKind(SyntaxKind.NewKeyword))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
423if (previousToken.Kind() == SyntaxKind.NewKeyword &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Utilities\SyntaxKindSet.cs (3)
16SyntaxKind.NewKeyword, 33SyntaxKind.NewKeyword, 51SyntaxKind.NewKeyword,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
746yield return CS.SyntaxFactory.Token(CS.SyntaxKind.NewKeyword);
Microsoft.Gen.Logging (1)
Parsing\Parser.LogProperties.cs (1)
242if (ParserUtilities.PropertyHasModifier(property, SyntaxKind.NewKeyword, _cancellationToken))
Microsoft.Interop.ComInterfaceGenerator (3)
ComInterfaceGenerator.cs (1)
369var methodSyntaxTemplate = new ContainingSyntax(new SyntaxTokenList(syntax.Modifiers.Where(static m => !m.IsKind(SyntaxKind.NewKeyword))).StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
ComMethodContext.cs (1)
132.WithModifiers(TokenList(Token(SyntaxKind.NewKeyword)))
ComMethodInfo.cs (1)
151bool shadowsBaseMethod = comMethodDeclaringSyntax.Modifiers.Any(SyntaxKind.NewKeyword);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
25{ ModifierFlags.New, SyntaxKind.NewKeyword }, 64case SyntaxKind.NewKeyword: