Constructors

Properties

LABEL_PREFIX_REGEX: RegExp = ...

Methods

  • Check if the given $exprStmt can be inlined or not. If it can, returns an object with information important for inlining, otherwise returns undefined.

    A call can be inline if the following rules apply:

    • The exprStmt is an isolated call, or an assignment with a single call in the right-hand side.
    • The call has a definition/implementation available.
    • The call is not a function that is part of the system headers.

    Parameters

    Returns undefined | InlineData

    An object with the properties below or undefined if this exprStmt cannot be inlined.

    • type: a string with either the value 'call' or 'assign', indicating the type of inlining that can be applied to the given exprStmt.
    • $target: if the type is 'assign', contains the left-hand side of the assignment. Otherwise, is undefined.
    • $call: the call to be inlined