提交 edb466dc 编写于 作者: C Cyrus Najmabadi

remove unnecessayr parens

上级 07abb98b
......@@ -395,7 +395,7 @@ private void AddSubmission(ITextBuffer subjectBuffer, string languageName)
private Project CreateSubmissionProject(Solution solution, string languageName, ImmutableArray<string> imports, ImmutableArray<MetadataReference> references)
{
var name = "Submission#" + (_submissionCount++);
var name = "Submission#" + _submissionCount++;
// Grab a local copy so we aren't closing over the field that might change. The
// collection itself is an immutable collection.
......
......@@ -381,7 +381,7 @@ private bool CompareParameters(ParameterSyntax oldParameter, ParameterSyntax new
eventQueue);
// If modifiers have changed enqueue a element changed (unknown change) node
if ((oldField.Kind() != newField.Kind()) ||
if (oldField.Kind() != newField.Kind() ||
!CompareModifiers(oldField, newField))
{
EnqueueChangeEvent(newField, newNodeParent, CodeModelEventType.Unknown, eventQueue);
......@@ -799,7 +799,7 @@ private bool CompareTypes(TypeSyntax oldType, TypeSyntax newType)
var oldArrayType = (ArrayTypeSyntax)oldType;
var newArrayType = (ArrayTypeSyntax)newType;
return (oldArrayType.RankSpecifiers.Count == newArrayType.RankSpecifiers.Count)
return oldArrayType.RankSpecifiers.Count == newArrayType.RankSpecifiers.Count
&& CompareTypes(oldArrayType.ElementType, newArrayType.ElementType);
case SyntaxKind.PointerType:
......
......@@ -86,7 +86,7 @@ public static NormalizedTextSpanCollection Union(NormalizedTextSpanCollection le
var start = -1;
var end = int.MaxValue;
while ((index1 < left.Count) && (index2 < right.Count))
while (index1 < left.Count && index2 < right.Count)
{
var span1 = left[index1];
var span2 = right[index2];
......@@ -154,7 +154,7 @@ public static NormalizedTextSpanCollection Overlap(NormalizedTextSpanCollection
}
var spans = new OrderedSpanList();
for (int index1 = 0, index2 = 0; (index1 < left.Count) && (index2 < right.Count);)
for (int index1 = 0, index2 = 0; index1 < left.Count && index2 < right.Count;)
{
var span1 = left[index1];
var span2 = right[index2];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册