-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting value from Literal/Const #44
Comments
This is how I do it in the Npgsql analyzer |
Thanks I'll give that a shot! |
Oh looks like I don't have access to the symbols only the ParsedInput. Maybe Myriad should adopt the same structure from the Analyzers.SDK? |
I would rather not have to type check the file and extract symbols thats the super slow part of the compiler, probably better to create some form of backtrack or binding dictionary. |
I don't even think the problem is that it's the slow part of the compiler, which wouldn't be an as big issue given Myriad is run as part of build process - but huge issue is that we would need to parse project files to perform type checking. Which as you all know is not the best part of the F# community tooling ecosystem ;] |
I don't think I'll get to this, up for grabs if anyone ever wants to do it, not me though. |
Let's say I have the following code in my
Types.fs
file.When looking at the AST of this code, the attributes for the field
Foo
:I get told that the data in the Attribute is
MyConst
. Do you know if there is a way I'd be able to get the value from that?The text was updated successfully, but these errors were encountered: