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)
171
If Not
_diagnostics
.HasAnyErrors Then
176
Debug.Assert(
_diagnostics
.HasAnyErrors())
193
_builder.EmitToken(_module.Translate(symbol, syntaxNode,
_diagnostics
), syntaxNode,
_diagnostics
)
197
Dim 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,
509
EmitExpression(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)
199
exceptionType = Me._module.Translate(exceptionSource.Type, exceptionSource.Syntax,
_diagnostics
)
202
exceptionType = 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,
1091
Dim privateImplClass = _module.GetPrivateImplClass(syntaxNode,
_diagnostics
)
1102
_builder.EmitToken(stringHashMethodRef, syntaxNode,
_diagnostics
)
1104
Dim UInt32Type = DirectCast(_module.GetSpecialType(SpecialType.System_UInt32, syntaxNode,
_diagnostics
).GetInternalSymbol(), TypeSymbol)
1118
Dim stringCompareMethodRef As Cci.IReference = Me._module.Translate(stringCompareMethod, needDeclaration:=False, syntaxNodeOpt:=syntaxNode, diagnostics:=
_diagnostics
)
1177
_builder.EmitToken(stringCompareMethodRef, syntaxNode,
_diagnostics
)
1259
Dim compileTimeValue As MetadataConstant = _module.CreateConstant(local.Type, local.ConstantValue, syntaxNode,
_diagnostics
)
1275
Dim translatedType = _module.Translate(local.Type, syntaxNodeOpt:=syntaxNode, diagnostics:=
_diagnostics
)
1278
_module.GetFakeSymbolTokenForIL(translatedType, syntaxNode,
_diagnostics
)
1386
Me._module.Translate(type, syntaxNodeOpt:=syntaxNode, diagnostics:=
_diagnostics
),