io.joern.rubysrc2cpg.astcreation
Members list
Type members
Classlikes
A consumable wrapper for the RubyParser class used to parse the given file and be disposed thereafter. This includes a "hacky" recovery of the parser when unsupported constructs are encountered by simply not parsing those lines.
A consumable wrapper for the RubyParser class used to parse the given file and be disposed thereafter. This includes a "hacky" recovery of the parser when unsupported constructs are encountered by simply not parsing those lines.
Value parameters
- filename
-
the file path to the file to be parsed.
- parsingTimeoutMs
-
grammar dependent, during development we may see input that would cause the parser to hang. To induce completion we need a timeout.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait AstCreatorHelpertrait AstForTypesCreatortrait AstForExpressionsCreatortrait AstForStatementsCreatortrait AstForPrimitivesCreatorclass AstCreatorBaseclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AstCreator
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AstCreator
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AstCreator
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AstCreator
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AstCreator
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class AstCreator
- Self type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GlobalTypes.type
A re-usable parser object that clears the ANTLR DFA-cache if it determines that the memory usage is becoming large. Once this parser is closed, the whole cache is evicted.
A re-usable parser object that clears the ANTLR DFA-cache if it determines that the memory usage is becoming large. Once this parser is closed, the whole cache is evicted.
This is done in this way since clearing the cache after each file is inefficient, since the cache must be re-built every time, but the cache can become unnecessarily large at times. The cache also does not evict itself at the end of parsing.
Value parameters
- clearLimit
-
the percentage of used heap to clear the DFA-cache on.
- parserTimeoutMs
-
how long the parser may attempt parsing a file before bailing out.
Attributes
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any