mirror of
https://github.com/AdaCore/langkit.git
synced 2026-02-12 12:28:12 -08:00
RA22-015: Introduce 'ValDecl' abstract class
This commit is contained in:
@@ -246,12 +246,20 @@ class FunDecl(Decl):
|
||||
body = Field()
|
||||
|
||||
|
||||
class FunArgDecl(Decl):
|
||||
@abstract
|
||||
class ValDecl(Decl):
|
||||
"""
|
||||
Function argument declaration.
|
||||
Abstract class for named values declarations, such as arguments, local
|
||||
value bindings, fields, etc.
|
||||
"""
|
||||
name = Field()
|
||||
type = Field()
|
||||
|
||||
|
||||
class FunArgDecl(ValDecl):
|
||||
"""
|
||||
Function argument declaration.
|
||||
"""
|
||||
default_val = Field()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user