Skip to content

Commit ac1aece

Browse files
authored
Merge branch 'next' into next
2 parents 95a16a8 + b6c84b2 commit ac1aece

File tree

10 files changed

+272
-222
lines changed

10 files changed

+272
-222
lines changed

RetailCoder.VBE/API/ParserState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void Initialize(VBE vbe)
7373
Func<IVBAPreprocessor> preprocessorFactory = () => new VBAPreprocessor(double.Parse(vbe.Version, CultureInfo.InvariantCulture));
7474
_attributeParser = new AttributeParser(new ModuleExporter(), preprocessorFactory);
7575
_parser = new RubberduckParser(vbe, _state, _attributeParser, preprocessorFactory,
76-
new List<ICustomDeclarationLoader> { new DebugDeclarations(_state), new FormEventDeclarations(_state), new AliasDeclarations(_state) });
76+
new List<ICustomDeclarationLoader> { new DebugDeclarations(_state), new SpecialFormDeclarations(_state), new FormEventDeclarations(_state), new AliasDeclarations(_state) });
7777
}
7878

7979
/// <summary>

RetailCoder.VBE/Inspections/InspectionsUI.Designer.cs

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/Inspections/InspectionsUI.de.resx

Lines changed: 20 additions & 20 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>
@@ -333,7 +333,7 @@ Falls der Parameter 'null' sein kann, bitte dieses Auftreten ignorieren. 'null'
333333
<value>Variable wurde deklariert aber nie genutzt.</value>
334334
</data>
335335
<data name="VariableNotUsedInspectionMeta" xml:space="preserve">
336-
<value>Eine Variable wurde deklariert und hat eine Wert-/Referenzzuweisung erhalten, allerdings wird diese Variable nicht weitergenutzt.</value>
336+
<value>Eine Variable wurde deklariert, allerdings wird diese Variable nicht weitergenutzt.</value>
337337
</data>
338338
<data name="VariableNotUsedInspectionName" xml:space="preserve">
339339
<value>Die Variable wird nicht referenziert.</value>
@@ -564,31 +564,31 @@ Falls der Parameter 'null' sein kann, bitte dieses Auftreten ignorieren. 'null'
564564
<data name="MalformedAnnotationInspectionMeta" xml:space="preserve">
565565
<value>Eine Annotation in einem Kommentar konnte nicht gelesen werden.</value>
566566
</data>
567-
<data name="IntroduceLocalVariableQuickFix">
568-
<value>Introduce local variable</value>
567+
<data name="IntroduceLocalVariableQuickFix" xml:space="preserve">
568+
<value>Lokale Variable einführen</value>
569569
</data>
570-
<data name="UndeclaredVariableInspectionMeta">
571-
<value>Code that uses undeclared variables does not compile when Option Explicit is specified. Undeclared variables are always Variant, a data type that incurs unnecessary overhead and storage.</value>
570+
<data name="UndeclaredVariableInspectionMeta" xml:space="preserve">
571+
<value>Code, der undeklarierte Variablen verwendet, kompiliert nicht wenn 'Option Explicit' spezifiziert wird. Undeklarierte Variablen sind immer vom Typ 'Variant', was unnötige Zusatzkosten in Ausführungszeit und Speicherverbauch verursacht.</value>
572572
</data>
573-
<data name="WriteOnlyPropertyQuickFix">
573+
<data name="WriteOnlyPropertyQuickFix" xml:space="preserve">
574574
<value>Add property get</value>
575575
</data>
576-
<data name="ModuleScopeDimKeywordInspectionMeta">
577-
<value>The 'Public' keyword can only be used at module level; its counterpart 'Private' can also only be used at module level. 'Dim' however, can be used to declare both procedure and module scope variables. For consistency, it would be preferable to reserve 'Dim' for locals, and thus to use 'Private' instead of 'Dim' at module level.</value>
576+
<data name="ModuleScopeDimKeywordInspectionMeta" xml:space="preserve">
577+
<value>Das Schlüsselwort 'Public' kann nur auf Modulebene verwendet werden; Sein Konterpart 'Private' kann auch nur auf Modulebene verwendet werden. 'Dim' jedoch kann verwendet werden, um sowohl modulweite als auch prozedurweite Variablen zu deklarieren. Um der Konsistenz Willen ist es besser, 'Dim' nur für lokale Variablen zu verwenden, also 'Private' statt 'Dim' auf Modulebene zu verwenden.</value>
578578
</data>
579-
<data name="ChangeDimToPrivateQuickFix">
580-
<value>Replace 'Dim' with 'Private'</value>
579+
<data name="ChangeDimToPrivateQuickFix" xml:space="preserve">
580+
<value>'Dim' durch 'Private' ersetzen</value>
581581
</data>
582-
<data name="UndeclaredVariableInspectionName">
583-
<value>Undeclared variable</value>
582+
<data name="UndeclaredVariableInspectionName" xml:space="preserve">
583+
<value>Nicht deklarierte Variable</value>
584584
</data>
585-
<data name="ModuleScopeDimKeywordInspectionName">
586-
<value>Use of 'Dim' keyword at module level</value>
585+
<data name="ModuleScopeDimKeywordInspectionName" xml:space="preserve">
586+
<value>Verwendung von 'Dim' auf Modulebene</value>
587587
</data>
588-
<data name="UndeclaredVariableInspectionResultFormat">
589-
<value>Local variable '{0}' is not declared</value>
588+
<data name="UndeclaredVariableInspectionResultFormat" xml:space="preserve">
589+
<value>Die lokale Variable '{0}' wurde nicht deklariert</value>
590590
</data>
591-
<data name="ModuleScopeDimKeywordInspectionResultFormat">
592-
<value>Module-level variable '{0}' is declared with the 'Dim' keyword.</value>
591+
<data name="ModuleScopeDimKeywordInspectionResultFormat" xml:space="preserve">
592+
<value>Die Modulvariable '{0}' ist mit dem 'Dim'-Schlüsselwort deklariert.</value>
593593
</data>
594594
</root>

