290 references to NewKeyword
Microsoft.CodeAnalysis.CSharp (23)
Parser\LanguageParser.cs (16)
346case SyntaxKind.NewKeyword: 1042case SyntaxKind.NewKeyword: 1921case SyntaxKind.NewKeyword: 1937SyntaxKind.NewKeyword => 2005case SyntaxKind.NewKeyword: 2212case SyntaxKind.NewKeyword: 7925Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 9966case SyntaxKind.NewKeyword: 10238case SyntaxKind.NewKeyword: 10733case SyntaxKind.NewKeyword: 11842Debug.Assert(this.CurrentToken.Kind == SyntaxKind.NewKeyword); 11861return this.CurrentToken.Kind == SyntaxKind.NewKeyword && this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken; 11867var @new = this.EatToken(SyntaxKind.NewKeyword); 11921SyntaxToken @new = this.EatToken(SyntaxKind.NewKeyword); 12149Debug.Assert(this.CurrentToken.Kind is SyntaxKind.NewKeyword or SyntaxKind.StackAllocKeyword); 12155var @new = this.EatToken(SyntaxKind.NewKeyword);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
923AddKeyword(SyntaxKind.NewKeyword);
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
54return SyntaxFacts.IsInNamespaceOrTypeContext(startNode as ExpressionSyntax) || token.IsKind(SyntaxKind.NewKeyword) || this.inNamespaceOrType;
Symbols\Source\ModifierUtils.cs (2)
287return SyntaxFacts.GetText(SyntaxKind.NewKeyword); 345case SyntaxKind.NewKeyword:
Syntax\SyntaxKindFacts.cs (2)
925return SyntaxKind.NewKeyword; 1565case SyntaxKind.NewKeyword:
Syntax\SyntaxNormalizer.cs (1)
973case SyntaxKind.NewKeyword:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpAccessibilityFacts.cs (1)
131SyntaxKind.NewKeyword => DeclarationModifiers.New,
CSharpIdeCodeStyleOptions.cs (1)
23SyntaxKind.NewKeyword,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
44case SyntaxKind.NewKeyword:
TokenBasedFormattingRule.cs (1)
311if (previousToken.Kind() == SyntaxKind.NewKeyword)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
CSharpTypeInferenceService.TypeInferrer.cs (1)
429if (previousToken.Kind() == SyntaxKind.NewKeyword &&
HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
51var newModifiers = modifiers.Add(SyntaxFactory.Token(SyntaxKind.NewKeyword));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1921if (token.IsKind(SyntaxKind.NewKeyword))
MethodGenerator.cs (1)
318tokens.Add(SyntaxFactory.Token(SyntaxKind.NewKeyword));
SyntaxKindSet.cs (3)
19SyntaxKind.NewKeyword, 36SyntaxKind.NewKeyword, 54SyntaxKind.NewKeyword,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (7)
929await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 951await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 976await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 996await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 1020await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 1044await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.NewKeyword); 2304SyntaxKind.NewKeyword);
Microsoft.CodeAnalysis.CSharp.Features (38)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
116if (token.IsKind(SyntaxKind.NewKeyword) && token.Parent.IsKind(SyntaxKind.ObjectCreationExpression))
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
571case SyntaxKind.NewKeyword:
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
52if (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)
47: base(SyntaxKind.NewKeyword)
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
16SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
16SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
29SyntaxKind.NewKeyword, 50SyntaxKind.NewKeyword, 68SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
18SyntaxKind.NewKeyword, 29SyntaxKind.NewKeyword, 40SyntaxKind.NewKeyword,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
17SyntaxKind.NewKeyword, 30SyntaxKind.NewKeyword, 45SyntaxKind.NewKeyword, 60SyntaxKind.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)
195=> field.DeclaringSyntaxReferences.Any(static d => d.GetSyntax().GetAncestor<FieldDeclarationSyntax>().Modifiers.Any(SyntaxKind.NewKeyword));
HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
51var newModifiers = modifiers.Add(SyntaxFactory.Token(SyntaxKind.NewKeyword));
LanguageServices\CSharpStructuralTypeDisplayService.cs (1)
37members.Add(Keyword(SyntaxFacts.GetText(SyntaxKind.NewKeyword)));
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
284parts.Add(Keyword(SyntaxKind.NewKeyword));
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
28SyntaxKind.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 (170)
Generated\Syntax.Test.xml.Generated.cs (24)
188=> InternalSyntaxFactory.ImplicitObjectCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArgumentList(), null); 191=> InternalSyntaxFactory.ObjectCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateIdentifierName(), null, null); 200=> InternalSyntaxFactory.AnonymousObjectCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenBraceToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SeparatedSyntaxList<Syntax.InternalSyntax.AnonymousObjectMemberDeclaratorSyntax>(), InternalSyntaxFactory.Token(SyntaxKind.CloseBraceToken)); 203=> InternalSyntaxFactory.ArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArrayType(), null); 206=> InternalSyntaxFactory.ImplicitArrayCreationExpression(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenBracketToken), new Microsoft.CodeAnalysis.Syntax.InternalSyntax.SyntaxList<Syntax.InternalSyntax.SyntaxToken>(), InternalSyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression()); 524=> InternalSyntaxFactory.ConstructorConstraint(InternalSyntaxFactory.Token(SyntaxKind.NewKeyword), InternalSyntaxFactory.Token(SyntaxKind.OpenParenToken), InternalSyntaxFactory.Token(SyntaxKind.CloseParenToken)); 1417Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1429Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1465Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1478Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 1490Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 2883Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind); 10164=> SyntaxFactory.ImplicitObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArgumentList(), default(InitializerExpressionSyntax)); 10167=> SyntaxFactory.ObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateIdentifierName(), default(ArgumentListSyntax), default(InitializerExpressionSyntax)); 10176=> SyntaxFactory.AnonymousObjectCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), SyntaxFactory.Token(SyntaxKind.OpenBraceToken), new SeparatedSyntaxList<AnonymousObjectMemberDeclaratorSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseBraceToken)); 10179=> SyntaxFactory.ArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), GenerateArrayType(), default(InitializerExpressionSyntax)); 10182=> SyntaxFactory.ImplicitArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), SyntaxFactory.Token(SyntaxKind.OpenBracketToken), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression()); 10500=> SyntaxFactory.ConstructorConstraint(SyntaxFactory.Token(SyntaxKind.NewKeyword), SyntaxFactory.Token(SyntaxKind.OpenParenToken), SyntaxFactory.Token(SyntaxKind.CloseParenToken)); 11393Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11405Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11441Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11454Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 11466Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind()); 12859Assert.Equal(SyntaxKind.NewKeyword, node.NewKeyword.Kind());
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)
708N(SyntaxKind.NewKeyword); 1228N(SyntaxKind.NewKeyword);
Parsing\DeclarationParsingTests.cs (3)
4655TestClassPropertyWithModifier(SyntaxKind.NewKeyword); 4669TestClassPropertyWithModifier(SyntaxKind.NewKeyword); 4862TestClassEventPropertyWithModifier(SyntaxKind.NewKeyword);
Parsing\DeclarationScopeParsingTests.cs (6)
8373N(SyntaxKind.NewKeyword); 8422N(SyntaxKind.NewKeyword); 8476N(SyntaxKind.NewKeyword); 8521N(SyntaxKind.NewKeyword); 8584N(SyntaxKind.NewKeyword); 8640N(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); 6095N(SyntaxKind.NewKeyword); 6144N(SyntaxKind.NewKeyword); 6173N(SyntaxKind.NewKeyword); 6214N(SyntaxKind.NewKeyword); 6250N(SyntaxKind.NewKeyword); 6428N(SyntaxKind.NewKeyword); 6451N(SyntaxKind.NewKeyword); 6474N(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)
1070N(SyntaxKind.NewKeyword); 1123N(SyntaxKind.NewKeyword); 2696N(SyntaxKind.NewKeyword); 2790N(SyntaxKind.NewKeyword); 2881N(SyntaxKind.NewKeyword); 2956N(SyntaxKind.NewKeyword); 3009N(SyntaxKind.NewKeyword);
Parsing\LocalFunctionParsingTests.cs (5)
1444N(SyntaxKind.NewKeyword); 1492N(SyntaxKind.NewKeyword); 1546N(SyntaxKind.NewKeyword); 1594N(SyntaxKind.NewKeyword); 1651N(SyntaxKind.NewKeyword);
Parsing\NullableParsingTests.cs (7)
1390N(SyntaxKind.NewKeyword); 1442N(SyntaxKind.NewKeyword); 1501N(SyntaxKind.NewKeyword); 1565N(SyntaxKind.NewKeyword); 1629N(SyntaxKind.NewKeyword); 1693N(SyntaxKind.NewKeyword); 1720N(SyntaxKind.NewKeyword);
Parsing\PatternParsingTests.cs (1)
12746N(SyntaxKind.NewKeyword);
Parsing\RecordParsing.cs (2)
1036N(SyntaxKind.NewKeyword); 3613N(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)
481N(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)
3803N(SyntaxKind.NewKeyword); 3877N(SyntaxKind.NewKeyword); 3970N(SyntaxKind.NewKeyword); 5240N(SyntaxKind.NewKeyword); 5318N(SyntaxKind.NewKeyword);
Parsing\StatementParsingTests.cs (4)
4075N(SyntaxKind.NewKeyword); 4134N(SyntaxKind.NewKeyword); 4234N(SyntaxKind.NewKeyword); 4603N(SyntaxKind.NewKeyword);
Parsing\SwitchExpressionParsingTests.cs (1)
430N(SyntaxKind.NewKeyword);
Parsing\TopLevelStatementsParsingTests.cs (2)
1593N(SyntaxKind.NewKeyword); 1849N(SyntaxKind.NewKeyword);
Parsing\TypeArgumentListParsingTests.cs (1)
749N(SyntaxKind.NewKeyword);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1697list.Add(SyntaxFactory.Token(SyntaxKind.NewKeyword));
CSharpAccessibilityFacts.cs (1)
131SyntaxKind.NewKeyword => DeclarationModifiers.New,
CSharpIdeCodeStyleOptions.cs (1)
23SyntaxKind.NewKeyword,
CSharpTypeInferenceService.TypeInferrer.cs (1)
429if (previousToken.Kind() == SyntaxKind.NewKeyword &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
44case SyntaxKind.NewKeyword:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1921if (token.IsKind(SyntaxKind.NewKeyword))
MethodGenerator.cs (1)
318tokens.Add(SyntaxFactory.Token(SyntaxKind.NewKeyword));
SyntaxKindSet.cs (3)
19SyntaxKind.NewKeyword, 36SyntaxKind.NewKeyword, 54SyntaxKind.NewKeyword,
TokenBasedFormattingRule.cs (1)
311if (previousToken.Kind() == SyntaxKind.NewKeyword)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
760yield return CS.SyntaxFactory.Token(CS.SyntaxKind.NewKeyword);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
26{ ModifierFlags.New, SyntaxKind.NewKeyword }, 65case SyntaxKind.NewKeyword: