none
Can't get GetSymbolInfo of an Assert Expression with Roslyn RRS feed

  • Question

  • Hi!

    I have started to work with Roslyn, and I can't deal with a problem.

    I read in a UnitTest .cs file, and parse into a syntax tree with Roslyn. Then, I create the Semantic Model of it, and I would like to get the SymbolInfo (Symbol) of one of my Assert expressions, but I only get empty Info object.

    In case of other expressions (e.g. Console. WriteLine ()) I am able to get the Symbol.

    I have been having struggle with it for a while, and I can't see the reason why it's not working.

    • Moved by Fei Hu Monday, March 19, 2018 7:52 AM Moved from C#
    Saturday, March 17, 2018 7:44 PM

All replies

  • Hi  RolandStumpy,

    For help with Roslyn please ask on the Roslyn’s github page is the best place.

    https://github.com/dotnet/roslyn

    Best Regards,

    Bob


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, March 19, 2018 6:48 AM