Skip to content

Commit

Permalink
#27: Managed debt for Synergy.Documentation library
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinCelej committed May 14, 2023
1 parent b8abff6 commit 535d983
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Documentation/Synergy.Documentation/Code/CodeFile.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
using Synergy.Contracts;
using System.Runtime.CompilerServices;
using Synergy.Contracts;

namespace Synergy.Documentation.Code;

// TODO: Marcin Celej [from: Marcin Celej on: 14-05-2023]: rename to SourceFile

public class CodeFile
{
public static CodeFolder Current([CallerFilePath] string path = "")
=> new(path);

public string FilePath { get; }
public string FileName => Path.GetFileName(this.FilePath);
public string FileNameWithoutExtension => Path.GetFileNameWithoutExtension(this.FilePath);
Expand Down
2 changes: 2 additions & 0 deletions Documentation/Synergy.Documentation/Code/CodeFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Synergy.Documentation.Code;

// TODO: Marcin Celej [from: Marcin Celej on: 14-05-2023]: Rename to SourceFolder

public class CodeFolder
{
public static CodeFolder Current([CallerFilePath] string path = "")
Expand Down

0 comments on commit 535d983

Please sign in to comment.