The place for the VB community to join our collective voice! See https://github.com/CommunityVB/Main for more info.
Dim Braces As (LeftBrace As SyntaxToken, RightBrace As SyntaxToken) = node.Body.GetBraces
Dim CompileResult As (Success As Boolean, EmitResult As EmitResult) = CompileVisualBasicString(TextToCompile, DiagnosticSeverity.Error, _resultOfConversion)
If CompileResult.Success AndAlso CompileResult.EmitResult.Success Then
' In both cases the same Type is returned but I need to know if an error was in the original typeInfo.
If (typeInfo.Type.IsErrorType) Then
Return (PredefinedTypeObject, _Error:=True)
ElseIf SymbolEqualityComparer.Default.Equals(typeInfo.Type, Model.Compilation.ObjectType) Then
Return (PredefinedTypeObject, _Error:=False)
End If
NameOf()
instead.