290 references to NewKeyword
Microsoft.CodeAnalysis.CSharp (23)
Parser\LanguageParser.cs (16)
346
case SyntaxKind.
NewKeyword
:
1042
case SyntaxKind.
NewKeyword
:
1921
case SyntaxKind.
NewKeyword
:
1937
SyntaxKind.
NewKeyword
=>
2005
case SyntaxKind.
NewKeyword
:
2212
case SyntaxKind.
NewKeyword
:
7925
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
NewKeyword
);
9966
case SyntaxKind.
NewKeyword
:
10238
case SyntaxKind.
NewKeyword
:
10733
case SyntaxKind.
NewKeyword
:
11842
Debug.Assert(this.CurrentToken.Kind == SyntaxKind.
NewKeyword
);
11861
return this.CurrentToken.Kind == SyntaxKind.
NewKeyword
&& this.PeekToken(1).Kind == SyntaxKind.OpenBraceToken;
11867
var @new = this.EatToken(SyntaxKind.
NewKeyword
);
11921
SyntaxToken @new = this.EatToken(SyntaxKind.
NewKeyword
);
12149
Debug.Assert(this.CurrentToken.Kind is SyntaxKind.
NewKeyword
or SyntaxKind.StackAllocKeyword);
12155
var @new = this.EatToken(SyntaxKind.
NewKeyword
);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
923
AddKeyword(SyntaxKind.
NewKeyword
);
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
54
return SyntaxFacts.IsInNamespaceOrTypeContext(startNode as ExpressionSyntax) || token.IsKind(SyntaxKind.
NewKeyword
) || this.inNamespaceOrType;
Symbols\Source\ModifierUtils.cs (2)
287
return SyntaxFacts.GetText(SyntaxKind.
NewKeyword
);
345
case SyntaxKind.
NewKeyword
:
Syntax\SyntaxKindFacts.cs (2)
925
return SyntaxKind.
NewKeyword
;
1565
case SyntaxKind.
NewKeyword
:
Syntax\SyntaxNormalizer.cs (1)
973
case SyntaxKind.
NewKeyword
:
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
CSharpAccessibilityFacts.cs (1)
131
SyntaxKind.
NewKeyword
=> DeclarationModifiers.New,
CSharpIdeCodeStyleOptions.cs (1)
23
SyntaxKind.
NewKeyword
,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
44
case SyntaxKind.
NewKeyword
:
TokenBasedFormattingRule.cs (1)
311
if (previousToken.Kind() == SyntaxKind.
NewKeyword
)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
CSharpTypeInferenceService.TypeInferrer.cs (1)
429
if (previousToken.Kind() == SyntaxKind.
NewKeyword
&&
HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
51
var newModifiers = modifiers.Add(SyntaxFactory.Token(SyntaxKind.
NewKeyword
));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1921
if (token.IsKind(SyntaxKind.
NewKeyword
))
MethodGenerator.cs (1)
318
tokens.Add(SyntaxFactory.Token(SyntaxKind.
NewKeyword
));
SyntaxKindSet.cs (3)
19
SyntaxKind.
NewKeyword
,
36
SyntaxKind.
NewKeyword
,
54
SyntaxKind.
NewKeyword
,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (7)
Formatting\Indentation\SmartTokenFormatterFormatRangeTests.cs (7)
929
await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.
NewKeyword
);
951
await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.
NewKeyword
);
976
await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.
NewKeyword
);
996
await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.
NewKeyword
);
1020
await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.
NewKeyword
);
1044
await AutoFormatOnCloseBraceAsync(code, expected, SyntaxKind.
NewKeyword
);
2304
SyntaxKind.
NewKeyword
);
Microsoft.CodeAnalysis.CSharp.Features (38)
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (1)
116
if (token.IsKind(SyntaxKind.
NewKeyword
) && token.Parent.IsKind(SyntaxKind.ObjectCreationExpression))
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
571
case SyntaxKind.
NewKeyword
:
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
52
if (newToken.Kind() == SyntaxKind.
NewKeyword
)
Completion\KeywordRecommenders\AbstractKeywordRecommender.cs (3)
18
SyntaxKind.
NewKeyword
,
29
SyntaxKind.
NewKeyword
,
40
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\ClassKeywordRecommender.cs (1)
16
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\ConstKeywordRecommender.cs (2)
16
SyntaxKind.
NewKeyword
,
25
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\EventKeywordRecommender.cs (1)
17
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\ExternKeywordRecommender.cs (2)
18
SyntaxKind.
NewKeyword
,
32
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\FixedKeywordRecommender.cs (1)
16
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\NewKeywordRecommender.cs (1)
47
: base(SyntaxKind.
NewKeyword
)
Completion\KeywordRecommenders\ReadOnlyKeywordRecommender.cs (1)
16
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\RecordKeywordRecommender.cs (1)
16
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\RefKeywordRecommender.cs (3)
29
SyntaxKind.
NewKeyword
,
50
SyntaxKind.
NewKeyword
,
68
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\SealedKeywordRecommender.cs (3)
18
SyntaxKind.
NewKeyword
,
29
SyntaxKind.
NewKeyword
,
40
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\StaticKeywordRecommender.cs (4)
17
SyntaxKind.
NewKeyword
,
30
SyntaxKind.
NewKeyword
,
45
SyntaxKind.
NewKeyword
,
60
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\UnsafeKeywordRecommender.cs (3)
18
SyntaxKind.
NewKeyword
,
32
SyntaxKind.
NewKeyword
,
48
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\VirtualKeywordRecommender.cs (2)
18
SyntaxKind.
NewKeyword
,
29
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\VoidKeywordRecommender.cs (1)
17
SyntaxKind.
NewKeyword
,
Completion\KeywordRecommenders\VolatileKeywordRecommender.cs (1)
17
SyntaxKind.
NewKeyword
,
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
195
=> field.DeclaringSyntaxReferences.Any(static d => d.GetSyntax().GetAncestor<FieldDeclarationSyntax>().Modifiers.Any(SyntaxKind.
NewKeyword
));
HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
51
var newModifiers = modifiers.Add(SyntaxFactory.Token(SyntaxKind.
NewKeyword
));
LanguageServices\CSharpStructuralTypeDisplayService.cs (1)
37
members.Add(Keyword(SyntaxFacts.GetText(SyntaxKind.
NewKeyword
)));
SignatureHelp\GenericNameSignatureHelpProvider.cs (1)
284
parts.Add(Keyword(SyntaxKind.
NewKeyword
));
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
28
SyntaxKind.
NewKeyword
,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (27)
Symbols\AnonymousTypesSemanticsTests.cs (27)
69
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
73
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 3).Span,
77
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 5).Span,
87
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 7).Span);
89
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 8).Span);
309
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
313
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 3).Span,
422
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
484
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
541
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
717
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
737
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span);
774
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, NumberOfNewKeywords(LINQ) + 2).Span,
841
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, NumberOfNewKeywords(LINQ) + 2).Span,
916
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
920
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 2).Span);
981
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
985
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 2).Span);
1046
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
1052
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 2).Span);
1140
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
1144
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 3).Span,
1148
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 5).Span,
1337
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span);
1401
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
1489
data.Tree.FindNodeOrTokenByKind(SyntaxKind.
NewKeyword
, 1).Span,
1509
data.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));
1417
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind);
1429
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind);
1465
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind);
1478
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind);
1490
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind);
2883
Assert.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));
11393
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind());
11405
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind());
11441
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind());
11454
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind());
11466
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind());
12859
Assert.Equal(SyntaxKind.
NewKeyword
, node.NewKeyword.Kind());
Parsing\AnonymousFunctionParsingTests.cs (10)
1193
N(SyntaxKind.
NewKeyword
);
1250
N(SyntaxKind.
NewKeyword
);
1296
N(SyntaxKind.
NewKeyword
);
1363
N(SyntaxKind.
NewKeyword
);
1441
N(SyntaxKind.
NewKeyword
);
1497
N(SyntaxKind.
NewKeyword
);
1551
N(SyntaxKind.
NewKeyword
);
1645
N(SyntaxKind.
NewKeyword
);
1749
N(SyntaxKind.
NewKeyword
);
1826
N(SyntaxKind.
NewKeyword
);
Parsing\AwaitParsingTests.cs (2)
708
N(SyntaxKind.
NewKeyword
);
1228
N(SyntaxKind.
NewKeyword
);
Parsing\DeclarationParsingTests.cs (3)
4655
TestClassPropertyWithModifier(SyntaxKind.
NewKeyword
);
4669
TestClassPropertyWithModifier(SyntaxKind.
NewKeyword
);
4862
TestClassEventPropertyWithModifier(SyntaxKind.
NewKeyword
);
Parsing\DeclarationScopeParsingTests.cs (6)
8373
N(SyntaxKind.
NewKeyword
);
8422
N(SyntaxKind.
NewKeyword
);
8476
N(SyntaxKind.
NewKeyword
);
8521
N(SyntaxKind.
NewKeyword
);
8584
N(SyntaxKind.
NewKeyword
);
8640
N(SyntaxKind.
NewKeyword
);
Parsing\DeconstructionTests.cs (1)
1703
N(SyntaxKind.
NewKeyword
);
Parsing\ExpressionParsingTests.cs (23)
375
N(SyntaxKind.
NewKeyword
);
1389
N(SyntaxKind.
NewKeyword
);
1433
N(SyntaxKind.
NewKeyword
);
1471
N(SyntaxKind.
NewKeyword
);
1515
N(SyntaxKind.
NewKeyword
);
1567
N(SyntaxKind.
NewKeyword
);
1613
N(SyntaxKind.
NewKeyword
);
1653
N(SyntaxKind.
NewKeyword
);
1693
N(SyntaxKind.
NewKeyword
);
1733
N(SyntaxKind.
NewKeyword
);
1781
N(SyntaxKind.
NewKeyword
);
1813
N(SyntaxKind.
NewKeyword
);
4898
N(SyntaxKind.
NewKeyword
);
6027
N(SyntaxKind.
NewKeyword
);
6058
N(SyntaxKind.
NewKeyword
);
6095
N(SyntaxKind.
NewKeyword
);
6144
N(SyntaxKind.
NewKeyword
);
6173
N(SyntaxKind.
NewKeyword
);
6214
N(SyntaxKind.
NewKeyword
);
6250
N(SyntaxKind.
NewKeyword
);
6428
N(SyntaxKind.
NewKeyword
);
6451
N(SyntaxKind.
NewKeyword
);
6474
N(SyntaxKind.
NewKeyword
);
Parsing\FunctionPointerTests.cs (1)
2026
N(SyntaxKind.
NewKeyword
);
Parsing\ImplicitObjectCreationParsingTests.cs (17)
30
N(SyntaxKind.
NewKeyword
);
51
N(SyntaxKind.
NewKeyword
);
99
N(SyntaxKind.
NewKeyword
);
119
N(SyntaxKind.
NewKeyword
);
137
N(SyntaxKind.
NewKeyword
);
184
N(SyntaxKind.
NewKeyword
);
227
N(SyntaxKind.
NewKeyword
);
265
N(SyntaxKind.
NewKeyword
);
319
N(SyntaxKind.
NewKeyword
);
355
N(SyntaxKind.
NewKeyword
);
392
N(SyntaxKind.
NewKeyword
);
420
N(SyntaxKind.
NewKeyword
);
436
N(SyntaxKind.
NewKeyword
);
469
N(SyntaxKind.
NewKeyword
);
490
N(SyntaxKind.
NewKeyword
);
556
N(SyntaxKind.
NewKeyword
);
604
N(SyntaxKind.
NewKeyword
);
Parsing\LambdaAttributeParsingTests.cs (7)
1070
N(SyntaxKind.
NewKeyword
);
1123
N(SyntaxKind.
NewKeyword
);
2696
N(SyntaxKind.
NewKeyword
);
2790
N(SyntaxKind.
NewKeyword
);
2881
N(SyntaxKind.
NewKeyword
);
2956
N(SyntaxKind.
NewKeyword
);
3009
N(SyntaxKind.
NewKeyword
);
Parsing\LocalFunctionParsingTests.cs (5)
1444
N(SyntaxKind.
NewKeyword
);
1492
N(SyntaxKind.
NewKeyword
);
1546
N(SyntaxKind.
NewKeyword
);
1594
N(SyntaxKind.
NewKeyword
);
1651
N(SyntaxKind.
NewKeyword
);
Parsing\NullableParsingTests.cs (7)
1390
N(SyntaxKind.
NewKeyword
);
1442
N(SyntaxKind.
NewKeyword
);
1501
N(SyntaxKind.
NewKeyword
);
1565
N(SyntaxKind.
NewKeyword
);
1629
N(SyntaxKind.
NewKeyword
);
1693
N(SyntaxKind.
NewKeyword
);
1720
N(SyntaxKind.
NewKeyword
);
Parsing\PatternParsingTests.cs (1)
12746
N(SyntaxKind.
NewKeyword
);
Parsing\RecordParsing.cs (2)
1036
N(SyntaxKind.
NewKeyword
);
3613
N(SyntaxKind.
NewKeyword
);
Parsing\RefFieldParsingTests.cs (11)
703
N(SyntaxKind.
NewKeyword
);
747
N(SyntaxKind.
NewKeyword
);
794
N(SyntaxKind.
NewKeyword
);
852
N(SyntaxKind.
NewKeyword
);
884
N(SyntaxKind.
NewKeyword
);
942
N(SyntaxKind.
NewKeyword
);
992
N(SyntaxKind.
NewKeyword
);
1023
N(SyntaxKind.
NewKeyword
);
1062
N(SyntaxKind.
NewKeyword
);
1101
N(SyntaxKind.
NewKeyword
);
1148
N(SyntaxKind.
NewKeyword
);
Parsing\RefReadonlyTests.cs (1)
481
N(SyntaxKind.
NewKeyword
);
Parsing\ScriptParsingTests.cs (26)
109
N(SyntaxKind.
NewKeyword
);
321
N(SyntaxKind.
NewKeyword
);
354
N(SyntaxKind.
NewKeyword
);
393
N(SyntaxKind.
NewKeyword
);
435
N(SyntaxKind.
NewKeyword
);
486
N(SyntaxKind.
NewKeyword
);
518
N(SyntaxKind.
NewKeyword
);
544
N(SyntaxKind.
NewKeyword
);
583
N(SyntaxKind.
NewKeyword
);
611
N(SyntaxKind.
NewKeyword
);
651
N(SyntaxKind.
NewKeyword
);
692
N(SyntaxKind.
NewKeyword
);
721
N(SyntaxKind.
NewKeyword
);
750
N(SyntaxKind.
NewKeyword
);
785
N(SyntaxKind.
NewKeyword
);
813
N(SyntaxKind.
NewKeyword
);
857
N(SyntaxKind.
NewKeyword
);
917
N(SyntaxKind.
NewKeyword
);
964
NewModifier_WithOtherModifier("new", SyntaxKind.
NewKeyword
);
979
N(SyntaxKind.
NewKeyword
);
1008
N(SyntaxKind.
NewKeyword
);
1029
N(SyntaxKind.
NewKeyword
);
1057
N(SyntaxKind.
NewKeyword
);
1086
N(SyntaxKind.
NewKeyword
);
1612
N(SyntaxKind.
NewKeyword
);
1659
N(SyntaxKind.
NewKeyword
);
Parsing\SeparatedSyntaxListParsingTests.cs (10)
367
N(SyntaxKind.
NewKeyword
);
407
N(SyntaxKind.
NewKeyword
);
822
N(SyntaxKind.
NewKeyword
);
861
N(SyntaxKind.
NewKeyword
);
900
N(SyntaxKind.
NewKeyword
);
944
N(SyntaxKind.
NewKeyword
);
988
N(SyntaxKind.
NewKeyword
);
1037
N(SyntaxKind.
NewKeyword
);
1081
N(SyntaxKind.
NewKeyword
);
1125
N(SyntaxKind.
NewKeyword
);
Parsing\StatementAttributeParsingTests.cs (5)
3803
N(SyntaxKind.
NewKeyword
);
3877
N(SyntaxKind.
NewKeyword
);
3970
N(SyntaxKind.
NewKeyword
);
5240
N(SyntaxKind.
NewKeyword
);
5318
N(SyntaxKind.
NewKeyword
);
Parsing\StatementParsingTests.cs (4)
4075
N(SyntaxKind.
NewKeyword
);
4134
N(SyntaxKind.
NewKeyword
);
4234
N(SyntaxKind.
NewKeyword
);
4603
N(SyntaxKind.
NewKeyword
);
Parsing\SwitchExpressionParsingTests.cs (1)
430
N(SyntaxKind.
NewKeyword
);
Parsing\TopLevelStatementsParsingTests.cs (2)
1593
N(SyntaxKind.
NewKeyword
);
1849
N(SyntaxKind.
NewKeyword
);
Parsing\TypeArgumentListParsingTests.cs (1)
749
N(SyntaxKind.
NewKeyword
);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
1697
list.Add(SyntaxFactory.Token(SyntaxKind.
NewKeyword
));
CSharpAccessibilityFacts.cs (1)
131
SyntaxKind.
NewKeyword
=> DeclarationModifiers.New,
CSharpIdeCodeStyleOptions.cs (1)
23
SyntaxKind.
NewKeyword
,
CSharpTypeInferenceService.TypeInferrer.cs (1)
429
if (previousToken.Kind() == SyntaxKind.
NewKeyword
&&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
44
case SyntaxKind.
NewKeyword
:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs\SyntaxTreeExtensions.cs (1)
1921
if (token.IsKind(SyntaxKind.
NewKeyword
))
MethodGenerator.cs (1)
318
tokens.Add(SyntaxFactory.Token(SyntaxKind.
NewKeyword
));
SyntaxKindSet.cs (3)
19
SyntaxKind.
NewKeyword
,
36
SyntaxKind.
NewKeyword
,
54
SyntaxKind.
NewKeyword
,
TokenBasedFormattingRule.cs (1)
311
if (previousToken.Kind() == SyntaxKind.
NewKeyword
)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
CodeGeneration\CodeGenerationTests.cs (1)
760
yield return CS.SyntaxFactory.Token(CS.SyntaxKind.
NewKeyword
);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\ModifierFlagsExtensions.cs (2)
26
{ ModifierFlags.New, SyntaxKind.
NewKeyword
},
65
case SyntaxKind.
NewKeyword
: