84 references to ExplicitDefaultValue
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\ParameterSymbol.vb (2)
144
''' The default value can be obtained with the <see cref="
ExplicitDefaultValue
"/> property.
356
Return Me.
ExplicitDefaultValue
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (7)
Emit\NoPiaEmbedTypes.vb (6)
1373
Assert.Equal(34, param.
ExplicitDefaultValue
)
2746
Assert.Equal(New Date(987654321), method.Parameters(0).
ExplicitDefaultValue
)
2799
Assert.Equal(39614081275578912866186559485D, method.Parameters(0).
ExplicitDefaultValue
)
2801
Assert.Equal(79228162495817593528424333315D, method.Parameters(0).
ExplicitDefaultValue
)
4269
Dim tmp = p.
ExplicitDefaultValue
4341
Dim tmp = p.
ExplicitDefaultValue
Emit\OptionalArgumentsTests.vb (1)
1006
Assert.Equal(expectedDefault, parameter.
ExplicitDefaultValue
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (64)
Semantics\OptionalArgumentTests.vb (64)
2162
Assert.Equal("a"c, Bug619347.Parameters(0).
ExplicitDefaultValue
)
2163
Assert.IsType(Of Char)(Bug619347.Parameters(0).
ExplicitDefaultValue
)
2164
Assert.Equal(2L, Bug623122.Parameters(0).
ExplicitDefaultValue
)
2165
Assert.IsType(Of Long)(Bug623122.Parameters(0).
ExplicitDefaultValue
)
2209
Assert.Throws(Of InvalidOperationException)(Function() parameters(0).
ExplicitDefaultValue
)
2215
Assert.Equal(0, parameters(1).
ExplicitDefaultValue
)
2221
Assert.Equal(1, parameters(2).
ExplicitDefaultValue
)
2229
Assert.Throws(Of InvalidOperationException)(Function() parameters(4).
ExplicitDefaultValue
)
2235
Assert.Throws(Of InvalidOperationException)(Function() parameters(5).
ExplicitDefaultValue
)
2242
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2248
Assert.Throws(Of InvalidOperationException)(Function() parameters(6).
ExplicitDefaultValue
)
2254
Assert.Throws(Of InvalidOperationException)(Function() parameters(7).
ExplicitDefaultValue
)
2260
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2266
Assert.Throws(Of InvalidOperationException)(Function() parameters(6).
ExplicitDefaultValue
)
2272
Assert.Throws(Of InvalidOperationException)(Function() parameters(7).
ExplicitDefaultValue
)
2321
Assert.Throws(Of InvalidOperationException)(Function() parameters(0).
ExplicitDefaultValue
)
2326
Assert.Null(parameters(1).
ExplicitDefaultValue
)
2334
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2341
Assert.Throws(Of InvalidOperationException)(Function() parameters(2).
ExplicitDefaultValue
)
2347
Assert.Throws(Of InvalidOperationException)(Function() parameters(4).
ExplicitDefaultValue
)
2353
Assert.Throws(Of InvalidOperationException)(Function() parameters(2).
ExplicitDefaultValue
)
2359
Assert.Throws(Of InvalidOperationException)(Function() parameters(4).
ExplicitDefaultValue
)
2409
Assert.Throws(Of InvalidOperationException)(Function() parameters(0).
ExplicitDefaultValue
)
2415
Assert.Null(parameters(1).
ExplicitDefaultValue
)
2421
Assert.Equal("A", parameters(2).
ExplicitDefaultValue
)
2429
Assert.Throws(Of InvalidOperationException)(Function() parameters(4).
ExplicitDefaultValue
)
2435
Assert.Throws(Of InvalidOperationException)(Function() parameters(5).
ExplicitDefaultValue
)
2442
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2448
Assert.Throws(Of InvalidOperationException)(Function() parameters(6).
ExplicitDefaultValue
)
2454
Assert.Throws(Of InvalidOperationException)(Function() parameters(7).
ExplicitDefaultValue
)
2460
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2466
Assert.Throws(Of InvalidOperationException)(Function() parameters(6).
ExplicitDefaultValue
)
2472
Assert.Throws(Of InvalidOperationException)(Function() parameters(7).
ExplicitDefaultValue
)
2534
Assert.Throws(Of InvalidOperationException)(Function() parameters(0).
ExplicitDefaultValue
)
2540
Assert.Equal(decimalZero, parameters(1).
ExplicitDefaultValue
)
2546
Assert.Equal(decimalOne, parameters(2).
ExplicitDefaultValue
)
2554
Assert.Throws(Of InvalidOperationException)(Function() parameters(4).
ExplicitDefaultValue
)
2560
Assert.Throws(Of InvalidOperationException)(Function() parameters(5).
ExplicitDefaultValue
)
2570
Assert.Throws(Of InvalidOperationException)(Function() parameters(8).
ExplicitDefaultValue
)
2576
Assert.Throws(Of InvalidOperationException)(Function() parameters(9).
ExplicitDefaultValue
)
2583
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2589
Assert.Throws(Of InvalidOperationException)(Function() parameters(6).
ExplicitDefaultValue
)
2595
Assert.Throws(Of InvalidOperationException)(Function() parameters(7).
ExplicitDefaultValue
)
2601
Assert.Throws(Of InvalidOperationException)(Function() parameters(10).
ExplicitDefaultValue
)
2607
Assert.Throws(Of InvalidOperationException)(Function() parameters(11).
ExplicitDefaultValue
)
2613
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2619
Assert.Throws(Of InvalidOperationException)(Function() parameters(6).
ExplicitDefaultValue
)
2625
Assert.Throws(Of InvalidOperationException)(Function() parameters(7).
ExplicitDefaultValue
)
2631
Assert.Equal(decimalZero, parameters(10).
ExplicitDefaultValue
)
2637
Assert.Equal(decimalOne, parameters(11).
ExplicitDefaultValue
)
2696
Assert.Throws(Of InvalidOperationException)(Function() parameters(0).
ExplicitDefaultValue
)
2702
Assert.Equal(dateTimeZero, parameters(1).
ExplicitDefaultValue
)
2708
Assert.Equal(dateTimeOther, parameters(2).
ExplicitDefaultValue
)
2716
Assert.Throws(Of InvalidOperationException)(Function() parameters(4).
ExplicitDefaultValue
)
2724
Assert.Throws(Of InvalidOperationException)(Function() parameters(6).
ExplicitDefaultValue
)
2730
Assert.Throws(Of InvalidOperationException)(Function() parameters(7).
ExplicitDefaultValue
)
2737
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2743
Assert.Throws(Of InvalidOperationException)(Function() parameters(5).
ExplicitDefaultValue
)
2749
Assert.Throws(Of InvalidOperationException)(Function() parameters(8).
ExplicitDefaultValue
)
2755
Assert.Throws(Of InvalidOperationException)(Function() parameters(9).
ExplicitDefaultValue
)
2761
Assert.Throws(Of InvalidOperationException)(Function() parameters(3).
ExplicitDefaultValue
)
2767
Assert.Throws(Of InvalidOperationException)(Function() parameters(5).
ExplicitDefaultValue
)
2773
Assert.Equal(dateTimeZero, parameters(8).
ExplicitDefaultValue
)
2779
Assert.Equal(dateTimeOne, parameters(9).
ExplicitDefaultValue
)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (11)
SymbolsTests\Metadata\PE\LoadingAttributes.vb (6)
1412
Assert.Equal(m1Parameters(0).
ExplicitDefaultValue
, CDec(-7))
1416
Assert.Equal(m1Parameters(1).
ExplicitDefaultValue
, #1/1/2013#)
1539
Assert.Equal(m1Parameters(0).
ExplicitDefaultValue
, CDec(-7))
1542
Assert.Equal(m1Parameters(1).
ExplicitDefaultValue
, #1/1/2013#)
1569
Assert.Equal(m1Parameters(0).
ExplicitDefaultValue
, CDec(-7))
1572
Assert.Equal(m1Parameters(1).
ExplicitDefaultValue
, #1/1/2013#)
SymbolsTests\Metadata\PE\LoadingMethods.vb (3)
860
Assert.Equal(#11/4/2008#, CType(gooMethod, PEMethodSymbol).Parameters(0).
ExplicitDefaultValue
)
861
Assert.Equal(1.234D, CType(gooMethod, PEMethodSymbol).Parameters(1).
ExplicitDefaultValue
)
862
Assert.Equal(23.42D, CType(gooMethod, PEMethodSymbol).Parameters(2).
ExplicitDefaultValue
)
SymbolsTests\Source\ComClassTests.vb (1)
169
Dim value = p.
ExplicitDefaultValue
SymbolsTests\Source\PropertyTests.vb (1)
848
Assert.Equal(P1s.ElementAt(0).Parameters(1).
ExplicitDefaultValue
, String.Empty)