Module: LogStashCompilerLSCLGrammar::LogStash::Compiler::LSCL::AST::Expression
- Defined in:
- lib/logstash/compiler/lscl.rb
Instance Method Summary collapse
Instance Method Details
#expr ⇒ Object
405 406 407 408 409 410 411 412 413 414 415 |
# File 'lib/logstash/compiler/lscl.rb', line 405 def expr # If we have a more specific type (like a Negative expression) use that if defined?(super) return super end exprs = self.recursive_select(Condition, Selector).map(&:expr) raise "Exprs should only have one part!" if exprs.size != 1 exprs.first end |