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