sass-embedded 1.0.0-beta.3 → 1.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/.gitignore +1 -0
  3. package/dist/lib/index.js +36 -2
  4. package/dist/lib/index.js.map +1 -1
  5. package/dist/lib/src/{embedded-compiler/compiler.js → async-compiler.js} +13 -13
  6. package/dist/lib/src/async-compiler.js.map +1 -0
  7. package/dist/lib/src/compile.js +187 -85
  8. package/dist/lib/src/compile.js.map +1 -1
  9. package/dist/lib/src/compiler-path.js +18 -0
  10. package/dist/lib/src/compiler-path.js.map +1 -0
  11. package/dist/lib/src/deprotofy-span.js +51 -0
  12. package/dist/lib/src/deprotofy-span.js.map +1 -0
  13. package/dist/lib/src/{embedded-protocol/dispatcher.js → dispatcher.js} +47 -41
  14. package/dist/lib/src/dispatcher.js.map +1 -0
  15. package/dist/lib/src/exception.js +20 -0
  16. package/dist/lib/src/exception.js.map +1 -0
  17. package/dist/lib/src/function-registry.js +92 -0
  18. package/dist/lib/src/function-registry.js.map +1 -0
  19. package/dist/lib/src/importer-registry.js +127 -0
  20. package/dist/lib/src/importer-registry.js.map +1 -0
  21. package/dist/lib/src/legacy.js +133 -0
  22. package/dist/lib/src/legacy.js.map +1 -0
  23. package/dist/lib/src/{embedded-protocol/message-transformer.js → message-transformer.js} +11 -10
  24. package/dist/lib/src/message-transformer.js.map +1 -0
  25. package/dist/lib/src/{embedded-compiler/packet-transformer.js → packet-transformer.js} +2 -1
  26. package/dist/lib/src/packet-transformer.js.map +1 -0
  27. package/dist/lib/src/protofier.js +272 -0
  28. package/dist/lib/src/protofier.js.map +1 -0
  29. package/dist/lib/src/{embedded-protocol/request-tracker.js → request-tracker.js} +1 -0
  30. package/dist/lib/src/request-tracker.js.map +1 -0
  31. package/dist/lib/src/sync-compiler.js +52 -0
  32. package/dist/lib/src/sync-compiler.js.map +1 -0
  33. package/dist/lib/src/{exception/span.js → sync-process/event.js} +2 -2
  34. package/dist/lib/src/sync-process/event.js.map +1 -0
  35. package/dist/lib/src/sync-process/index.js +122 -0
  36. package/dist/lib/src/sync-process/index.js.map +1 -0
  37. package/dist/lib/src/sync-process/sync-message-port.js +128 -0
  38. package/dist/lib/src/sync-process/sync-message-port.js.map +1 -0
  39. package/dist/lib/src/sync-process/worker.js +51 -0
  40. package/dist/lib/src/sync-process/worker.js.map +1 -0
  41. package/dist/lib/src/utils.js +88 -0
  42. package/dist/lib/src/utils.js.map +1 -1
  43. package/dist/lib/src/value/argument-list.js +31 -0
  44. package/dist/lib/src/value/argument-list.js.map +1 -0
  45. package/dist/lib/src/value/boolean.js +40 -0
  46. package/dist/lib/src/value/boolean.js.map +1 -0
  47. package/dist/lib/src/value/color.js +258 -0
  48. package/dist/lib/src/value/color.js.map +1 -0
  49. package/dist/lib/src/value/function.js +34 -0
  50. package/dist/lib/src/value/function.js.map +1 -0
  51. package/dist/lib/src/value/{value.js → index.js} +28 -17
  52. package/dist/lib/src/value/index.js.map +1 -0
  53. package/dist/lib/src/value/list.js +99 -0
  54. package/dist/lib/src/value/list.js.map +1 -0
  55. package/dist/lib/src/value/map.js +91 -0
  56. package/dist/lib/src/value/map.js.map +1 -0
  57. package/dist/lib/src/value/null.js +10 -6
  58. package/dist/lib/src/value/null.js.map +1 -1
  59. package/dist/lib/src/value/number.js +579 -0
  60. package/dist/lib/src/value/number.js.map +1 -0
  61. package/dist/lib/src/value/string.js +117 -0
  62. package/dist/lib/src/value/string.js.map +1 -0
  63. package/dist/lib/src/value/utils.js +120 -0
  64. package/dist/lib/src/value/utils.js.map +1 -0
  65. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js +994 -8
  66. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js.map +1 -1
  67. package/dist/package.json +63 -0
  68. package/dist/tool/utils.js +85 -91
  69. package/dist/tool/utils.js.map +1 -1
  70. package/dist/types/compile.d.ts +152 -0
  71. package/dist/types/exception.d.ts +41 -0
  72. package/dist/types/importer.d.ts +294 -0
  73. package/dist/types/index.d.ts +76 -0
  74. package/dist/types/legacy/exception.d.ts +54 -0
  75. package/dist/types/legacy/function.d.ts +700 -0
  76. package/dist/types/legacy/importer.d.ts +168 -0
  77. package/dist/types/legacy/options.d.ts +642 -0
  78. package/dist/types/legacy/plugin_this.d.ts +73 -0
  79. package/dist/types/legacy/render.d.ts +139 -0
  80. package/dist/types/logger/index.d.ts +94 -0
  81. package/dist/types/logger/source_location.d.ts +21 -0
  82. package/dist/types/logger/source_span.d.ts +34 -0
  83. package/dist/types/options.d.ts +408 -0
  84. package/dist/types/util/promise_or.d.ts +17 -0
  85. package/dist/types/value/argument_list.d.ts +47 -0
  86. package/dist/types/value/boolean.d.ts +29 -0
  87. package/dist/types/value/color.d.ts +107 -0
  88. package/dist/types/value/function.d.ts +22 -0
  89. package/dist/types/value/index.d.ts +173 -0
  90. package/dist/types/value/list.d.ts +54 -0
  91. package/dist/types/value/map.d.ts +41 -0
  92. package/dist/types/value/number.d.ts +305 -0
  93. package/dist/types/value/string.d.ts +84 -0
  94. package/download-compiler-for-end-user.js +1 -6
  95. package/package.json +23 -19
  96. package/dist/lib/index.d.ts +0 -1
  97. package/dist/lib/src/compile.d.ts +0 -20
  98. package/dist/lib/src/embedded-compiler/compiler.d.ts +0 -19
  99. package/dist/lib/src/embedded-compiler/compiler.js.map +0 -1
  100. package/dist/lib/src/embedded-compiler/packet-transformer.d.ts +0 -34
  101. package/dist/lib/src/embedded-compiler/packet-transformer.js.map +0 -1
  102. package/dist/lib/src/embedded-protocol/dispatcher.d.ts +0 -60
  103. package/dist/lib/src/embedded-protocol/dispatcher.js.map +0 -1
  104. package/dist/lib/src/embedded-protocol/message-transformer.d.ts +0 -47
  105. package/dist/lib/src/embedded-protocol/message-transformer.js.map +0 -1
  106. package/dist/lib/src/embedded-protocol/request-tracker.d.ts +0 -20
  107. package/dist/lib/src/embedded-protocol/request-tracker.js.map +0 -1
  108. package/dist/lib/src/embedded-protocol/utils.d.ts +0 -7
  109. package/dist/lib/src/embedded-protocol/utils.js +0 -52
  110. package/dist/lib/src/embedded-protocol/utils.js.map +0 -1
  111. package/dist/lib/src/exception/exception.d.ts +0 -19
  112. package/dist/lib/src/exception/exception.js +0 -36
  113. package/dist/lib/src/exception/exception.js.map +0 -1
  114. package/dist/lib/src/exception/location.d.ts +0 -11
  115. package/dist/lib/src/exception/location.js +0 -6
  116. package/dist/lib/src/exception/location.js.map +0 -1
  117. package/dist/lib/src/exception/span.d.ts +0 -29
  118. package/dist/lib/src/exception/span.js.map +0 -1
  119. package/dist/lib/src/node-sass/render.d.ts +0 -60
  120. package/dist/lib/src/node-sass/render.js +0 -126
  121. package/dist/lib/src/node-sass/render.js.map +0 -1
  122. package/dist/lib/src/utils.d.ts +0 -9
  123. package/dist/lib/src/value/null.d.ts +0 -11
  124. package/dist/lib/src/value/value.d.ts +0 -98
  125. package/dist/lib/src/value/value.js.map +0 -1
  126. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.d.ts +0 -1
  127. package/dist/tool/utils.d.ts +0 -29
@@ -11,6 +11,7 @@
11
11
  var jspb = require('google-protobuf');
12
12
  var goog = jspb;
13
13
  var global = Function('return this')();
14
+ goog.exportSymbol('proto.sass.embedded_protocol.CalculationOperator', null, global);
14
15
  goog.exportSymbol('proto.sass.embedded_protocol.InboundMessage', null, global);
15
16
  goog.exportSymbol('proto.sass.embedded_protocol.InboundMessage.CanonicalizeResponse', null, global);
16
17
  goog.exportSymbol('proto.sass.embedded_protocol.InboundMessage.CanonicalizeResponse.ResultCase', null, global);
@@ -52,9 +53,14 @@ goog.exportSymbol('proto.sass.embedded_protocol.SourceSpan.SourceLocation', null
52
53
  goog.exportSymbol('proto.sass.embedded_protocol.Syntax', null, global);
53
54
  goog.exportSymbol('proto.sass.embedded_protocol.Value', null, global);
54
55
  goog.exportSymbol('proto.sass.embedded_protocol.Value.ArgumentList', null, global);
56
+ goog.exportSymbol('proto.sass.embedded_protocol.Value.Calculation', null, global);
57
+ goog.exportSymbol('proto.sass.embedded_protocol.Value.Calculation.CalculationOperation', null, global);
58
+ goog.exportSymbol('proto.sass.embedded_protocol.Value.Calculation.CalculationValue', null, global);
59
+ goog.exportSymbol('proto.sass.embedded_protocol.Value.Calculation.CalculationValue.ValueCase', null, global);
55
60
  goog.exportSymbol('proto.sass.embedded_protocol.Value.CompilerFunction', null, global);
56
61
  goog.exportSymbol('proto.sass.embedded_protocol.Value.HostFunction', null, global);
57
62
  goog.exportSymbol('proto.sass.embedded_protocol.Value.HslColor', null, global);
63
+ goog.exportSymbol('proto.sass.embedded_protocol.Value.HwbColor', null, global);
58
64
  goog.exportSymbol('proto.sass.embedded_protocol.Value.List', null, global);
59
65
  goog.exportSymbol('proto.sass.embedded_protocol.Value.Map', null, global);
60
66
  goog.exportSymbol('proto.sass.embedded_protocol.Value.Map.Entry', null, global);
@@ -650,6 +656,27 @@ if (goog.DEBUG && !COMPILED) {
650
656
  */
651
657
  proto.sass.embedded_protocol.Value.HslColor.displayName = 'proto.sass.embedded_protocol.Value.HslColor';
652
658
  }
659
+ /**
660
+ * Generated by JsPbCodeGenerator.
661
+ * @param {Array=} opt_data Optional initial data array, typically from a
662
+ * server response, or constructed directly in Javascript. The array is used
663
+ * in place and becomes part of the constructed object. It is not cloned.
664
+ * If no data is provided, the constructed object will be empty, but still
665
+ * valid.
666
+ * @extends {jspb.Message}
667
+ * @constructor
668
+ */
669
+ proto.sass.embedded_protocol.Value.HwbColor = function (opt_data) {
670
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
671
+ };
672
+ goog.inherits(proto.sass.embedded_protocol.Value.HwbColor, jspb.Message);
673
+ if (goog.DEBUG && !COMPILED) {
674
+ /**
675
+ * @public
676
+ * @override
677
+ */
678
+ proto.sass.embedded_protocol.Value.HwbColor.displayName = 'proto.sass.embedded_protocol.Value.HwbColor';
679
+ }
653
680
  /**
654
681
  * Generated by JsPbCodeGenerator.
655
682
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -776,6 +803,69 @@ if (goog.DEBUG && !COMPILED) {
776
803
  */
777
804
  proto.sass.embedded_protocol.Value.ArgumentList.displayName = 'proto.sass.embedded_protocol.Value.ArgumentList';
778
805
  }
