86 references to BaseFieldDeclarationSyntax
Microsoft.CodeAnalysis.CSharp (18)
Compilation\CSharpSemanticModel.cs (4)
3221internal abstract ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken)); 5168if (declaration is BaseFieldDeclarationSyntax field) 5267var fieldDecl = declaringSyntax.FirstAncestorOrSelf<BaseFieldDeclarationSyntax>();
Compilation\MemberSemanticModel.cs (1)
822internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
370internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SyntaxTreeSemanticModel.cs (4)
910var fieldDecl = (BaseFieldDeclarationSyntax)memberDecl; 1837var field = declarationSyntax.Parent == null ? null : declarationSyntax.Parent.Parent as BaseFieldDeclarationSyntax; 1988internal override ImmutableArray<ISymbol> GetDeclaredSymbols(BaseFieldDeclarationSyntax declarationSyntax, CancellationToken cancellationToken = default(CancellationToken))
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
68node is BaseFieldDeclarationSyntax) //includes EventFieldDeclarationSyntax
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
100var modifiers = ((BaseFieldDeclarationSyntax)declarationSyntax.Parent).Modifiers;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
187var t = (BaseFieldDeclarationSyntax)node;
Symbols\Source\SourceMemberFieldSymbol.cs (4)
406private static BaseFieldDeclarationSyntax GetFieldDeclaration(CSharpSyntaxNode declarator) 408return (BaseFieldDeclarationSyntax)declarator.Parent.Parent; 446var fieldSyntax = GetFieldDeclaration(declarator); 642var fieldDeclaration = GetFieldDeclaration(this.SyntaxNode);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
746BaseFieldDeclarationSyntax; 994case BaseFieldDeclarationSyntax field:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
744BaseFieldDeclarationSyntax fieldDeclaration => Cast<TDeclarationNode>(fieldDeclaration.WithModifiers(computeNewModifiersList(fieldDeclaration.Modifiers))),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (4)
108return Compare((BaseFieldDeclarationSyntax)x, (BaseFieldDeclarationSyntax)y); 169private int Compare(BaseFieldDeclarationSyntax x, BaseFieldDeclarationSyntax y)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
176BaseFieldDeclarationSyntax => SyntaxFactory.ParseCompilationUnit(WrapInType(textToParse), options: (CSharpParseOptions)tree.Options), 297or BaseFieldDeclarationSyntax
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (2)
469BaseFieldDeclarationSyntax baseFieldDeclarationNode => ShouldAddBraceForBaseFieldDeclaration(baseFieldDeclarationNode), 545private static bool ShouldAddBraceForBaseFieldDeclaration(BaseFieldDeclarationSyntax baseFieldDeclarationNode)
Microsoft.CodeAnalysis.CSharp.Features (16)
CodeLens\CSharpCodeLensDisplayInfoService.cs (2)
48var fieldNode = (BaseFieldDeclarationSyntax)node;
Debugging\LocationInfoGetter.cs (1)
42var variableDeclarators = ((BaseFieldDeclarationSyntax)memberDeclaration).Declaration.Variables;
EditAndContinue\BreakpointSpans.cs (2)
271return TryCreateSpanForFieldDeclaration((BaseFieldDeclarationSyntax)node, position); 550private static TextSpan? TryCreateSpanForFieldDeclaration(BaseFieldDeclarationSyntax fieldDeclaration, int position)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (5)
129declarations = new(((BaseFieldDeclarationSyntax)current).Declaration.Variables.First()); 1050if (oldNode is BaseFieldDeclarationSyntax oldField && newNode is BaseFieldDeclarationSyntax newField) 1668var fieldDeclaration = (BaseFieldDeclarationSyntax)node;
EditAndContinue\DeclarationBody\FieldWithInitializerDeclarationBody.cs (2)
27private BaseFieldDeclarationSyntax GetFieldDeclaration() 28=> (BaseFieldDeclarationSyntax)variableDeclarator.Parent!.Parent!;
EditAndContinue\SyntaxUtilities.cs (1)
55VariableDeclaratorSyntax { Parent.Parent: BaseFieldDeclarationSyntax fieldDeclaration, Initializer: { } } variableDeclarator
NavigationBar\CSharpNavigationBarItemService.cs (1)
153BaseFieldDeclarationSyntax or
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
187var t = (BaseFieldDeclarationSyntax)node;
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
CodeGeneration\CSharpSyntaxGenerator.cs (2)
1883BaseFieldDeclarationSyntax baseFieldDeclaration => this.GetName(baseFieldDeclaration.Declaration), 1911BaseFieldDeclarationSyntax fieldDeclaration when fieldDeclaration.Declaration.Variables.Count == 1 =>
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (2)
383var fieldDeclaration = (BaseFieldDeclarationSyntax)node;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
746BaseFieldDeclarationSyntax; 994case BaseFieldDeclarationSyntax field:
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
744BaseFieldDeclarationSyntax fieldDeclaration => Cast<TDeclarationNode>(fieldDeclaration.WithModifiers(computeNewModifiersList(fieldDeclaration.Modifiers))),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (4)
108return Compare((BaseFieldDeclarationSyntax)x, (BaseFieldDeclarationSyntax)y); 169private int Compare(BaseFieldDeclarationSyntax x, BaseFieldDeclarationSyntax y)
Microsoft.ML.InternalCodeAnalyzer (2)
NameAnalyzer.cs (2)
145var node = (BaseFieldDeclarationSyntax)context.Node;
Microsoft.VisualStudio.LanguageServices.CSharp (28)
CodeModel\CSharpCodeModelService.CodeModelEventCollector.cs (9)
254else if (oldMember is BaseFieldDeclarationSyntax baseField) 256return CompareFieldDeclarations(baseField, (BaseFieldDeclarationSyntax)newMember, newNodeParent, eventQueue); 368BaseFieldDeclarationSyntax oldField, 369BaseFieldDeclarationSyntax newField, 859if (node is BaseFieldDeclarationSyntax baseField) 895if (node is BaseFieldDeclarationSyntax baseField) 921if (parent is BaseFieldDeclarationSyntax baseField) 946if (node is BaseFieldDeclarationSyntax baseField) 972if (parent is BaseFieldDeclarationSyntax baseField)
CodeModel\CSharpCodeModelService.cs (14)
115return node.FirstAncestorOrSelf<BaseFieldDeclarationSyntax>() != null; 319else if (parent is BaseFieldDeclarationSyntax baseField) 461if (member is BaseFieldDeclarationSyntax baseField) 571var baseFieldDeclaration = node.FirstAncestorOrSelf<BaseFieldDeclarationSyntax>(); 1113if (node is BaseFieldDeclarationSyntax or 1748if (node.GetAncestor<BaseFieldDeclarationSyntax>() is BaseFieldDeclarationSyntax fieldDeclaration) 2750var fieldDeclaration = node.FirstAncestorOrSelf<BaseFieldDeclarationSyntax>(); 2761var newFieldDeclaration = fieldDeclaration.RemoveNode(node, SyntaxRemoveOptions.KeepNoTrivia); 3177? node.GetAncestors<BaseFieldDeclarationSyntax>().First() 3184return finalNode is BaseFieldDeclarationSyntax 3185? ((BaseFieldDeclarationSyntax)finalNode).Declaration.Variables.Single()
CodeModel\CSharpCodeModelService.NodeLocator.cs (4)
680var field = node.FirstAncestorOrSelf<BaseFieldDeclarationSyntax>(); 1260var field = node.FirstAncestorOrSelf<BaseFieldDeclarationSyntax>();
CodeModel\SyntaxNodeExtensions.cs (1)
36else if (node is BaseFieldDeclarationSyntax baseField)