vendored/puppet/lib/puppet/pops/parser/parser_support.rb in bolt-0.11.0 vs vendored/puppet/lib/puppet/pops/parser/parser_support.rb in bolt-0.12.0

- old
+ new

@@ -119,11 +119,11 @@ else # At end of input, use what the lexer thinks is the source file file = lexer.file end file = nil unless file.is_a?(String) && !file.empty? - raise Puppet::ParseErrorWithIssue.new(error, file, line, pos, nil, issue_code = Issues::SYNTAX_ERROR.issue_code) + raise Puppet::ParseErrorWithIssue.new(error, file, line, pos, nil, Issues::SYNTAX_ERROR.issue_code) end # Parses a String of pp DSL code. # def parse_string(code, path = nil) @@ -217,10 +217,10 @@ locator = @lexer.locator no_op = Factory.literal(nil) # Create a synthetic NOOP token at EOF offset with 0 size. The lexer does not produce an EOF token that is # visible to the grammar rules. Creating this token is mainly to reuse the positioning logic as it # expects a token decorated with location information. - token_sym, token = @lexer.emit_completed([:NOOP,'',0], locator.string.bytesize) + _, token = @lexer.emit_completed([:NOOP,'',0], locator.string.bytesize) loc(no_op, token) # Program with a Noop program = Factory.PROGRAM(no_op, [], locator) program end