ast_constants: enforce {allow,deny}_network_access! order

This commit is contained in:
Caleb Xu 2024-04-22 22:48:08 -04:00
parent 934398dd9a
commit 4a9d7577e0
No known key found for this signature in database
GPG Key ID: 47E6040D07B8407D

View File

@ -44,6 +44,8 @@ FORMULA_COMPONENT_PRECEDENCE_LIST = T.let([
[{ name: :go_resource, type: :block_call }, { name: :resource, type: :block_call }],
[{ name: :patch, type: :method_call }, { name: :patch, type: :block_call }],
[{ name: :needs, type: :method_call }],
[{ name: :allow_network_access!, type: :method_call }],
[{ name: :deny_network_access!, type: :method_call }],
[{ name: :install, type: :method_definition }],
[{ name: :post_install, type: :method_definition }],
[{ name: :caveats, type: :method_definition }],