@@ -144,72 +144,72 @@ def literal(ast)
144144 end
145145
146146 # ----- The following methods are different/additions from the original Literal_evaluator
147- def literal_Object ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
147+ def literal_Object ( o )
148148 # Ignore any other object types
149149 end
150150
151- def literal_AccessExpression ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
151+ def literal_AccessExpression ( o )
152152 # Extract the raw text of the Access Expression
153153 ::Puppet ::Pops ::Adapters ::SourcePosAdapter . adapt ( o ) . extract_text
154154 end
155155
156- def literal_QualifiedReference ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
156+ def literal_QualifiedReference ( o )
157157 # Extract the raw text of the Qualified Reference
158158 ::Puppet ::Pops ::Adapters ::SourcePosAdapter . adapt ( o ) . extract_text
159159 end
160160
161161 # ----- The following methods are the same as the original Literal_evaluator
162- def literal_Factory ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
162+ def literal_Factory ( o )
163163 literal ( o . model )
164164 end
165165
166- def literal_Program ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
166+ def literal_Program ( o )
167167 literal ( o . body )
168168 end
169169
170- def literal_LiteralString ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
170+ def literal_LiteralString ( o )
171171 o . value
172172 end
173173
174- def literal_QualifiedName ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
174+ def literal_QualifiedName ( o )
175175 o . value
176176 end
177177
178- def literal_LiteralNumber ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
178+ def literal_LiteralNumber ( o )
179179 o . value
180180 end
181181
182- def literal_UnaryMinusExpression ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
182+ def literal_UnaryMinusExpression ( o )
183183 -1 * literal ( o . expr )
184184 end
185185
186- def literal_LiteralBoolean ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
186+ def literal_LiteralBoolean ( o )
187187 o . value
188188 end
189189
190- def literal_LiteralUndef ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
190+ def literal_LiteralUndef ( o )
191191 nil
192192 end
193193
194- def literal_LiteralDefault ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
194+ def literal_LiteralDefault ( o )
195195 :default
196196 end
197197
198- def literal_LiteralRegularExpression ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
198+ def literal_LiteralRegularExpression ( o )
199199 o . value
200200 end
201201
202- def literal_ConcatenatedString ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
202+ def literal_ConcatenatedString ( o )
203203 # use double quoted string value if there is no interpolation
204204 throw :not_literal unless o . segments . size == 1 && o . segments [ 0 ] . is_a? ( Model ::LiteralString )
205205 o . segments [ 0 ] . value
206206 end
207207
208- def literal_LiteralList ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
208+ def literal_LiteralList ( o )
209209 o . values . map { |v | literal ( v ) }
210210 end
211211
212- def literal_LiteralHash ( o ) # rubocop:disable Naming/UncommunicativeMethodParamName
212+ def literal_LiteralHash ( o )
213213 o . entries . reduce ( { } ) do |result , entry |
214214 result [ literal ( entry . key ) ] = literal ( entry . value )
215215 result
0 commit comments