806
+ /**
807
+ * Generated by JsPbCodeGenerator.
808
+ * @param {Array=} opt_data Optional initial data array, typically from a
809
+ * server response, or constructed directly in Javascript. The array is used
810
+ * in place and becomes part of the constructed object. It is not cloned.
811
+ * If no data is provided, the constructed object will be empty, but still
812
+ * valid.
813
+ * @extends {jspb.Message}
814
+ * @constructor
815
+ */
816
+ proto.sass.embedded_protocol.Value.Calculation = function (opt_data) {
817
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sass.embedded_protocol.Value.Calculation.repeatedFields_, null);
818
+ };
819
+ goog.inherits(proto.sass.embedded_protocol.Value.Calculation, jspb.Message);
820
+ if (goog.DEBUG && !COMPILED) {
821
+ /**
822
+ * @public
823
+ * @override
824
+ */
825
+ proto.sass.embedded_protocol.Value.Calculation.displayName = 'proto.sass.embedded_protocol.Value.Calculation';
826
+ }
827
+ /**
828
+ * Generated by JsPbCodeGenerator.
829
+ * @param {Array=} opt_data Optional initial data array, typically from a
830
+ * server response, or constructed directly in Javascript. The array is used
831
+ * in place and becomes part of the constructed object. It is not cloned.
832
+ * If no data is provided, the constructed object will be empty, but still
833
+ * valid.
834
+ * @extends {jspb.Message}
835
+ * @constructor
836
+ */
837
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue = function (opt_data) {
838
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_);
839
+ };
840
+ goog.inherits(proto.sass.embedded_protocol.Value.Calculation.CalculationValue, jspb.Message);
841
+ if (goog.DEBUG && !COMPILED) {
842
+ /**
843
+ * @public
844
+ * @override
845
+ */
846
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.displayName = 'proto.sass.embedded_protocol.Value.Calculation.CalculationValue';
847
+ }
848
+ /**
849
+ * Generated by JsPbCodeGenerator.
850
+ * @param {Array=} opt_data Optional initial data array, typically from a
851
+ * server response, or constructed directly in Javascript. The array is used
852
+ * in place and becomes part of the constructed object. It is not cloned.
853
+ * If no data is provided, the constructed object will be empty, but still
854
+ * valid.
855
+ * @extends {jspb.Message}
856
+ * @constructor
857
+ */
858
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation = function (opt_data) {
859
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
860
+ };
861
+ goog.inherits(proto.sass.embedded_protocol.Value.Calculation.CalculationOperation, jspb.Message);
862
+ if (goog.DEBUG && !COMPILED) {
863
+ /**
864
+ * @public
865
+ * @override
866
+ */
867
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.displayName = 'proto.sass.embedded_protocol.Value.Calculation.CalculationOperation';
868
+ }
779
869
  /**
780
870
  * Oneof group definitions for this message. Each group defines the field
781
871
  * numbers belonging to that group. When of these fields' value is set, all
@@ -5886,7 +5976,7 @@ proto.sass.embedded_protocol.SourceSpan.prototype.setContext = function (value)
5886
5976
  * @private {!Array<!Array<number>>}
5887
5977
  * @const
5888
5978
  */
5889
- proto.sass.embedded_protocol.Value.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]];
5979
+ proto.sass.embedded_protocol.Value.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]];
5890
5980
  /**
5891
5981
  * @enum {number}
5892
5982
  */
@@ -5901,7 +5991,9 @@ proto.sass.embedded_protocol.Value.ValueCase = {
5901
5991
  SINGLETON: 7,
5902
5992
  COMPILER_FUNCTION: 8,
5903
5993
  HOST_FUNCTION: 9,
5904
- ARGUMENT_LIST: 10
5994
+ ARGUMENT_LIST: 10,
5995
+ HWB_COLOR: 11,
5996
+ CALCULATION: 12
5905
5997
  };
