Skip to content

Commit

Permalink
PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Mar 14, 2017
1 parent 2a1d047 commit 4136f02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,7 @@ private async Task<IEnumerable<CodeActionOperation>> GetGenerateInNewFileOperati
{
var syntaxFacts = _document.Document.GetLanguageService<ISyntaxFactsService>();
var fileBanner = syntaxFacts.GetFileBanner(_document.Root);

if (fileBanner.Any(syntaxFacts.IsRegularComment))
{
newRoot = newRoot.WithPrependedLeadingTrivia(fileBanner);
}
newRoot = newRoot.WithPrependedLeadingTrivia(fileBanner);
}

return await CreateAddDocumentAndUpdateUsingsOrImportsOperationsAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1029,9 +1029,7 @@ private string GetTypeName(TypeSyntax type)
}

private static string GetSimpleTypeName(SimpleNameSyntax name)
{
return name.Identifier.ValueText;
}
=> name.Identifier.ValueText;

private static string ExpandExplicitInterfaceName(string identifier, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier)
{
Expand Down

0 comments on commit 4136f02

Please sign in to comment.