We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e077a3 commit fc22265Copy full SHA for fc22265
lib/puppet-strings/yard/parsers/puppet/statement.rb
@@ -170,7 +170,7 @@ def initialize(object, file)
170
case type_expr
171
when Puppet::Pops::Model::AccessExpression
172
# TODO: I don't like rebuilding the source from the AST, but AccessExpressions don't expose the original source
173
- @alias_of = "#{PuppetStrings::Yard::Util.ast_to_text(type_expr.left_expr)}["
+ @alias_of = +"#{PuppetStrings::Yard::Util.ast_to_text(type_expr.left_expr)}[" # alias_of should be mutable so we add a + to the string.
174
@alias_of << type_expr.keys.map { |key| PuppetStrings::Yard::Util.ast_to_text(key) }.join(', ')
175
@alias_of << ']'
176
else
0 commit comments