Class: Gitlab::Ci::Pipeline::Expression::Lexeme::ParenthesisOpen

Inherits:
Operator
  • Object
show all
Defined in:
lib/gitlab/ci/pipeline/expression/lexeme/parenthesis_open.rb

Constant Summary collapse

PATTERN =
/\(/.freeze

Constants inherited from Operator

Operator::OperatorError

Class Method Summary collapse

Methods inherited from Base

build, consume?, #evaluate, #name, pattern, scan

Class Method Details

.precedenceObject


15
16
17
18
# File 'lib/gitlab/ci/pipeline/expression/lexeme/parenthesis_open.rb', line 15

def self.precedence
  # Needs to be higher than `ParenthesisClose` and all other Lexemes
  901
end

.typeObject


11
12
13
# File 'lib/gitlab/ci/pipeline/expression/lexeme/parenthesis_open.rb', line 11

def self.type
  :parenthesis_open
end