1 write to _state
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
EndConstructGeneration\EndConstructStatementVisitor.vb (1)
30
_state
= state
15 references to _state
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (15)
EndConstructGeneration\EndConstructStatementVisitor.vb (3)
105
Dim boundConstructor =
_state
.SemanticModel.GetDeclaredSymbol(DirectCast(methodBlock.BlockStatement, SubNewStatementSyntax))
107
If boundConstructor.ContainingType.IsDesignerGeneratedTypeWithInitializeComponent(
_state
.SemanticModel.Compilation) Then
169
Return New ReplaceSpanResult(New SnapshotSpan(_subjectBuffer.CurrentSnapshot,
_state
.CaretPosition, 0),
EndConstructGeneration\EndConstructStatementVisitor_CustomEvents.vb (4)
40
Dim type =
_state
.SemanticModel.GetTypeInfo(DirectCast(eventStatement.AsClause, SimpleAsClauseSyntax).Type, Me._cancellationToken)
43
Return {aligningWhitespace & SyntaxFacts.GetText(kind) & "(value As " & type.Type.ToMinimalDisplayString(
_state
.SemanticModel, position, SymbolDisplayFormats.NameFormat) & ")",
49
Dim type = TryCast(
_state
.SemanticModel.GetTypeInfo(DirectCast(eventStatement.AsClause, SimpleAsClauseSyntax).Type, Me._cancellationToken).Type, INamedTypeSymbol)
54
Function(p) p.ToMinimalDisplayString(
_state
.SemanticModel, eventStatement.SpanStart))
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))