53 references to WRN_DefAsgUseNullRef
Microsoft.CodeAnalysis.VisualBasic (3)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1197
warning = If(rwContext = ReadWriteContext.ByRefArgument, ERRID.WRN_DefAsgUseNullRefByRef, ERRID.
WRN_DefAsgUseNullRef
)
Errors\ErrorFacts.vb (1)
1444
ERRID.
WRN_DefAsgUseNullRef
,
Generated\ErrorFacts.Generated.vb (1)
92
ERRID.
WRN_DefAsgUseNullRef
,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
CodeGen\CodeGenTuples.vb (3)
10663
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "ss.I31").WithArguments("I31").WithLocation(38, 34),
10667
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "ss.I2").WithArguments("I2").WithLocation(58, 34))
10983
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "ss.I3").WithArguments("I3").WithLocation(18, 38)
ExpressionTrees\CodeGenExprLambda.vb (2)
4449
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "t3").WithArguments("t3"),
4450
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "t1").WithArguments("t1")})
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (19)
Binding\BindingErrorTests.vb (7)
16012
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "v").WithArguments("v"))
17333
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "jj").WithArguments("jj"),
17355
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "jj").WithArguments("jj"),
17356
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "implicit").WithArguments("implicit"))
23699
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "X").WithArguments("X"))
23770
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "Y").WithArguments("Y"),
23771
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "Z").WithArguments("Z"))
Binding\ImplicitVariableTests.vb (7)
131
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "x").WithArguments("x"),
132
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "Y").WithArguments("y"))
750
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "y").WithArguments("y"),
751
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "x").WithArguments("x"))
777
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "y").WithArguments("y"),
778
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "x").WithArguments("x"),
779
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "z").WithArguments("z"))
Binding\SyncLockTests.vb (2)
184
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "syncroot").WithArguments("syncroot"))
380
</compilation>).VerifyDiagnostics(Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "myLock").WithArguments("myLock"))
Semantics\VariableTypeInference.vb (1)
609
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "x").WithArguments("x"))
Semantics\WithBlockErrorTests.vb (2)
839
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, ".B").WithArguments("B"))
916
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "c").WithArguments("c"))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (26)
Parser\ParseDirectives.vb (26)
2942
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17),
2950
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17),
2957
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17))
2962
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17).WithWarningAsError(True),
2987
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17),
2995
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17),
3002
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17))
3007
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17).WithWarningAsError(True),
3033
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17),
3041
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17))
3047
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17))
3052
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17).WithWarningAsError(True))
3076
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17),
3083
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17),
3090
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17))
3094
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17).WithWarningAsError(True),
3126
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "g").WithArguments("g").WithLocation(13, 17))
3133
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "g").WithArguments("g").WithLocation(13, 17))
3139
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "g").WithArguments("g").WithLocation(13, 17))
3144
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "g").WithArguments("g").WithLocation(13, 17).WithWarningAsError(True))
3257
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17),
3265
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17),
3272
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17))
3277
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(7, 17).WithWarningAsError(True),
3363
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "b").WithArguments("b").WithLocation(6, 17),
3572
Diagnostic(ERRID.
WRN_DefAsgUseNullRef
, "e").WithArguments("e").WithLocation(10, 17),