AdamSpeight2008 / roslyn-AdamSpeight2008

The .NET Compiler Platform ("Roslyn") provides open-source C# and Visual Basic compilers with rich code analysis APIs.
MIT License
0 stars 0 forks source link

Alternative Approach. #11

Closed AdamSpeight2008 closed 7 years ago

AdamSpeight2008 commented 8 years ago

Modified ParameterSymbol.vb to

        ''' <summary>
        ''' Returns the default value of this parameter. If <see cref="HasExplicitDefaultValue"/>
        ''' returns false, then this property throws an InvalidOperationException.
        ''' </summary>
        Public ReadOnly Property ExplicitDefaultValue As Object
            Get
                If HasExplicitDefaultValue Then
                    Return ExplicitDefaultConstantValue.Value
                End If
                Return ConstantValue.Nothing.Value
                'throw New InvalidOperationException
            End Get
        End Property

Seems to work in the built IDE, yet the unit test have issues with it.