Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into ResolveParameterlessDefaultMemberAccesses
- Loading branch information
Showing
11 changed files
with
160 additions
and
2,593 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 |
---|---|---|
|
@@ -189,3 +189,4 @@ Rubberduck.CodeAnalysis.xml | |
|
||
#Gradle | ||
/.gradle/ | ||
/Rubberduck.CodeAnalysis/Rubberduck.CodeAnalysis.xml |
203 changes: 102 additions & 101 deletions
203
Rubberduck.CodeAnalysis/Properties/CodeInspectionDefaults.Designer.cs
Large diffs are not rendered by default.
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
2,468 changes: 0 additions & 2,468 deletions
2,468
Rubberduck.CodeAnalysis/Rubberduck.CodeAnalysis.xml
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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Rubberduck.Parsing.Grammar; | ||
using Rubberduck.VBEditor; | ||
|
||
namespace Rubberduck.Parsing.Annotations | ||
{ | ||
public sealed class ExcelHotKeyAnnotation : FlexibleAttributeValueAnnotationBase | ||
{ | ||
public ExcelHotKeyAnnotation(QualifiedSelection qualifiedSelection, VBAParser.AnnotationContext context, IEnumerable<string> annotationParameterValues) : | ||
base(AnnotationType.ExcelHotKey, qualifiedSelection, context, GetHotKeyAttributeValue(annotationParameterValues)) | ||
{ } | ||
|
||
private static IEnumerable<string> GetHotKeyAttributeValue(IEnumerable<string> parameters) => | ||
parameters.Take(1).Select(StripStringLiteralQuotes).Select(v => @"""" + v[0] + @"\n14""").ToList(); | ||
|
||
private static string StripStringLiteralQuotes(string value) => | ||
value.StartsWith("\"") && value.EndsWith("\"") && value.Length > 2 | ||
? value.Substring(1, value.Length - 2) | ||
: 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
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