44# ------------------------------------------------------------------------------
55# The MIT License (MIT)
66#
7- # Copyright (c) 2022 Aarno Labs LLC
7+ # Copyright (c) 2022-2026 Aarno Labs LLC
88#
99# Permission is hereby granted, free of charge, to any person obtaining a copy
1010# of this software and associated documentation files (the "Software"), to deal
6060 from chb .bctypes .BCDictionary import BCDictionary
6161 from chb .bctypes .BCTyp import BCTyp
6262 from chb .bctypes .BCTypSig import BCTypSig
63+ from chb .bctypes .BCVisitor import BCVisitor
6364
6465
6566class BCAttrParam (BCDictionaryRecord ):
@@ -104,6 +105,9 @@ def is_int(self) -> bool:
104105 def to_c_string (self ) -> str :
105106 return str (self .intvalue )
106107
108+ def accept (self , visitor : "BCVisitor" ) -> None :
109+ visitor .visit_attr_param_int (self )
110+
107111 def __str__ (self ) -> str :
108112 return "aint(" + str (self .intvalue ) + ")"
109113
@@ -126,6 +130,9 @@ def strvalue(self) -> str:
126130 def to_c_string (self ) -> str :
127131 return self .strvalue
128132
133+ def accept (self , visitor : "BCVisitor" ) -> None :
134+ visitor .visit_attr_param_str (self )
135+
129136 def __str__ (self ) -> str :
130137 return "astr(" + self .strvalue + ")"
131138
@@ -158,6 +165,9 @@ def to_c_string(self) -> str:
158165 + ", " .join (p .to_c_string for p in self .params )
159166 + ")" )
160167
168+ def accept (self , visitor : "BCVisitor" ) -> None :
169+ visitor .visit_attr_param_cons (self )
170+
161171 def __str__ (self ) -> str :
162172 return (
163173 "acons("
0 commit comments