Interface EmbeddedSass.Value.HostFunctionOrBuilder

    • Method Detail

      • getId

        int getId()
         A unique ID for this function. The compiler must pass this ID as
         `OutboundRequest.FunctionCallRequest.id` when invoking this function. The
         host is responsible for generating this ID and ensuring it's unique
         across all functions for *all* compilations. Mandatory.
         
        uint32 id = 1;
        Returns:
        The id.
      • getSignature

        String getSignature()
         The signatures for this function. This must be a valid Sass function
         signature that could appear in after `@function` in a Sass stylesheet,
         such as `mix($color1, $color2, $weight: 50%)`. Mandatory.
         The compiler may not invoke the function by its name, since it's not
         guaranteed to be globally unique. However, it may use the name to
         generate the string representation of this function.
         
        string signature = 2;
        Returns:
        The signature.
      • getSignatureBytes

        ByteString getSignatureBytes()
         The signatures for this function. This must be a valid Sass function
         signature that could appear in after `@function` in a Sass stylesheet,
         such as `mix($color1, $color2, $weight: 50%)`. Mandatory.
         The compiler may not invoke the function by its name, since it's not
         guaranteed to be globally unique. However, it may use the name to
         generate the string representation of this function.
         
        string signature = 2;
        Returns:
        The bytes for signature.