Skip to content

Commit 739fb75

Browse files
author
slavara
committed
Fix warnings
1 parent 6e19e01 commit 739fb75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PostfixCodeCompletion/Helpers/TemplateUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ internal static string GetDescription(ASResult expr, string template, string pcc
203203
{
204204
var sci = PluginBase.MainForm.CurrentDocument.SciControl;
205205
var position = ScintillaControlHelper.GetDotLeftStartPosition(sci, sci.CurrentPos - 1);
206-
var exprStartPosition = ASGenerator.GetStartOfStatement(sci, sci.CurrentPos, expr);
206+
var exprStartPosition = ASGenerator.GetStartOfStatement(expr);
207207
var lineNum = sci.CurrentLine;
208208
var line = sci.GetLine(lineNum);
209209
var snippet = line.Substring(exprStartPosition - sci.PositionFromLine(lineNum), position - exprStartPosition);
@@ -222,7 +222,7 @@ internal static void InsertSnippetText(ASResult expr, string template, string pc
222222
var position = ScintillaControlHelper.GetDotLeftStartPosition(sci, sci.CurrentPos - 1);
223223
sci.SetSel(position, sci.CurrentPos);
224224
sci.ReplaceSel(string.Empty);
225-
position = ASGenerator.GetStartOfStatement(sci, sci.CurrentPos, expr);
225+
position = ASGenerator.GetStartOfStatement(expr);
226226
sci.SetSel(position, sci.CurrentPos);
227227
var snippet = Regex.Replace(template, string.Format(PatternBlock, pccpattern), sci.SelText, RegexOptions.IgnoreCase | RegexOptions.Multiline);
228228
snippet = ProcessMemberTemplate(snippet, expr);

0 commit comments

Comments
 (0)