-
Notifications
You must be signed in to change notification settings - Fork 6
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 #75 from robinsedlaczek/development
Merge branch development into master.
- Loading branch information
Showing
60 changed files
with
1,434 additions
and
114 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 |
---|---|---|
|
@@ -242,4 +242,5 @@ ModelManifest.xml | |
.paket/paket.exe | ||
|
||
# FAKE - F# Make | ||
.fake/ | ||
.fake/ | ||
/src/Precompiled |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
19 changes: 19 additions & 0 deletions
19
src/ForceFeedback.Adapters.VisualStudio/CodeBlockOccurrence.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,19 @@ | ||
using Microsoft.CodeAnalysis.CSharp.Syntax; | ||
using ForceFeedback.Core; | ||
using System.Collections.Generic; | ||
|
||
namespace ForceFeedback.Adapters.VisualStudio | ||
{ | ||
internal class CodeBlockOccurrence | ||
{ | ||
public CodeBlockOccurrence(BlockSyntax block, List<IFeedback> feedbacks) | ||
{ | ||
Block = block; | ||
Feedbacks = feedbacks; | ||
} | ||
|
||
public BlockSyntax Block { get; set; } | ||
|
||
public List<IFeedback> Feedbacks { get; set; } | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/ForceFeedback.Adapters.VisualStudio/Extensions/StringExtensions.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,17 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ForceFeedback.Adapters.VisualStudio | ||
{ | ||
public static class StringExtensions | ||
{ | ||
private static readonly HashSet<string> NewLineMarker = new HashSet<string> | ||
{ | ||
"\r\n", "\r", "\n" | ||
}; | ||
|
||
public static bool IsNewLineMarker(this string value) | ||
{ | ||
return value != null && NewLineMarker.Contains(value); | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/ForceFeedback.Adapters.VisualStudio/Extensions/SyntaxNodeExtension.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,33 @@ | ||
using Microsoft.CodeAnalysis; | ||
using Microsoft.CodeAnalysis.CSharp; | ||
|
||
namespace ForceFeedback.Adapters.VisualStudio | ||
{ | ||
public static class SyntaxNodeExtension | ||
{ | ||
public static bool IsSyntaxBlock(this SyntaxNode node) | ||
{ | ||
return node.Kind() == SyntaxKind.Block; | ||
} | ||
|
||
public static bool IsMethod(this SyntaxNode node) | ||
{ | ||
return node.Kind() == SyntaxKind.MethodDeclaration; | ||
} | ||
|
||
public static bool IsConstructor(this SyntaxNode node) | ||
{ | ||
return node.Kind() == SyntaxKind.ConstructorDeclaration; | ||
} | ||
|
||
public static bool IsSetter(this SyntaxNode node) | ||
{ | ||
return node.Kind() == SyntaxKind.SetAccessorDeclaration; | ||
} | ||
|
||
public static bool IsGetter(this SyntaxNode node) | ||
{ | ||
return node.Kind() == SyntaxKind.GetAccessorDeclaration; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/ForceFeedback.Adapters.VisualStudio/ForceFeedback.Adapters.VisualStudio.csproj
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,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net472</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.9.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="2.9.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.EditorFeatures" Version="2.8.2" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.EditorFeatures.Text" Version="2.9.0" /> | ||
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="2.9.0" /> | ||
<PackageReference Include="Microsoft.VisualStudio.Text.UI.Wpf" Version="16.0.467" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\ForceFeedback.Core\ForceFeedback.Core.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
Oops, something went wrong.