Skip to content

Commit

Permalink
Used DeclarationType.ModuleOption to replace string op
Browse files Browse the repository at this point in the history
  • Loading branch information
BZngr committed Mar 8, 2017
1 parent b43d1a6 commit e9050d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rubberduck.Parsing/Symbols/DeclarationFinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ private bool IsPublicInOtherModule(Declaration candidateDeclaration, Declaration
&& (candidateDeclaration.Accessibility == Accessibility.Public
|| (candidateDeclaration.Accessibility == Accessibility.Implicit)
&& (candidateDeclaration.ParentScopeDeclaration is ProceduralModuleDeclaration)
&& !candidateDeclaration.IdentifierName.StartsWith("Option "));
&& !(candidateDeclaration.DeclarationType == DeclarationType.ModuleOption));
}

private bool IsDeclaredWithinMethodOrProperty(RuleContext procedureContextCandidate)
Expand Down
2 changes: 1 addition & 1 deletion RubberduckTests/Symbols/DeclarationFinderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private void SetupSUT(string projectName)

string[] accessibleWithinParentProcedure = { "arg1", "FooBar1", "targetAccessibilityTests", "theSecondArg" };
string[] accessibleModuleScope = { "memberString", "memberLong", "myEggo", "Foo", "FooBar1", "GoMyEggo", "FooFight" };
string[] accessibleGlobalScope = { "CantTouchThis", "BigNumber", "DoSomething", "SetFilename", "ShortStory","THE_FILENAME" };
string[] accessibleGlobalScope = { "CantTouchThis", "BigNumber", "DoSomething", "SetFilename", "ShortStory","THE_FILENAME"};

_accessibilityTests_ProcedureScopeNames = accessibleWithinParentProcedure.ToList();
_accessibilityTests_ModuleScopeNames = accessibleModuleScope.ToList();
Expand Down

0 comments on commit e9050d8

Please sign in to comment.