5906
5998
  /**
5907
5999
  * @return {proto.sass.embedded_protocol.Value.ValueCase}
@@ -5945,7 +6037,9 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
5945
6037
  singleton: jspb.Message.getFieldWithDefault(msg, 7, 0),
5946
6038
  compilerFunction: (f = msg.getCompilerFunction()) && proto.sass.embedded_protocol.Value.CompilerFunction.toObject(includeInstance, f),
5947
6039
  hostFunction: (f = msg.getHostFunction()) && proto.sass.embedded_protocol.Value.HostFunction.toObject(includeInstance, f),
5948
- argumentList: (f = msg.getArgumentList()) && proto.sass.embedded_protocol.Value.ArgumentList.toObject(includeInstance, f)
6040
+ argumentList: (f = msg.getArgumentList()) && proto.sass.embedded_protocol.Value.ArgumentList.toObject(includeInstance, f),
6041
+ hwbColor: (f = msg.getHwbColor()) && proto.sass.embedded_protocol.Value.HwbColor.toObject(includeInstance, f),
6042
+ calculation: (f = msg.getCalculation()) && proto.sass.embedded_protocol.Value.Calculation.toObject(includeInstance, f)
5949
6043
  };
5950
6044
  if (includeInstance) {
5951
6045
  obj.$jspbMessageInstance = msg;
@@ -6026,6 +6120,16 @@ proto.sass.embedded_protocol.Value.deserializeBinaryFromReader = function (msg,
6026
6120
  reader.readMessage(value, proto.sass.embedded_protocol.Value.ArgumentList.deserializeBinaryFromReader);
6027
6121
  msg.setArgumentList(value);
6028
6122
  break;
6123
+ case 11:
6124
+ var value = new proto.sass.embedded_protocol.Value.HwbColor;
6125
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.HwbColor.deserializeBinaryFromReader);
6126
+ msg.setHwbColor(value);
6127
+ break;
6128
+ case 12:
6129
+ var value = new proto.sass.embedded_protocol.Value.Calculation;
6130
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader);
6131
+ msg.setCalculation(value);
6132
+ break;
6029
6133
  default:
6030
6134
  reader.skipField();
6031
6135
  break;
@@ -6091,6 +6195,14 @@ proto.sass.embedded_protocol.Value.serializeBinaryToWriter = function (message,
6091
6195
  if (f != null) {
6092
6196
  writer.writeMessage(10, f, proto.sass.embedded_protocol.Value.ArgumentList.serializeBinaryToWriter);
6093
6197
  }
6198
+ f = message.getHwbColor();
6199
+ if (f != null) {
6200
+ writer.writeMessage(11, f, proto.sass.embedded_protocol.Value.HwbColor.serializeBinaryToWriter);
6201
+ }
6202
+ f = message.getCalculation();
6203
+ if (f != null) {
6204
+ writer.writeMessage(12, f, proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter);
6205
+ }
6094
6206
  };
6095
6207
  if (jspb.Message.GENERATE_TO_OBJECT) {
6096
6208
  /**
@@ -6763,6 +6875,182 @@ proto.sass.embedded_protocol.Value.HslColor.prototype.getAlpha = function () {
6763
6875
  proto.sass.embedded_protocol.Value.HslColor.prototype.setAlpha = function (value) {
6764
6876
  return jspb.Message.setProto3FloatField(this, 4, value);
6765
6877
  };
6878
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6879
+ /**
6880
+ * Creates an object representation of this proto.
6881
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6882
+ * Optional fields that are not set will be set to undefined.
6883
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6884
+ * For the list of reserved names please see:
6885
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6886
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6887
+ * JSPB instance for transitional soy proto support:
6888
+ * http://goto/soy-param-migration
6889
+ * @return {!Object}
6890
+ */
6891
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.toObject = function (opt_includeInstance) {
6892
+ return proto.sass.embedded_protocol.Value.HwbColor.toObject(opt_includeInstance, this);
6893
+ };
6894
+ /**
6895
+ * Static version of the {@see toObject} method.
6896
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6897
+ * the JSPB instance for transitional soy proto support:
6898
+ * http://goto/soy-param-migration
6899
+ * @param {!proto.sass.embedded_protocol.Value.HwbColor} msg The msg instance to transform.
6900
+ * @return {!Object}
6901
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6902
+ */
6903
+ proto.sass.embedded_protocol.Value.HwbColor.toObject = function (includeInstance, msg) {
6904
+ var f, obj = {
6905
+ hue: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
6906
+ whiteness: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
6907
+ blackness: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
6908
+ alpha: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
6909
+ };
6910
+ if (includeInstance) {
6911
+ obj.$jspbMessageInstance = msg;
6912
+ }
6913
+ return obj;
6914
+ };
6915
+ }
6916
+ /**
6917
+ * Deserializes binary data (in protobuf wire format).
6918
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6919
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor}
6920
+ */
6921
+ proto.sass.embedded_protocol.Value.HwbColor.deserializeBinary = function (bytes) {
6922
+ var reader = new jspb.BinaryReader(bytes);
6923
+ var msg = new proto.sass.embedded_protocol.Value.HwbColor;
6924
+ return proto.sass.embedded_protocol.Value.HwbColor.deserializeBinaryFromReader(msg, reader);
6925
+ };
6926
+ /**
6927
+ * Deserializes binary data (in protobuf wire format) from the
6928
+ * given reader into the given message object.
6929
+ * @param {!proto.sass.embedded_protocol.Value.HwbColor} msg The message object to deserialize into.
6930
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6931
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor}
6932
+ */
6933
+ proto.sass.embedded_protocol.Value.HwbColor.deserializeBinaryFromReader = function (msg, reader) {
6934
+ while (reader.nextField()) {
6935
+ if (reader.isEndGroup()) {
6936
+ break;
6937
+ }
6938
+ var field = reader.getFieldNumber();
6939
+ switch (field) {
6940
+ case 1:
6941
+ var value = /** @type {number} */ (reader.readDouble());
6942
+ msg.setHue(value);
6943
+ break;
6944
+ case 2:
6945
+ var value = /** @type {number} */ (reader.readDouble());
6946
+ msg.setWhiteness(value);
6947
+ break;
6948
+ case 3:
6949
+ var value = /** @type {number} */ (reader.readDouble());
6950
+ msg.setBlackness(value);
6951
+ break;
6952
+ case 4:
6953
+ var value = /** @type {number} */ (reader.readDouble());
6954
+ msg.setAlpha(value);
6955
+ break;
6956
+ default:
6957
+ reader.skipField();
6958
+ break;
6959
+ }
6960
+ }
6961
+ return msg;
6962
+ };
6963
+ /**
6964
+ * Serializes the message to binary data (in protobuf wire format).
6965
+ * @return {!Uint8Array}
6966
+ */
6967
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.serializeBinary = function () {
6968
+ var writer = new jspb.BinaryWriter();
6969
+ proto.sass.embedded_protocol.Value.HwbColor.serializeBinaryToWriter(this, writer);
6970
+ return writer.getResultBuffer();
6971
+ };
6972
+ /**
6973
+ * Serializes the given message to binary data (in protobuf wire
6974
+ * format), writing to the given BinaryWriter.
6975
+ * @param {!proto.sass.embedded_protocol.Value.HwbColor} message
6976
+ * @param {!jspb.BinaryWriter} writer
6977
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6978
+ */
6979
+ proto.sass.embedded_protocol.Value.HwbColor.serializeBinaryToWriter = function (message, writer) {
6980
+ var f = undefined;
6981
+ f = message.getHue();
6982
+ if (f !== 0.0) {
6983
+ writer.writeDouble(1, f);
6984
+ }
6985
+ f = message.getWhiteness();
6986
+ if (f !== 0.0) {
6987
+ writer.writeDouble(2, f);
6988
+ }
6989
+ f = message.getBlackness();
6990
+ if (f !== 0.0) {
6991
+ writer.writeDouble(3, f);
6992
+ }
6993
+ f = message.getAlpha();
6994
+ if (f !== 0.0) {
6995
+ writer.writeDouble(4, f);
6996
+ }
6997
+ };
6998
+ /**
6999
+ * optional double hue = 1;
7000
+ * @return {number}
7001
+ */
7002
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getHue = function () {
7003
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
7004
+ };
7005
+ /**
7006
+ * @param {number} value
7007
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
7008
+ */
7009
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setHue = function (value) {
7010
+ return jspb.Message.setProto3FloatField(this, 1, value);
7011
+ };
7012
+ /**
7013
+ * optional double whiteness = 2;
7014
+ * @return {number}
7015
+ */
7016
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getWhiteness = function () {
7017
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
7018
+ };
7019
+ /**
7020
+ * @param {number} value
7021
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
7022
+ */
7023
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setWhiteness = function (value) {
7024
+ return jspb.Message.setProto3FloatField(this, 2, value);
7025
+ };
7026
+ /**
7027
+ * optional double blackness = 3;
7028
+ * @return {number}
7029
+ */
7030
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getBlackness = function () {
7031
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
7032
+ };
7033
+ /**
7034
+ * @param {number} value
7035
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
7036
+ */
7037
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setBlackness = function (value) {
7038
+ return jspb.Message.setProto3FloatField(this, 3, value);
7039
+ };
7040
+ /**
7041
+ * optional double alpha = 4;
7042
+ * @return {number}
7043
+ */
7044
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getAlpha = function () {
7045
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
7046
+ };
7047
+ /**
7048
+ * @param {number} value
7049
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
7050
+ */
7051
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setAlpha = function (value) {
7052
+ return jspb.Message.setProto3FloatField(this, 4, value);
7053
+ };
6766
7054
  /**
6767
7055
  * List of repeated fields within this message type.
6768
7056
  * @private {!Array<number>}
@@ -7668,12 +7956,645 @@ proto.sass.embedded_protocol.Value.ArgumentList.prototype.clearKeywordsMap = fun
7668
7956
  return this;
7669
7957
  };
7670
7958
  /**
7671
- * optional String string = 1;
7672
- * @return {?proto.sass.embedded_protocol.Value.String}
7959
+ * List of repeated fields within this message type.
7960
+ * @private {!Array<number>}
7961
+ * @const
7673
7962
  */
