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
[Question] Difference between attach_to_sources and features keys. #118
Comments
Our documentation needs to be improved quite a bit.
For instance: class A {
public String foo() {
// ...
}
public String bar() {
// ...
}
public String baz() {
if (cond()) {
return foo();
} else {
return bar();
}
}
} If you want to mark {
"sources": [
{
"kind": "UserControlled",
"port": "Return",
"features": ["via-foo"]
}
]
} If you want to add a feature to any sources flowing out of {
"attach_to_sources": [
{
"features": ["via-baz"],
"port": "Return"
}
]
} |
Hello @arthaud ! Thank you for the answer. Basically, you use However, I cannot find a use-case for |
That's right, it's not really useful in general. |
Okay thanks for the explanation! Now it's clear. As you said, the documentation needs to be improved, it has been hard many times for me to understand some "concepts", I mean, there are not detailed enough in my opinion. This is just a suggestion that I would like to give you. I belive Mariana is very powerful and you have been doing a great job! |
Hello, I cannot understand the difference between the
attach_to_sources
key and thefeatures
key. The doc says thefeatures
label is a list of features name and sources, sinks and propagations can have it. However, theattach_to_sources
can have it as well for example, but it seems the aim is different, otherwise I cannot get why creating two key with the same purpose.Moreover, if I want to tag a source with a specific feature name, what do I have to use?
attach_to_source
orfeatures
? I would need to treat the return value as a source only if it has the feature name specified. I wonder if it is possible.The text was updated successfully, but these errors were encountered: