1 write to _diagnostics
Microsoft.CodeAnalysis.VisualBasic (1)
CodeGen\CodeGenerator.vb (1)
64_diagnostics = diagnostics
37 references to _diagnostics
Microsoft.CodeAnalysis.VisualBasic (37)
CodeGen\CodeGenerator.vb (8)
171If Not _diagnostics.HasAnyErrors Then 176Debug.Assert(_diagnostics.HasAnyErrors()) 193_builder.EmitToken(_module.Translate(symbol, syntaxNode, _diagnostics), syntaxNode, _diagnostics) 197Dim methodRef = _module.Translate(symbol, syntaxNode, _diagnostics, needDeclaration:=encodeAsRawDefinitionToken) 198_builder.EmitToken(methodRef, syntaxNode, _diagnostics, If(encodeAsRawDefinitionToken, Cci.MetadataWriter.RawTokenEncoding.RowId, Cci.MetadataWriter.RawTokenEncoding.None)) 202_builder.EmitToken(_module.Translate(symbol, syntaxNode, _diagnostics), syntaxNode, _diagnostics)
CodeGen\EmitAddress.vb (1)
421_builder.EmitArrayElementAddress(_module.Translate(DirectCast(arrayAccess.Expression.Type, ArrayTypeSymbol)), arrayAccess.Syntax, _diagnostics)
CodeGen\EmitArrayInitializer.vb (1)
44_builder.EmitArrayBlockInitializer(Me.GetRawData(initExprs), inits.Syntax, _diagnostics)
CodeGen\EmitConversion.vb (1)
234_diagnostics.Add(New VBDiagnostic(diagnosticInfo, conversion.Syntax.Location))
CodeGen\EmitExpression.vb (11)
68_diagnostics.Add(ERRID.ERR_TooLongOrComplexExpression, 509EmitExpression(expression.EmitExpressions.GetValue(expression, _diagnostics), used) 631_builder.EmitArrayElementLoad(_module.Translate(DirectCast(arrayAccess.Expression.Type, ArrayTypeSymbol)), arrayAccess.Expression.Syntax, _diagnostics) 1612_builder.EmitArrayCreation(_module.Translate(arrayType), expression.Syntax, _diagnostics) 2089_builder.EmitArrayElementStore(_module.Translate(arrayType), syntaxNode, _diagnostics) 2337_builder.EmitToken(_module.GetModuleVersionId(_module.Translate(node.Type, node.Syntax, _diagnostics), node.Syntax, _diagnostics), node.Syntax, _diagnostics) 2356_builder.EmitToken(_module.GetInstrumentationPayloadRoot(node.AnalysisKind, _module.Translate(node.Type, node.Syntax, _diagnostics), node.Syntax, _diagnostics), node.Syntax, _diagnostics)
CodeGen\EmitStatement.vb (15)
199exceptionType = Me._module.Translate(exceptionSource.Type, exceptionSource.Syntax, _diagnostics) 202exceptionType = Me._module.Translate(Me._module.Compilation.GetWellKnownType(WellKnownType.System_Exception), catchBlock.Syntax, _diagnostics) 230_builder.EmitToken(exceptionType, catchBlock.Syntax, _diagnostics) 254_builder.EmitToken(exceptionType, catchBlock.Syntax, _diagnostics) 281_builder.EmitToken(exceptionType, catchBlock.Syntax, _diagnostics) 662_diagnostics.Add(ERRID.ERR_TooLongOrComplexExpression, 1091Dim privateImplClass = _module.GetPrivateImplClass(syntaxNode, _diagnostics) 1102_builder.EmitToken(stringHashMethodRef, syntaxNode, _diagnostics) 1104Dim UInt32Type = DirectCast(_module.GetSpecialType(SpecialType.System_UInt32, syntaxNode, _diagnostics).GetInternalSymbol(), TypeSymbol) 1118Dim stringCompareMethodRef As Cci.IReference = Me._module.Translate(stringCompareMethod, needDeclaration:=False, syntaxNodeOpt:=syntaxNode, diagnostics:=_diagnostics) 1177_builder.EmitToken(stringCompareMethodRef, syntaxNode, _diagnostics) 1259Dim compileTimeValue As MetadataConstant = _module.CreateConstant(local.Type, local.ConstantValue, syntaxNode, _diagnostics) 1275Dim translatedType = _module.Translate(local.Type, syntaxNodeOpt:=syntaxNode, diagnostics:=_diagnostics) 1278_module.GetFakeSymbolTokenForIL(translatedType, syntaxNode, _diagnostics) 1386Me._module.Translate(type, syntaxNodeOpt:=syntaxNode, diagnostics:=_diagnostics),