lib/webidl/parse_tree/argument.rb in webidl-0.1.2 vs lib/webidl/parse_tree/argument.rb in webidl-0.1.3
- old
+ new
@@ -1,17 +1,18 @@
module WebIDL
module ParseTree
class Argument < Treetop::Runtime::SyntaxNode
def build(parent)
+ xattrs = eal.build(parent) unless eal.empty?
+
arg = Ast::Argument.new(
id.build,
type.build(parent),
- :optional => optional.any?,
- :variadic => variadic.any?
+ :optional => optional.any?,
+ :variadic => variadic.any?,
+ :extended_attributes => xattrs
)
-
- arg.extended_attributes = eal.build unless eal.empty?
arg
end
end # Argument
\ No newline at end of file