BigW Consortium Gitlab

Commit e6498efe by Grzegorz Bizon

Make pipeline variables evaluation concept explicit

parent 2da569a2
...@@ -17,13 +17,11 @@ module Gitlab ...@@ -17,13 +17,11 @@ module Gitlab
def initialize(statement, pipeline) def initialize(statement, pipeline)
@pipeline = pipeline @pipeline = pipeline
@lexer = Expression::Lexer.new(statement) @lexer = Expression::Lexer.new(statement)
end @variables = pipeline.variables # TODO
def variables
end end
def tokens def tokens
@lexer.tokenize @tokens ||= @lexer.tokenize
end end
def lexemes def lexemes
...@@ -50,7 +48,7 @@ module Gitlab ...@@ -50,7 +48,7 @@ module Gitlab
end end
def evaluate def evaluate
parse_tree.evaluate # evaluate(variables) parse_tree.evaluate(**@variables)
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment