embeddedsass

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 4 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OutputStyle_name = map[int32]string{
		0: "EXPANDED",
		1: "COMPRESSED",
	}
	OutputStyle_value = map[string]int32{
		"EXPANDED":   0,
		"COMPRESSED": 1,
	}
)

Enum value maps for OutputStyle.

View Source
var (
	Syntax_name = map[int32]string{
		0: "SCSS",
		1: "INDENTED",
		2: "CSS",
	}
	Syntax_value = map[string]int32{
		"SCSS":     0,
		"INDENTED": 1,
		"CSS":      2,
	}
)

Enum value maps for Syntax.

View Source
var (
	LogEventType_name = map[int32]string{
		0: "WARNING",
		1: "DEPRECATION_WARNING",
		2: "DEBUG",
	}
	LogEventType_value = map[string]int32{
		"WARNING":             0,
		"DEPRECATION_WARNING": 1,
		"DEBUG":               2,
	}
)

Enum value maps for LogEventType.

View Source
var (
	ProtocolErrorType_name = map[int32]string{
		0: "PARSE",
		1: "PARAMS",
		2: "INTERNAL",
	}
	ProtocolErrorType_value = map[string]int32{
		"PARSE":    0,
		"PARAMS":   1,
		"INTERNAL": 2,
	}
)

Enum value maps for ProtocolErrorType.

View Source
var (
	ListSeparator_name = map[int32]string{
		0: "COMMA",
		1: "SPACE",
		2: "SLASH",
		3: "UNDECIDED",
	}
	ListSeparator_value = map[string]int32{
		"COMMA":     0,
		"SPACE":     1,
		"SLASH":     2,
		"UNDECIDED": 3,
	}
)

Enum value maps for ListSeparator.

View Source
var (
	SingletonValue_name = map[int32]string{
		0: "TRUE",
		1: "FALSE",
		2: "NULL",
	}
	SingletonValue_value = map[string]int32{
		"TRUE":  0,
		"FALSE": 1,
		"NULL":  2,
	}
)

Enum value maps for SingletonValue.

View Source
var (
	CalculationOperator_name = map[int32]string{
		0: "PLUS",
		1: "MINUS",
		2: "TIMES",
		3: "DIVIDE",
	}
	CalculationOperator_value = map[string]int32{
		"PLUS":   0,
		"MINUS":  1,
		"TIMES":  2,
		"DIVIDE": 3,
	}
)

Enum value maps for CalculationOperator.

View Source
var File_embedded_sass_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CalculationOperator added in v0.15.0

type CalculationOperator int32

An operator used in a calculation value's operation.

const (
	// The addition operator.
	CalculationOperator_PLUS CalculationOperator = 0
	// The subtraction operator.
	CalculationOperator_MINUS CalculationOperator = 1
	// The multiplication operator.
	CalculationOperator_TIMES CalculationOperator = 2
	// The division operator.
	CalculationOperator_DIVIDE CalculationOperator = 3
)

func (CalculationOperator) Descriptor added in v0.15.0

func (CalculationOperator) Enum added in v0.15.0

func (CalculationOperator) EnumDescriptor deprecated added in v0.15.0

func (CalculationOperator) EnumDescriptor() ([]byte, []int)

Deprecated: Use CalculationOperator.Descriptor instead.

func (CalculationOperator) Number added in v0.15.0

func (CalculationOperator) String added in v0.15.0

func (x CalculationOperator) String() string

func (CalculationOperator) Type added in v0.15.0

type InboundMessage

type InboundMessage struct {

	// The wrapped message. Mandatory.
	//
	// Types that are assignable to Message:
	//
	//	*InboundMessage_CompileRequest_
	//	*InboundMessage_CanonicalizeResponse_
	//	*InboundMessage_ImportResponse_
	//	*InboundMessage_FileImportResponse_
	//	*InboundMessage_FunctionCallResponse_
	//	*InboundMessage_VersionRequest_
	Message isInboundMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

The wrapper type for all messages sent from the host to the compiler. This provides a `oneof` that makes it possible to determine the type of each inbound message.

func (*InboundMessage) Descriptor deprecated

func (*InboundMessage) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage.ProtoReflect.Descriptor instead.

func (*InboundMessage) GetCanonicalizeResponse

func (x *InboundMessage) GetCanonicalizeResponse() *InboundMessage_CanonicalizeResponse

func (*InboundMessage) GetCompileRequest

func (x *InboundMessage) GetCompileRequest() *InboundMessage_CompileRequest

func (*InboundMessage) GetFileImportResponse

func (x *InboundMessage) GetFileImportResponse() *InboundMessage_FileImportResponse

func (*InboundMessage) GetFunctionCallResponse

func (x *InboundMessage) GetFunctionCallResponse() *InboundMessage_FunctionCallResponse

func (*InboundMessage) GetImportResponse

func (x *InboundMessage) GetImportResponse() *InboundMessage_ImportResponse

func (*InboundMessage) GetMessage

func (m *InboundMessage) GetMessage() isInboundMessage_Message

func (*InboundMessage) GetVersionRequest added in v0.12.0

func (x *InboundMessage) GetVersionRequest() *InboundMessage_VersionRequest

func (*InboundMessage) ProtoMessage

func (*InboundMessage) ProtoMessage()

func (*InboundMessage) ProtoReflect

func (x *InboundMessage) ProtoReflect() protoreflect.Message

func (*InboundMessage) Reset

func (x *InboundMessage) Reset()

func (*InboundMessage) String

func (x *InboundMessage) String() string

type InboundMessage_CanonicalizeResponse

type InboundMessage_CanonicalizeResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of canonicalization. Optional. If this is `null`, it indicates
	// that the importer either did not recognize the URL, or could not find a
	// stylesheet at the location it referred to.
	//
	// Types that are assignable to Result:
	//
	//	*InboundMessage_CanonicalizeResponse_Url
	//	*InboundMessage_CanonicalizeResponse_Error
	Result isInboundMessage_CanonicalizeResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response indicating the result of canonicalizing an imported URL.

func (*InboundMessage_CanonicalizeResponse) Descriptor deprecated

func (*InboundMessage_CanonicalizeResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CanonicalizeResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_CanonicalizeResponse) GetError

func (*InboundMessage_CanonicalizeResponse) GetId

func (*InboundMessage_CanonicalizeResponse) GetResult

func (m *InboundMessage_CanonicalizeResponse) GetResult() isInboundMessage_CanonicalizeResponse_Result

func (*InboundMessage_CanonicalizeResponse) GetUrl

func (*InboundMessage_CanonicalizeResponse) ProtoMessage

func (*InboundMessage_CanonicalizeResponse) ProtoMessage()

func (*InboundMessage_CanonicalizeResponse) ProtoReflect

func (*InboundMessage_CanonicalizeResponse) Reset

func (*InboundMessage_CanonicalizeResponse) String

type InboundMessage_CanonicalizeResponse_

type InboundMessage_CanonicalizeResponse_ struct {
	CanonicalizeResponse *InboundMessage_CanonicalizeResponse `protobuf:"bytes,3,opt,name=canonicalize_response,json=canonicalizeResponse,proto3,oneof"`
}

type InboundMessage_CanonicalizeResponse_Error

type InboundMessage_CanonicalizeResponse_Error struct {
	// An error message explaining why canonicalization failed.
	//
	// This indicates that a stylesheet was found, but a canonical URL for it
	// could not be determined. If no stylesheet was found, `result` should be
	// `null` instead.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_CanonicalizeResponse_Url

type InboundMessage_CanonicalizeResponse_Url struct {
	// The successfully canonicalized URL. This must be an absolute URL,
	// including scheme.
	Url string `protobuf:"bytes,2,opt,name=url,proto3,oneof"`
}

type InboundMessage_CompileRequest

type InboundMessage_CompileRequest struct {

	// This compilation's request id. This is included in messages sent from the
	// compiler to the host. Mandatory.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The input stylesheet to parse. Mandatory.
	//
	// Types that are assignable to Input:
	//
	//	*InboundMessage_CompileRequest_String_
	//	*InboundMessage_CompileRequest_Path
	Input isInboundMessage_CompileRequest_Input `protobuf_oneof:"input"`
	// How to format the CSS output.
	Style OutputStyle `protobuf:"varint,4,opt,name=style,proto3,enum=sass.embedded_protocol.OutputStyle" json:"style,omitempty"`
	// Whether to generate a source map. Note that this will *not* add a source
	// map comment to the stylesheet; that's up to the host or its users.
	SourceMap bool `protobuf:"varint,5,opt,name=source_map,json=sourceMap,proto3" json:"source_map,omitempty"`
	// Importers (including load paths on the filesystem) to use when resolving
	// imports that can't be resolved relative to the file that contains it. Each
	// importer is checked in order until one recognizes the imported URL.
	Importers []*InboundMessage_CompileRequest_Importer `protobuf:"bytes,6,rep,name=importers,proto3" json:"importers,omitempty"`
	// Signatures for custom global functions whose behavior is defined by the
	// host. These must be valid Sass function signatures that could appear in
	// after `@function` in a Sass stylesheet, such as
	// `mix($color1, $color2, $weight: 50%)`.
	//
	// Compilers must ensure that pure-Sass functions take precedence over
	// custom global functions. They must also reject any custom function names
	// that conflict with function names built into the Sass language.
	GlobalFunctions []string `protobuf:"bytes,7,rep,name=global_functions,json=globalFunctions,proto3" json:"global_functions,omitempty"`
	// Whether to use terminal colors in the formatted message of errors and
	// logs.
	AlertColor bool `protobuf:"varint,8,opt,name=alert_color,json=alertColor,proto3" json:"alert_color,omitempty"`
	// Whether to encode the formatted message of errors and logs in ASCII.
	AlertAscii bool `protobuf:"varint,9,opt,name=alert_ascii,json=alertAscii,proto3" json:"alert_ascii,omitempty"`
	// Whether to report all deprecation warnings or only the first few ones.
	// If this is `false`, the compiler may choose not to send events for
	// repeated deprecation warnings. If this is `true`, the compiler must emit
	// an event for every deprecation warning it encounters.
	Verbose bool `protobuf:"varint,10,opt,name=verbose,proto3" json:"verbose,omitempty"`
	// Whether to omit events for deprecation warnings coming from dependencies
	// (files loaded from a different importer than the input).
	QuietDeps bool `protobuf:"varint,11,opt,name=quiet_deps,json=quietDeps,proto3" json:"quiet_deps,omitempty"`
	// Whether to include sources in the generated sourcemap
	SourceMapIncludeSources bool `` /* 136-byte string literal not displayed */
	// Whether to emit a `@charset`/BOM for non-ASCII stylesheets.
	Charset bool `protobuf:"varint,13,opt,name=charset,proto3" json:"charset,omitempty"`
	// contains filtered or unexported fields
}

A request that compiles an entrypoint to CSS.

func (*InboundMessage_CompileRequest) Descriptor deprecated

func (*InboundMessage_CompileRequest) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CompileRequest.ProtoReflect.Descriptor instead.

func (*InboundMessage_CompileRequest) GetAlertAscii added in v0.15.0

func (x *InboundMessage_CompileRequest) GetAlertAscii() bool

func (*InboundMessage_CompileRequest) GetAlertColor added in v0.15.0

func (x *InboundMessage_CompileRequest) GetAlertColor() bool

func (*InboundMessage_CompileRequest) GetCharset added in v0.15.0

func (x *InboundMessage_CompileRequest) GetCharset() bool

func (*InboundMessage_CompileRequest) GetGlobalFunctions

func (x *InboundMessage_CompileRequest) GetGlobalFunctions() []string

func (*InboundMessage_CompileRequest) GetId

func (*InboundMessage_CompileRequest) GetImporters

func (*InboundMessage_CompileRequest) GetInput

func (m *InboundMessage_CompileRequest) GetInput() isInboundMessage_CompileRequest_Input

func (*InboundMessage_CompileRequest) GetPath

func (*InboundMessage_CompileRequest) GetQuietDeps added in v0.15.0

func (x *InboundMessage_CompileRequest) GetQuietDeps() bool

func (*InboundMessage_CompileRequest) GetSourceMap

func (x *InboundMessage_CompileRequest) GetSourceMap() bool

func (*InboundMessage_CompileRequest) GetSourceMapIncludeSources added in v0.15.0

func (x *InboundMessage_CompileRequest) GetSourceMapIncludeSources() bool

func (*InboundMessage_CompileRequest) GetString_

func (*InboundMessage_CompileRequest) GetStyle

func (*InboundMessage_CompileRequest) GetVerbose added in v0.15.0

func (x *InboundMessage_CompileRequest) GetVerbose() bool

func (*InboundMessage_CompileRequest) ProtoMessage

func (*InboundMessage_CompileRequest) ProtoMessage()

func (*InboundMessage_CompileRequest) ProtoReflect

func (*InboundMessage_CompileRequest) Reset

func (x *InboundMessage_CompileRequest) Reset()

func (*InboundMessage_CompileRequest) String

type InboundMessage_CompileRequest_

type InboundMessage_CompileRequest_ struct {
	CompileRequest *InboundMessage_CompileRequest `protobuf:"bytes,2,opt,name=compile_request,json=compileRequest,proto3,oneof"`
}

type InboundMessage_CompileRequest_Importer

type InboundMessage_CompileRequest_Importer struct {

	// The possible types of importer. Mandatory.
	//
	// Types that are assignable to Importer:
	//
	//	*InboundMessage_CompileRequest_Importer_Path
	//	*InboundMessage_CompileRequest_Importer_ImporterId
	//	*InboundMessage_CompileRequest_Importer_FileImporterId
	Importer isInboundMessage_CompileRequest_Importer_Importer `protobuf_oneof:"importer"`
	// contains filtered or unexported fields
}

A wrapper message that represents either a user-defined importer or a load path on disk. This must be a wrapper because `oneof` types can't be `repeated`.

func (*InboundMessage_CompileRequest_Importer) Descriptor deprecated

func (*InboundMessage_CompileRequest_Importer) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CompileRequest_Importer.ProtoReflect.Descriptor instead.

func (*InboundMessage_CompileRequest_Importer) GetFileImporterId

func (x *InboundMessage_CompileRequest_Importer) GetFileImporterId() uint32

func (*InboundMessage_CompileRequest_Importer) GetImporter

func (m *InboundMessage_CompileRequest_Importer) GetImporter() isInboundMessage_CompileRequest_Importer_Importer

func (*InboundMessage_CompileRequest_Importer) GetImporterId

func (*InboundMessage_CompileRequest_Importer) GetPath

func (*InboundMessage_CompileRequest_Importer) ProtoMessage

func (*InboundMessage_CompileRequest_Importer) ProtoReflect

func (*InboundMessage_CompileRequest_Importer) Reset

func (*InboundMessage_CompileRequest_Importer) String

type InboundMessage_CompileRequest_Importer_FileImporterId

type InboundMessage_CompileRequest_Importer_FileImporterId struct {
	// A unique ID for a special kind of user-defined importer that tells
	// the compiler where to look for files on the physical filesystem, but
	// leaves the details of resolving partials and extensions and loading
	// the file from disk up to the compiler itself.
	//
	// This ID will be included in outbound `FileImportRequest` messages to
	// indicate which importer is being called. The host is responsible for
	// generating this ID and ensuring that it's unique across all importers
	// registered for this compilation.
	FileImporterId uint32 `protobuf:"varint,3,opt,name=file_importer_id,json=fileImporterId,proto3,oneof"`
}

type InboundMessage_CompileRequest_Importer_ImporterId

type InboundMessage_CompileRequest_Importer_ImporterId struct {
	// A unique ID for a user-defined importer. This ID will be included in
	// outbound `CanonicalizeRequest` and `ImportRequest` messages to
	// indicate which importer is being called. The host is responsible for
	// generating this ID and ensuring that it's unique across all
	// importers registered for this compilation.
	ImporterId uint32 `protobuf:"varint,2,opt,name=importer_id,json=importerId,proto3,oneof"`
}

type InboundMessage_CompileRequest_Importer_Path

type InboundMessage_CompileRequest_Importer_Path struct {
	// A built-in importer that loads Sass files within the given directory
	// on disk.
	Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}

type InboundMessage_CompileRequest_Path

type InboundMessage_CompileRequest_Path struct {
	// A stylesheet loaded from the given path on the filesystem.
	Path string `protobuf:"bytes,3,opt,name=path,proto3,oneof"`
}

type InboundMessage_CompileRequest_StringInput

type InboundMessage_CompileRequest_StringInput struct {

	// The contents of the stylesheet.
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// The location from which `source` was loaded. If this is empty, it
	// indicates that the URL is unknown.
	//
	// This must be a canonical URL recognized by `importer`, if it's passed.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// The syntax to use to parse `source`.
	Syntax Syntax `protobuf:"varint,3,opt,name=syntax,proto3,enum=sass.embedded_protocol.Syntax" json:"syntax,omitempty"`
	// The importer to use to resolve imports relative to `url`.
	Importer *InboundMessage_CompileRequest_Importer `protobuf:"bytes,4,opt,name=importer,proto3" json:"importer,omitempty"`
	// contains filtered or unexported fields
}

An input stylesheet provided as plain text, rather than loaded from the filesystem.

func (*InboundMessage_CompileRequest_StringInput) Descriptor deprecated

func (*InboundMessage_CompileRequest_StringInput) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CompileRequest_StringInput.ProtoReflect.Descriptor instead.

func (*InboundMessage_CompileRequest_StringInput) GetImporter

func (*InboundMessage_CompileRequest_StringInput) GetSource

func (*InboundMessage_CompileRequest_StringInput) GetSyntax

func (*InboundMessage_CompileRequest_StringInput) GetUrl

func (*InboundMessage_CompileRequest_StringInput) ProtoMessage

func (*InboundMessage_CompileRequest_StringInput) ProtoReflect

func (*InboundMessage_CompileRequest_StringInput) Reset

func (*InboundMessage_CompileRequest_StringInput) String

type InboundMessage_CompileRequest_String_

type InboundMessage_CompileRequest_String_ struct {
	// A stylesheet loaded from its contents.
	String_ *InboundMessage_CompileRequest_StringInput `protobuf:"bytes,2,opt,name=string,proto3,oneof"`
}

type InboundMessage_FileImportResponse

type InboundMessage_FileImportResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of loading the URL. Optional. A null result indicates that the
	// importer did not recognize the URL and other importers or load paths
	// should be tried.
	//
	// Types that are assignable to Result:
	//
	//	*InboundMessage_FileImportResponse_FileUrl
	//	*InboundMessage_FileImportResponse_Error
	Result isInboundMessage_FileImportResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response indicating the result of redirecting a URL to the filesystem.

func (*InboundMessage_FileImportResponse) Descriptor deprecated

func (*InboundMessage_FileImportResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_FileImportResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_FileImportResponse) GetError

func (*InboundMessage_FileImportResponse) GetFileUrl

func (x *InboundMessage_FileImportResponse) GetFileUrl() string

func (*InboundMessage_FileImportResponse) GetId

func (*InboundMessage_FileImportResponse) GetResult

func (m *InboundMessage_FileImportResponse) GetResult() isInboundMessage_FileImportResponse_Result

func (*InboundMessage_FileImportResponse) ProtoMessage

func (*InboundMessage_FileImportResponse) ProtoMessage()

func (*InboundMessage_FileImportResponse) ProtoReflect

func (*InboundMessage_FileImportResponse) Reset

func (*InboundMessage_FileImportResponse) String

type InboundMessage_FileImportResponse_

type InboundMessage_FileImportResponse_ struct {
	FileImportResponse *InboundMessage_FileImportResponse `protobuf:"bytes,5,opt,name=file_import_response,json=fileImportResponse,proto3,oneof"`
}

type InboundMessage_FileImportResponse_Error

type InboundMessage_FileImportResponse_Error struct {
	// An error message explaining why the URL could not be loaded.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_FileImportResponse_FileUrl

type InboundMessage_FileImportResponse_FileUrl struct {
	// The absolute `file:` URL to look for the file on the physical
	// filesystem.
	//
	// The host must ensure that this URL follows the format for an absolute
	// `file:` URL on the current operating system without a hostname, and the
	// compiler must verify this to the best of its ability. See
	// https://en.wikipedia.org/wiki/File_URI_scheme for details on the
	// format.
	//
	// The compiler must handle turning this into a canonical URL by resolving
	// it for partials, file extensions, and index files. The compiler must
	// then loading the contents of the resulting canonical URL from the
	// filesystem.
	FileUrl string `protobuf:"bytes,2,opt,name=file_url,json=fileUrl,proto3,oneof"`
}

type InboundMessage_FunctionCallResponse

type InboundMessage_FunctionCallResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of calling the function. Mandatory.
	//
	// Types that are assignable to Result:
	//
	//	*InboundMessage_FunctionCallResponse_Success
	//	*InboundMessage_FunctionCallResponse_Error
	Result isInboundMessage_FunctionCallResponse_Result `protobuf_oneof:"result"`
	// The IDs of all `Value.ArgumentList`s in `FunctionCallRequest.arguments`
	// whose keywords were accessed. See `Value.ArgumentList` for details.
	// Mandatory if `result.success` is set. This may not include the special
	// value `0` and it may not include multiple instances of the same ID.
	AccessedArgumentLists []uint32 `` /* 134-byte string literal not displayed */
	// contains filtered or unexported fields
}

A response indicating the result of calling a custom Sass function defined in the host.

func (*InboundMessage_FunctionCallResponse) Descriptor deprecated

func (*InboundMessage_FunctionCallResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_FunctionCallResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_FunctionCallResponse) GetAccessedArgumentLists added in v0.15.0

func (x *InboundMessage_FunctionCallResponse) GetAccessedArgumentLists() []uint32

func (*InboundMessage_FunctionCallResponse) GetError

func (*InboundMessage_FunctionCallResponse) GetId

func (*InboundMessage_FunctionCallResponse) GetResult

func (m *InboundMessage_FunctionCallResponse) GetResult() isInboundMessage_FunctionCallResponse_Result

func (*InboundMessage_FunctionCallResponse) GetSuccess

func (x *InboundMessage_FunctionCallResponse) GetSuccess() *Value

func (*InboundMessage_FunctionCallResponse) ProtoMessage

func (*InboundMessage_FunctionCallResponse) ProtoMessage()

func (*InboundMessage_FunctionCallResponse) ProtoReflect

func (*InboundMessage_FunctionCallResponse) Reset

func (*InboundMessage_FunctionCallResponse) String

type InboundMessage_FunctionCallResponse_

type InboundMessage_FunctionCallResponse_ struct {
	FunctionCallResponse *InboundMessage_FunctionCallResponse `protobuf:"bytes,6,opt,name=function_call_response,json=functionCallResponse,proto3,oneof"`
}

type InboundMessage_FunctionCallResponse_Error

type InboundMessage_FunctionCallResponse_Error struct {
	// An error message explaining why the function call failed.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_FunctionCallResponse_Success

type InboundMessage_FunctionCallResponse_Success struct {
	// The return value of a successful function call.
	Success *Value `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}

type InboundMessage_ImportResponse

type InboundMessage_ImportResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of loading the URL. Optional. If this is `null`, it indicates
	// that the importer either did not recognize the URL, or could not find a
	// stylesheet at the location it referred to.
	//
	// Types that are assignable to Result:
	//
	//	*InboundMessage_ImportResponse_Success
	//	*InboundMessage_ImportResponse_Error
	Result isInboundMessage_ImportResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response indicating the result of importing a canonical URL.

func (*InboundMessage_ImportResponse) Descriptor deprecated

func (*InboundMessage_ImportResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_ImportResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_ImportResponse) GetError

func (x *InboundMessage_ImportResponse) GetError() string

func (*InboundMessage_ImportResponse) GetId

func (*InboundMessage_ImportResponse) GetResult

func (m *InboundMessage_ImportResponse) GetResult() isInboundMessage_ImportResponse_Result

func (*InboundMessage_ImportResponse) GetSuccess

func (*InboundMessage_ImportResponse) ProtoMessage

func (*InboundMessage_ImportResponse) ProtoMessage()

func (*InboundMessage_ImportResponse) ProtoReflect

func (*InboundMessage_ImportResponse) Reset

func (x *InboundMessage_ImportResponse) Reset()

func (*InboundMessage_ImportResponse) String

type InboundMessage_ImportResponse_

type InboundMessage_ImportResponse_ struct {
	ImportResponse *InboundMessage_ImportResponse `protobuf:"bytes,4,opt,name=import_response,json=importResponse,proto3,oneof"`
}

type InboundMessage_ImportResponse_Error

type InboundMessage_ImportResponse_Error struct {
	// An error message explaining why the URL could not be loaded.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_ImportResponse_ImportSuccess

type InboundMessage_ImportResponse_ImportSuccess struct {

	// The text of the stylesheet. Mandatory.
	Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
	// The syntax of `contents`. Mandatory.
	Syntax Syntax `protobuf:"varint,2,opt,name=syntax,proto3,enum=sass.embedded_protocol.Syntax" json:"syntax,omitempty"`
	// An absolute, browser-accessible URL indicating the resolved location of
	// the imported stylesheet. Optional.
	//
	// This should be a `file:` URL if one is available, but an `http:` URL is
	// acceptable as well. If no URL is supplied, a `data:` URL is generated
	// automatically from `contents`.
	//
	// If this is provided, it must be an absolute URL, including scheme.
	SourceMapUrl string `protobuf:"bytes,3,opt,name=source_map_url,json=sourceMapUrl,proto3" json:"source_map_url,omitempty"`
	// contains filtered or unexported fields
}

The stylesheet's contents were loaded successfully.

func (*InboundMessage_ImportResponse_ImportSuccess) Descriptor deprecated

Deprecated: Use InboundMessage_ImportResponse_ImportSuccess.ProtoReflect.Descriptor instead.

func (*InboundMessage_ImportResponse_ImportSuccess) GetContents

func (*InboundMessage_ImportResponse_ImportSuccess) GetSourceMapUrl

func (*InboundMessage_ImportResponse_ImportSuccess) GetSyntax

func (*InboundMessage_ImportResponse_ImportSuccess) ProtoMessage

func (*InboundMessage_ImportResponse_ImportSuccess) ProtoReflect

func (*InboundMessage_ImportResponse_ImportSuccess) Reset

func (*InboundMessage_ImportResponse_ImportSuccess) String

type InboundMessage_ImportResponse_Success

type InboundMessage_ImportResponse_Success struct {
	// The contents of the loaded stylesheet.
	Success *InboundMessage_ImportResponse_ImportSuccess `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}

type InboundMessage_VersionRequest added in v0.12.0

type InboundMessage_VersionRequest struct {

	// This version request's id. Mandatory.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A request for information about the version of the embedded compiler. The host can use this to provide diagnostic information to the user, to check which features the compiler supports, or to ensure that it's compatible with the same protocol version the compiler supports.

func (*InboundMessage_VersionRequest) Descriptor deprecated added in v0.12.0

func (*InboundMessage_VersionRequest) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_VersionRequest.ProtoReflect.Descriptor instead.

func (*InboundMessage_VersionRequest) GetId added in v0.15.0

func (*InboundMessage_VersionRequest) ProtoMessage added in v0.12.0

func (*InboundMessage_VersionRequest) ProtoMessage()

func (*InboundMessage_VersionRequest) ProtoReflect added in v0.12.0

func (*InboundMessage_VersionRequest) Reset added in v0.12.0

func (x *InboundMessage_VersionRequest) Reset()

func (*InboundMessage_VersionRequest) String added in v0.12.0

type InboundMessage_VersionRequest_ added in v0.12.0

type InboundMessage_VersionRequest_ struct {
	VersionRequest *InboundMessage_VersionRequest `protobuf:"bytes,7,opt,name=version_request,json=versionRequest,proto3,oneof"`
}

type ListSeparator added in v0.15.0

type ListSeparator int32

Different types of separators a list can have.

const (
	// List elements are separated by a comma.
	ListSeparator_COMMA ListSeparator = 0
	// List elements are separated by whitespace.
	ListSeparator_SPACE ListSeparator = 1
	// List elements are separated by a forward slash.
	ListSeparator_SLASH ListSeparator = 2
	// The list's separator hasn't yet been determined. This is only allowed for
	// singleton and empty lists.
	//
	// Singleton lists and empty lists don't have separators defined. This means
	// that list functions will prefer other lists' separators if possible.
	ListSeparator_UNDECIDED ListSeparator = 3
)

func (ListSeparator) Descriptor added in v0.15.0

func (ListSeparator) Enum added in v0.15.0

func (x ListSeparator) Enum() *ListSeparator

func (ListSeparator) EnumDescriptor deprecated added in v0.15.0

func (ListSeparator) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListSeparator.Descriptor instead.

func (ListSeparator) Number added in v0.15.0

func (ListSeparator) String added in v0.15.0

func (x ListSeparator) String() string

func (ListSeparator) Type added in v0.15.0

type LogEventType added in v0.15.0

type LogEventType int32

The possible types of [LogEvent].

const (
	// A warning for something other than a deprecated Sass feature. Often emitted
	// due to a stylesheet using the `@warn` rule.
	LogEventType_WARNING LogEventType = 0
	// A warning indicating that the stylesheet is using a deprecated Sass
	// feature. Compilers should not add text like "deprecation warning" to
	// deprecation warnings; it's up to the host to determine how to signal that
	// to the user.
	LogEventType_DEPRECATION_WARNING LogEventType = 1
	// A message generated by the user for their own debugging purposes.
	LogEventType_DEBUG LogEventType = 2
)

func (LogEventType) Descriptor added in v0.15.0

func (LogEventType) Enum added in v0.15.0

func (x LogEventType) Enum() *LogEventType

func (LogEventType) EnumDescriptor deprecated added in v0.15.0

func (LogEventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogEventType.Descriptor instead.

func (LogEventType) Number added in v0.15.0

func (LogEventType) String added in v0.15.0

func (x LogEventType) String() string

func (LogEventType) Type added in v0.15.0

type OutboundMessage

type OutboundMessage struct {

	// The wrapped message. Mandatory.
	//
	// Types that are assignable to Message:
	//
	//	*OutboundMessage_Error
	//	*OutboundMessage_CompileResponse_
	//	*OutboundMessage_LogEvent_
	//	*OutboundMessage_CanonicalizeRequest_
	//	*OutboundMessage_ImportRequest_
	//	*OutboundMessage_FileImportRequest_
	//	*OutboundMessage_FunctionCallRequest_
	//	*OutboundMessage_VersionResponse_
	Message isOutboundMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

The wrapper type for all messages sent from the compiler to the host. This provides a `oneof` that makes it possible to determine the type of each outbound message.

func (*OutboundMessage) Descriptor deprecated

func (*OutboundMessage) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage.ProtoReflect.Descriptor instead.

func (*OutboundMessage) GetCanonicalizeRequest

func (x *OutboundMessage) GetCanonicalizeRequest() *OutboundMessage_CanonicalizeRequest

func (*OutboundMessage) GetCompileResponse

func (x *OutboundMessage) GetCompileResponse() *OutboundMessage_CompileResponse

func (*OutboundMessage) GetError

func (x *OutboundMessage) GetError() *ProtocolError

func (*OutboundMessage) GetFileImportRequest

func (x *OutboundMessage) GetFileImportRequest() *OutboundMessage_FileImportRequest

func (*OutboundMessage) GetFunctionCallRequest

func (x *OutboundMessage) GetFunctionCallRequest() *OutboundMessage_FunctionCallRequest

func (*OutboundMessage) GetImportRequest

func (x *OutboundMessage) GetImportRequest() *OutboundMessage_ImportRequest

func (*OutboundMessage) GetLogEvent

func (x *OutboundMessage) GetLogEvent() *OutboundMessage_LogEvent

func (*OutboundMessage) GetMessage

func (m *OutboundMessage) GetMessage() isOutboundMessage_Message

func (*OutboundMessage) GetVersionResponse added in v0.12.0

func (x *OutboundMessage) GetVersionResponse() *OutboundMessage_VersionResponse

func (*OutboundMessage) ProtoMessage

func (*OutboundMessage) ProtoMessage()

func (*OutboundMessage) ProtoReflect

func (x *OutboundMessage) ProtoReflect() protoreflect.Message

func (*OutboundMessage) Reset

func (x *OutboundMessage) Reset()

func (*OutboundMessage) String

func (x *OutboundMessage) String() string

type OutboundMessage_CanonicalizeRequest

type OutboundMessage_CanonicalizeRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// The unique ID of the importer being invoked. This must match an importer
	// ID passed to this compilation in `CompileRequest.importers` or
	// `CompileRequest.input.string.importer`. Mandatory.
	ImporterId uint32 `protobuf:"varint,3,opt,name=importer_id,json=importerId,proto3" json:"importer_id,omitempty"`
	// The URL of the import to be canonicalized. This may be either absolute or
	// relative.
	//
	// When loading a URL, the compiler must first try resolving that URL
	// relative to the canonical URL of the current file, and canonicalizing the
	// result using the importer that loaded the current file. If this returns
	// `null`, the compiler must then try canonicalizing the original URL with
	// each importer in order until one returns something other than `null`.
	// That is the result of the import.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// / Whether this request comes from an `@import` rule.
	// /
	// / When evaluating `@import` rules, URLs should canonicalize to an
	// / [import-only file] if one exists for the URL being canonicalized.
	// / Otherwise, canonicalization should be identical for `@import` and `@use`
	// / rules.
	// /
	// / [import-only file]: https://sass-lang.com/documentation/at-rules/import#import-only-files
	FromImport bool `protobuf:"varint,5,opt,name=from_import,json=fromImport,proto3" json:"from_import,omitempty"`
	// contains filtered or unexported fields
}

A request for a custom importer to convert an imported URL to its canonical format.

If the URL is not recognized by this importer, or if no stylesheet is found at that URL, `CanonicalizeResponse.result` must be `null`. Otherwise, the importer must return an absolute URL, including a scheme.

> The host's documentation should encourage the use of file importers (via > `CompileRequest.Importer.file_importer_id`, `FileImportRequest`, and > `FileImportResponse`) for any importers that simply refer to files on > disk. This will allow Sass to handle the logic of resolving partials, > file extensions, and index files.

If Sass has already loaded a stylesheet with the returned canonical URL, it re-uses the existing parse tree. This means that importers must ensure that the same canonical URL always refers to the same stylesheet, *even across different importers*. Importers must also ensure that any canonicalized URLs they return can be passed back to `CanonicalizeRequest` and will be returned unchanged.

If this importer's URL format supports file extensions, it should canonicalize them the same way as the default filesystem importer:

  • The importer should look for stylesheets by adding the prefix `_` to the URL's basename, and by adding the extensions `.sass` and `.scss` if the URL doesn't already have one of those extensions. For example, if the URL was `foo/bar/baz`, the importer would look for:

  • `foo/bar/baz.sass`

  • `foo/bar/baz.scss`

  • `foo/bar/_baz.sass`

  • `foo/bar/_baz.scss`

    If the URL was foo/bar/baz.scss, the importer would just look for:

  • `foo/bar/baz.scss`

  • `foo/bar/_baz.scss`

    If the importer finds a stylesheet at more than one of these URLs, it should respond with a `CanonicalizeResponse.result.error` indicating that the import is ambiguous. Note that if the extension is explicitly specified, a stylesheet with another extension may exist without error.

  • If none of the possible paths is valid, the importer should perform the same resolution on the URL followed by `/index`. In the example above, it would look for:

  • `foo/bar/baz/_index.sass`

  • `foo/bar/baz/index.sass`

  • `foo/bar/baz/_index.scss`

  • `foo/bar/baz/index.scss`

    As above, if the importer finds a stylesheet at more than one of these URLs, it should respond with a `CanonicalizeResponse.result.error` indicating that the import is ambiguous.

func (*OutboundMessage_CanonicalizeRequest) Descriptor deprecated

func (*OutboundMessage_CanonicalizeRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_CanonicalizeRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CanonicalizeRequest) GetCompilationId

func (x *OutboundMessage_CanonicalizeRequest) GetCompilationId() uint32

func (*OutboundMessage_CanonicalizeRequest) GetFromImport added in v0.15.0

func (x *OutboundMessage_CanonicalizeRequest) GetFromImport() bool

func (*OutboundMessage_CanonicalizeRequest) GetId

func (*OutboundMessage_CanonicalizeRequest) GetImporterId

func (x *OutboundMessage_CanonicalizeRequest) GetImporterId() uint32

func (*OutboundMessage_CanonicalizeRequest) GetUrl

func (*OutboundMessage_CanonicalizeRequest) ProtoMessage

func (*OutboundMessage_CanonicalizeRequest) ProtoMessage()

func (*OutboundMessage_CanonicalizeRequest) ProtoReflect

func (*OutboundMessage_CanonicalizeRequest) Reset

func (*OutboundMessage_CanonicalizeRequest) String

type OutboundMessage_CanonicalizeRequest_

type OutboundMessage_CanonicalizeRequest_ struct {
	CanonicalizeRequest *OutboundMessage_CanonicalizeRequest `protobuf:"bytes,4,opt,name=canonicalize_request,json=canonicalizeRequest,proto3,oneof"`
}

type OutboundMessage_CompileResponse

type OutboundMessage_CompileResponse struct {

	// The compilation's request id. Mandatory.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The success or failure result of the compilation. Mandatory.
	//
	// Types that are assignable to Result:
	//
	//	*OutboundMessage_CompileResponse_Success
	//	*OutboundMessage_CompileResponse_Failure
	Result isOutboundMessage_CompileResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response that contains the result of a compilation.

func (*OutboundMessage_CompileResponse) Descriptor deprecated

func (*OutboundMessage_CompileResponse) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_CompileResponse.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CompileResponse) GetFailure

func (*OutboundMessage_CompileResponse) GetId

func (*OutboundMessage_CompileResponse) GetResult

func (m *OutboundMessage_CompileResponse) GetResult() isOutboundMessage_CompileResponse_Result

func (*OutboundMessage_CompileResponse) GetSuccess

func (*OutboundMessage_CompileResponse) ProtoMessage

func (*OutboundMessage_CompileResponse) ProtoMessage()

func (*OutboundMessage_CompileResponse) ProtoReflect

func (*OutboundMessage_CompileResponse) Reset

func (*OutboundMessage_CompileResponse) String

type OutboundMessage_CompileResponse_

type OutboundMessage_CompileResponse_ struct {
	CompileResponse *OutboundMessage_CompileResponse `protobuf:"bytes,2,opt,name=compile_response,json=compileResponse,proto3,oneof"`
}

type OutboundMessage_CompileResponse_CompileFailure

type OutboundMessage_CompileResponse_CompileFailure struct {

	// A message describing the reason for the failure.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// The span associated with the failure. Mandatory.
	Span *SourceSpan `protobuf:"bytes,2,opt,name=span,proto3" json:"span,omitempty"`
	// The stack trace associated with the failure.
	//
	// The empty string indicates that no stack trace is available. Otherwise,
	// the format of this stack trace is not specified and is likely to be
	// inconsistent between implementations.
	StackTrace string `protobuf:"bytes,3,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	// A formatted, human-readable string that contains the message, span
	// (if available), and trace (if available). The format of this string is
	// not specified and is likely to be inconsistent between implementations.
	Formatted string `protobuf:"bytes,4,opt,name=formatted,proto3" json:"formatted,omitempty"`
	// contains filtered or unexported fields
}

A message indicating that the Sass file could not be successfully compiled to CSS.

func (*OutboundMessage_CompileResponse_CompileFailure) Descriptor deprecated

Deprecated: Use OutboundMessage_CompileResponse_CompileFailure.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CompileResponse_CompileFailure) GetFormatted added in v0.15.0

func (*OutboundMessage_CompileResponse_CompileFailure) GetMessage

func (*OutboundMessage_CompileResponse_CompileFailure) GetSpan

func (*OutboundMessage_CompileResponse_CompileFailure) GetStackTrace

func (*OutboundMessage_CompileResponse_CompileFailure) ProtoMessage

func (*OutboundMessage_CompileResponse_CompileFailure) ProtoReflect

func (*OutboundMessage_CompileResponse_CompileFailure) Reset

func (*OutboundMessage_CompileResponse_CompileFailure) String

type OutboundMessage_CompileResponse_CompileSuccess

type OutboundMessage_CompileResponse_CompileSuccess struct {

	// The compiled CSS.
	Css string `protobuf:"bytes,1,opt,name=css,proto3" json:"css,omitempty"`
	// The JSON-encoded source map, or the empty string if
	// `CompileRequest.source_map` was `false`.
	//
	// The compiler must not add a `"file"` key to this source map. It's the
	// host's (or the host's user's) responsibility to determine how the
	// generated CSS can be reached from the source map.
	SourceMap string `protobuf:"bytes,2,opt,name=source_map,json=sourceMap,proto3" json:"source_map,omitempty"`
	// The canonical URLs of all source files loaded during the compilation.
	//
	// The compiler must ensure that each canonical URL appears only once in
	// this list. This must include the entrypoint file's URL if either
	// `CompileRequest.input.path` or `CompileRequest.StringInput.url` was
	// passed.
	LoadedUrls []string `protobuf:"bytes,3,rep,name=loaded_urls,json=loadedUrls,proto3" json:"loaded_urls,omitempty"`
	// contains filtered or unexported fields
}

A message indicating that the Sass file was successfully compiled to CSS.

func (*OutboundMessage_CompileResponse_CompileSuccess) Descriptor deprecated

Deprecated: Use OutboundMessage_CompileResponse_CompileSuccess.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CompileResponse_CompileSuccess) GetCss

func (*OutboundMessage_CompileResponse_CompileSuccess) GetLoadedUrls added in v0.15.0

func (*OutboundMessage_CompileResponse_CompileSuccess) GetSourceMap

func (*OutboundMessage_CompileResponse_CompileSuccess) ProtoMessage

func (*OutboundMessage_CompileResponse_CompileSuccess) ProtoReflect

func (*OutboundMessage_CompileResponse_CompileSuccess) Reset

func (*OutboundMessage_CompileResponse_CompileSuccess) String

type OutboundMessage_CompileResponse_Failure

type OutboundMessage_CompileResponse_Failure struct {
	// The result of a failed compilation.
	Failure *OutboundMessage_CompileResponse_CompileFailure `protobuf:"bytes,3,opt,name=failure,proto3,oneof"`
}

type OutboundMessage_CompileResponse_Success

type OutboundMessage_CompileResponse_Success struct {
	// The result of a successful compilation.
	Success *OutboundMessage_CompileResponse_CompileSuccess `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}

type OutboundMessage_Error

type OutboundMessage_Error struct {
	Error *ProtocolError `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
}

type OutboundMessage_FileImportRequest

type OutboundMessage_FileImportRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// The unique ID of the importer being invoked. This must match an
	// `Importer.file_importer_id` passed to this compilation in
	// `CompileRequest.importers` or `CompileRequest.input.string.importer`.
	// Mandatory.
	ImporterId uint32 `protobuf:"varint,3,opt,name=importer_id,json=importerId,proto3" json:"importer_id,omitempty"`
	// The (non-canonicalized) URL of the import.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// / Whether this request comes from an `@import` rule.
	// /
	// / When evaluating `@import` rules, filesystem importers should load an
	// / [import-only file] if one exists for the URL being canonicalized.
	// / Otherwise, canonicalization should be identical for `@import` and `@use`
	// / rules.
	// /
	// / [import-only file]: https://sass-lang.com/documentation/at-rules/import#import-only-files
	FromImport bool `protobuf:"varint,5,opt,name=from_import,json=fromImport,proto3" json:"from_import,omitempty"`
	// contains filtered or unexported fields
}

A request for a custom filesystem importer to load the contents of a stylesheet.

A filesystem importer is represented in the compiler as an importer. When the importer is invoked with a string `string`:

* If `string` is an absolute URL whose scheme is `file`:

  • Let `url` be string.

* Otherwise:

  • Let `fromImport` be `true` if the importer is being run for an `@import` and `false` otherwise.

  • Let `response` be the result of sending a `FileImportRequest` with `string` as its `url` and `fromImport` as `from_import`.

  • If `response.result` is null, return null.

  • Otherwise, if `response.result.error` is set, throw an error.

  • Otherwise, let `url` be `response.result.file_url`.

* Let `resolved` be the result of resolving `url`.

* If `resolved` is null, return null.

* Let `text` be the contents of the file at `resolved`.

* Let `syntax` be:

  • "scss" if `url` ends in `.scss`.

  • "indented" if `url` ends in `.sass`.

  • "css" if `url` ends in `.css`.

    > The algorithm for resolving a `file:` URL guarantees that `url` will have > one of these extensions.

* Return `text`, `syntax`, and `resolved`.

func (*OutboundMessage_FileImportRequest) Descriptor deprecated

func (*OutboundMessage_FileImportRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_FileImportRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_FileImportRequest) GetCompilationId

func (x *OutboundMessage_FileImportRequest) GetCompilationId() uint32

func (*OutboundMessage_FileImportRequest) GetFromImport added in v0.15.0

func (x *OutboundMessage_FileImportRequest) GetFromImport() bool

func (*OutboundMessage_FileImportRequest) GetId

func (*OutboundMessage_FileImportRequest) GetImporterId

func (x *OutboundMessage_FileImportRequest) GetImporterId() uint32

func (*OutboundMessage_FileImportRequest) GetUrl

func (*OutboundMessage_FileImportRequest) ProtoMessage

func (*OutboundMessage_FileImportRequest) ProtoMessage()

func (*OutboundMessage_FileImportRequest) ProtoReflect

func (*OutboundMessage_FileImportRequest) Reset

func (*OutboundMessage_FileImportRequest) String

type OutboundMessage_FileImportRequest_

type OutboundMessage_FileImportRequest_ struct {
	FileImportRequest *OutboundMessage_FileImportRequest `protobuf:"bytes,6,opt,name=file_import_request,json=fileImportRequest,proto3,oneof"`
}

type OutboundMessage_FunctionCallRequest

type OutboundMessage_FunctionCallRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// An identifier that indicates which function to invoke. Mandatory.
	//
	// Types that are assignable to Identifier:
	//
	//	*OutboundMessage_FunctionCallRequest_Name
	//	*OutboundMessage_FunctionCallRequest_FunctionId
	Identifier isOutboundMessage_FunctionCallRequest_Identifier `protobuf_oneof:"identifier"`
	// The arguments passed to the function, in the order they appear in the
	// function signature passed to `CompileRequest.global_functions`. Mandatory.
	//
	// The compiler must ensure that a valid number of arguments are passed for
	// the given signature, that default argument values are instantiated
	// appropriately, and that variable argument lists (`$args...`) are passed
	// as `Value.ArgumentList`s.
	Arguments []*Value `protobuf:"bytes,5,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

A request to invoke a custom Sass function and return its result.

func (*OutboundMessage_FunctionCallRequest) Descriptor deprecated

func (*OutboundMessage_FunctionCallRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_FunctionCallRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_FunctionCallRequest) GetArguments

func (x *OutboundMessage_FunctionCallRequest) GetArguments() []*Value

func (*OutboundMessage_FunctionCallRequest) GetCompilationId

func (x *OutboundMessage_FunctionCallRequest) GetCompilationId() uint32

func (*OutboundMessage_FunctionCallRequest) GetFunctionId

func (x *OutboundMessage_FunctionCallRequest) GetFunctionId() uint32

func (*OutboundMessage_FunctionCallRequest) GetId

func (*OutboundMessage_FunctionCallRequest) GetIdentifier

func (m *OutboundMessage_FunctionCallRequest) GetIdentifier() isOutboundMessage_FunctionCallRequest_Identifier

func (*OutboundMessage_FunctionCallRequest) GetName

func (*OutboundMessage_FunctionCallRequest) ProtoMessage

func (*OutboundMessage_FunctionCallRequest) ProtoMessage()

func (*OutboundMessage_FunctionCallRequest) ProtoReflect

func (*OutboundMessage_FunctionCallRequest) Reset

func (*OutboundMessage_FunctionCallRequest) String

type OutboundMessage_FunctionCallRequest_

type OutboundMessage_FunctionCallRequest_ struct {
	FunctionCallRequest *OutboundMessage_FunctionCallRequest `protobuf:"bytes,7,opt,name=function_call_request,json=functionCallRequest,proto3,oneof"`
}

type OutboundMessage_FunctionCallRequest_FunctionId

type OutboundMessage_FunctionCallRequest_FunctionId struct {
	// The opaque ID of the function to invoke.
	//
	// This must match the ID of a `Value.HostFunction` that the host passed
	// to the compiler.
	FunctionId uint32 `protobuf:"varint,4,opt,name=function_id,json=functionId,proto3,oneof"`
}

type OutboundMessage_FunctionCallRequest_Name

type OutboundMessage_FunctionCallRequest_Name struct {
	// The name of the function to invoke.
	//
	// This must match the name of a function signature the host passed to the
	// corresponding `CompileRequest.global_functions` call, including hyphens
	// and underscores.
	Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
}

type OutboundMessage_ImportRequest

type OutboundMessage_ImportRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// The unique ID of the importer being invoked. This must match an
	// `Importer.importer_id` passed to this compilation in
	// `CompileRequest.importers` or `CompileRequest.input.string.importer`.
	// Mandatory.
	ImporterId uint32 `protobuf:"varint,3,opt,name=importer_id,json=importerId,proto3" json:"importer_id,omitempty"`
	// The canonical URL of the import. This is guaranteed to be a URL returned
	// by a `CanonicalizeRequest` to this importer.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

A request for a custom importer to load the contents of a stylesheet.

func (*OutboundMessage_ImportRequest) Descriptor deprecated

func (*OutboundMessage_ImportRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_ImportRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_ImportRequest) GetCompilationId

func (x *OutboundMessage_ImportRequest) GetCompilationId() uint32

func (*OutboundMessage_ImportRequest) GetId

func (*OutboundMessage_ImportRequest) GetImporterId

func (x *OutboundMessage_ImportRequest) GetImporterId() uint32

func (*OutboundMessage_ImportRequest) GetUrl

func (*OutboundMessage_ImportRequest) ProtoMessage

func (*OutboundMessage_ImportRequest) ProtoMessage()

func (*OutboundMessage_ImportRequest) ProtoReflect

func (*OutboundMessage_ImportRequest) Reset

func (x *OutboundMessage_ImportRequest) Reset()

func (*OutboundMessage_ImportRequest) String

type OutboundMessage_ImportRequest_

type OutboundMessage_ImportRequest_ struct {
	ImportRequest *OutboundMessage_ImportRequest `protobuf:"bytes,5,opt,name=import_request,json=importRequest,proto3,oneof"`
}

type OutboundMessage_LogEvent

type OutboundMessage_LogEvent struct {

	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32       `protobuf:"varint,1,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	Type          LogEventType `protobuf:"varint,2,opt,name=type,proto3,enum=sass.embedded_protocol.LogEventType" json:"type,omitempty"`
	// The text of the message.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// The span associated with this message. Optional.
	Span *SourceSpan `protobuf:"bytes,4,opt,name=span,proto3" json:"span,omitempty"`
	// The stack trace associated with this message.
	//
	// The empty string indicates that no stack trace is available. Otherwise,
	// the format of this stack trace is not specified and is likely to be
	// inconsistent between implementations.
	StackTrace string `protobuf:"bytes,5,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	// A formatted, human-readable string that contains the message, span (if
	// available), and trace (if available). The format of this string is not
	// specified and is likely to be inconsistent between implementations.
	Formatted string `protobuf:"bytes,6,opt,name=formatted,proto3" json:"formatted,omitempty"`
	// contains filtered or unexported fields
}

An event indicating that a message should be displayed to the user.

func (*OutboundMessage_LogEvent) Descriptor deprecated

func (*OutboundMessage_LogEvent) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_LogEvent.ProtoReflect.Descriptor instead.

func (*OutboundMessage_LogEvent) GetCompilationId

func (x *OutboundMessage_LogEvent) GetCompilationId() uint32

func (*OutboundMessage_LogEvent) GetFormatted added in v0.15.0

func (x *OutboundMessage_LogEvent) GetFormatted() string

func (*OutboundMessage_LogEvent) GetMessage

func (x *OutboundMessage_LogEvent) GetMessage() string

func (*OutboundMessage_LogEvent) GetSpan

func (x *OutboundMessage_LogEvent) GetSpan() *SourceSpan

func (*OutboundMessage_LogEvent) GetStackTrace

func (x *OutboundMessage_LogEvent) GetStackTrace() string

func (*OutboundMessage_LogEvent) GetType

func (*OutboundMessage_LogEvent) ProtoMessage

func (*OutboundMessage_LogEvent) ProtoMessage()

func (*OutboundMessage_LogEvent) ProtoReflect

func (x *OutboundMessage_LogEvent) ProtoReflect() protoreflect.Message

func (*OutboundMessage_LogEvent) Reset

func (x *OutboundMessage_LogEvent) Reset()

func (*OutboundMessage_LogEvent) String

func (x *OutboundMessage_LogEvent) String() string

type OutboundMessage_LogEvent_

type OutboundMessage_LogEvent_ struct {
	LogEvent *OutboundMessage_LogEvent `protobuf:"bytes,3,opt,name=log_event,json=logEvent,proto3,oneof"`
}

type OutboundMessage_VersionResponse added in v0.12.0

type OutboundMessage_VersionResponse struct {

	// This version request's id. Mandatory.
	Id uint32 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	// The version of the embedded protocol, in semver format.
	ProtocolVersion string `protobuf:"bytes,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
	// The version of the embedded compiler package. This has no guaranteed
	// format, although compilers are encouraged to use semver.
	CompilerVersion string `protobuf:"bytes,2,opt,name=compiler_version,json=compilerVersion,proto3" json:"compiler_version,omitempty"`
	// The version of the Sass implementation that the embedded compiler wraps.
	// This has no guaranteed format, although Sass implementations are
	// encouraged to use semver.
	ImplementationVersion string `protobuf:"bytes,3,opt,name=implementation_version,json=implementationVersion,proto3" json:"implementation_version,omitempty"`
	// The name of the Sass implementation that the embedded compiler wraps.
	ImplementationName string `protobuf:"bytes,4,opt,name=implementation_name,json=implementationName,proto3" json:"implementation_name,omitempty"`
	// contains filtered or unexported fields
}

A response that contains the version of the embedded compiler.

func (*OutboundMessage_VersionResponse) Descriptor deprecated added in v0.12.0

func (*OutboundMessage_VersionResponse) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_VersionResponse.ProtoReflect.Descriptor instead.

func (*OutboundMessage_VersionResponse) GetCompilerVersion added in v0.12.0

func (x *OutboundMessage_VersionResponse) GetCompilerVersion() string

func (*OutboundMessage_VersionResponse) GetId added in v0.15.0

func (*OutboundMessage_VersionResponse) GetImplementationName added in v0.12.0

func (x *OutboundMessage_VersionResponse) GetImplementationName() string

func (*OutboundMessage_VersionResponse) GetImplementationVersion added in v0.12.0

func (x *OutboundMessage_VersionResponse) GetImplementationVersion() string

func (*OutboundMessage_VersionResponse) GetProtocolVersion added in v0.12.0

func (x *OutboundMessage_VersionResponse) GetProtocolVersion() string

func (*OutboundMessage_VersionResponse) ProtoMessage added in v0.12.0

func (*OutboundMessage_VersionResponse) ProtoMessage()

func (*OutboundMessage_VersionResponse) ProtoReflect added in v0.12.0

func (*OutboundMessage_VersionResponse) Reset added in v0.12.0

func (*OutboundMessage_VersionResponse) String added in v0.12.0

type OutboundMessage_VersionResponse_ added in v0.12.0

type OutboundMessage_VersionResponse_ struct {
	VersionResponse *OutboundMessage_VersionResponse `protobuf:"bytes,8,opt,name=version_response,json=versionResponse,proto3,oneof"`
}

type OutputStyle added in v0.15.0

type OutputStyle int32

Possible ways to format the CSS output. The compiler is not required to support all possible options; if the host requests an unsupported style, the compiler should choose the closest supported style.

const (
	// Each selector and declaration is written on its own line.
	OutputStyle_EXPANDED OutputStyle = 0
	// The entire stylesheet is written on a single line, with as few characters
	// as possible.
	OutputStyle_COMPRESSED OutputStyle = 1
)

func (OutputStyle) Descriptor added in v0.15.0

func (OutputStyle) Enum added in v0.15.0

func (x OutputStyle) Enum() *OutputStyle

func (OutputStyle) EnumDescriptor deprecated added in v0.15.0

func (OutputStyle) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutputStyle.Descriptor instead.

func (OutputStyle) Number added in v0.15.0

func (x OutputStyle) Number() protoreflect.EnumNumber

func (OutputStyle) String added in v0.15.0

func (x OutputStyle) String() string

func (OutputStyle) Type added in v0.15.0

type ProtocolError

type ProtocolError struct {
	Type ProtocolErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=sass.embedded_protocol.ProtocolErrorType" json:"type,omitempty"`
	// The ID of the request that had an error. This MUST be `4294967295` if the
	// request ID couldn't be determined, or if the error is being reported for a
	// response or an event.
	Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// A human-readable message providing more detail about the error.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

An error reported when an endpoint violates the embedded Sass protocol.

func (*ProtocolError) Descriptor deprecated

func (*ProtocolError) Descriptor() ([]byte, []int)

Deprecated: Use ProtocolError.ProtoReflect.Descriptor instead.

func (*ProtocolError) GetId

func (x *ProtocolError) GetId() uint32

func (*ProtocolError) GetMessage

func (x *ProtocolError) GetMessage() string

func (*ProtocolError) GetType

func (x *ProtocolError) GetType() ProtocolErrorType

func (*ProtocolError) ProtoMessage

func (*ProtocolError) ProtoMessage()

func (*ProtocolError) ProtoReflect

func (x *ProtocolError) ProtoReflect() protoreflect.Message

func (*ProtocolError) Reset

func (x *ProtocolError) Reset()

func (*ProtocolError) String

func (x *ProtocolError) String() string

type ProtocolErrorType added in v0.15.0

type ProtocolErrorType int32

Potential types of protocol errors.

const (
	// A message was received that couldn't be decoded as an `InboundMessage` (for
	// the compiler) or `OutboundMessage` (for the host).
	ProtocolErrorType_PARSE ProtocolErrorType = 0
	// A message was received that violated a documented restriction, such as not
	// providing a mandatory field.
	ProtocolErrorType_PARAMS ProtocolErrorType = 1
	// Something unexpected went wrong within the endpoint.
	ProtocolErrorType_INTERNAL ProtocolErrorType = 2
)

func (ProtocolErrorType) Descriptor added in v0.15.0

func (ProtocolErrorType) Enum added in v0.15.0

func (ProtocolErrorType) EnumDescriptor deprecated added in v0.15.0

func (ProtocolErrorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtocolErrorType.Descriptor instead.

func (ProtocolErrorType) Number added in v0.15.0

func (ProtocolErrorType) String added in v0.15.0

func (x ProtocolErrorType) String() string

func (ProtocolErrorType) Type added in v0.15.0

type SingletonValue added in v0.15.0

type SingletonValue int32

Singleton SassScript values that have no internal state.

const (
	// The SassScript boolean true value.
	SingletonValue_TRUE SingletonValue = 0
	// The SassScript boolean false value.
	SingletonValue_FALSE SingletonValue = 1
	// The SassScript null value.
	SingletonValue_NULL SingletonValue = 2
)

func (SingletonValue) Descriptor added in v0.15.0

func (SingletonValue) Enum added in v0.15.0

func (x SingletonValue) Enum() *SingletonValue

func (SingletonValue) EnumDescriptor deprecated added in v0.15.0

func (SingletonValue) EnumDescriptor() ([]byte, []int)

Deprecated: Use SingletonValue.Descriptor instead.

func (SingletonValue) Number added in v0.15.0

func (SingletonValue) String added in v0.15.0

func (x SingletonValue) String() string

func (SingletonValue) Type added in v0.15.0

type SourceSpan

type SourceSpan struct {

	// The text covered by the source span. Compilers must guarantee that this is
	// the text between `start.offset` and `end.offset` in the source file
	// referred to by `url`.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The location of the first character in this span. Mandatory.
	Start *SourceSpan_SourceLocation `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	// The location of the first character after this span. Optional.
	//
	// If this is omitted, it indicates that the span is empty and points
	// immediately before `start`. In that case, `text` must be empty.
	//
	// This must not point to a location before `start`.
	End *SourceSpan_SourceLocation `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	// The URL of the file to which this span refers.
	//
	// This may be empty, indicating that the span refers to a
	// `CompileRequest.StringInput` file that doesn't specify a URL.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// Additional source text surrounding this span.
	//
	// If this isn't empty, it must contain `text`. Furthermore, `text` must begin
	// at column `start.column` of a line in `context`.
	//
	// This usually contains the full lines the span begins and ends on if the
	// span itself doesn't cover the full lines.
	Context string `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

A chunk of a source file.

func (*SourceSpan) Descriptor deprecated

func (*SourceSpan) Descriptor() ([]byte, []int)

Deprecated: Use SourceSpan.ProtoReflect.Descriptor instead.

func (*SourceSpan) GetContext

func (x *SourceSpan) GetContext() string

func (*SourceSpan) GetEnd

func (*SourceSpan) GetStart

func (x *SourceSpan) GetStart() *SourceSpan_SourceLocation

func (*SourceSpan) GetText

func (x *SourceSpan) GetText() string

func (*SourceSpan) GetUrl

func (x *SourceSpan) GetUrl() string

func (*SourceSpan) ProtoMessage

func (*SourceSpan) ProtoMessage()

func (*SourceSpan) ProtoReflect

func (x *SourceSpan) ProtoReflect() protoreflect.Message

func (*SourceSpan) Reset

func (x *SourceSpan) Reset()

func (*SourceSpan) String

func (x *SourceSpan) String() string

type SourceSpan_SourceLocation

type SourceSpan_SourceLocation struct {

	// The 0-based offset of this location within the source file. Mandatory.
	Offset uint32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// The 0-based line number of this location within the source file.
	// Mandatory.
	Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	// The 0-based column number of this location within its line. Mandatory.
	Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

A single point in a source file.

func (*SourceSpan_SourceLocation) Descriptor deprecated

func (*SourceSpan_SourceLocation) Descriptor() ([]byte, []int)

Deprecated: Use SourceSpan_SourceLocation.ProtoReflect.Descriptor instead.

func (*SourceSpan_SourceLocation) GetColumn

func (x *SourceSpan_SourceLocation) GetColumn() uint32

func (*SourceSpan_SourceLocation) GetLine

func (x *SourceSpan_SourceLocation) GetLine() uint32

func (*SourceSpan_SourceLocation) GetOffset

func (x *SourceSpan_SourceLocation) GetOffset() uint32

func (*SourceSpan_SourceLocation) ProtoMessage

func (*SourceSpan_SourceLocation) ProtoMessage()

func (*SourceSpan_SourceLocation) ProtoReflect

func (*SourceSpan_SourceLocation) Reset

func (x *SourceSpan_SourceLocation) Reset()

func (*SourceSpan_SourceLocation) String

func (x *SourceSpan_SourceLocation) String() string

type Syntax added in v0.15.0

type Syntax int32

Possible syntaxes for a Sass stylesheet.

const (
	// The CSS-superset `.scss` syntax.
	Syntax_SCSS Syntax = 0
	// The indented `.sass` syntax.
	Syntax_INDENTED Syntax = 1
	// Plain CSS syntax that doesn't support any special Sass features.
	Syntax_CSS Syntax = 2
)

func (Syntax) Descriptor added in v0.15.0

func (Syntax) Descriptor() protoreflect.EnumDescriptor

func (Syntax) Enum added in v0.15.0

func (x Syntax) Enum() *Syntax

func (Syntax) EnumDescriptor deprecated added in v0.15.0

func (Syntax) EnumDescriptor() ([]byte, []int)

Deprecated: Use Syntax.Descriptor instead.

func (Syntax) Number added in v0.15.0

func (x Syntax) Number() protoreflect.EnumNumber

func (Syntax) String added in v0.15.0

func (x Syntax) String() string

func (Syntax) Type added in v0.15.0

func (Syntax) Type() protoreflect.EnumType

type Value

type Value struct {

	// The value itself. Mandatory.
	//
	// This is wrapped in a message type rather than used directly to reduce
	// repetition, and because oneofs can't be repeated.
	//
	// Types that are assignable to Value:
	//
	//	*Value_String_
	//	*Value_Number_
	//	*Value_RgbColor_
	//	*Value_HslColor_
	//	*Value_List_
	//	*Value_Map_
	//	*Value_Singleton
	//	*Value_CompilerFunction_
	//	*Value_HostFunction_
	//	*Value_ArgumentList_
	//	*Value_HwbColor_
	//	*Value_Calculation_
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A SassScript value, passed to and returned by functions.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetArgumentList added in v0.15.0

func (x *Value) GetArgumentList() *Value_ArgumentList

func (*Value) GetCalculation added in v0.15.0

func (x *Value) GetCalculation() *Value_Calculation

func (*Value) GetCompilerFunction

func (x *Value) GetCompilerFunction() *Value_CompilerFunction

func (*Value) GetHostFunction

func (x *Value) GetHostFunction() *Value_HostFunction

func (*Value) GetHslColor

func (x *Value) GetHslColor() *Value_HslColor

func (*Value) GetHwbColor added in v0.15.0

func (x *Value) GetHwbColor() *Value_HwbColor

func (*Value) GetList

func (x *Value) GetList() *Value_List

func (*Value) GetMap

func (x *Value) GetMap() *Value_Map

func (*Value) GetNumber

func (x *Value) GetNumber() *Value_Number

func (*Value) GetRgbColor

func (x *Value) GetRgbColor() *Value_RgbColor

func (*Value) GetSingleton

func (x *Value) GetSingleton() SingletonValue

func (*Value) GetString_

func (x *Value) GetString_() *Value_String

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_ArgumentList added in v0.15.0

type Value_ArgumentList struct {

	// An ID for this argument list that's unique within the scope of a given
	// `FunctionCallRequest`.
	//
	// The special ID `0` is reserved for `ArgumentList`s created by the host,
	// and may not be used by the compiler. These `ArgumentList`s do not need to
	// have their IDs added to `FunctionCallResponse.accessed_argument_lists`,
	// and the compiler should treat them as though their keywords have always
	// been accessed.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The type of separator for this list. The compiler must set this, but
	// the host may omit it for `ArgumentList`s that were originally created by
	// the compiler (that is, those with a non-0 ID).
	Separator ListSeparator `protobuf:"varint,2,opt,name=separator,proto3,enum=sass.embedded_protocol.ListSeparator" json:"separator,omitempty"`
	// The argument list's positional contents. The compiler must set this, but
	// the host may omit it for `ArgumentList`s that were originally created by
	// the compiler (that is, those with a non-0 ID).
	Contents []*Value `protobuf:"bytes,3,rep,name=contents,proto3" json:"contents,omitempty"`
	// The argument list's keywords. The compiler must set this, but the host
	// may omit it for `ArgumentList`s that were originally created by the
	// compiler (that is, those with a non-0 ID).
	Keywords map[string]*Value `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

A SassScript argument list value. This represents rest arguments passed to a function's `$arg...` parameter. Unlike a normal `List`, an argument list has an associated keywords map which tracks keyword arguments passed in alongside positional arguments.

For each `ArgumentList` in `FunctionCallRequest.arguments` (including those nested within `List`s and `Map`s), the host must track whether its keyword arguments were accessed by the user. If they were, it must add its `ArgumentList.id` to `FunctionCallResponse.accessed_argument_lists`.

The compiler must treat every `ArgumentList` whose `ArgumentList.id` appears in `FunctionCallResponse.accessed_argument_lists` as though it had been passed to `meta.keywords()`.

func (*Value_ArgumentList) Descriptor deprecated added in v0.15.0

func (*Value_ArgumentList) Descriptor() ([]byte, []int)

Deprecated: Use Value_ArgumentList.ProtoReflect.Descriptor instead.

func (*Value_ArgumentList) GetContents added in v0.15.0

func (x *Value_ArgumentList) GetContents() []*Value

func (*Value_ArgumentList) GetId added in v0.15.0

func (x *Value_ArgumentList) GetId() uint32

func (*Value_ArgumentList) GetKeywords added in v0.15.0

func (x *Value_ArgumentList) GetKeywords() map[string]*Value

func (*Value_ArgumentList) GetSeparator added in v0.15.0

func (x *Value_ArgumentList) GetSeparator() ListSeparator

func (*Value_ArgumentList) ProtoMessage added in v0.15.0

func (*Value_ArgumentList) ProtoMessage()

func (*Value_ArgumentList) ProtoReflect added in v0.15.0

func (x *Value_ArgumentList) ProtoReflect() protoreflect.Message

func (*Value_ArgumentList) Reset added in v0.15.0

func (x *Value_ArgumentList) Reset()

func (*Value_ArgumentList) String added in v0.15.0

func (x *Value_ArgumentList) String() string

type Value_ArgumentList_ added in v0.15.0

type Value_ArgumentList_ struct {
	ArgumentList *Value_ArgumentList `protobuf:"bytes,10,opt,name=argument_list,json=argumentList,proto3,oneof"`
}

type Value_Calculation added in v0.15.0

type Value_Calculation struct {

	// The calculation's name. Mandatory. The host may only set this to names
	// that the Sass specification uses to create calculations.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The calculation's arguments. Mandatory. The host must use exactly the
	// number of arguments used by the Sass specification for calculations with
	// the given `name`.
	Arguments []*Value_Calculation_CalculationValue `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

A SassScript calculation value. The compiler must send fully simplified calculations, meaning that simplifying it again will produce the same calculation. The host is not required to simplify calculations.

The compiler must simplify any calculations it receives from the host before returning them from a function. If this simplification produces an error, it should be treated as though the function call threw that error. It should *not* be treated as a protocol error.

func (*Value_Calculation) Descriptor deprecated added in v0.15.0

func (*Value_Calculation) Descriptor() ([]byte, []int)

Deprecated: Use Value_Calculation.ProtoReflect.Descriptor instead.

func (*Value_Calculation) GetArguments added in v0.15.0

func (*Value_Calculation) GetName added in v0.15.0

func (x *Value_Calculation) GetName() string

func (*Value_Calculation) ProtoMessage added in v0.15.0

func (*Value_Calculation) ProtoMessage()

func (*Value_Calculation) ProtoReflect added in v0.15.0

func (x *Value_Calculation) ProtoReflect() protoreflect.Message

func (*Value_Calculation) Reset added in v0.15.0

func (x *Value_Calculation) Reset()

func (*Value_Calculation) String added in v0.15.0

func (x *Value_Calculation) String() string

type Value_Calculation_ added in v0.15.0

type Value_Calculation_ struct {
	Calculation *Value_Calculation `protobuf:"bytes,12,opt,name=calculation,proto3,oneof"`
}

type Value_Calculation_CalculationOperation added in v0.15.0

type Value_Calculation_CalculationOperation struct {

	// The operator to perform.
	Operator CalculationOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=sass.embedded_protocol.CalculationOperator" json:"operator,omitempty"`
	// The left-hand side of the operation.
	Left *Value_Calculation_CalculationValue `protobuf:"bytes,2,opt,name=left,proto3" json:"left,omitempty"`
	// The right-hand side of the operation.
	Right *Value_Calculation_CalculationValue `protobuf:"bytes,3,opt,name=right,proto3" json:"right,omitempty"`
	// contains filtered or unexported fields
}

A binary operation that appears in a calculation.

func (*Value_Calculation_CalculationOperation) Descriptor deprecated added in v0.15.0

func (*Value_Calculation_CalculationOperation) Descriptor() ([]byte, []int)

Deprecated: Use Value_Calculation_CalculationOperation.ProtoReflect.Descriptor instead.

func (*Value_Calculation_CalculationOperation) GetLeft added in v0.15.0

func (*Value_Calculation_CalculationOperation) GetOperator added in v0.15.0

func (*Value_Calculation_CalculationOperation) GetRight added in v0.15.0

func (*Value_Calculation_CalculationOperation) ProtoMessage added in v0.15.0

func (*Value_Calculation_CalculationOperation) ProtoReflect added in v0.15.0

func (*Value_Calculation_CalculationOperation) Reset added in v0.15.0

func (*Value_Calculation_CalculationOperation) String added in v0.15.0

type Value_Calculation_CalculationValue added in v0.15.0

type Value_Calculation_CalculationValue struct {

	// The value of the component. Mandatory.
	//
	// Types that are assignable to Value:
	//
	//	*Value_Calculation_CalculationValue_Number
	//	*Value_Calculation_CalculationValue_String_
	//	*Value_Calculation_CalculationValue_Interpolation
	//	*Value_Calculation_CalculationValue_Operation
	//	*Value_Calculation_CalculationValue_Calculation
	Value isValue_Calculation_CalculationValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A single component of a calculation expression.

func (*Value_Calculation_CalculationValue) Descriptor deprecated added in v0.15.0

func (*Value_Calculation_CalculationValue) Descriptor() ([]byte, []int)

Deprecated: Use Value_Calculation_CalculationValue.ProtoReflect.Descriptor instead.

func (*Value_Calculation_CalculationValue) GetCalculation added in v0.15.0

func (*Value_Calculation_CalculationValue) GetInterpolation added in v0.15.0

func (x *Value_Calculation_CalculationValue) GetInterpolation() string

func (*Value_Calculation_CalculationValue) GetNumber added in v0.15.0

func (*Value_Calculation_CalculationValue) GetOperation added in v0.15.0

func (*Value_Calculation_CalculationValue) GetString_ added in v0.15.0

func (*Value_Calculation_CalculationValue) GetValue added in v0.15.0

func (m *Value_Calculation_CalculationValue) GetValue() isValue_Calculation_CalculationValue_Value

func (*Value_Calculation_CalculationValue) ProtoMessage added in v0.15.0

func (*Value_Calculation_CalculationValue) ProtoMessage()

func (*Value_Calculation_CalculationValue) ProtoReflect added in v0.15.0

func (*Value_Calculation_CalculationValue) Reset added in v0.15.0

func (*Value_Calculation_CalculationValue) String added in v0.15.0

type Value_Calculation_CalculationValue_Calculation added in v0.15.0

type Value_Calculation_CalculationValue_Calculation struct {
	Calculation *Value_Calculation `protobuf:"bytes,5,opt,name=calculation,proto3,oneof"`
}

type Value_Calculation_CalculationValue_Interpolation added in v0.15.0

type Value_Calculation_CalculationValue_Interpolation struct {
	// An unquoted string as created by interpolation for
	// backwards-compatibility with older Sass syntax.
	Interpolation string `protobuf:"bytes,3,opt,name=interpolation,proto3,oneof"`
}

type Value_Calculation_CalculationValue_Number added in v0.15.0

type Value_Calculation_CalculationValue_Number struct {
	Number *Value_Number `protobuf:"bytes,1,opt,name=number,proto3,oneof"`
}

type Value_Calculation_CalculationValue_Operation added in v0.15.0

type Value_Calculation_CalculationValue_Operation struct {
	Operation *Value_Calculation_CalculationOperation `protobuf:"bytes,4,opt,name=operation,proto3,oneof"`
}

type Value_Calculation_CalculationValue_String_ added in v0.15.0

type Value_Calculation_CalculationValue_String_ struct {
	// An unquoted string, as from a function like `var()` or `env()`.
	String_ string `protobuf:"bytes,2,opt,name=string,proto3,oneof"`
}

type Value_CompilerFunction

type Value_CompilerFunction struct {

	// A unique ID for this function. The compiler is responsible for generating
	// this ID and ensuring it's unique across all functions passed to the host
	// for this compilation. Mandatory.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A first-class function defined in the compiler. New `CompilerFunction`s may only be created by the compiler, but the host may pass `CompilerFunction`s back to the compiler as long as their IDs match IDs of functions received by the host during that same compilation.

func (*Value_CompilerFunction) Descriptor deprecated

func (*Value_CompilerFunction) Descriptor() ([]byte, []int)

Deprecated: Use Value_CompilerFunction.ProtoReflect.Descriptor instead.

func (*Value_CompilerFunction) GetId

func (x *Value_CompilerFunction) GetId() uint32

func (*Value_CompilerFunction) ProtoMessage

func (*Value_CompilerFunction) ProtoMessage()

func (*Value_CompilerFunction) ProtoReflect

func (x *Value_CompilerFunction) ProtoReflect() protoreflect.Message

func (*Value_CompilerFunction) Reset

func (x *Value_CompilerFunction) Reset()

func (*Value_CompilerFunction) String

func (x *Value_CompilerFunction) String() string

type Value_CompilerFunction_

type Value_CompilerFunction_ struct {
	CompilerFunction *Value_CompilerFunction `protobuf:"bytes,8,opt,name=compiler_function,json=compilerFunction,proto3,oneof"`
}

type Value_HostFunction

type Value_HostFunction struct {

	// 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.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// 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.
	Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

An anonymous custom function defined in the host. New `HostFunction`s may only be created by the host, and `HostFunction`s may *never* be passed from the compiler to the host. The compiler must instead pass a `CompilerFunction` that wraps the `HostFunction`.

func (*Value_HostFunction) Descriptor deprecated

func (*Value_HostFunction) Descriptor() ([]byte, []int)

Deprecated: Use Value_HostFunction.ProtoReflect.Descriptor instead.

func (*Value_HostFunction) GetId

func (x *Value_HostFunction) GetId() uint32

func (*Value_HostFunction) GetSignature

func (x *Value_HostFunction) GetSignature() string

func (*Value_HostFunction) ProtoMessage

func (*Value_HostFunction) ProtoMessage()

func (*Value_HostFunction) ProtoReflect

func (x *Value_HostFunction) ProtoReflect() protoreflect.Message

func (*Value_HostFunction) Reset

func (x *Value_HostFunction) Reset()

func (*Value_HostFunction) String

func (x *Value_HostFunction) String() string

type Value_HostFunction_

type Value_HostFunction_ struct {
	HostFunction *Value_HostFunction `protobuf:"bytes,9,opt,name=host_function,json=hostFunction,proto3,oneof"`
}

type Value_HslColor

type Value_HslColor struct {

	// The color's hue. Mandatory.
	Hue float64 `protobuf:"fixed64,1,opt,name=hue,proto3" json:"hue,omitempty"`
	// The color's percent saturation. Mandatory. Must be between 0 and 100,
	// inclusive.
	Saturation float64 `protobuf:"fixed64,2,opt,name=saturation,proto3" json:"saturation,omitempty"`
	// The color's percent lightness. Mandatory. Must be between 0 and 100,
	// inclusive.
	Lightness float64 `protobuf:"fixed64,3,opt,name=lightness,proto3" json:"lightness,omitempty"`
	// The color's alpha channel. Mandatory. Must be between 0 and 1,
	// inclusive.
	Alpha float64 `protobuf:"fixed64,4,opt,name=alpha,proto3" json:"alpha,omitempty"`
	// contains filtered or unexported fields
}

A SassScript color value, represented as hue, saturation, and lightness channels.

func (*Value_HslColor) Descriptor deprecated

func (*Value_HslColor) Descriptor() ([]byte, []int)

Deprecated: Use Value_HslColor.ProtoReflect.Descriptor instead.

func (*Value_HslColor) GetAlpha

func (x *Value_HslColor) GetAlpha() float64

func (*Value_HslColor) GetHue

func (x *Value_HslColor) GetHue() float64

func (*Value_HslColor) GetLightness

func (x *Value_HslColor) GetLightness() float64

func (*Value_HslColor) GetSaturation

func (x *Value_HslColor) GetSaturation() float64

func (*Value_HslColor) ProtoMessage

func (*Value_HslColor) ProtoMessage()

func (*Value_HslColor) ProtoReflect

func (x *Value_HslColor) ProtoReflect() protoreflect.Message

func (*Value_HslColor) Reset

func (x *Value_HslColor) Reset()

func (*Value_HslColor) String

func (x *Value_HslColor) String() string

type Value_HslColor_

type Value_HslColor_ struct {
	HslColor *Value_HslColor `protobuf:"bytes,4,opt,name=hsl_color,json=hslColor,proto3,oneof"`
}

type Value_HwbColor added in v0.15.0

type Value_HwbColor struct {

	// The color's hue. Mandatory.
	Hue float64 `protobuf:"fixed64,1,opt,name=hue,proto3" json:"hue,omitempty"`
	// The color's percent whiteness. Mandatory. Must be between 0 and 100,
	// inclusive. The sum of `whiteness` and `blackness` must not exceed 100.
	Whiteness float64 `protobuf:"fixed64,2,opt,name=whiteness,proto3" json:"whiteness,omitempty"`
	// The color's percent blackness. Mandatory. Must be between 0 and 100,
	// inclusive. The sum of `whiteness` and `blackness` must not exceed 100.
	Blackness float64 `protobuf:"fixed64,3,opt,name=blackness,proto3" json:"blackness,omitempty"`
	// The color's alpha channel. Mandatory. Must be between 0 and 1,
	// inclusive.
	Alpha float64 `protobuf:"fixed64,4,opt,name=alpha,proto3" json:"alpha,omitempty"`
	// contains filtered or unexported fields
}

A SassScript color value, represented as hue, whiteness, and blackness channels.

func (*Value_HwbColor) Descriptor deprecated added in v0.15.0

func (*Value_HwbColor) Descriptor() ([]byte, []int)

Deprecated: Use Value_HwbColor.ProtoReflect.Descriptor instead.

func (*Value_HwbColor) GetAlpha added in v0.15.0

func (x *Value_HwbColor) GetAlpha() float64

func (*Value_HwbColor) GetBlackness added in v0.15.0

func (x *Value_HwbColor) GetBlackness() float64

func (*Value_HwbColor) GetHue added in v0.15.0

func (x *Value_HwbColor) GetHue() float64

func (*Value_HwbColor) GetWhiteness added in v0.15.0

func (x *Value_HwbColor) GetWhiteness() float64

func (*Value_HwbColor) ProtoMessage added in v0.15.0

func (*Value_HwbColor) ProtoMessage()

func (*Value_HwbColor) ProtoReflect added in v0.15.0

func (x *Value_HwbColor) ProtoReflect() protoreflect.Message

func (*Value_HwbColor) Reset added in v0.15.0

func (x *Value_HwbColor) Reset()

func (*Value_HwbColor) String added in v0.15.0

func (x *Value_HwbColor) String() string

type Value_HwbColor_ added in v0.15.0

type Value_HwbColor_ struct {
	HwbColor *Value_HwbColor `protobuf:"bytes,11,opt,name=hwb_color,json=hwbColor,proto3,oneof"`
}

type Value_List

type Value_List struct {

	// The type of separator for this list. Mandatory.
	Separator ListSeparator `protobuf:"varint,1,opt,name=separator,proto3,enum=sass.embedded_protocol.ListSeparator" json:"separator,omitempty"`
	// Whether this list has square brackets. Mandatory.
	HasBrackets bool `protobuf:"varint,2,opt,name=has_brackets,json=hasBrackets,proto3" json:"has_brackets,omitempty"`
	// The elements of this list.
	Contents []*Value `protobuf:"bytes,3,rep,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

A SassScript list value.

func (*Value_List) Descriptor deprecated

func (*Value_List) Descriptor() ([]byte, []int)

Deprecated: Use Value_List.ProtoReflect.Descriptor instead.

func (*Value_List) GetContents

func (x *Value_List) GetContents() []*Value

func (*Value_List) GetHasBrackets

func (x *Value_List) GetHasBrackets() bool

func (*Value_List) GetSeparator

func (x *Value_List) GetSeparator() ListSeparator

func (*Value_List) ProtoMessage

func (*Value_List) ProtoMessage()

func (*Value_List) ProtoReflect

func (x *Value_List) ProtoReflect() protoreflect.Message

func (*Value_List) Reset

func (x *Value_List) Reset()

func (*Value_List) String

func (x *Value_List) String() string

type Value_List_

type Value_List_ struct {
	List *Value_List `protobuf:"bytes,5,opt,name=list,proto3,oneof"`
}

type Value_Map

type Value_Map struct {

	// The entries in this map. The sending endpoint must guarantee that no two
	// entries have the same key.
	Entries []*Value_Map_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

A SassScript map value.

func (*Value_Map) Descriptor deprecated

func (*Value_Map) Descriptor() ([]byte, []int)

Deprecated: Use Value_Map.ProtoReflect.Descriptor instead.

func (*Value_Map) GetEntries

func (x *Value_Map) GetEntries() []*Value_Map_Entry

func (*Value_Map) ProtoMessage

func (*Value_Map) ProtoMessage()

func (*Value_Map) ProtoReflect

func (x *Value_Map) ProtoReflect() protoreflect.Message

func (*Value_Map) Reset

func (x *Value_Map) Reset()

func (*Value_Map) String

func (x *Value_Map) String() string

type Value_Map_

type Value_Map_ struct {
	Map *Value_Map `protobuf:"bytes,6,opt,name=map,proto3,oneof"`
}

type Value_Map_Entry

type Value_Map_Entry struct {

	// The key this entry is associated with. Mandatory.
	Key *Value `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The value associated with this key. Mandatory.
	Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A single key/value pair in the map.

func (*Value_Map_Entry) Descriptor deprecated

func (*Value_Map_Entry) Descriptor() ([]byte, []int)

Deprecated: Use Value_Map_Entry.ProtoReflect.Descriptor instead.

func (*Value_Map_Entry) GetKey

func (x *Value_Map_Entry) GetKey() *Value

func (*Value_Map_Entry) GetValue

func (x *Value_Map_Entry) GetValue() *Value

func (*Value_Map_Entry) ProtoMessage

func (*Value_Map_Entry) ProtoMessage()

func (*Value_Map_Entry) ProtoReflect

func (x *Value_Map_Entry) ProtoReflect() protoreflect.Message

func (*Value_Map_Entry) Reset

func (x *Value_Map_Entry) Reset()

func (*Value_Map_Entry) String

func (x *Value_Map_Entry) String() string

type Value_Number

type Value_Number struct {

	// The number's numeric value. Mandatory.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// The number's numerator units.
	//
	// The endpoint sending the number must ensure that no numerator units are
	// [compatible][] with any denominator units. Such compatible units must be
	// simplified away according to the multiplicative factor between them
	// defined in the CSS Values and Units spec.
	//
	// [compatible]: https://www.w3.org/TR/css-values-4/#compat
	Numerators []string `protobuf:"bytes,2,rep,name=numerators,proto3" json:"numerators,omitempty"`
	// The number's denominator units.
	Denominators []string `protobuf:"bytes,3,rep,name=denominators,proto3" json:"denominators,omitempty"`
	// contains filtered or unexported fields
}

A SassScript number value.

func (*Value_Number) Descriptor deprecated

func (*Value_Number) Descriptor() ([]byte, []int)

Deprecated: Use Value_Number.ProtoReflect.Descriptor instead.

func (*Value_Number) GetDenominators

func (x *Value_Number) GetDenominators() []string

func (*Value_Number) GetNumerators

func (x *Value_Number) GetNumerators() []string

func (*Value_Number) GetValue

func (x *Value_Number) GetValue() float64

func (*Value_Number) ProtoMessage

func (*Value_Number) ProtoMessage()

func (*Value_Number) ProtoReflect

func (x *Value_Number) ProtoReflect() protoreflect.Message

func (*Value_Number) Reset

func (x *Value_Number) Reset()

func (*Value_Number) String

func (x *Value_Number) String() string

type Value_Number_

type Value_Number_ struct {
	Number *Value_Number `protobuf:"bytes,2,opt,name=number,proto3,oneof"`
}

type Value_RgbColor

type Value_RgbColor struct {

	// The color's red channel. Mandatory. May not be above 255.
	Red uint32 `protobuf:"varint,1,opt,name=red,proto3" json:"red,omitempty"`
	// The color's green channel. Mandatory. May not be above 255.
	Green uint32 `protobuf:"varint,2,opt,name=green,proto3" json:"green,omitempty"`
	// The color's blue channel. Mandatory. May not be above 255.
	Blue uint32 `protobuf:"varint,3,opt,name=blue,proto3" json:"blue,omitempty"`
	// The color's alpha channel. Mandatory. Must be between 0 and 1,
	// inclusive.
	Alpha float64 `protobuf:"fixed64,4,opt,name=alpha,proto3" json:"alpha,omitempty"`
	// contains filtered or unexported fields
}

A SassScript color value, represented as red, green, and blue channels.

All Sass color values can be equivalently represented as `RgbColor`, `HslColor`, and `HwbColor` messages without loss of color information that can affect CSS rendering. As such, either endpoint may choose to send any color value as any one of these three messages.

func (*Value_RgbColor) Descriptor deprecated

func (*Value_RgbColor) Descriptor() ([]byte, []int)

Deprecated: Use Value_RgbColor.ProtoReflect.Descriptor instead.

func (*Value_RgbColor) GetAlpha

func (x *Value_RgbColor) GetAlpha() float64

func (*Value_RgbColor) GetBlue

func (x *Value_RgbColor) GetBlue() uint32

func (*Value_RgbColor) GetGreen

func (x *Value_RgbColor) GetGreen() uint32

func (*Value_RgbColor) GetRed

func (x *Value_RgbColor) GetRed() uint32

func (*Value_RgbColor) ProtoMessage

func (*Value_RgbColor) ProtoMessage()

func (*Value_RgbColor) ProtoReflect

func (x *Value_RgbColor) ProtoReflect() protoreflect.Message

func (*Value_RgbColor) Reset

func (x *Value_RgbColor) Reset()

func (*Value_RgbColor) String

func (x *Value_RgbColor) String() string

type Value_RgbColor_

type Value_RgbColor_ struct {
	RgbColor *Value_RgbColor `protobuf:"bytes,3,opt,name=rgb_color,json=rgbColor,proto3,oneof"`
}

type Value_Singleton

type Value_Singleton struct {
	Singleton SingletonValue `protobuf:"varint,7,opt,name=singleton,proto3,enum=sass.embedded_protocol.SingletonValue,oneof"`
}

type Value_String

type Value_String struct {

	// The contents of the string. Mandatory.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// Whether the string is quoted or unquoted. Mandatory.
	Quoted bool `protobuf:"varint,2,opt,name=quoted,proto3" json:"quoted,omitempty"`
	// contains filtered or unexported fields
}

A SassScript string value.

func (*Value_String) Descriptor deprecated

func (*Value_String) Descriptor() ([]byte, []int)

Deprecated: Use Value_String.ProtoReflect.Descriptor instead.

func (*Value_String) GetQuoted

func (x *Value_String) GetQuoted() bool

func (*Value_String) GetText

func (x *Value_String) GetText() string

func (*Value_String) ProtoMessage

func (*Value_String) ProtoMessage()

func (*Value_String) ProtoReflect

func (x *Value_String) ProtoReflect() protoreflect.Message

func (*Value_String) Reset

func (x *Value_String) Reset()

func (*Value_String) String

func (x *Value_String) String() string

type Value_String_

type Value_String_ struct {
	String_ *Value_String `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL