Skip to content

Commit bdb6d46

Browse files
committed
Merge branch 'next' of https://github.com/rubberduck-vba/Rubberduck into BugBlipper
2 parents 93fc688 + 50ad916 commit bdb6d46

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

RetailCoder.VBE/Inspections/InspectionsUI.de.resx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<root>
33
<!--
44
Microsoft ResX Schema
@@ -59,7 +59,7 @@
5959
: using a System.ComponentModel.TypeConverter
6060
: and then encoded with base64 encoding.
6161
-->
62-
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
6363
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
6464
<xsd:element name="root" msdata:IsDataSet="true">
6565
<xsd:complexType>
@@ -453,7 +453,7 @@
453453
<value>Übergebe Parameter als Wert</value>
454454
</data>
455455
<data name="QuickFixUseTypedFunction_" xml:space="preserve">
456-
<value>Ändere '{0}$' zu '{0}'</value>
456+
<value>Ändere '{0}' zu '{1}'</value>
457457
</data>
458458
<data name="QuickFix_ThisModule" xml:space="preserve">
459459
<value>Verarbeite alle Vorkommen im Modul</value>
@@ -521,4 +521,4 @@
521521
<data name="ObjectVariableNotSetInspectionName" xml:space="preserve">
522522
<value>Zuweisung in eine Objektvariable benötigt das 'Set'-Schlüsselwort.</value>
523523
</data>
524-
</root>
524+
</root>

RetailCoder.VBE/Inspections/InspectionsUI.resx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<root>
33
<!--
44
Microsoft ResX Schema
@@ -59,7 +59,7 @@
5959
: using a System.ComponentModel.TypeConverter
6060
: and then encoded with base64 encoding.
6161
-->
62-
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root">
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
6363
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
6464
<xsd:element name="root" msdata:IsDataSet="true">
6565
<xsd:complexType>
@@ -453,7 +453,7 @@
453453
<value>Pass parameter by value</value>
454454
</data>
455455
<data name="QuickFixUseTypedFunction_" xml:space="preserve">
456-
<value>Change '{0}' to '{0}$'</value>
456+
<value>Change '{0}' to '{1}'</value>
457457
</data>
458458
<data name="QuickFix_ThisModule" xml:space="preserve">
459459
<value>Fix all occurrences in module</value>
@@ -522,4 +522,4 @@
522522
<data name="ObjectVariableNotSetInspectionName" xml:space="preserve">
523523
<value>Object variable assignment requires 'Set' keyword</value>
524524
</data>
525-
</root>
525+
</root>

RetailCoder.VBE/Inspections/UntypedFunctionUsageInspectionResult.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override string Description
3434
public class UntypedFunctionUsageQuickFix : CodeInspectionQuickFix
3535
{
3636
public UntypedFunctionUsageQuickFix(ParserRuleContext context, QualifiedSelection selection)
37-
: base(context, selection, string.Format(InspectionsUI.QuickFixUseTypedFunction_, context.GetText()))
37+
: base(context, selection, string.Format(InspectionsUI.QuickFixUseTypedFunction_, context.GetText(), context.GetText() + "$"))
3838
{
3939
}
4040

@@ -49,6 +49,7 @@ public override void Fix()
4949

5050
var result = lines.Replace(originalInstruction, newInstruction);
5151
module.ReplaceLine(selection.StartLine, result);
52+
// FIXME trigger reparse
5253
}
5354
}
5455
}

RetailCoder.VBE/UI/FindSymbol/FindSymbolViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public class FindSymbolViewModel : INotifyPropertyChanged
1515
private static readonly DeclarationType[] ExcludedTypes =
1616
{
1717
DeclarationType.Control,
18-
DeclarationType.ModuleOption
18+
DeclarationType.ModuleOption,
19+
DeclarationType.Project
1920
};
2021

2122
public FindSymbolViewModel(IEnumerable<Declaration> declarations, DeclarationIconCache cache)

Rubberduck.Parsing/Symbols/ReferencedDeclarationsCollector.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,14 @@ public IEnumerable<Declaration> GetDeclarationsForReference(Reference reference)
186186
{
187187
moduleDeclaration = new ProceduralModuleDeclaration(typeQualifiedMemberName, projectDeclaration, typeName, true, new List<IAnnotation>(), attributes);
188188
}
189-
else
189+
else if (typeDeclarationType == DeclarationType.ClassModule)
190190
{
191191
moduleDeclaration = new ClassModuleDeclaration(typeQualifiedMemberName, projectDeclaration, typeName, true, new List<IAnnotation>(), attributes, isExposed: true);
192192
}
193+
else
194+
{
195+
moduleDeclaration = new Declaration(typeQualifiedMemberName, projectDeclaration, projectDeclaration, typeName, false, false, Accessibility.Global, typeDeclarationType, null, Selection.Home, true, null, attributes);
196+
}
193197
yield return moduleDeclaration;
194198

195199
for (var memberIndex = 0; memberIndex < typeAttributes.cFuncs; memberIndex++)

0 commit comments

Comments
 (0)