mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Update QLDoc for getATemplateArgument
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -356,7 +356,13 @@ module Angular2 {
|
||||
/** Gets an HTML element that instantiates this component. */
|
||||
HTML::Element getATemplateInstantiation() { result.getName() = getSelector() }
|
||||
|
||||
/** Gets an argument that flows into the `name` field of this component. */
|
||||
/**
|
||||
* Gets an argument that flows into the `name` field of this component.
|
||||
*
|
||||
* For example, if the selector for this component is `"my-class"`, then this
|
||||
* predicate can match an attribute like: `<my-class [foo]="1+2"/>`.
|
||||
* The result of this predicate would be the `1+2` expression, and `name` would be `"foo"`.
|
||||
*/
|
||||
DataFlow::Node getATemplateArgument(string name) {
|
||||
result =
|
||||
getAttributeValueAsNode(getATemplateInstantiation().getAttributeByName("[" + name + "]"))
|
||||
|
||||
Reference in New Issue
Block a user