6 references to SemanticModel
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (6)
EndConstructGeneration\EndConstructStatementVisitor.vb (2)
105
Dim boundConstructor = _state.
SemanticModel
.GetDeclaredSymbol(DirectCast(methodBlock.BlockStatement, SubNewStatementSyntax))
107
If boundConstructor.ContainingType.IsDesignerGeneratedTypeWithInitializeComponent(_state.
SemanticModel
.Compilation) Then
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))