Skip to content

Commit

Permalink
Add using
Browse files Browse the repository at this point in the history
  • Loading branch information
twsouthwick committed Nov 2, 2021
1 parent 5cdee2f commit 6b51a0d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/PublicApiAnalyzers/Core/Analyzers/PublicApiFile.cs
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information.

using System;
using System.IO;

namespace Microsoft.CodeAnalysis.PublicApiAnalyzers
{
public readonly struct PublicApiFile
{
public PublicApiFile(string path)
{
Path = path;

var fileName = System.IO.Path.GetFileName(path);
var fileName = Path.GetFileName(path);

IsShipping = IsFile(fileName, DeclarePublicApiAnalyzer.ShippedFileNamePrefix);
var isUnshippedFile = IsFile(fileName, DeclarePublicApiAnalyzer.UnshippedFileNamePrefix);

IsApiFile = IsShipping || isUnshippedFile;
}

public string Path { get; }

public bool IsShipping { get; }

public bool IsApiFile { get; }
Expand Down

0 comments on commit 6b51a0d

Please sign in to comment.