Hi,
I'm simulating a project by using a global DotNetProjectResolver. By assigning this global DotNetProjectResolver to the LanguageData of the project documents, SyntaxEditor is handling the IntelliPrompt features perfectly. Amazing how easy this has become!
At some stage I need to extract certain classes and class properties marked with attributes from documents. I can get to all defined types in the project documents by using:
dotNetProjectResolver.SourceProjectContent.GetTypes(null,pProject.ProjectTemplate.NameSpace,DomBindingFlags.Public);
I'm probably missing something obvious, but I have two questions about this. When I iterate through the types and encounter a Ast Class with AttributeSections how can I determine the attribute text?
Second question: is it possible to determine the document in which the type is actually declared? Or more general: can I get to the document from a AstNode?
Regards,
Erik Pepping
I'm simulating a project by using a global DotNetProjectResolver. By assigning this global DotNetProjectResolver to the LanguageData of the project documents, SyntaxEditor is handling the IntelliPrompt features perfectly. Amazing how easy this has become!
At some stage I need to extract certain classes and class properties marked with attributes from documents. I can get to all defined types in the project documents by using:
dotNetProjectResolver.SourceProjectContent.GetTypes(null,pProject.ProjectTemplate.NameSpace,DomBindingFlags.Public);
I'm probably missing something obvious, but I have two questions about this. When I iterate through the types and encounter a Ast Class with AttributeSections how can I determine the attribute text?
Second question: is it possible to determine the document in which the type is actually declared? Or more general: can I get to the document from a AstNode?
Regards,
Erik Pepping