9 references to NewLineCharacter
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (9)
EndConstructGeneration\EndConstructStatementVisitor_IfStatement.vb (4)
27
Dim endOfLine = SyntaxFactory.EndOfLineTrivia(_state.
NewLineCharacter
)
48
Dim position = If(ifBlock.Statements.Any(), ifBlock.Statements(0).SpanStart, ifBlock.IfStatement.Span.End + _state.
NewLineCharacter
.Length)
62
Return SyntaxFactory.List({DirectCast(SyntaxFactory.EmptyStatement(SyntaxFactory.Token(SyntaxKind.EmptyToken, SyntaxFactory.TriviaList(SyntaxFactory.EndOfLineTrivia(_state.
NewLineCharacter
)))), StatementSyntax)})
105
trailingTrivia.Add(SyntaxFactory.EndOfLineTrivia(_state.
NewLineCharacter
))
EndConstructGeneration\EndConstructStatementVisitor_LambdaHeader.vb (4)
52
newHeader = newHeader.WithTrailingTrivia(SyntaxFactory.EndOfLineTrivia(_state.
NewLineCharacter
))
55
Dim newBody = DirectCast(node.Body, StatementSyntax).WithAppendedTrailingTrivia(SyntaxFactory.EndOfLineTrivia(_state.
NewLineCharacter
))
83
Dim newHeader = node.SubOrFunctionHeader.WithTrailingTrivia(SyntaxFactory.EndOfLineTrivia(_state.
NewLineCharacter
))
88
.WithAppendedTrailingTrivia(SyntaxFactory.EndOfLineTrivia(_state.
NewLineCharacter
))
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
307
edit.Insert(state.CaretPosition, state.
NewLineCharacter
+ aligningWhitespace)