class Prism::Pattern::CompilationError
Ausgelöst, wenn die einer Vorlage übergebene Abfrage entweder ungültige Ruby-Syntax ist oder Syntax verwendet, die wir noch nicht unterstützen.
Öffentliche Klassenmethoden
Source
# File lib/prism/pattern.rb, line 44 def initialize(repr) super(<<~ERROR) prism was unable to compile the pattern you provided into a usable expression. It failed on to understand the node represented by: #{repr} Note that not all syntax supported by Ruby's pattern matching syntax is also supported by prism's patterns. If you're using some syntax that you believe should be supported, please open an issue on GitHub at https://github.com/ruby/prism/issues/new. ERROR end
Erstellt eine neue CompilationError mit der gegebenen Darstellung des Knotens, der den Fehler verursacht hat.
Ruft die Superklassenmethode
Exception::new auf