提交 475f6d7c 编写于 作者: J Jared Parsons

Fix up misaligned comments

This fixes up the misaligned comments that came from the formatting bug
described in #1177.

closes #1140
上级 411d3ade
......@@ -86,8 +86,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
End If
Case BoundKind.DimStatement
' Don't report anything, warnings will be reported when
' declarations inside this Dim statement are processed
' Don't report anything, warnings will be reported when
' declarations inside this Dim statement are processed
Case Else
' TODO: uncomment the following line
......
......@@ -156,7 +156,7 @@ lAgain:
SyntaxKind.EventStatement,
SyntaxKind.FieldDeclaration,
SyntaxKind.EnumMemberDeclaration
' Do nothing, the comment is properly located
' Do nothing, the comment is properly located
Case SyntaxKind.AttributeList
parent = parent.Parent
......
......@@ -467,7 +467,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
SyntaxKind.ClassBlock,
SyntaxKind.StructureBlock,
SyntaxKind.InterfaceBlock
' should be processed already
' should be processed already
Case Else
Dim typeDecl = TryCast(Visit(member), SingleTypeDeclaration)
......
......@@ -118,7 +118,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
' Merge and add the namespaces
Select Case childNamespaces.Count
Case 0
' Do nothing
' Do nothing
Case 1
' Add a single element
result.Add(MergedNamespaceDeclaration.Create(childNamespaces))
......
......@@ -149,7 +149,7 @@ lSelect:
If expression IsNot Nothing Then
Return Visit(expression)
End If
' Otherwise fall through and generate an error
' Otherwise fall through and generate an error
Case BoundKind.ExpressionStatement
Return Visit((DirectCast(stmt, BoundExpressionStatement)).Expression)
......
......@@ -30,7 +30,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
Return MyBase.ProcessSyntax(node)
End If
' multi-line if handled after select
' multi-line if handled after select
Case SyntaxKind.ElseIfStatement
' ElseIf ends the context. This is an error case. Let the outer context process them.
......
......@@ -69,7 +69,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
Dim token = Parser.CurrentToken
Select Case token.Kind
Case SyntaxKind.StatementTerminatorToken, SyntaxKind.EndOfFileToken
' A single-line lambda is terminated at the end of the line.
' A single-line lambda is terminated at the end of the line.
Case SyntaxKind.ColonToken
' A single-line sub with multiple statements. Report ERR_SubRequiresSingleStatement
......
......@@ -123,10 +123,10 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Syntax.InternalSyntax
blockKeyword = DirectCast(CurrentToken, KeywordSyntax)
GetNextToken()
' The pretty lister is expected to turn Exit statements
' that don
' statements that do. That requires identifying this
' condition during parsing and correcting the parse trees.
' The pretty lister is expected to turn Exit statements
' that don
' statements that do. That requires identifying this
' condition during parsing and correcting the parse trees.
Case SyntaxKind.SubKeyword
' Error message moved to context
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册