Skip to content

Commit 201d3e6

Browse files
author
SlavaRa
authored
Update Reflector.cs
1 parent 2634e69 commit 201d3e6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

PostfixCodeCompletion/Helpers/Reflector.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal ListBox CompletionList
2525
get
2626
{
2727
var fieldInfo = typeof(CompletionList).GetField("completionList", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static);
28-
Debug.Assert(fieldInfo != null, "fieldInfo != null");
28+
Debug.Assert(fieldInfo != null, "fieldInfo is null");
2929
return (ListBox) fieldInfo.GetValue(typeof(ListBox));
3030
}
3131
}
@@ -35,7 +35,7 @@ internal List<ICompletionListItem> AllItems
3535
get
3636
{
3737
var fieldInfo = typeof(CompletionList).GetField("allItems", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static);
38-
Debug.Assert(fieldInfo != null, "fieldInfo != null");
38+
Debug.Assert(fieldInfo != null, "fieldInfo is null");
3939
return (List<ICompletionListItem>) fieldInfo.GetValue(typeof(List<ICompletionListItem>));
4040
}
4141
}
@@ -46,7 +46,7 @@ internal class ASCompleteReflector
4646
internal bool HandleDotCompletion(ScintillaControl sci, bool autoHide)
4747
{
4848
var methodInfo = typeof(ASComplete).GetMethod("HandleDotCompletion", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static);
49-
Debug.Assert(methodInfo != null, "methodInfo != null");
49+
Debug.Assert(methodInfo != null, "methodInfo is null");
5050
return (bool) methodInfo.Invoke(null, new object[] {sci, autoHide});
5151
}
5252
}
@@ -56,7 +56,7 @@ internal class ASGeneratorReflector
5656
internal string CleanType(string type)
5757
{
5858
var methodInfo = typeof(ASGenerator).GetMethod("CleanType", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static);
59-
Debug.Assert(methodInfo != null, "methodInfo != null");
59+
Debug.Assert(methodInfo != null, "methodInfo is null");
6060
return (string) methodInfo.Invoke(null, new object[] {type});
6161
}
6262

@@ -70,7 +70,7 @@ internal string GuessVarName(string name, string type)
7070
internal string GetShortType(string type)
7171
{
7272
var methodInfo = typeof(ASGenerator).GetMethod("GetShortType", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static);
73-
Debug.Assert(methodInfo != null, "methodInfo != null");
73+
Debug.Assert(methodInfo != null, "methodInfo is null");
7474
return (string) methodInfo.Invoke(null, new object[] {type});
7575
}
7676

@@ -84,7 +84,7 @@ internal StatementReturnType GetStatementReturnType(ScintillaControl sci, string
8484
currentClass.InFile.Context = ASContext.GetLanguageContext(language) ?? ASContext.Context;
8585
}
8686
var methodInfo = typeof(ASGenerator).GetMethod("GetStatementReturnType", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Static);
87-
Debug.Assert(methodInfo != null, "methodInfo != null");
87+
Debug.Assert(methodInfo != null, "methodInfo is null");
8888
var returnType = methodInfo.Invoke(null, new object[] {sci, currentClass, line, positionFromLine});
8989
if (returnType == null) return null;
9090
var type = returnType.GetType();
@@ -104,4 +104,4 @@ internal class StatementReturnType
104104
public int Position;
105105
public string Word;
106106
}
107-
}
107+
}

0 commit comments

Comments
 (0)