Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
![Rubberduck](http://i.stack.imgur.com/vmqXM.png)
<img src="http://i.stack.imgur.com/vmqXM.png" width="320" />

| Branch | Build Status |
|------------|--------------|
| **master** | ![master branch build status][masterBuildStatus] |
| **next** | ![next branch build status][nextBuildStatus] |
Branch | Description | Build Status |
|------------|---|--------------|
| **master** | The last released build | ![master branch build status][masterBuildStatus] |
| **next** | The current build (dev) | ![next branch build status][nextBuildStatus] |

[nextBuildStatus]:https://ci.appveyor.com/api/projects/status/we3pdnkeebo4nlck/branch/next?svg=true
[masterBuildStatus]:https://ci.appveyor.com/api/projects/status/we3pdnkeebo4nlck/branch/master?svg=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ public UntypedFunctionUsageInspection(RubberduckParserState state)
public override IEnumerable<InspectionResultBase> GetInspectionResults()
{
var declarations = BuiltInDeclarations
// note: these *should* be functions, but somehow they're not defined as such
.Where(item =>
_tokens.Any(token => item.IdentifierName == token || item.IdentifierName == "_B_var_" + token) &&
item.References.Any(reference => _tokens.Contains(reference.IdentifierName)));
item.Scope.StartsWith("VBE7.DLL;"));

return declarations.SelectMany(declaration => declaration.References
.Where(item => _tokens.Contains(item.IdentifierName))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ public override void Fix()
var module = Selection.QualifiedName.Component.CodeModule;
var lines = module.Lines[selection.StartLine, selection.LineCount];

var result = lines.Replace(originalInstruction, newInstruction);
var result = lines.Remove(Context.Start.Column, originalInstruction.Length)
.Insert(Context.Start.Column, newInstruction);
module.ReplaceLine(selection.StartLine, result);
}

Expand Down
1 change: 1 addition & 0 deletions Rubberduck.Parsing/Rubberduck.Parsing.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
<Compile Include="Symbols\CommentNode.cs" />
<Compile Include="Symbols\ComParameter.cs" />
<Compile Include="Symbols\DebugDeclarations.cs" />
<Compile Include="Symbols\AliasDeclarations.cs" />
<Compile Include="Symbols\FormEventDeclarations.cs" />
<Compile Include="Symbols\ICustomDelarationLoader.cs" />
<Compile Include="Symbols\Identifier.cs" />
Expand Down
Loading