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 signature for this function. Mandatory.
         If this isn't a valid Sass function signature that could appear after
         `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight:
         50%)`), the compiler must treat the function's return value as invalid.
         > This ensures that the host doesn't need to be able to correctly parse
         > the entire function declaration syntax.
         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 signature for this function. Mandatory.
         If this isn't a valid Sass function signature that could appear after
         `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight:
         50%)`), the compiler must treat the function's return value as invalid.
         > This ensures that the host doesn't need to be able to correctly parse
         > the entire function declaration syntax.
         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.