Skip to content

Commit

Permalink
update a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Mar 19, 2024
1 parent 348bed7 commit b180e2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vyper/codegen/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def parse_Name(self):
def parse_Attribute(self):
typ = self.expr._metadata["type"]

# (lib1).MyFlag.foo
# check if we have a flag constant, e.g.
# [lib1].MyFlag.FOO
if isinstance(typ, FlagT) and is_type_t(self.expr.value._metadata["type"], FlagT):
# 0, 1, 2, .. 255
flag_id = typ._flag_members[self.expr.attr]
Expand Down

0 comments on commit b180e2f

Please sign in to comment.