20 references to GetDeclaration
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2128
var container =
GetDeclaration
(existingNode.Parent);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (14)
CodeGeneration\SyntaxGeneratorTests.cs (13)
3787
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
3788
var declX = Generator.
GetDeclaration
(symbolX.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
3789
var declY = Generator.
GetDeclaration
(symbolY.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
3790
var declZ = Generator.
GetDeclaration
(symbolZ.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
3964
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
3982
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
4003
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
4021
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
4039
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
4057
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
4075
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
4093
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
4111
var declC = Generator.
GetDeclaration
(symbolC.DeclaringSyntaxReferences.Select(x => x.GetSyntax()).First());
Formatting\FormattingElasticTriviaTests.cs (1)
111
var decl = generator.
GetDeclaration
(root.DescendantNodes().OfType<VariableDeclaratorSyntax>().First(vd => vd.Identifier.Text == "f2"));
Microsoft.CodeAnalysis.Features (4)
PullMemberUp\MembersPuller.cs (4)
130
originalMemberEditor.RemoveNode(originalMemberEditor.Generator.
GetDeclaration
(declaration));
231
var declaration = editor.Generator.
GetDeclaration
(eventDeclaration);
341
originalMemberEditor.RemoveNode(originalMemberEditor.Generator.
GetDeclaration
(syntax));
345
var declarationSyntax = originalMemberEditor.Generator.
GetDeclaration
(syntax);
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SymbolEditor.cs (1)
196
.Select(n => SyntaxGenerator.GetGenerator(OriginalSolution.Workspace, n.Language).
GetDeclaration
(n))