7674
- proto.sass.embedded_protocol.Value.prototype.getString = function () {
7675
- return /** @type{?proto.sass.embedded_protocol.Value.String} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.String, 1));
7676
- };
7963
+ proto.sass.embedded_protocol.Value.Calculation.repeatedFields_ = [2];
7964
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7965
+ /**
7966
+ * Creates an object representation of this proto.
7967
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7968
+ * Optional fields that are not set will be set to undefined.
7969
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7970
+ * For the list of reserved names please see:
7971
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7972
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7973
+ * JSPB instance for transitional soy proto support:
7974
+ * http://goto/soy-param-migration
7975
+ * @return {!Object}
7976
+ */
7977
+ proto.sass.embedded_protocol.Value.Calculation.prototype.toObject = function (opt_includeInstance) {
7978
+ return proto.sass.embedded_protocol.Value.Calculation.toObject(opt_includeInstance, this);
7979
+ };
7980
+ /**
7981
+ * Static version of the {@see toObject} method.
7982
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7983
+ * the JSPB instance for transitional soy proto support:
7984
+ * http://goto/soy-param-migration
7985
+ * @param {!proto.sass.embedded_protocol.Value.Calculation} msg The msg instance to transform.
7986
+ * @return {!Object}
7987
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7988
+ */
7989
+ proto.sass.embedded_protocol.Value.Calculation.toObject = function (includeInstance, msg) {
7990
+ var f, obj = {
7991
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
7992
+ argumentsList: jspb.Message.toObjectList(msg.getArgumentsList(), proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject, includeInstance)
7993
+ };
7994
+ if (includeInstance) {
7995
+ obj.$jspbMessageInstance = msg;
7996
+ }
7997
+ return obj;
7998
+ };
7999
+ }
8000
+ /**
8001
+ * Deserializes binary data (in protobuf wire format).
8002
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8003
+ * @return {!proto.sass.embedded_protocol.Value.Calculation}
8004
+ */
8005
+ proto.sass.embedded_protocol.Value.Calculation.deserializeBinary = function (bytes) {
8006
+ var reader = new jspb.BinaryReader(bytes);
8007
+ var msg = new proto.sass.embedded_protocol.Value.Calculation;
8008
+ return proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader(msg, reader);
8009
+ };
8010
+ /**
8011
+ * Deserializes binary data (in protobuf wire format) from the
8012
+ * given reader into the given message object.
8013
+ * @param {!proto.sass.embedded_protocol.Value.Calculation} msg The message object to deserialize into.
8014
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8015
+ * @return {!proto.sass.embedded_protocol.Value.Calculation}
8016
+ */
8017
+ proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader = function (msg, reader) {
8018
+ while (reader.nextField()) {
8019
+ if (reader.isEndGroup()) {
8020
+ break;
8021
+ }
8022
+ var field = reader.getFieldNumber();
8023
+ switch (field) {
8024
+ case 1:
8025
+ var value = /** @type {string} */ (reader.readString());
8026
+ msg.setName(value);
8027
+ break;
8028
+ case 2:
8029
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8030
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader);
8031
+ msg.addArguments(value);
8032
+ break;
8033
+ default:
8034
+ reader.skipField();
8035
+ break;
8036
+ }
8037
+ }
8038
+ return msg;
8039
+ };
8040
+ /**
8041
+ * Serializes the message to binary data (in protobuf wire format).
8042
+ * @return {!Uint8Array}
8043
+ */
8044
+ proto.sass.embedded_protocol.Value.Calculation.prototype.serializeBinary = function () {
8045
+ var writer = new jspb.BinaryWriter();
8046
+ proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter(this, writer);
8047
+ return writer.getResultBuffer();
8048
+ };
8049
+ /**
8050
+ * Serializes the given message to binary data (in protobuf wire
8051
+ * format), writing to the given BinaryWriter.
8052
+ * @param {!proto.sass.embedded_protocol.Value.Calculation} message
8053
+ * @param {!jspb.BinaryWriter} writer
8054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8055
+ */
8056
+ proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter = function (message, writer) {
8057
+ var f = undefined;
8058
+ f = message.getName();
8059
+ if (f.length > 0) {
8060
+ writer.writeString(1, f);
8061
+ }
8062
+ f = message.getArgumentsList();
8063
+ if (f.length > 0) {
8064
+ writer.writeRepeatedMessage(2, f, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter);
8065
+ }
8066
+ };
8067
+ /**
8068
+ * Oneof group definitions for this message. Each group defines the field
8069
+ * numbers belonging to that group. When of these fields' value is set, all
8070
+ * other fields in the group are cleared. During deserialization, if multiple
8071
+ * fields are encountered for a group, only the last value seen will be kept.
8072
+ * @private {!Array<!Array<number>>}
8073
+ * @const
8074
+ */
8075
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_ = [[1, 2, 3, 4, 5]];
8076
+ /**
8077
+ * @enum {number}
8078
+ */
8079
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.ValueCase = {
8080
+ VALUE_NOT_SET: 0,
8081
+ NUMBER: 1,
8082
+ STRING: 2,
8083
+ INTERPOLATION: 3,
8084
+ OPERATION: 4,
8085
+ CALCULATION: 5
8086
+ };
8087
+ /**
8088
+ * @return {proto.sass.embedded_protocol.Value.Calculation.CalculationValue.ValueCase}
8089
+ */
8090
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getValueCase = function () {
8091
+ return /** @type {proto.sass.embedded_protocol.Value.Calculation.CalculationValue.ValueCase} */ (jspb.Message.computeOneofCase(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0]));
8092
+ };
8093
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8094
+ /**
8095
+ * Creates an object representation of this proto.
8096
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8097
+ * Optional fields that are not set will be set to undefined.
8098
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8099
+ * For the list of reserved names please see:
8100
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8101
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8102
+ * JSPB instance for transitional soy proto support:
8103
+ * http://goto/soy-param-migration
8104
+ * @return {!Object}
8105
+ */
8106
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.toObject = function (opt_includeInstance) {
8107
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject(opt_includeInstance, this);
8108
+ };
8109
+ /**
8110
+ * Static version of the {@see toObject} method.
8111
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8112
+ * the JSPB instance for transitional soy proto support:
8113
+ * http://goto/soy-param-migration
8114
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} msg The msg instance to transform.
8115
+ * @return {!Object}
8116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8117
+ */
8118
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject = function (includeInstance, msg) {
8119
+ var f, obj = {
8120
+ number: (f = msg.getNumber()) && proto.sass.embedded_protocol.Value.Number.toObject(includeInstance, f),
8121
+ string: jspb.Message.getFieldWithDefault(msg, 2, ""),
8122
+ interpolation: jspb.Message.getFieldWithDefault(msg, 3, ""),
8123
+ operation: (f = msg.getOperation()) && proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.toObject(includeInstance, f),
8124
+ calculation: (f = msg.getCalculation()) && proto.sass.embedded_protocol.Value.Calculation.toObject(includeInstance, f)
8125
+ };
8126
+ if (includeInstance) {
8127
+ obj.$jspbMessageInstance = msg;
8128
+ }
8129
+ return obj;
8130
+ };
8131
+ }
8132
+ /**
8133
+ * Deserializes binary data (in protobuf wire format).
8134
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8135
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8136
+ */
8137
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinary = function (bytes) {
8138
+ var reader = new jspb.BinaryReader(bytes);
8139
+ var msg = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8140
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader(msg, reader);
8141
+ };
8142
+ /**
8143
+ * Deserializes binary data (in protobuf wire format) from the
8144
+ * given reader into the given message object.
8145
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} msg The message object to deserialize into.
8146
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8147
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8148
+ */
8149
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader = function (msg, reader) {
8150
+ while (reader.nextField()) {
8151
+ if (reader.isEndGroup()) {
8152
+ break;
8153
+ }
8154
+ var field = reader.getFieldNumber();
8155
+ switch (field) {
8156
+ case 1:
8157
+ var value = new proto.sass.embedded_protocol.Value.Number;
8158
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Number.deserializeBinaryFromReader);
8159
+ msg.setNumber(value);
8160
+ break;
8161
+ case 2:
8162
+ var value = /** @type {string} */ (reader.readString());
8163
+ msg.setString(value);
8164
+ break;
8165
+ case 3:
8166
+ var value = /** @type {string} */ (reader.readString());
8167
+ msg.setInterpolation(value);
8168
+ break;
8169
+ case 4:
8170
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationOperation;
8171
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinaryFromReader);
8172
+ msg.setOperation(value);
8173
+ break;
8174
+ case 5:
8175
+ var value = new proto.sass.embedded_protocol.Value.Calculation;
8176
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader);
8177
+ msg.setCalculation(value);
8178
+ break;
8179
+ default:
8180
+ reader.skipField();
8181
+ break;
8182
+ }
8183
+ }
8184
+ return msg;
8185
+ };
8186
+ /**
8187
+ * Serializes the message to binary data (in protobuf wire format).
8188
+ * @return {!Uint8Array}
8189
+ */
8190
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.serializeBinary = function () {
8191
+ var writer = new jspb.BinaryWriter();
8192
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter(this, writer);
8193
+ return writer.getResultBuffer();
8194
+ };
8195
+ /**
8196
+ * Serializes the given message to binary data (in protobuf wire
8197
+ * format), writing to the given BinaryWriter.
8198
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} message
8199
+ * @param {!jspb.BinaryWriter} writer
8200
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8201
+ */
8202
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter = function (message, writer) {
8203
+ var f = undefined;
8204
+ f = message.getNumber();
8205
+ if (f != null) {
8206
+ writer.writeMessage(1, f, proto.sass.embedded_protocol.Value.Number.serializeBinaryToWriter);
8207
+ }
8208
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
8209
+ if (f != null) {
8210
+ writer.writeString(2, f);
8211
+ }
8212
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
8213
+ if (f != null) {
8214
+ writer.writeString(3, f);
8215
+ }
8216
+ f = message.getOperation();
8217
+ if (f != null) {
8218
+ writer.writeMessage(4, f, proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.serializeBinaryToWriter);
8219
+ }
8220
+ f = message.getCalculation();
8221
+ if (f != null) {
8222
+ writer.writeMessage(5, f, proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter);
8223
+ }
8224
+ };
8225
+ /**
8226
+ * optional Number number = 1;
8227
+ * @return {?proto.sass.embedded_protocol.Value.Number}
8228
+ */
8229
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getNumber = function () {
8230
+ return /** @type{?proto.sass.embedded_protocol.Value.Number} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Number, 1));
8231
+ };
8232
+ /**
8233
+ * @param {?proto.sass.embedded_protocol.Value.Number|undefined} value
8234
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8235
+ */
8236
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setNumber = function (value) {
8237
+ return jspb.Message.setOneofWrapperField(this, 1, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8238
+ };
8239
+ /**
8240
+ * Clears the message field making it undefined.
8241
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8242
+ */
8243
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearNumber = function () {
8244
+ return this.setNumber(undefined);
8245
+ };
8246
+ /**
8247
+ * Returns whether this field is set.
8248
+ * @return {boolean}
8249
+ */
8250
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasNumber = function () {
8251
+ return jspb.Message.getField(this, 1) != null;
8252
+ };
8253
+ /**
8254
+ * optional string string = 2;
8255
+ * @return {string}
8256
+ */
8257
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getString = function () {
8258
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8259
+ };
8260
+ /**
8261
+ * @param {string} value
8262
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8263
+ */
8264
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setString = function (value) {
8265
+ return jspb.Message.setOneofField(this, 2, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8266
+ };
8267
+ /**
8268
+ * Clears the field making it undefined.
8269
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8270
+ */
8271
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearString = function () {
8272
+ return jspb.Message.setOneofField(this, 2, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], undefined);
8273
+ };
8274
+ /**
8275
+ * Returns whether this field is set.
8276
+ * @return {boolean}
8277
+ */
8278
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasString = function () {
8279
+ return jspb.Message.getField(this, 2) != null;
8280
+ };
8281
+ /**
8282
+ * optional string interpolation = 3;
8283
+ * @return {string}
8284
+ */
8285
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getInterpolation = function () {
8286
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8287
+ };
8288
+ /**
8289
+ * @param {string} value
8290
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8291
+ */
8292
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setInterpolation = function (value) {
8293
+ return jspb.Message.setOneofField(this, 3, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8294
+ };
8295
+ /**
8296
+ * Clears the field making it undefined.
8297
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8298
+ */
8299
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearInterpolation = function () {
8300
+ return jspb.Message.setOneofField(this, 3, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], undefined);
8301
+ };
8302
+ /**
8303
+ * Returns whether this field is set.
8304
+ * @return {boolean}
8305
+ */
8306
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasInterpolation = function () {
8307
+ return jspb.Message.getField(this, 3) != null;
8308
+ };
8309
+ /**
8310
+ * optional CalculationOperation operation = 4;
8311
+ * @return {?proto.sass.embedded_protocol.Value.Calculation.CalculationOperation}
8312
+ */
8313
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getOperation = function () {
8314
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationOperation, 4));
8315
+ };
8316
+ /**
8317
+ * @param {?proto.sass.embedded_protocol.Value.Calculation.CalculationOperation|undefined} value
8318
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8319
+ */
8320
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setOperation = function (value) {
8321
+ return jspb.Message.setOneofWrapperField(this, 4, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8322
+ };
8323
+ /**
8324
+ * Clears the message field making it undefined.
8325
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8326
+ */
8327
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearOperation = function () {
8328
+ return this.setOperation(undefined);
8329
+ };
8330
+ /**
8331
+ * Returns whether this field is set.
8332
+ * @return {boolean}
8333
+ */
8334
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasOperation = function () {
8335
+ return jspb.Message.getField(this, 4) != null;
8336
+ };
8337
+ /**
8338
+ * optional Calculation calculation = 5;
8339
+ * @return {?proto.sass.embedded_protocol.Value.Calculation}
8340
+ */
8341
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getCalculation = function () {
8342
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation, 5));
8343
+ };
8344
+ /**
8345
+ * @param {?proto.sass.embedded_protocol.Value.Calculation|undefined} value
8346
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8347
+ */
8348
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setCalculation = function (value) {
8349
+ return jspb.Message.setOneofWrapperField(this, 5, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8350
+ };
8351
+ /**
8352
+ * Clears the message field making it undefined.
8353
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8354
+ */
8355
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearCalculation = function () {
8356
+ return this.setCalculation(undefined);
8357
+ };
8358
+ /**
8359
+ * Returns whether this field is set.
8360
+ * @return {boolean}
8361
+ */
8362
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasCalculation = function () {
8363
+ return jspb.Message.getField(this, 5) != null;
8364
+ };
8365
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8366
+ /**
8367
+ * Creates an object representation of this proto.
8368
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8369
+ * Optional fields that are not set will be set to undefined.
8370
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8371
+ * For the list of reserved names please see:
8372
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8373
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8374
+ * JSPB instance for transitional soy proto support:
8375
+ * http://goto/soy-param-migration
8376
+ * @return {!Object}
8377
+ */
8378
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.toObject = function (opt_includeInstance) {
8379
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.toObject(opt_includeInstance, this);
8380
+ };
8381
+ /**
8382
+ * Static version of the {@see toObject} method.
8383
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8384
+ * the JSPB instance for transitional soy proto support:
8385
+ * http://goto/soy-param-migration
8386
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} msg The msg instance to transform.
8387
+ * @return {!Object}
8388
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8389
+ */
8390
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.toObject = function (includeInstance, msg) {
8391
+ var f, obj = {
8392
+ operator: jspb.Message.getFieldWithDefault(msg, 1, 0),
8393
+ left: (f = msg.getLeft()) && proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject(includeInstance, f),
8394
+ right: (f = msg.getRight()) && proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject(includeInstance, f)
8395
+ };
8396
+ if (includeInstance) {
8397
+ obj.$jspbMessageInstance = msg;
8398
+ }
8399
+ return obj;
8400
+ };
8401
+ }
8402
+ /**
8403
+ * Deserializes binary data (in protobuf wire format).
8404
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8405
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation}
8406
+ */
8407
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinary = function (bytes) {
8408
+ var reader = new jspb.BinaryReader(bytes);
8409
+ var msg = new proto.sass.embedded_protocol.Value.Calculation.CalculationOperation;
8410
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinaryFromReader(msg, reader);
8411
+ };
8412
+ /**
8413
+ * Deserializes binary data (in protobuf wire format) from the
8414
+ * given reader into the given message object.
8415
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} msg The message object to deserialize into.
8416
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8417
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation}
8418
+ */
8419
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinaryFromReader = function (msg, reader) {
8420
+ while (reader.nextField()) {
8421
+ if (reader.isEndGroup()) {
8422
+ break;
8423
+ }
8424
+ var field = reader.getFieldNumber();
8425
+ switch (field) {
8426
+ case 1:
8427
+ var value = /** @type {!proto.sass.embedded_protocol.CalculationOperator} */ (reader.readEnum());
8428
+ msg.setOperator(value);
8429
+ break;
8430
+ case 2:
8431
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8432
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader);
8433
+ msg.setLeft(value);
8434
+ break;
8435
+ case 3:
8436
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8437
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader);
8438
+ msg.setRight(value);
8439
+ break;
8440
+ default:
8441
+ reader.skipField();
8442
+ break;
8443
+ }
8444
+ }
8445
+ return msg;
8446
+ };
8447
+ /**
8448
+ * Serializes the message to binary data (in protobuf wire format).
8449
+ * @return {!Uint8Array}
8450
+ */
8451
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.serializeBinary = function () {
8452
+ var writer = new jspb.BinaryWriter();
8453
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.serializeBinaryToWriter(this, writer);
8454
+ return writer.getResultBuffer();
8455
+ };
8456
+ /**
8457
+ * Serializes the given message to binary data (in protobuf wire
8458
+ * format), writing to the given BinaryWriter.
8459
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} message
8460
+ * @param {!jspb.BinaryWriter} writer
8461
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8462
+ */
8463
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.serializeBinaryToWriter = function (message, writer) {
8464
+ var f = undefined;
8465
+ f = message.getOperator();
8466
+ if (f !== 0.0) {
8467
+ writer.writeEnum(1, f);
8468
+ }
8469
+ f = message.getLeft();
8470
+ if (f != null) {
8471
+ writer.writeMessage(2, f, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter);
8472
+ }
8473
+ f = message.getRight();
8474
+ if (f != null) {
8475
+ writer.writeMessage(3, f, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter);
8476
+ }
8477
+ };
8478
+ /**
8479
+ * optional CalculationOperator operator = 1;
8480
+ * @return {!proto.sass.embedded_protocol.CalculationOperator}
8481
+ */
8482
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.getOperator = function () {
8483
+ return /** @type {!proto.sass.embedded_protocol.CalculationOperator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8484
+ };
8485
+ /**
8486
+ * @param {!proto.sass.embedded_protocol.CalculationOperator} value
8487
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8488
+ */
8489
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.setOperator = function (value) {
8490
+ return jspb.Message.setProto3EnumField(this, 1, value);
8491
+ };
8492
+ /**
8493
+ * optional CalculationValue left = 2;
8494
+ * @return {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8495
+ */
8496
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.getLeft = function () {
8497
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation.CalculationValue} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, 2));
8498
+ };
8499
+ /**
8500
+ * @param {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue|undefined} value
8501
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8502
+ */
8503
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.setLeft = function (value) {
8504
+ return jspb.Message.setWrapperField(this, 2, value);
8505
+ };
8506
+ /**
8507
+ * Clears the message field making it undefined.
8508
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8509
+ */
8510
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.clearLeft = function () {
8511
+ return this.setLeft(undefined);
8512
+ };
8513
+ /**
8514
+ * Returns whether this field is set.
8515
+ * @return {boolean}
8516
+ */
8517
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.hasLeft = function () {
8518
+ return jspb.Message.getField(this, 2) != null;
8519
+ };
8520
+ /**
8521
+ * optional CalculationValue right = 3;
8522
+ * @return {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8523
+ */
8524
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.getRight = function () {
8525
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation.CalculationValue} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, 3));
8526
+ };
8527
+ /**
8528
+ * @param {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue|undefined} value
8529
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8530
+ */
8531
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.setRight = function (value) {
8532
+ return jspb.Message.setWrapperField(this, 3, value);
8533
+ };
8534
+ /**
8535
+ * Clears the message field making it undefined.
8536
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8537
+ */
8538
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.clearRight = function () {
8539
+ return this.setRight(undefined);
8540
+ };
8541
+ /**
8542
+ * Returns whether this field is set.
8543
+ * @return {boolean}
8544
+ */
8545
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.hasRight = function () {
8546
+ return jspb.Message.getField(this, 3) != null;
8547
+ };
8548
+ /**
8549
+ * optional string name = 1;
8550
+ * @return {string}
8551
+ */
8552
+ proto.sass.embedded_protocol.Value.Calculation.prototype.getName = function () {
8553
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8554
+ };
8555
+ /**
8556
+ * @param {string} value
8557
+ * @return {!proto.sass.embedded_protocol.Value.Calculation} returns this
8558
+ */
8559
+ proto.sass.embedded_protocol.Value.Calculation.prototype.setName = function (value) {
8560
+ return jspb.Message.setProto3StringField(this, 1, value);
8561
+ };
8562
+ /**
8563
+ * repeated CalculationValue arguments = 2;
8564
+ * @return {!Array<!proto.sass.embedded_protocol.Value.Calculation.CalculationValue>}
8565
+ */
8566
+ proto.sass.embedded_protocol.Value.Calculation.prototype.getArgumentsList = function () {
8567
+ return /** @type{!Array<!proto.sass.embedded_protocol.Value.Calculation.CalculationValue>} */ (jspb.Message.getRepeatedWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, 2));
8568
+ };
8569
+ /**
8570
+ * @param {!Array<!proto.sass.embedded_protocol.Value.Calculation.CalculationValue>} value
8571
+ * @return {!proto.sass.embedded_protocol.Value.Calculation} returns this
8572
+ */
8573
+ proto.sass.embedded_protocol.Value.Calculation.prototype.setArgumentsList = function (value) {
8574
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
8575
+ };
8576
+ /**
8577
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue=} opt_value
8578
+ * @param {number=} opt_index
8579
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8580
+ */
8581
+ proto.sass.embedded_protocol.Value.Calculation.prototype.addArguments = function (opt_value, opt_index) {
8582
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, opt_index);
8583
+ };
8584
+ /**
8585
+ * Clears the list making it empty but non-null.
8586
+ * @return {!proto.sass.embedded_protocol.Value.Calculation} returns this
8587
+ */
8588
+ proto.sass.embedded_protocol.Value.Calculation.prototype.clearArgumentsList = function () {
8589
+ return this.setArgumentsList([]);
8590
+ };
8591
+ /**
8592
+ * optional String string = 1;
8593
+ * @return {?proto.sass.embedded_protocol.Value.String}
8594
+ */
8595
+ proto.sass.embedded_protocol.Value.prototype.getString = function () {
8596
+ return /** @type{?proto.sass.embedded_protocol.Value.String} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.String, 1));
8597
+ };
7677
8598
  /**
7678
8599
  * @param {?proto.sass.embedded_protocol.Value.String|undefined} value
7679
8600
  * @return {!proto.sass.embedded_protocol.Value} returns this
@@ -7947,6 +8868,62 @@ proto.sass.embedded_protocol.Value.prototype.clearArgumentList = function () {
7947
8868
  proto.sass.embedded_protocol.Value.prototype.hasArgumentList = function () {
7948
8869
  return jspb.Message.getField(this, 10) != null;
7949
8870
  };
8871
+ /**
8872
+ * optional HwbColor hwb_color = 11;
8873
+ * @return {?proto.sass.embedded_protocol.Value.HwbColor}
8874
+ */
8875
+ proto.sass.embedded_protocol.Value.prototype.getHwbColor = function () {
8876
+ return /** @type{?proto.sass.embedded_protocol.Value.HwbColor} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.HwbColor, 11));
8877
+ };
8878
+ /**
8879
+ * @param {?proto.sass.embedded_protocol.Value.HwbColor|undefined} value
8880
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8881
+ */
8882
+ proto.sass.embedded_protocol.Value.prototype.setHwbColor = function (value) {
8883
+ return jspb.Message.setOneofWrapperField(this, 11, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
8884
+ };
8885
+ /**
8886
+ * Clears the message field making it undefined.
8887
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8888
+ */
8889
+ proto.sass.embedded_protocol.Value.prototype.clearHwbColor = function () {
8890
+ return this.setHwbColor(undefined);
8891
+ };
8892
+ /**
8893
+ * Returns whether this field is set.
8894
+ * @return {boolean}
8895
+ */
8896
+ proto.sass.embedded_protocol.Value.prototype.hasHwbColor = function () {
8897
+ return jspb.Message.getField(this, 11) != null;
8898
+ };
8899
+ /**
8900
+ * optional Calculation calculation = 12;
8901
+ * @return {?proto.sass.embedded_protocol.Value.Calculation}
8902
+ */
8903
+ proto.sass.embedded_protocol.Value.prototype.getCalculation = function () {
8904
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation, 12));
8905
+ };
8906
+ /**
8907
+ * @param {?proto.sass.embedded_protocol.Value.Calculation|undefined} value
8908
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8909
+ */
8910
+ proto.sass.embedded_protocol.Value.prototype.setCalculation = function (value) {
8911
+ return jspb.Message.setOneofWrapperField(this, 12, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
8912
+ };
8913
+ /**
8914
+ * Clears the message field making it undefined.
8915
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8916
+ */
8917
+ proto.sass.embedded_protocol.Value.prototype.clearCalculation = function () {
8918
+ return this.setCalculation(undefined);
8919
+ };
8920
+ /**
8921
+ * Returns whether this field is set.
8922
+ * @return {boolean}
8923
+ */
8924
+ proto.sass.embedded_protocol.Value.prototype.hasCalculation = function () {
8925
+ return jspb.Message.getField(this, 12) != null;
8926
+ };
7950
8927
  /**
7951
8928
  * @enum {number}
7952
8929
  */
@@ -7995,5 +8972,14 @@ proto.sass.embedded_protocol.SingletonValue = {
7995
8972
  FALSE: 1,
7996
8973
  NULL: 2
7997
8974
  };
8975
+ /**
8976
+ * @enum {number}
8977
+ */
8978
+ proto.sass.embedded_protocol.CalculationOperator = {
8979
+ PLUS: 0,
8980
+ MINUS: 1,
8981
+ TIMES: 2,
8982
+ DIVIDE: 3
8983
+ };
7998
8984
  goog.object.extend(exports, proto.sass.embedded_protocol);
7999
8985
  //# sourceMappingURL=embedded_sass_pb.js.map