RetailCoder.VBE/Inspections/InspectionsUI.fr.resx

Lines changed: 8 additions & 8 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>
@@ -329,7 +329,7 @@
329329
<value>Une variable est déclarée, mais pas assignée</value>
330330
</data>
331331
<data name="VariableNotUsedInspectionMeta" xml:space="preserve">
332-
<value>Une variable est déclarée, une valeur ou référence y est assignée, mais rien n'y réfère.</value>
332+
<value>Une variable est déclarée, mais rien n'y réfère.</value>
333333
</data>
334334
<data name="VariableNotUsedInspectionName" xml:space="preserve">
335335
<value>La variable n'est pas utilisée</value>
@@ -580,16 +580,16 @@ Si le paramètre peut être nul, ignorer ce résultat; passer une valeur nulle
580580
<value>La variable locale '{0}' n'est pas déclarée</value>
581581
<comment>{0} variable name</comment>
582582
</data>
583-
<data name="WriteOnlyPropertyQuickFix">
583+
<data name="WriteOnlyPropertyQuickFix" xml:space="preserve">
584584
<value>Ajouter un accesseur 'Property Get'</value>
585585
</data>
586-
<data name="MalformedAnnotationInspectionName">
586+
<data name="MalformedAnnotationInspectionName" xml:space="preserve">
587587
<value>Annotation incorrecte</value>
588588
</data>
589-
<data name="MalformedAnnotationInspectionResultFormat">
589+
<data name="MalformedAnnotationInspectionResultFormat" xml:space="preserve">
590590
<value>Annotation '{0}' incorrecte.</value>
591591
</data>
592-
<data name="MalformedAnnotationInspectionMeta">
592+
<data name="MalformedAnnotationInspectionMeta" xml:space="preserve">
593593
<value>Un commentaire contient une annotation spécifiée incorrectement.</value>
594594
</data>
595-
</root>
595+
</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>
@@ -333,7 +333,7 @@ If the parameter can be null, ignore this inspection result; passing a null valu
333333
<value>Variable is declared but never assigned</value>
334334
</data>
335335
<data name="VariableNotUsedInspectionMeta" xml:space="preserve">
336-
<value>A variable is declared and assigned a value/reference, but it's never referred to.</value>
336+
<value>A variable is declared, but never referred to.</value>
337337
</data>
338338
<data name="VariableNotUsedInspectionName" xml:space="preserve">
339339
<value>Variable is not referred to</value>
@@ -593,4 +593,4 @@ If the parameter can be null, ignore this inspection result; passing a null valu
593593
<data name="IntroduceLocalVariableQuickFix" xml:space="preserve">
594594
<value>Introduce local variable</value>
595595
</data>
596-
</root>
596+
</root>

Rubberduck.Parsing/Rubberduck.Parsing.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
<Compile Include="Preprocessing\VBADateListener.cs" />
130130
<Compile Include="Preprocessing\VBADateParser.cs" />
131131
<Compile Include="Preprocessing\VBADateVisitor.cs" />
132+
<Compile Include="Symbols\SpecialFormDeclarations.cs" />
132133
<Compile Include="Symbols\ComInformation.cs" />
133134
<Compile Include="Symbols\CommentNode.cs" />
134135
<Compile Include="Symbols\ComParameter.cs" />

0 commit comments

Comments
 (0)