KirillOsenkov / RoslynQuoter

Roslyn tool that for a given C# program shows syntax tree API calls to construct its syntax tree
http://roslynquoter.azurewebsites.net
Apache License 2.0
922 stars 118 forks source link

[Question] What are requirements to analyzed code? #7

Closed aensidhe closed 8 years ago

aensidhe commented 8 years ago

Hi.

I tried a couple of classes from our current generator (T4 template) and Quoter.exe build from last sources is crashing with long exception (log attached). I can give you sample code, but not in public isue tracker.

Thank you. Log.txt

WillSullivan commented 8 years ago

Look at the error-The type or namespace name 'AttributeSingletonListSyntax' could not be found

Your code referenced code that doesn't exist in the framework and is not included in what you pasted into the quoter. How can the quoter handle that?

You can replace references with stubs in the pasted code and reverse engineer the result to include actual references.

Basically, what you paste into the quoter must be able to compile without referencing anything not in the framework, or not provided in what you pasted.

aensidhe commented 8 years ago

Aha, much clearer now. Thank you very much.