-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from eNeRGy164/Improve
Improve
- Loading branch information
Showing
24 changed files
with
201 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -263,4 +263,4 @@ paket-files/ | |
*.sln.iml | ||
pub/ | ||
|
||
Properties/launchSettings.json | ||
**/launchSettings.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace LivingDocumentation | ||
{ | ||
public interface IHaveModifiers | ||
{ | ||
List<string> Modifiers { get; } | ||
[JsonProperty(Order = -2)] | ||
Modifier Modifiers { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
namespace LivingDocumentation | ||
using System; | ||
|
||
namespace LivingDocumentation | ||
{ | ||
public static class Modifier | ||
[Flags] | ||
public enum Modifier | ||
{ | ||
public const string Public = "public"; | ||
Internal = 1 << 0, | ||
|
||
public const string Static = "static"; | ||
Public = 1 << 1, | ||
|
||
public const string Internal = "internal"; | ||
Private = 1 << 2, | ||
|
||
public const string Protected = "protected"; | ||
Protected = 1 << 3, | ||
|
||
public const string Abstract = "abstract"; | ||
Static = 1 << 4, | ||
|
||
public const string Private = "private"; | ||
Abstract = 1 << 5, | ||
|
||
public const string Async = "async"; | ||
Override = 1 << 6, | ||
|
||
public const string Override = "override"; | ||
Readonly = 1 << 7, | ||
|
||
public const string Readonly = "readonly"; | ||
Async = 1 << 8, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/LivingDocumentation.Analyzer/Properties/launchSettings.json
This file was deleted.
Oops, something went wrong.
11 changes: 8 additions & 3 deletions
11
src/LivingDocumentation.Descriptions/ConstructorDescription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
src/LivingDocumentation.Descriptions/EnumMemberDescription.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/LivingDocumentation.Descriptions/Json/ConcreteTypeConverter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace LivingDocumentation | ||
{ | ||
internal class ConcreteTypeConverter<TConcrete> : JsonConverter | ||
{ | ||
public override bool CanConvert(Type objectType) | ||
{ | ||
return true; | ||
} | ||
|
||
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) | ||
{ | ||
return serializer.Deserialize<TConcrete>(reader); | ||
} | ||
|
||
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) | ||
{ | ||
serializer.Serialize(writer, value); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.