Finding usage of a symbol
How to find usage of a symbol (like methods, property, field, variable) in a given syntaxtree across the solution?cheers, :-) deepak
View ArticleExtract Method..." via Roslyn">Using the GUI-Feature "Refactor -> Extract Method..." via Roslyn
Hi!I am working with Syntax Trees and want to automatically capsule a range of Statements (a list of SyntaxNodes) to a new method. If SyntaxNodes are the wrong type to do the task please let me know...
View Articleusing SyntaxRewriter to remove a SyntaxNode from its root
My understanding is we can use SyntaxRewriter is used to alter a SyntaxNode.Can we using SyntaxRewriter to remove a SyntaxNode from its root?cheers, :-) deepak
View ArticleUnable to create extension methods in interactive mode
If you attempt to create an extension method in interactive mode, you'll get a error CS1109: Extension methods must be defined in a top level static class; MyExtensions is a nested class error message....
View ArticleDocumentation not fetched for extension methods
Documentation for extension methods is not fetched. This is because the GetDocumentationForSymbol method on the DocumentationProvider is not called for extension methods. To confirm this issue, type...
View ArticleCan I find the Compilation the Symbol belongs to?
Giving a Symbol variable, Is that possible I can get the Compilation variable the Symbol belong to?Thanks,
View ArticleHow did the Solution.LoadStandAloneProject change from CTP2?
What has changed in the way Solution.LoadStandAloneProject(projectPath) behaves when not in the context of visual studio (msbuild)? Because now the method call returns a project, but it has no...
View ArticleVisual Basic Compiler error BC30420: 'Sub Main' was not found in 'ProjectName'
I am tryng to use Roslyn to compile some vb code. My idea is to see if I can get more that the typical maximun error in vbc but I just get one error:error BC30420: 'Sub Main' was not found in...
View ArticleReplacing block of code
I want to replace if-else statements with switch-case statements. How can this be done using Roslyn? -Ankur
View ArticleRoslyn mi primer programa abierto
Hace 14 años hice un sistema abierto el cual me permitia ajustar el sistema donde el cliente y no tenia que estar compilando los fuentes, pense que eso ya no se podia hacer y ahora con roslyn me di...
View ArticleFind References throws System.AggregateException
methodSymbol.FindReferences(solution) throws the following exception. Not able to find the way out. System.AggregateException was unhandled HResult=-2146233088 Message=One or more errors occurred....
View ArticleNode level in Syntax tree
Hi,Is there a way to find level of nodes/tokens in a Syntax tree?Regards,Ankur
View ArticleRoslyn CTP Licence
Is the Roslyn CPT licence available somewhere except the installer?In particular, is it possible to deliver commercial products that use Roslyn for scripting?
View ArticleRoslyn scripting in Silverlight?
I've been playing with the scripting engine. I've got a really good use case for it in a silverlight application. Is there any planned support for silverlight support? The binaries in the CTP are...
View ArticleFind references
Hi,I used FindReferences to find all references of X. I got back'ReferencedLocation' objects. Some of locations found may be in a different project (same solution) or same project (different code...
View ArticleIs Roslyn alive?
Hello,is there any progress on Roslyn? Is this project alive? What is happening? Please keep us informed.Have a nice dayurza
View ArticleCan AttributeData have a DeclaringSyntaxNode(s) property?
I can use the Symbol.GetAttributes to get AttributeData for a specific attribute on a NamedType Symbol.Then I want to retrieve the source code of that attribute data (not the source code of...
View ArticleDetermine if a field is assigned a value
In a small CodeIssue I'm making with Roslyn, I'm trying to determine if a field is assigned a value in a constructor. I followed the code from the MakeConstCS example, but I ran into a problem. I wrote...
View ArticleHow to pretty-print code in Roslyn completion provider's description window
I'm using Roslyn completion provider to customize intellisense. I want to display some pretty-printed (with different colors for keywords, methods, constants, an so on) multi-line c# code in the...
View ArticleMicrosoft Roslyn Futures
Hello all.Long time no see since last September's CTP.Is Roslyn still in the pipeline? Where is it going?Also I've been checking the available FAQ...
View Article