class Sass::Script::Parser

def is_unsafe_before?(expr, char_before)

Returns:
  • (Boolean) -

Parameters:
  • char_before (String) -- The character immediately before the
  • expr (Node) -- The expression to check.
def is_unsafe_before?(expr, char_before)
  return char_before == ')' if is_safe_value?(expr)
  # Otherwise, it's only safe if it was another interpolation.
  !expr.is_a?(Script::Tree::Interpolation)
end