Skip to content

Conversation

RasmusWL
Copy link
Member

@RasmusWL RasmusWL commented Apr 7, 2020

I was considering if this was actually something different than Value.hasAttribute, and the names were just accidentially the same. But after looking at the definition for Value, I'm happy about marking this as an override (I did not test whether it was needed though):

class Value extends TObject {
    ...

    /** Holds if this value has the attribute `name` */
    predicate hasAttribute(string name) { this.(ObjectInternal).hasAttribute(name) }

I was considering if this was actually something different than
Value.hasAttribute, and the names were just accidentially the same. But after
looking at the definition for Value, I'm happy about marking this as an
override (I did not test whether it was neede though):

```codeql
class Value extends TObject {
    ...

    /** Holds if this value has the attribute `name` */
    predicate hasAttribute(string name) { this.(ObjectInternal).hasAttribute(name) }
```
@RasmusWL RasmusWL added the Python label Apr 7, 2020
@RasmusWL RasmusWL requested a review from a team as a code owner April 7, 2020 12:10
@RasmusWL RasmusWL requested review from tausbn and removed request for a team April 7, 2020 12:10
@tausbn tausbn merged commit a92d926 into github:master Apr 16, 2020
@RasmusWL RasmusWL deleted the python-add-missing-override branch April 16, 2020 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants