Skip to content

Commit 8023cd3

Browse files
committed
Merge pull request #973 from SlavaRa/feature/code_cleanup
Remove copy-paste code
2 parents ea1500f + b1518af commit 8023cd3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

External/Plugins/ASCompletion/Completion/ASGenerator.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,10 @@ public static List<ICompletionListItem> ContextualGenerator(ScintillaControl Sci
7979
string text = Sci.GetLine(line);
8080
bool suggestItemDeclaration = false;
8181

82-
if (isNotInterface)
82+
if (isNotInterface && ASComplete.IsLiteralStyle(style))
8383
{
84-
if (style == 4 || style == 6 || style == 7)
85-
{
86-
ShowConvertToConst(found);
87-
return known;
88-
}
84+
ShowConvertToConst(found);
85+
return known;
8986
}
9087

9188
ASResult resolve = ASComplete.GetExpressionType(Sci, Sci.WordEndPosition(position, true));

0 commit comments

Comments
 (0)