sass-embedded 1.0.0-beta.5 → 1.49.7

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 (153) hide show
  1. package/CHANGELOG.md +2379 -22
  2. package/README.md +95 -9
  3. package/dist/.gitignore +1 -1
  4. package/dist/lib/index.js +34 -12
  5. package/dist/lib/index.js.map +1 -1
  6. package/dist/lib/src/{embedded-compiler/compiler.js → async-compiler.js} +9 -17
  7. package/dist/lib/src/async-compiler.js.map +1 -0
  8. package/dist/lib/src/compile.js +186 -96
  9. package/dist/lib/src/compile.js.map +1 -1
  10. package/dist/lib/src/compiler-path.js +18 -0
  11. package/dist/lib/src/compiler-path.js.map +1 -0
  12. package/dist/lib/src/{embedded-protocol/utils.js → deprotofy-span.js} +16 -18
  13. package/dist/lib/src/deprotofy-span.js.map +1 -0
  14. package/dist/lib/src/{embedded-protocol/dispatcher.js → dispatcher.js} +45 -40
  15. package/dist/lib/src/dispatcher.js.map +1 -0
  16. package/dist/lib/src/exception.js +20 -0
  17. package/dist/lib/src/exception.js.map +1 -0
  18. package/dist/lib/src/function-registry.js +92 -0
  19. package/dist/lib/src/function-registry.js.map +1 -0
  20. package/dist/lib/src/importer-registry.js +127 -0
  21. package/dist/lib/src/importer-registry.js.map +1 -0
  22. package/dist/lib/src/legacy/importer.js +186 -0
  23. package/dist/lib/src/legacy/importer.js.map +1 -0
  24. package/dist/lib/src/legacy/index.js +262 -0
  25. package/dist/lib/src/legacy/index.js.map +1 -0
  26. package/dist/lib/src/legacy/resolve-path.js +101 -0
  27. package/dist/lib/src/legacy/resolve-path.js.map +1 -0
  28. package/dist/lib/src/legacy/value/base.js +17 -0
  29. package/dist/lib/src/legacy/value/base.js.map +1 -0
  30. package/dist/lib/src/legacy/value/color.js +64 -0
  31. package/dist/lib/src/legacy/value/color.js.map +1 -0
  32. package/dist/lib/src/legacy/value/index.js +23 -0
  33. package/dist/lib/src/legacy/value/index.js.map +1 -0
  34. package/dist/lib/src/legacy/value/list.js +50 -0
  35. package/dist/lib/src/legacy/value/list.js.map +1 -0
  36. package/dist/lib/src/legacy/value/map.js +74 -0
  37. package/dist/lib/src/legacy/value/map.js.map +1 -0
  38. package/dist/lib/src/legacy/value/number.js +60 -0
  39. package/dist/lib/src/legacy/value/number.js.map +1 -0
  40. package/dist/lib/src/legacy/value/string.js +27 -0
  41. package/dist/lib/src/legacy/value/string.js.map +1 -0
  42. package/dist/lib/src/legacy/value/wrap.js +83 -0
  43. package/dist/lib/src/legacy/value/wrap.js.map +1 -0
  44. package/dist/lib/src/{embedded-protocol/message-transformer.js → message-transformer.js} +2 -2
  45. package/dist/lib/src/message-transformer.js.map +1 -0
  46. package/dist/lib/src/{embedded-compiler/packet-transformer.js → packet-transformer.js} +0 -0
  47. package/dist/lib/src/packet-transformer.js.map +1 -0
  48. package/dist/lib/src/protofier.js +272 -0
  49. package/dist/lib/src/protofier.js.map +1 -0
  50. package/dist/lib/src/{embedded-protocol/request-tracker.js → request-tracker.js} +0 -0
  51. package/dist/lib/src/request-tracker.js.map +1 -0
  52. package/dist/lib/src/sync-compiler.js +52 -0
  53. package/dist/lib/src/sync-compiler.js.map +1 -0
  54. package/dist/lib/src/{exception/span.js → sync-process/event.js} +2 -2
  55. package/dist/lib/src/sync-process/event.js.map +1 -0
  56. package/dist/lib/src/sync-process/index.js +122 -0
  57. package/dist/lib/src/sync-process/index.js.map +1 -0
  58. package/dist/lib/src/sync-process/sync-message-port.js +128 -0
  59. package/dist/lib/src/sync-process/sync-message-port.js.map +1 -0
  60. package/dist/lib/src/sync-process/worker.js +51 -0
  61. package/dist/lib/src/sync-process/worker.js.map +1 -0
  62. package/dist/lib/src/utils.js +79 -1
  63. package/dist/lib/src/utils.js.map +1 -1
  64. package/dist/lib/src/value/argument-list.js +31 -0
  65. package/dist/lib/src/value/argument-list.js.map +1 -0
  66. package/dist/lib/src/value/boolean.js +20 -4
  67. package/dist/lib/src/value/boolean.js.map +1 -1
  68. package/dist/lib/src/value/color.js +89 -98
  69. package/dist/lib/src/value/color.js.map +1 -1
  70. package/dist/lib/src/value/function.js +34 -0
  71. package/dist/lib/src/value/function.js.map +1 -0
  72. package/dist/lib/src/value/{value.js → index.js} +5 -1
  73. package/dist/lib/src/value/index.js.map +1 -0
  74. package/dist/lib/src/value/list.js +15 -18
  75. package/dist/lib/src/value/list.js.map +1 -1
  76. package/dist/lib/src/value/map.js +17 -10
  77. package/dist/lib/src/value/map.js.map +1 -1
  78. package/dist/lib/src/value/null.js +15 -3
  79. package/dist/lib/src/value/null.js.map +1 -1
  80. package/dist/lib/src/value/number.js +20 -26
  81. package/dist/lib/src/value/number.js.map +1 -1
  82. package/dist/lib/src/value/string.js +14 -9
  83. package/dist/lib/src/value/string.js.map +1 -1
  84. package/dist/lib/src/value/utils.js +7 -1
  85. package/dist/lib/src/value/utils.js.map +1 -1
  86. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js +1438 -121
  87. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.js.map +1 -1
  88. package/dist/package.json +6 -4
  89. package/dist/tool/utils.js +47 -16
  90. package/dist/tool/utils.js.map +1 -1
  91. package/dist/types/compile.d.ts +152 -0
  92. package/dist/types/exception.d.ts +41 -0
  93. package/dist/types/importer.d.ts +294 -0
  94. package/dist/types/index.d.ts +80 -0
  95. package/dist/types/legacy/exception.d.ts +54 -0
  96. package/dist/types/legacy/function.d.ts +756 -0
  97. package/dist/types/legacy/importer.d.ts +168 -0
  98. package/dist/types/legacy/options.d.ts +642 -0
  99. package/dist/types/legacy/plugin_this.d.ts +73 -0
  100. package/dist/types/legacy/render.d.ts +139 -0
  101. package/dist/types/logger/index.d.ts +94 -0
  102. package/dist/types/logger/source_location.d.ts +21 -0
  103. package/dist/types/logger/source_span.d.ts +34 -0
  104. package/dist/types/options.d.ts +418 -0
  105. package/dist/types/util/promise_or.d.ts +17 -0
  106. package/dist/types/value/argument_list.d.ts +47 -0
  107. package/dist/types/value/boolean.d.ts +29 -0
  108. package/dist/types/value/color.d.ts +107 -0
  109. package/dist/types/value/function.d.ts +22 -0
  110. package/dist/types/value/index.d.ts +173 -0
  111. package/dist/types/value/list.d.ts +54 -0
  112. package/dist/types/value/map.d.ts +41 -0
  113. package/dist/types/value/number.d.ts +305 -0
  114. package/dist/types/value/string.d.ts +84 -0
  115. package/package.json +6 -4
  116. package/dist/lib/index.d.ts +0 -10
  117. package/dist/lib/src/compile.d.ts +0 -22
  118. package/dist/lib/src/embedded-compiler/compiler.d.ts +0 -19
  119. package/dist/lib/src/embedded-compiler/compiler.js.map +0 -1
  120. package/dist/lib/src/embedded-compiler/packet-transformer.d.ts +0 -34
  121. package/dist/lib/src/embedded-compiler/packet-transformer.js.map +0 -1
  122. package/dist/lib/src/embedded-protocol/dispatcher.d.ts +0 -60
  123. package/dist/lib/src/embedded-protocol/dispatcher.js.map +0 -1
  124. package/dist/lib/src/embedded-protocol/message-transformer.d.ts +0 -47
  125. package/dist/lib/src/embedded-protocol/message-transformer.js.map +0 -1
  126. package/dist/lib/src/embedded-protocol/request-tracker.d.ts +0 -20
  127. package/dist/lib/src/embedded-protocol/request-tracker.js.map +0 -1
  128. package/dist/lib/src/embedded-protocol/utils.d.ts +0 -7
  129. package/dist/lib/src/embedded-protocol/utils.js.map +0 -1
  130. package/dist/lib/src/exception/exception.d.ts +0 -19
  131. package/dist/lib/src/exception/exception.js +0 -37
  132. package/dist/lib/src/exception/exception.js.map +0 -1
  133. package/dist/lib/src/exception/location.d.ts +0 -11
  134. package/dist/lib/src/exception/location.js +0 -6
  135. package/dist/lib/src/exception/location.js.map +0 -1
  136. package/dist/lib/src/exception/span.d.ts +0 -29
  137. package/dist/lib/src/exception/span.js.map +0 -1
  138. package/dist/lib/src/node-sass/render.d.ts +0 -61
  139. package/dist/lib/src/node-sass/render.js +0 -127
  140. package/dist/lib/src/node-sass/render.js.map +0 -1
  141. package/dist/lib/src/utils.d.ts +0 -16
  142. package/dist/lib/src/value/boolean.d.ts +0 -25
  143. package/dist/lib/src/value/color.d.ts +0 -89
  144. package/dist/lib/src/value/list.d.ts +0 -41
  145. package/dist/lib/src/value/map.d.ts +0 -26
  146. package/dist/lib/src/value/null.d.ts +0 -12
  147. package/dist/lib/src/value/number.d.ts +0 -189
  148. package/dist/lib/src/value/string.d.ts +0 -56
  149. package/dist/lib/src/value/utils.d.ts +0 -44
  150. package/dist/lib/src/value/value.d.ts +0 -108
  151. package/dist/lib/src/value/value.js.map +0 -1
  152. package/dist/lib/src/vendor/embedded-protocol/embedded_sass_pb.d.ts +0 -1
  153. package/dist/tool/utils.d.ts +0 -32
@@ -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);
@@ -51,9 +52,15 @@ goog.exportSymbol('proto.sass.embedded_protocol.SourceSpan', null, global);
51
52
  goog.exportSymbol('proto.sass.embedded_protocol.SourceSpan.SourceLocation', null, global);
52
53
  goog.exportSymbol('proto.sass.embedded_protocol.Syntax', null, global);
53
54
  goog.exportSymbol('proto.sass.embedded_protocol.Value', null, global);
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);
54
60
  goog.exportSymbol('proto.sass.embedded_protocol.Value.CompilerFunction', null, global);
55
61
  goog.exportSymbol('proto.sass.embedded_protocol.Value.HostFunction', null, global);
56
62
  goog.exportSymbol('proto.sass.embedded_protocol.Value.HslColor', null, global);
63
+ goog.exportSymbol('proto.sass.embedded_protocol.Value.HwbColor', null, global);
57
64
  goog.exportSymbol('proto.sass.embedded_protocol.Value.List', null, global);
58
65
  goog.exportSymbol('proto.sass.embedded_protocol.Value.Map', null, global);
59
66
  goog.exportSymbol('proto.sass.embedded_protocol.Value.Map.Entry', null, global);
@@ -261,7 +268,7 @@ if (goog.DEBUG && !COMPILED) {
261
268
  * @constructor
262
269
  */
263
270
  proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse = function (opt_data) {
264
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.oneofGroups_);
271
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.repeatedFields_, proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.oneofGroups_);
265
272
  };
266
273
  goog.inherits(proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse, jspb.Message);
267
274
  if (goog.DEBUG && !COMPILED) {
@@ -649,6 +656,27 @@ if (goog.DEBUG && !COMPILED) {
649
656
  */
650
657
  proto.sass.embedded_protocol.Value.HslColor.displayName = 'proto.sass.embedded_protocol.Value.HslColor';
651
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
+ }
652
680
  /**
653
681
  * Generated by JsPbCodeGenerator.
654
682
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -754,6 +782,90 @@ if (goog.DEBUG && !COMPILED) {
754
782
  */
755
783
  proto.sass.embedded_protocol.Value.HostFunction.displayName = 'proto.sass.embedded_protocol.Value.HostFunction';
756
784
  }
785
+ /**
786
+ * Generated by JsPbCodeGenerator.
787
+ * @param {Array=} opt_data Optional initial data array, typically from a
788
+ * server response, or constructed directly in Javascript. The array is used
789
+ * in place and becomes part of the constructed object. It is not cloned.
790
+ * If no data is provided, the constructed object will be empty, but still
791
+ * valid.
792
+ * @extends {jspb.Message}
793
+ * @constructor
794
+ */
795
+ proto.sass.embedded_protocol.Value.ArgumentList = function (opt_data) {
796
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sass.embedded_protocol.Value.ArgumentList.repeatedFields_, null);
797
+ };
798
+ goog.inherits(proto.sass.embedded_protocol.Value.ArgumentList, jspb.Message);
799
+ if (goog.DEBUG && !COMPILED) {
800
+ /**
801
+ * @public
802
+ * @override
803
+ */
804
+ proto.sass.embedded_protocol.Value.ArgumentList.displayName = 'proto.sass.embedded_protocol.Value.ArgumentList';
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
+ }
757
869
  /**
758
870
  * Oneof group definitions for this message. Each group defines the field
759
871
  * numbers belonging to that group. When of these fields' value is set, all
@@ -1098,7 +1210,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1098
1210
  alertColor: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
1099
1211
  alertAscii: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
1100
1212
  verbose: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
1101
- quietDeps: jspb.Message.getBooleanFieldWithDefault(msg, 11, false)
1213
+ quietDeps: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
1214
+ sourceMapIncludeSources: jspb.Message.getBooleanFieldWithDefault(msg, 12, false)
1102
1215
  };
1103
1216
  if (includeInstance) {
1104
1217
  obj.$jspbMessageInstance = msg;
@@ -1176,6 +1289,10 @@ proto.sass.embedded_protocol.InboundMessage.CompileRequest.deserializeBinaryFrom
1176
1289
  var value = /** @type {boolean} */ (reader.readBool());
1177
1290
  msg.setQuietDeps(value);
1178
1291
  break;
1292
+ case 12:
1293
+ var value = /** @type {boolean} */ (reader.readBool());
1294
+ msg.setSourceMapIncludeSources(value);
1295
+ break;
1179
1296
  default:
1180
1297
  reader.skipField();
1181
1298
  break;
@@ -1245,6 +1362,10 @@ proto.sass.embedded_protocol.InboundMessage.CompileRequest.serializeBinaryToWrit
1245
1362
  if (f) {
1246
1363
  writer.writeBool(11, f);
1247
1364
  }
1365
+ f = message.getSourceMapIncludeSources();
1366
+ if (f) {
1367
+ writer.writeBool(12, f);
1368
+ }
1248
1369
  };
1249
1370
  if (jspb.Message.GENERATE_TO_OBJECT) {
1250
1371
  /**
@@ -1868,6 +1989,20 @@ proto.sass.embedded_protocol.InboundMessage.CompileRequest.prototype.getQuietDep
1868
1989
  proto.sass.embedded_protocol.InboundMessage.CompileRequest.prototype.setQuietDeps = function (value) {
1869
1990
  return jspb.Message.setProto3BooleanField(this, 11, value);
1870
1991
  };
1992
+ /**
1993
+ * optional bool source_map_include_sources = 12;
1994
+ * @return {boolean}
1995
+ */
1996
+ proto.sass.embedded_protocol.InboundMessage.CompileRequest.prototype.getSourceMapIncludeSources = function () {
1997
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
1998
+ };
1999
+ /**
2000
+ * @param {boolean} value
2001
+ * @return {!proto.sass.embedded_protocol.InboundMessage.CompileRequest} returns this
2002
+ */
2003
+ proto.sass.embedded_protocol.InboundMessage.CompileRequest.prototype.setSourceMapIncludeSources = function (value) {
2004
+ return jspb.Message.setProto3BooleanField(this, 12, value);
2005
+ };
1871
2006
  /**
1872
2007
  * Oneof group definitions for this message. Each group defines the field
1873
2008
  * numbers belonging to that group. When of these fields' value is set, all
@@ -2634,6 +2769,12 @@ proto.sass.embedded_protocol.InboundMessage.FileImportResponse.prototype.clearEr
2634
2769
  proto.sass.embedded_protocol.InboundMessage.FileImportResponse.prototype.hasError = function () {
2635
2770
  return jspb.Message.getField(this, 3) != null;
2636
2771
  };
2772
+ /**
2773
+ * List of repeated fields within this message type.
2774
+ * @private {!Array<number>}
2775
+ * @const
2776
+ */
2777
+ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.repeatedFields_ = [4];
2637
2778
  /**
2638
2779
  * Oneof group definitions for this message. Each group defines the field
2639
2780
  * numbers belonging to that group. When of these fields' value is set, all
@@ -2686,7 +2827,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
2686
2827
  var f, obj = {
2687
2828
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2688
2829
  success: (f = msg.getSuccess()) && proto.sass.embedded_protocol.Value.toObject(includeInstance, f),
2689
- error: jspb.Message.getFieldWithDefault(msg, 3, "")
2830
+ error: jspb.Message.getFieldWithDefault(msg, 3, ""),
2831
+ accessedArgumentListsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
2690
2832
  };
2691
2833
  if (includeInstance) {
2692
2834
  obj.$jspbMessageInstance = msg;
@@ -2731,6 +2873,10 @@ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.deserializeBina
2731
2873
  var value = /** @type {string} */ (reader.readString());
2732
2874
  msg.setError(value);
2733
2875
  break;
2876
+ case 4:
2877
+ var value = /** @type {!Array<number>} */ (reader.readPackedUint32());
2878
+ msg.setAccessedArgumentListsList(value);
2879
+ break;
2734
2880
  default:
2735
2881
  reader.skipField();
2736
2882
  break;
@@ -2768,6 +2914,10 @@ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.serializeBinary
2768
2914
  if (f != null) {
2769
2915
  writer.writeString(3, f);
2770
2916
  }
2917
+ f = message.getAccessedArgumentListsList();
2918
+ if (f.length > 0) {
2919
+ writer.writePackedUint32(4, f);
2920
+ }
2771
2921
  };
2772
2922
  /**
2773
2923
  * optional uint32 id = 1;
@@ -2839,6 +2989,35 @@ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.prototype.clear
2839
2989
  proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.prototype.hasError = function () {
2840
2990
  return jspb.Message.getField(this, 3) != null;
2841
2991
  };
2992
+ /**
2993
+ * repeated uint32 accessed_argument_lists = 4;
2994
+ * @return {!Array<number>}
2995
+ */
2996
+ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.prototype.getAccessedArgumentListsList = function () {
2997
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
2998
+ };
2999
+ /**
3000
+ * @param {!Array<number>} value
3001
+ * @return {!proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse} returns this
3002
+ */
3003
+ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.prototype.setAccessedArgumentListsList = function (value) {
3004
+ return jspb.Message.setField(this, 4, value || []);
3005
+ };
3006
+ /**
3007
+ * @param {number} value
3008
+ * @param {number=} opt_index
3009
+ * @return {!proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse} returns this
3010
+ */
3011
+ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.prototype.addAccessedArgumentLists = function (value, opt_index) {
3012
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
3013
+ };
3014
+ /**
3015
+ * Clears the list making it empty but non-null.
3016
+ * @return {!proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse} returns this
3017
+ */
3018
+ proto.sass.embedded_protocol.InboundMessage.FunctionCallResponse.prototype.clearAccessedArgumentListsList = function () {
3019
+ return this.setAccessedArgumentListsList([]);
3020
+ };
2842
3021
  /**
2843
3022
  * optional CompileRequest compile_request = 2;
2844
3023
  * @return {?proto.sass.embedded_protocol.InboundMessage.CompileRequest}
@@ -5820,7 +5999,7 @@ proto.sass.embedded_protocol.SourceSpan.prototype.setContext = function (value)
5820
5999
  * @private {!Array<!Array<number>>}
5821
6000
  * @const
5822
6001
  */
5823
- proto.sass.embedded_protocol.Value.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9]];
6002
+ proto.sass.embedded_protocol.Value.oneofGroups_ = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]];
5824
6003
  /**
5825
6004
  * @enum {number}
5826
6005
  */
@@ -5834,7 +6013,10 @@ proto.sass.embedded_protocol.Value.ValueCase = {
5834
6013
  MAP: 6,
5835
6014
  SINGLETON: 7,
5836
6015
  COMPILER_FUNCTION: 8,
5837
- HOST_FUNCTION: 9
6016
+ HOST_FUNCTION: 9,
6017
+ ARGUMENT_LIST: 10,
6018
+ HWB_COLOR: 11,
6019
+ CALCULATION: 12
5838
6020
  };
5839
6021
  /**
5840
6022
  * @return {proto.sass.embedded_protocol.Value.ValueCase}
@@ -5877,7 +6059,10 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
5877
6059
  map: (f = msg.getMap()) && proto.sass.embedded_protocol.Value.Map.toObject(includeInstance, f),
5878
6060
  singleton: jspb.Message.getFieldWithDefault(msg, 7, 0),
5879
6061
  compilerFunction: (f = msg.getCompilerFunction()) && proto.sass.embedded_protocol.Value.CompilerFunction.toObject(includeInstance, f),
5880
- hostFunction: (f = msg.getHostFunction()) && proto.sass.embedded_protocol.Value.HostFunction.toObject(includeInstance, f)
6062
+ hostFunction: (f = msg.getHostFunction()) && proto.sass.embedded_protocol.Value.HostFunction.toObject(includeInstance, f),
6063
+ argumentList: (f = msg.getArgumentList()) && proto.sass.embedded_protocol.Value.ArgumentList.toObject(includeInstance, f),
6064
+ hwbColor: (f = msg.getHwbColor()) && proto.sass.embedded_protocol.Value.HwbColor.toObject(includeInstance, f),
6065
+ calculation: (f = msg.getCalculation()) && proto.sass.embedded_protocol.Value.Calculation.toObject(includeInstance, f)
5881
6066
  };
5882
6067
  if (includeInstance) {
5883
6068
  obj.$jspbMessageInstance = msg;
@@ -5953,6 +6138,21 @@ proto.sass.embedded_protocol.Value.deserializeBinaryFromReader = function (msg,
5953
6138
  reader.readMessage(value, proto.sass.embedded_protocol.Value.HostFunction.deserializeBinaryFromReader);
5954
6139
  msg.setHostFunction(value);
5955
6140
  break;
6141
+ case 10:
6142
+ var value = new proto.sass.embedded_protocol.Value.ArgumentList;
6143
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.ArgumentList.deserializeBinaryFromReader);
6144
+ msg.setArgumentList(value);
6145
+ break;
6146
+ case 11:
6147
+ var value = new proto.sass.embedded_protocol.Value.HwbColor;
6148
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.HwbColor.deserializeBinaryFromReader);
6149
+ msg.setHwbColor(value);
6150
+ break;
6151
+ case 12:
6152
+ var value = new proto.sass.embedded_protocol.Value.Calculation;
6153
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader);
6154
+ msg.setCalculation(value);
6155
+ break;
5956
6156
  default:
5957
6157
  reader.skipField();
5958
6158
  break;
@@ -6014,6 +6214,18 @@ proto.sass.embedded_protocol.Value.serializeBinaryToWriter = function (message,
6014
6214
  if (f != null) {
6015
6215
  writer.writeMessage(9, f, proto.sass.embedded_protocol.Value.HostFunction.serializeBinaryToWriter);
6016
6216
  }
6217
+ f = message.getArgumentList();
6218
+ if (f != null) {
6219
+ writer.writeMessage(10, f, proto.sass.embedded_protocol.Value.ArgumentList.serializeBinaryToWriter);
6220
+ }
6221
+ f = message.getHwbColor();
6222
+ if (f != null) {
6223
+ writer.writeMessage(11, f, proto.sass.embedded_protocol.Value.HwbColor.serializeBinaryToWriter);
6224
+ }
6225
+ f = message.getCalculation();
6226
+ if (f != null) {
6227
+ writer.writeMessage(12, f, proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter);
6228
+ }
6017
6229
  };
6018
6230
  if (jspb.Message.GENERATE_TO_OBJECT) {
6019
6231
  /**
@@ -6686,12 +6898,6 @@ proto.sass.embedded_protocol.Value.HslColor.prototype.getAlpha = function () {
6686
6898
  proto.sass.embedded_protocol.Value.HslColor.prototype.setAlpha = function (value) {
6687
6899
  return jspb.Message.setProto3FloatField(this, 4, value);
6688
6900
  };
6689
- /**
6690
- * List of repeated fields within this message type.
6691
- * @private {!Array<number>}
6692
- * @const
6693
- */
6694
- proto.sass.embedded_protocol.Value.List.repeatedFields_ = [3];
6695
6901
  if (jspb.Message.GENERATE_TO_OBJECT) {
6696
6902
  /**
6697
6903
  * Creates an object representation of this proto.
@@ -6705,23 +6911,24 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6705
6911
  * http://goto/soy-param-migration
6706
6912
  * @return {!Object}
6707
6913
  */
6708
- proto.sass.embedded_protocol.Value.List.prototype.toObject = function (opt_includeInstance) {
6709
- return proto.sass.embedded_protocol.Value.List.toObject(opt_includeInstance, this);
6914
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.toObject = function (opt_includeInstance) {
6915
+ return proto.sass.embedded_protocol.Value.HwbColor.toObject(opt_includeInstance, this);
6710
6916
  };
6711
6917
  /**
6712
6918
  * Static version of the {@see toObject} method.
6713
6919
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6714
6920
  * the JSPB instance for transitional soy proto support:
6715
6921
  * http://goto/soy-param-migration
6716
- * @param {!proto.sass.embedded_protocol.Value.List} msg The msg instance to transform.
6922
+ * @param {!proto.sass.embedded_protocol.Value.HwbColor} msg The msg instance to transform.
6717
6923
  * @return {!Object}
6718
6924
  * @suppress {unusedLocalVariables} f is only used for nested messages
6719
6925
  */
6720
- proto.sass.embedded_protocol.Value.List.toObject = function (includeInstance, msg) {
6926
+ proto.sass.embedded_protocol.Value.HwbColor.toObject = function (includeInstance, msg) {
6721
6927
  var f, obj = {
6722
- separator: jspb.Message.getFieldWithDefault(msg, 1, 0),
6723
- hasBrackets: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
6724
- contentsList: jspb.Message.toObjectList(msg.getContentsList(), proto.sass.embedded_protocol.Value.toObject, includeInstance)
6928
+ hue: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
6929
+ whiteness: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
6930
+ blackness: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
6931
+ alpha: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
6725
6932
  };
6726
6933
  if (includeInstance) {
6727
6934
  obj.$jspbMessageInstance = msg;
@@ -6732,21 +6939,21 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6732
6939
  /**
6733
6940
  * Deserializes binary data (in protobuf wire format).
6734
6941
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
6735
- * @return {!proto.sass.embedded_protocol.Value.List}
6942
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor}
6736
6943
  */
6737
- proto.sass.embedded_protocol.Value.List.deserializeBinary = function (bytes) {
6944
+ proto.sass.embedded_protocol.Value.HwbColor.deserializeBinary = function (bytes) {
6738
6945
  var reader = new jspb.BinaryReader(bytes);
6739
- var msg = new proto.sass.embedded_protocol.Value.List;
6740
- return proto.sass.embedded_protocol.Value.List.deserializeBinaryFromReader(msg, reader);
6946
+ var msg = new proto.sass.embedded_protocol.Value.HwbColor;
6947
+ return proto.sass.embedded_protocol.Value.HwbColor.deserializeBinaryFromReader(msg, reader);
6741
6948
  };
6742
6949
  /**
6743
6950
  * Deserializes binary data (in protobuf wire format) from the
6744
6951
  * given reader into the given message object.
6745
- * @param {!proto.sass.embedded_protocol.Value.List} msg The message object to deserialize into.
6952
+ * @param {!proto.sass.embedded_protocol.Value.HwbColor} msg The message object to deserialize into.
6746
6953
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6747
- * @return {!proto.sass.embedded_protocol.Value.List}
6954
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor}
6748
6955
  */
6749
- proto.sass.embedded_protocol.Value.List.deserializeBinaryFromReader = function (msg, reader) {
6956
+ proto.sass.embedded_protocol.Value.HwbColor.deserializeBinaryFromReader = function (msg, reader) {
6750
6957
  while (reader.nextField()) {
6751
6958
  if (reader.isEndGroup()) {
6752
6959
  break;
@@ -6754,17 +6961,20 @@ proto.sass.embedded_protocol.Value.List.deserializeBinaryFromReader = function (
6754
6961
  var field = reader.getFieldNumber();
6755
6962
  switch (field) {
6756
6963
  case 1:
6757
- var value = /** @type {!proto.sass.embedded_protocol.ListSeparator} */ (reader.readEnum());
6758
- msg.setSeparator(value);
6964
+ var value = /** @type {number} */ (reader.readDouble());
6965
+ msg.setHue(value);
6759
6966
  break;
6760
6967
  case 2:
6761
- var value = /** @type {boolean} */ (reader.readBool());
6762
- msg.setHasBrackets(value);
6968
+ var value = /** @type {number} */ (reader.readDouble());
6969
+ msg.setWhiteness(value);
6763
6970
  break;
6764
6971
  case 3:
6765
- var value = new proto.sass.embedded_protocol.Value;
6766
- reader.readMessage(value, proto.sass.embedded_protocol.Value.deserializeBinaryFromReader);
6767
- msg.addContents(value);
6972
+ var value = /** @type {number} */ (reader.readDouble());
6973
+ msg.setBlackness(value);
6974
+ break;
6975
+ case 4:
6976
+ var value = /** @type {number} */ (reader.readDouble());
6977
+ msg.setAlpha(value);
6768
6978
  break;
6769
6979
  default:
6770
6980
  reader.skipField();
@@ -6777,96 +6987,99 @@ proto.sass.embedded_protocol.Value.List.deserializeBinaryFromReader = function (
6777
6987
  * Serializes the message to binary data (in protobuf wire format).
6778
6988
  * @return {!Uint8Array}
6779
6989
  */
6780
- proto.sass.embedded_protocol.Value.List.prototype.serializeBinary = function () {
6990
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.serializeBinary = function () {
6781
6991
  var writer = new jspb.BinaryWriter();
6782
- proto.sass.embedded_protocol.Value.List.serializeBinaryToWriter(this, writer);
6992
+ proto.sass.embedded_protocol.Value.HwbColor.serializeBinaryToWriter(this, writer);
6783
6993
  return writer.getResultBuffer();
6784
6994
  };
6785
6995
  /**
6786
6996
  * Serializes the given message to binary data (in protobuf wire
6787
6997
  * format), writing to the given BinaryWriter.
6788
- * @param {!proto.sass.embedded_protocol.Value.List} message
6998
+ * @param {!proto.sass.embedded_protocol.Value.HwbColor} message
6789
6999
  * @param {!jspb.BinaryWriter} writer
6790
7000
  * @suppress {unusedLocalVariables} f is only used for nested messages
6791
7001
  */
6792
- proto.sass.embedded_protocol.Value.List.serializeBinaryToWriter = function (message, writer) {
7002
+ proto.sass.embedded_protocol.Value.HwbColor.serializeBinaryToWriter = function (message, writer) {
6793
7003
  var f = undefined;
6794
- f = message.getSeparator();
7004
+ f = message.getHue();
6795
7005
  if (f !== 0.0) {
6796
- writer.writeEnum(1, f);
7006
+ writer.writeDouble(1, f);
6797
7007
  }
6798
- f = message.getHasBrackets();
6799
- if (f) {
6800
- writer.writeBool(2, f);
7008
+ f = message.getWhiteness();
7009
+ if (f !== 0.0) {
7010
+ writer.writeDouble(2, f);
6801
7011
  }
6802
- f = message.getContentsList();
6803
- if (f.length > 0) {
6804
- writer.writeRepeatedMessage(3, f, proto.sass.embedded_protocol.Value.serializeBinaryToWriter);
7012
+ f = message.getBlackness();
7013
+ if (f !== 0.0) {
7014
+ writer.writeDouble(3, f);
7015
+ }
7016
+ f = message.getAlpha();
7017
+ if (f !== 0.0) {
7018
+ writer.writeDouble(4, f);
6805
7019
  }
6806
7020
  };
6807
7021
  /**
6808
- * optional ListSeparator separator = 1;
6809
- * @return {!proto.sass.embedded_protocol.ListSeparator}
7022
+ * optional double hue = 1;
7023
+ * @return {number}
6810
7024
  */
6811
- proto.sass.embedded_protocol.Value.List.prototype.getSeparator = function () {
6812
- return /** @type {!proto.sass.embedded_protocol.ListSeparator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7025
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getHue = function () {
7026
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
6813
7027
  };
6814
7028
  /**
6815
- * @param {!proto.sass.embedded_protocol.ListSeparator} value
6816
- * @return {!proto.sass.embedded_protocol.Value.List} returns this
7029
+ * @param {number} value
7030
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
6817
7031
  */
6818
- proto.sass.embedded_protocol.Value.List.prototype.setSeparator = function (value) {
6819
- return jspb.Message.setProto3EnumField(this, 1, value);
7032
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setHue = function (value) {
7033
+ return jspb.Message.setProto3FloatField(this, 1, value);
6820
7034
  };
6821
7035
  /**
6822
- * optional bool has_brackets = 2;
6823
- * @return {boolean}
7036
+ * optional double whiteness = 2;
7037
+ * @return {number}
6824
7038
  */
6825
- proto.sass.embedded_protocol.Value.List.prototype.getHasBrackets = function () {
6826
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
7039
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getWhiteness = function () {
7040
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
6827
7041
  };
6828
7042
  /**
6829
- * @param {boolean} value
6830
- * @return {!proto.sass.embedded_protocol.Value.List} returns this
7043
+ * @param {number} value
7044
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
6831
7045
  */
6832
- proto.sass.embedded_protocol.Value.List.prototype.setHasBrackets = function (value) {
6833
- return jspb.Message.setProto3BooleanField(this, 2, value);
7046
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setWhiteness = function (value) {
7047
+ return jspb.Message.setProto3FloatField(this, 2, value);
6834
7048
  };
6835
7049
  /**
6836
- * repeated Value contents = 3;
6837
- * @return {!Array<!proto.sass.embedded_protocol.Value>}
7050
+ * optional double blackness = 3;
7051
+ * @return {number}
6838
7052
  */
6839
- proto.sass.embedded_protocol.Value.List.prototype.getContentsList = function () {
6840
- return /** @type{!Array<!proto.sass.embedded_protocol.Value>} */ (jspb.Message.getRepeatedWrapperField(this, proto.sass.embedded_protocol.Value, 3));
7053
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getBlackness = function () {
7054
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
6841
7055
  };
6842
7056
  /**
6843
- * @param {!Array<!proto.sass.embedded_protocol.Value>} value
6844
- * @return {!proto.sass.embedded_protocol.Value.List} returns this
6845
- */
6846
- proto.sass.embedded_protocol.Value.List.prototype.setContentsList = function (value) {
6847
- return jspb.Message.setRepeatedWrapperField(this, 3, value);
7057
+ * @param {number} value
7058
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
7059
+ */
7060
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setBlackness = function (value) {
7061
+ return jspb.Message.setProto3FloatField(this, 3, value);
6848
7062
  };
6849
7063
  /**
6850
- * @param {!proto.sass.embedded_protocol.Value=} opt_value
6851
- * @param {number=} opt_index
6852
- * @return {!proto.sass.embedded_protocol.Value}
7064
+ * optional double alpha = 4;
7065
+ * @return {number}
6853
7066
  */
6854
- proto.sass.embedded_protocol.Value.List.prototype.addContents = function (opt_value, opt_index) {
6855
- return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.sass.embedded_protocol.Value, opt_index);
7067
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.getAlpha = function () {
7068
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
6856
7069
  };
6857
7070
  /**
6858
- * Clears the list making it empty but non-null.
6859
- * @return {!proto.sass.embedded_protocol.Value.List} returns this
7071
+ * @param {number} value
7072
+ * @return {!proto.sass.embedded_protocol.Value.HwbColor} returns this
6860
7073
  */
6861
- proto.sass.embedded_protocol.Value.List.prototype.clearContentsList = function () {
6862
- return this.setContentsList([]);
7074
+ proto.sass.embedded_protocol.Value.HwbColor.prototype.setAlpha = function (value) {
7075
+ return jspb.Message.setProto3FloatField(this, 4, value);
6863
7076
  };
6864
7077
  /**
6865
7078
  * List of repeated fields within this message type.
6866
7079
  * @private {!Array<number>}
6867
7080
  * @const
6868
7081
  */
6869
- proto.sass.embedded_protocol.Value.Map.repeatedFields_ = [1];
7082
+ proto.sass.embedded_protocol.Value.List.repeatedFields_ = [3];
6870
7083
  if (jspb.Message.GENERATE_TO_OBJECT) {
6871
7084
  /**
6872
7085
  * Creates an object representation of this proto.
@@ -6880,9 +7093,184 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6880
7093
  * http://goto/soy-param-migration
6881
7094
  * @return {!Object}
6882
7095
  */
6883
- proto.sass.embedded_protocol.Value.Map.prototype.toObject = function (opt_includeInstance) {
6884
- return proto.sass.embedded_protocol.Value.Map.toObject(opt_includeInstance, this);
6885
- };
7096
+ proto.sass.embedded_protocol.Value.List.prototype.toObject = function (opt_includeInstance) {
7097
+ return proto.sass.embedded_protocol.Value.List.toObject(opt_includeInstance, this);
7098
+ };
7099
+ /**
7100
+ * Static version of the {@see toObject} method.
7101
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7102
+ * the JSPB instance for transitional soy proto support:
7103
+ * http://goto/soy-param-migration
7104
+ * @param {!proto.sass.embedded_protocol.Value.List} msg The msg instance to transform.
7105
+ * @return {!Object}
7106
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7107
+ */
7108
+ proto.sass.embedded_protocol.Value.List.toObject = function (includeInstance, msg) {
7109
+ var f, obj = {
7110
+ separator: jspb.Message.getFieldWithDefault(msg, 1, 0),
7111
+ hasBrackets: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
7112
+ contentsList: jspb.Message.toObjectList(msg.getContentsList(), proto.sass.embedded_protocol.Value.toObject, includeInstance)
7113
+ };
7114
+ if (includeInstance) {
7115
+ obj.$jspbMessageInstance = msg;
7116
+ }
7117
+ return obj;
7118
+ };
7119
+ }
7120
+ /**
7121
+ * Deserializes binary data (in protobuf wire format).
7122
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7123
+ * @return {!proto.sass.embedded_protocol.Value.List}
7124
+ */
7125
+ proto.sass.embedded_protocol.Value.List.deserializeBinary = function (bytes) {
7126
+ var reader = new jspb.BinaryReader(bytes);
7127
+ var msg = new proto.sass.embedded_protocol.Value.List;
7128
+ return proto.sass.embedded_protocol.Value.List.deserializeBinaryFromReader(msg, reader);
7129
+ };
7130
+ /**
7131
+ * Deserializes binary data (in protobuf wire format) from the
7132
+ * given reader into the given message object.
7133
+ * @param {!proto.sass.embedded_protocol.Value.List} msg The message object to deserialize into.
7134
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7135
+ * @return {!proto.sass.embedded_protocol.Value.List}
7136
+ */
7137
+ proto.sass.embedded_protocol.Value.List.deserializeBinaryFromReader = function (msg, reader) {
7138
+ while (reader.nextField()) {
7139
+ if (reader.isEndGroup()) {
7140
+ break;
7141
+ }
7142
+ var field = reader.getFieldNumber();
7143
+ switch (field) {
7144
+ case 1:
7145
+ var value = /** @type {!proto.sass.embedded_protocol.ListSeparator} */ (reader.readEnum());
7146
+ msg.setSeparator(value);
7147
+ break;
7148
+ case 2:
7149
+ var value = /** @type {boolean} */ (reader.readBool());
7150
+ msg.setHasBrackets(value);
7151
+ break;
7152
+ case 3:
7153
+ var value = new proto.sass.embedded_protocol.Value;
7154
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.deserializeBinaryFromReader);
7155
+ msg.addContents(value);
7156
+ break;
7157
+ default:
7158
+ reader.skipField();
7159
+ break;
7160
+ }
7161
+ }
7162
+ return msg;
7163
+ };
7164
+ /**
7165
+ * Serializes the message to binary data (in protobuf wire format).
7166
+ * @return {!Uint8Array}
7167
+ */
7168
+ proto.sass.embedded_protocol.Value.List.prototype.serializeBinary = function () {
7169
+ var writer = new jspb.BinaryWriter();
7170
+ proto.sass.embedded_protocol.Value.List.serializeBinaryToWriter(this, writer);
7171
+ return writer.getResultBuffer();
7172
+ };
7173
+ /**
7174
+ * Serializes the given message to binary data (in protobuf wire
7175
+ * format), writing to the given BinaryWriter.
7176
+ * @param {!proto.sass.embedded_protocol.Value.List} message
7177
+ * @param {!jspb.BinaryWriter} writer
7178
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7179
+ */
7180
+ proto.sass.embedded_protocol.Value.List.serializeBinaryToWriter = function (message, writer) {
7181
+ var f = undefined;
7182
+ f = message.getSeparator();
7183
+ if (f !== 0.0) {
7184
+ writer.writeEnum(1, f);
7185
+ }
7186
+ f = message.getHasBrackets();
7187
+ if (f) {
7188
+ writer.writeBool(2, f);
7189
+ }
7190
+ f = message.getContentsList();
7191
+ if (f.length > 0) {
7192
+ writer.writeRepeatedMessage(3, f, proto.sass.embedded_protocol.Value.serializeBinaryToWriter);
7193
+ }
7194
+ };
7195
+ /**
7196
+ * optional ListSeparator separator = 1;
7197
+ * @return {!proto.sass.embedded_protocol.ListSeparator}
7198
+ */
7199
+ proto.sass.embedded_protocol.Value.List.prototype.getSeparator = function () {
7200
+ return /** @type {!proto.sass.embedded_protocol.ListSeparator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7201
+ };
7202
+ /**
7203
+ * @param {!proto.sass.embedded_protocol.ListSeparator} value
7204
+ * @return {!proto.sass.embedded_protocol.Value.List} returns this
7205
+ */
7206
+ proto.sass.embedded_protocol.Value.List.prototype.setSeparator = function (value) {
7207
+ return jspb.Message.setProto3EnumField(this, 1, value);
7208
+ };
7209
+ /**
7210
+ * optional bool has_brackets = 2;
7211
+ * @return {boolean}
7212
+ */
7213
+ proto.sass.embedded_protocol.Value.List.prototype.getHasBrackets = function () {
7214
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
7215
+ };
7216
+ /**
7217
+ * @param {boolean} value
7218
+ * @return {!proto.sass.embedded_protocol.Value.List} returns this
7219
+ */
7220
+ proto.sass.embedded_protocol.Value.List.prototype.setHasBrackets = function (value) {
7221
+ return jspb.Message.setProto3BooleanField(this, 2, value);
7222
+ };
7223
+ /**
7224
+ * repeated Value contents = 3;
7225
+ * @return {!Array<!proto.sass.embedded_protocol.Value>}
7226
+ */
7227
+ proto.sass.embedded_protocol.Value.List.prototype.getContentsList = function () {
7228
+ return /** @type{!Array<!proto.sass.embedded_protocol.Value>} */ (jspb.Message.getRepeatedWrapperField(this, proto.sass.embedded_protocol.Value, 3));
7229
+ };
7230
+ /**
7231
+ * @param {!Array<!proto.sass.embedded_protocol.Value>} value
7232
+ * @return {!proto.sass.embedded_protocol.Value.List} returns this
7233
+ */
7234
+ proto.sass.embedded_protocol.Value.List.prototype.setContentsList = function (value) {
7235
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
7236
+ };
7237
+ /**
7238
+ * @param {!proto.sass.embedded_protocol.Value=} opt_value
7239
+ * @param {number=} opt_index
7240
+ * @return {!proto.sass.embedded_protocol.Value}
7241
+ */
7242
+ proto.sass.embedded_protocol.Value.List.prototype.addContents = function (opt_value, opt_index) {
7243
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.sass.embedded_protocol.Value, opt_index);
7244
+ };
7245
+ /**
7246
+ * Clears the list making it empty but non-null.
7247
+ * @return {!proto.sass.embedded_protocol.Value.List} returns this
7248
+ */
7249
+ proto.sass.embedded_protocol.Value.List.prototype.clearContentsList = function () {
7250
+ return this.setContentsList([]);
7251
+ };
7252
+ /**
7253
+ * List of repeated fields within this message type.
7254
+ * @private {!Array<number>}
7255
+ * @const
7256
+ */
7257
+ proto.sass.embedded_protocol.Value.Map.repeatedFields_ = [1];
7258
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7259
+ /**
7260
+ * Creates an object representation of this proto.
7261
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7262
+ * Optional fields that are not set will be set to undefined.
7263
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7264
+ * For the list of reserved names please see:
7265
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7266
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7267
+ * JSPB instance for transitional soy proto support:
7268
+ * http://goto/soy-param-migration
7269
+ * @return {!Object}
7270
+ */
7271
+ proto.sass.embedded_protocol.Value.Map.prototype.toObject = function (opt_includeInstance) {
7272
+ return proto.sass.embedded_protocol.Value.Map.toObject(opt_includeInstance, this);
7273
+ };
6886
7274
  /**
6887
7275
  * Static version of the {@see toObject} method.
6888
7276
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
@@ -7388,50 +7776,886 @@ proto.sass.embedded_protocol.Value.HostFunction.prototype.setSignature = functio
7388
7776
  return jspb.Message.setProto3StringField(this, 2, value);
7389
7777
  };
7390
7778
  /**
7391
- * optional String string = 1;
7392
- * @return {?proto.sass.embedded_protocol.Value.String}
7393
- */
7394
- proto.sass.embedded_protocol.Value.prototype.getString = function () {
7395
- return /** @type{?proto.sass.embedded_protocol.Value.String} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.String, 1));
7396
- };
7397
- /**
7398
- * @param {?proto.sass.embedded_protocol.Value.String|undefined} value
7399
- * @return {!proto.sass.embedded_protocol.Value} returns this
7400
- */
7401
- proto.sass.embedded_protocol.Value.prototype.setString = function (value) {
7402
- return jspb.Message.setOneofWrapperField(this, 1, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
7403
- };
7404
- /**
7405
- * Clears the message field making it undefined.
7406
- * @return {!proto.sass.embedded_protocol.Value} returns this
7779
+ * List of repeated fields within this message type.
7780
+ * @private {!Array<number>}
7781
+ * @const
7407
7782
  */
7408
- proto.sass.embedded_protocol.Value.prototype.clearString = function () {
7409
- return this.setString(undefined);
7410
- };
7783
+ proto.sass.embedded_protocol.Value.ArgumentList.repeatedFields_ = [3];
7784
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7785
+ /**
7786
+ * Creates an object representation of this proto.
7787
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7788
+ * Optional fields that are not set will be set to undefined.
7789
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7790
+ * For the list of reserved names please see:
7791
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7792
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7793
+ * JSPB instance for transitional soy proto support:
7794
+ * http://goto/soy-param-migration
7795
+ * @return {!Object}
7796
+ */
7797
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.toObject = function (opt_includeInstance) {
7798
+ return proto.sass.embedded_protocol.Value.ArgumentList.toObject(opt_includeInstance, this);
7799
+ };
7800
+ /**
7801
+ * Static version of the {@see toObject} method.
7802
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7803
+ * the JSPB instance for transitional soy proto support:
7804
+ * http://goto/soy-param-migration
7805
+ * @param {!proto.sass.embedded_protocol.Value.ArgumentList} msg The msg instance to transform.
7806
+ * @return {!Object}
7807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7808
+ */
7809
+ proto.sass.embedded_protocol.Value.ArgumentList.toObject = function (includeInstance, msg) {
7810
+ var f, obj = {
7811
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
7812
+ separator: jspb.Message.getFieldWithDefault(msg, 2, 0),
7813
+ contentsList: jspb.Message.toObjectList(msg.getContentsList(), proto.sass.embedded_protocol.Value.toObject, includeInstance),
7814
+ keywordsMap: (f = msg.getKeywordsMap()) ? f.toObject(includeInstance, proto.sass.embedded_protocol.Value.toObject) : []
7815
+ };
7816
+ if (includeInstance) {
7817
+ obj.$jspbMessageInstance = msg;
7818
+ }
7819
+ return obj;
7820
+ };
7821
+ }
7411
7822
  /**
7412
- * Returns whether this field is set.
7413
- * @return {boolean}
7823
+ * Deserializes binary data (in protobuf wire format).
7824
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7825
+ * @return {!proto.sass.embedded_protocol.Value.ArgumentList}
7414
7826
  */
7415
- proto.sass.embedded_protocol.Value.prototype.hasString = function () {
7416
- return jspb.Message.getField(this, 1) != null;
7827
+ proto.sass.embedded_protocol.Value.ArgumentList.deserializeBinary = function (bytes) {
7828
+ var reader = new jspb.BinaryReader(bytes);
7829
+ var msg = new proto.sass.embedded_protocol.Value.ArgumentList;
7830
+ return proto.sass.embedded_protocol.Value.ArgumentList.deserializeBinaryFromReader(msg, reader);
7417
7831
  };
7418
7832
  /**
7419
- * optional Number number = 2;
7420
- * @return {?proto.sass.embedded_protocol.Value.Number}
7833
+ * Deserializes binary data (in protobuf wire format) from the
7834
+ * given reader into the given message object.
7835
+ * @param {!proto.sass.embedded_protocol.Value.ArgumentList} msg The message object to deserialize into.
7836
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7837
+ * @return {!proto.sass.embedded_protocol.Value.ArgumentList}
7421
7838
  */
7422
- proto.sass.embedded_protocol.Value.prototype.getNumber = function () {
7423
- return /** @type{?proto.sass.embedded_protocol.Value.Number} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Number, 2));
7424
- };
7425
- /**
7426
- * @param {?proto.sass.embedded_protocol.Value.Number|undefined} value
7427
- * @return {!proto.sass.embedded_protocol.Value} returns this
7428
- */
7429
- proto.sass.embedded_protocol.Value.prototype.setNumber = function (value) {
7430
- return jspb.Message.setOneofWrapperField(this, 2, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
7431
- };
7432
- /**
7433
- * Clears the message field making it undefined.
7434
- * @return {!proto.sass.embedded_protocol.Value} returns this
7839
+ proto.sass.embedded_protocol.Value.ArgumentList.deserializeBinaryFromReader = function (msg, reader) {
7840
+ while (reader.nextField()) {
7841
+ if (reader.isEndGroup()) {
7842
+ break;
7843
+ }
7844
+ var field = reader.getFieldNumber();
7845
+ switch (field) {
7846
+ case 1:
7847
+ var value = /** @type {number} */ (reader.readUint32());
7848
+ msg.setId(value);
7849
+ break;
7850
+ case 2:
7851
+ var value = /** @type {!proto.sass.embedded_protocol.ListSeparator} */ (reader.readEnum());
7852
+ msg.setSeparator(value);
7853
+ break;
7854
+ case 3:
7855
+ var value = new proto.sass.embedded_protocol.Value;
7856
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.deserializeBinaryFromReader);
7857
+ msg.addContents(value);
7858
+ break;
7859
+ case 4:
7860
+ var value = msg.getKeywordsMap();
7861
+ reader.readMessage(value, function (message, reader) {
7862
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.sass.embedded_protocol.Value.deserializeBinaryFromReader, "", new proto.sass.embedded_protocol.Value());
7863
+ });
7864
+ break;
7865
+ default:
7866
+ reader.skipField();
7867
+ break;
7868
+ }
7869
+ }
7870
+ return msg;
7871
+ };
7872
+ /**
7873
+ * Serializes the message to binary data (in protobuf wire format).
7874
+ * @return {!Uint8Array}
7875
+ */
7876
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.serializeBinary = function () {
7877
+ var writer = new jspb.BinaryWriter();
7878
+ proto.sass.embedded_protocol.Value.ArgumentList.serializeBinaryToWriter(this, writer);
7879
+ return writer.getResultBuffer();
7880
+ };
7881
+ /**
7882
+ * Serializes the given message to binary data (in protobuf wire
7883
+ * format), writing to the given BinaryWriter.
7884
+ * @param {!proto.sass.embedded_protocol.Value.ArgumentList} message
7885
+ * @param {!jspb.BinaryWriter} writer
7886
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7887
+ */
7888
+ proto.sass.embedded_protocol.Value.ArgumentList.serializeBinaryToWriter = function (message, writer) {
7889
+ var f = undefined;
7890
+ f = message.getId();
7891
+ if (f !== 0) {
7892
+ writer.writeUint32(1, f);
7893
+ }
7894
+ f = message.getSeparator();
7895
+ if (f !== 0.0) {
7896
+ writer.writeEnum(2, f);
7897
+ }
7898
+ f = message.getContentsList();
7899
+ if (f.length > 0) {
7900
+ writer.writeRepeatedMessage(3, f, proto.sass.embedded_protocol.Value.serializeBinaryToWriter);
7901
+ }
7902
+ f = message.getKeywordsMap(true);
7903
+ if (f && f.getLength() > 0) {
7904
+ f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.sass.embedded_protocol.Value.serializeBinaryToWriter);
7905
+ }
7906
+ };
7907
+ /**
7908
+ * optional uint32 id = 1;
7909
+ * @return {number}
7910
+ */
7911
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.getId = function () {
7912
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7913
+ };
7914
+ /**
7915
+ * @param {number} value
7916
+ * @return {!proto.sass.embedded_protocol.Value.ArgumentList} returns this
7917
+ */
7918
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.setId = function (value) {
7919
+ return jspb.Message.setProto3IntField(this, 1, value);
7920
+ };
7921
+ /**
7922
+ * optional ListSeparator separator = 2;
7923
+ * @return {!proto.sass.embedded_protocol.ListSeparator}
7924
+ */
7925
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.getSeparator = function () {
7926
+ return /** @type {!proto.sass.embedded_protocol.ListSeparator} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7927
+ };
7928
+ /**
7929
+ * @param {!proto.sass.embedded_protocol.ListSeparator} value
7930
+ * @return {!proto.sass.embedded_protocol.Value.ArgumentList} returns this
7931
+ */
7932
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.setSeparator = function (value) {
7933
+ return jspb.Message.setProto3EnumField(this, 2, value);
7934
+ };
7935
+ /**
7936
+ * repeated Value contents = 3;
7937
+ * @return {!Array<!proto.sass.embedded_protocol.Value>}
7938
+ */
7939
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.getContentsList = function () {
7940
+ return /** @type{!Array<!proto.sass.embedded_protocol.Value>} */ (jspb.Message.getRepeatedWrapperField(this, proto.sass.embedded_protocol.Value, 3));
7941
+ };
7942
+ /**
7943
+ * @param {!Array<!proto.sass.embedded_protocol.Value>} value
7944
+ * @return {!proto.sass.embedded_protocol.Value.ArgumentList} returns this
7945
+ */
7946
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.setContentsList = function (value) {
7947
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
7948
+ };
7949
+ /**
7950
+ * @param {!proto.sass.embedded_protocol.Value=} opt_value
7951
+ * @param {number=} opt_index
7952
+ * @return {!proto.sass.embedded_protocol.Value}
7953
+ */
7954
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.addContents = function (opt_value, opt_index) {
7955
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.sass.embedded_protocol.Value, opt_index);
7956
+ };
7957
+ /**
7958
+ * Clears the list making it empty but non-null.
7959
+ * @return {!proto.sass.embedded_protocol.Value.ArgumentList} returns this
7960
+ */
7961
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.clearContentsList = function () {
7962
+ return this.setContentsList([]);
7963
+ };
7964
+ /**
7965
+ * map<string, Value> keywords = 4;
7966
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
7967
+ * empty, instead returning `undefined`
7968
+ * @return {!jspb.Map<string,!proto.sass.embedded_protocol.Value>}
7969
+ */
7970
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.getKeywordsMap = function (opt_noLazyCreate) {
7971
+ return /** @type {!jspb.Map<string,!proto.sass.embedded_protocol.Value>} */ (jspb.Message.getMapField(this, 4, opt_noLazyCreate, proto.sass.embedded_protocol.Value));
7972
+ };
7973
+ /**
7974
+ * Clears values from the map. The map will be non-null.
7975
+ * @return {!proto.sass.embedded_protocol.Value.ArgumentList} returns this
7976
+ */
7977
+ proto.sass.embedded_protocol.Value.ArgumentList.prototype.clearKeywordsMap = function () {
7978
+ this.getKeywordsMap().clear();
7979
+ return this;
7980
+ };
7981
+ /**
7982
+ * List of repeated fields within this message type.
7983
+ * @private {!Array<number>}
7984
+ * @const
7985
+ */
7986
+ proto.sass.embedded_protocol.Value.Calculation.repeatedFields_ = [2];
7987
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7988
+ /**
7989
+ * Creates an object representation of this proto.
7990
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7991
+ * Optional fields that are not set will be set to undefined.
7992
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7993
+ * For the list of reserved names please see:
7994
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7995
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7996
+ * JSPB instance for transitional soy proto support:
7997
+ * http://goto/soy-param-migration
7998
+ * @return {!Object}
7999
+ */
8000
+ proto.sass.embedded_protocol.Value.Calculation.prototype.toObject = function (opt_includeInstance) {
8001
+ return proto.sass.embedded_protocol.Value.Calculation.toObject(opt_includeInstance, this);
8002
+ };
8003
+ /**
8004
+ * Static version of the {@see toObject} method.
8005
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8006
+ * the JSPB instance for transitional soy proto support:
8007
+ * http://goto/soy-param-migration
8008
+ * @param {!proto.sass.embedded_protocol.Value.Calculation} msg The msg instance to transform.
8009
+ * @return {!Object}
8010
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8011
+ */
8012
+ proto.sass.embedded_protocol.Value.Calculation.toObject = function (includeInstance, msg) {
8013
+ var f, obj = {
8014
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
8015
+ argumentsList: jspb.Message.toObjectList(msg.getArgumentsList(), proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject, includeInstance)
8016
+ };
8017
+ if (includeInstance) {
8018
+ obj.$jspbMessageInstance = msg;
8019
+ }
8020
+ return obj;
8021
+ };
8022
+ }
8023
+ /**
8024
+ * Deserializes binary data (in protobuf wire format).
8025
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8026
+ * @return {!proto.sass.embedded_protocol.Value.Calculation}
8027
+ */
8028
+ proto.sass.embedded_protocol.Value.Calculation.deserializeBinary = function (bytes) {
8029
+ var reader = new jspb.BinaryReader(bytes);
8030
+ var msg = new proto.sass.embedded_protocol.Value.Calculation;
8031
+ return proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader(msg, reader);
8032
+ };
8033
+ /**
8034
+ * Deserializes binary data (in protobuf wire format) from the
8035
+ * given reader into the given message object.
8036
+ * @param {!proto.sass.embedded_protocol.Value.Calculation} msg The message object to deserialize into.
8037
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8038
+ * @return {!proto.sass.embedded_protocol.Value.Calculation}
8039
+ */
8040
+ proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader = function (msg, reader) {
8041
+ while (reader.nextField()) {
8042
+ if (reader.isEndGroup()) {
8043
+ break;
8044
+ }
8045
+ var field = reader.getFieldNumber();
8046
+ switch (field) {
8047
+ case 1:
8048
+ var value = /** @type {string} */ (reader.readString());
8049
+ msg.setName(value);
8050
+ break;
8051
+ case 2:
8052
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8053
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader);
8054
+ msg.addArguments(value);
8055
+ break;
8056
+ default:
8057
+ reader.skipField();
8058
+ break;
8059
+ }
8060
+ }
8061
+ return msg;
8062
+ };
8063
+ /**
8064
+ * Serializes the message to binary data (in protobuf wire format).
8065
+ * @return {!Uint8Array}
8066
+ */
8067
+ proto.sass.embedded_protocol.Value.Calculation.prototype.serializeBinary = function () {
8068
+ var writer = new jspb.BinaryWriter();
8069
+ proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter(this, writer);
8070
+ return writer.getResultBuffer();
8071
+ };
8072
+ /**
8073
+ * Serializes the given message to binary data (in protobuf wire
8074
+ * format), writing to the given BinaryWriter.
8075
+ * @param {!proto.sass.embedded_protocol.Value.Calculation} message
8076
+ * @param {!jspb.BinaryWriter} writer
8077
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8078
+ */
8079
+ proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter = function (message, writer) {
8080
+ var f = undefined;
8081
+ f = message.getName();
8082
+ if (f.length > 0) {
8083
+ writer.writeString(1, f);
8084
+ }
8085
+ f = message.getArgumentsList();
8086
+ if (f.length > 0) {
8087
+ writer.writeRepeatedMessage(2, f, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter);
8088
+ }
8089
+ };
8090
+ /**
8091
+ * Oneof group definitions for this message. Each group defines the field
8092
+ * numbers belonging to that group. When of these fields' value is set, all
8093
+ * other fields in the group are cleared. During deserialization, if multiple
8094
+ * fields are encountered for a group, only the last value seen will be kept.
8095
+ * @private {!Array<!Array<number>>}
8096
+ * @const
8097
+ */
8098
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_ = [[1, 2, 3, 4, 5]];
8099
+ /**
8100
+ * @enum {number}
8101
+ */
8102
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.ValueCase = {
8103
+ VALUE_NOT_SET: 0,
8104
+ NUMBER: 1,
8105
+ STRING: 2,
8106
+ INTERPOLATION: 3,
8107
+ OPERATION: 4,
8108
+ CALCULATION: 5
8109
+ };
8110
+ /**
8111
+ * @return {proto.sass.embedded_protocol.Value.Calculation.CalculationValue.ValueCase}
8112
+ */
8113
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getValueCase = function () {
8114
+ return /** @type {proto.sass.embedded_protocol.Value.Calculation.CalculationValue.ValueCase} */ (jspb.Message.computeOneofCase(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0]));
8115
+ };
8116
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8117
+ /**
8118
+ * Creates an object representation of this proto.
8119
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8120
+ * Optional fields that are not set will be set to undefined.
8121
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8122
+ * For the list of reserved names please see:
8123
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8124
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8125
+ * JSPB instance for transitional soy proto support:
8126
+ * http://goto/soy-param-migration
8127
+ * @return {!Object}
8128
+ */
8129
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.toObject = function (opt_includeInstance) {
8130
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject(opt_includeInstance, this);
8131
+ };
8132
+ /**
8133
+ * Static version of the {@see toObject} method.
8134
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8135
+ * the JSPB instance for transitional soy proto support:
8136
+ * http://goto/soy-param-migration
8137
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} msg The msg instance to transform.
8138
+ * @return {!Object}
8139
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8140
+ */
8141
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject = function (includeInstance, msg) {
8142
+ var f, obj = {
8143
+ number: (f = msg.getNumber()) && proto.sass.embedded_protocol.Value.Number.toObject(includeInstance, f),
8144
+ string: jspb.Message.getFieldWithDefault(msg, 2, ""),
8145
+ interpolation: jspb.Message.getFieldWithDefault(msg, 3, ""),
8146
+ operation: (f = msg.getOperation()) && proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.toObject(includeInstance, f),
8147
+ calculation: (f = msg.getCalculation()) && proto.sass.embedded_protocol.Value.Calculation.toObject(includeInstance, f)
8148
+ };
8149
+ if (includeInstance) {
8150
+ obj.$jspbMessageInstance = msg;
8151
+ }
8152
+ return obj;
8153
+ };
8154
+ }
8155
+ /**
8156
+ * Deserializes binary data (in protobuf wire format).
8157
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8158
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8159
+ */
8160
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinary = function (bytes) {
8161
+ var reader = new jspb.BinaryReader(bytes);
8162
+ var msg = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8163
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader(msg, reader);
8164
+ };
8165
+ /**
8166
+ * Deserializes binary data (in protobuf wire format) from the
8167
+ * given reader into the given message object.
8168
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} msg The message object to deserialize into.
8169
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8170
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8171
+ */
8172
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader = function (msg, reader) {
8173
+ while (reader.nextField()) {
8174
+ if (reader.isEndGroup()) {
8175
+ break;
8176
+ }
8177
+ var field = reader.getFieldNumber();
8178
+ switch (field) {
8179
+ case 1:
8180
+ var value = new proto.sass.embedded_protocol.Value.Number;
8181
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Number.deserializeBinaryFromReader);
8182
+ msg.setNumber(value);
8183
+ break;
8184
+ case 2:
8185
+ var value = /** @type {string} */ (reader.readString());
8186
+ msg.setString(value);
8187
+ break;
8188
+ case 3:
8189
+ var value = /** @type {string} */ (reader.readString());
8190
+ msg.setInterpolation(value);
8191
+ break;
8192
+ case 4:
8193
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationOperation;
8194
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinaryFromReader);
8195
+ msg.setOperation(value);
8196
+ break;
8197
+ case 5:
8198
+ var value = new proto.sass.embedded_protocol.Value.Calculation;
8199
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.deserializeBinaryFromReader);
8200
+ msg.setCalculation(value);
8201
+ break;
8202
+ default:
8203
+ reader.skipField();
8204
+ break;
8205
+ }
8206
+ }
8207
+ return msg;
8208
+ };
8209
+ /**
8210
+ * Serializes the message to binary data (in protobuf wire format).
8211
+ * @return {!Uint8Array}
8212
+ */
8213
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.serializeBinary = function () {
8214
+ var writer = new jspb.BinaryWriter();
8215
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter(this, writer);
8216
+ return writer.getResultBuffer();
8217
+ };
8218
+ /**
8219
+ * Serializes the given message to binary data (in protobuf wire
8220
+ * format), writing to the given BinaryWriter.
8221
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} message
8222
+ * @param {!jspb.BinaryWriter} writer
8223
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8224
+ */
8225
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter = function (message, writer) {
8226
+ var f = undefined;
8227
+ f = message.getNumber();
8228
+ if (f != null) {
8229
+ writer.writeMessage(1, f, proto.sass.embedded_protocol.Value.Number.serializeBinaryToWriter);
8230
+ }
8231
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
8232
+ if (f != null) {
8233
+ writer.writeString(2, f);
8234
+ }
8235
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
8236
+ if (f != null) {
8237
+ writer.writeString(3, f);
8238
+ }
8239
+ f = message.getOperation();
8240
+ if (f != null) {
8241
+ writer.writeMessage(4, f, proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.serializeBinaryToWriter);
8242
+ }
8243
+ f = message.getCalculation();
8244
+ if (f != null) {
8245
+ writer.writeMessage(5, f, proto.sass.embedded_protocol.Value.Calculation.serializeBinaryToWriter);
8246
+ }
8247
+ };
8248
+ /**
8249
+ * optional Number number = 1;
8250
+ * @return {?proto.sass.embedded_protocol.Value.Number}
8251
+ */
8252
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getNumber = function () {
8253
+ return /** @type{?proto.sass.embedded_protocol.Value.Number} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Number, 1));
8254
+ };
8255
+ /**
8256
+ * @param {?proto.sass.embedded_protocol.Value.Number|undefined} value
8257
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8258
+ */
8259
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setNumber = function (value) {
8260
+ return jspb.Message.setOneofWrapperField(this, 1, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8261
+ };
8262
+ /**
8263
+ * Clears the message field making it undefined.
8264
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8265
+ */
8266
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearNumber = function () {
8267
+ return this.setNumber(undefined);
8268
+ };
8269
+ /**
8270
+ * Returns whether this field is set.
8271
+ * @return {boolean}
8272
+ */
8273
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasNumber = function () {
8274
+ return jspb.Message.getField(this, 1) != null;
8275
+ };
8276
+ /**
8277
+ * optional string string = 2;
8278
+ * @return {string}
8279
+ */
8280
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getString = function () {
8281
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8282
+ };
8283
+ /**
8284
+ * @param {string} value
8285
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8286
+ */
8287
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setString = function (value) {
8288
+ return jspb.Message.setOneofField(this, 2, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8289
+ };
8290
+ /**
8291
+ * Clears the field making it undefined.
8292
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8293
+ */
8294
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearString = function () {
8295
+ return jspb.Message.setOneofField(this, 2, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], undefined);
8296
+ };
8297
+ /**
8298
+ * Returns whether this field is set.
8299
+ * @return {boolean}
8300
+ */
8301
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasString = function () {
8302
+ return jspb.Message.getField(this, 2) != null;
8303
+ };
8304
+ /**
8305
+ * optional string interpolation = 3;
8306
+ * @return {string}
8307
+ */
8308
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getInterpolation = function () {
8309
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8310
+ };
8311
+ /**
8312
+ * @param {string} value
8313
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8314
+ */
8315
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setInterpolation = function (value) {
8316
+ return jspb.Message.setOneofField(this, 3, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8317
+ };
8318
+ /**
8319
+ * Clears the field making it undefined.
8320
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8321
+ */
8322
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearInterpolation = function () {
8323
+ return jspb.Message.setOneofField(this, 3, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], undefined);
8324
+ };
8325
+ /**
8326
+ * Returns whether this field is set.
8327
+ * @return {boolean}
8328
+ */
8329
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasInterpolation = function () {
8330
+ return jspb.Message.getField(this, 3) != null;
8331
+ };
8332
+ /**
8333
+ * optional CalculationOperation operation = 4;
8334
+ * @return {?proto.sass.embedded_protocol.Value.Calculation.CalculationOperation}
8335
+ */
8336
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getOperation = function () {
8337
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationOperation, 4));
8338
+ };
8339
+ /**
8340
+ * @param {?proto.sass.embedded_protocol.Value.Calculation.CalculationOperation|undefined} value
8341
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8342
+ */
8343
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setOperation = function (value) {
8344
+ return jspb.Message.setOneofWrapperField(this, 4, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8345
+ };
8346
+ /**
8347
+ * Clears the message field making it undefined.
8348
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8349
+ */
8350
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearOperation = function () {
8351
+ return this.setOperation(undefined);
8352
+ };
8353
+ /**
8354
+ * Returns whether this field is set.
8355
+ * @return {boolean}
8356
+ */
8357
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasOperation = function () {
8358
+ return jspb.Message.getField(this, 4) != null;
8359
+ };
8360
+ /**
8361
+ * optional Calculation calculation = 5;
8362
+ * @return {?proto.sass.embedded_protocol.Value.Calculation}
8363
+ */
8364
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.getCalculation = function () {
8365
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation, 5));
8366
+ };
8367
+ /**
8368
+ * @param {?proto.sass.embedded_protocol.Value.Calculation|undefined} value
8369
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8370
+ */
8371
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.setCalculation = function (value) {
8372
+ return jspb.Message.setOneofWrapperField(this, 5, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.oneofGroups_[0], value);
8373
+ };
8374
+ /**
8375
+ * Clears the message field making it undefined.
8376
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue} returns this
8377
+ */
8378
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.clearCalculation = function () {
8379
+ return this.setCalculation(undefined);
8380
+ };
8381
+ /**
8382
+ * Returns whether this field is set.
8383
+ * @return {boolean}
8384
+ */
8385
+ proto.sass.embedded_protocol.Value.Calculation.CalculationValue.prototype.hasCalculation = function () {
8386
+ return jspb.Message.getField(this, 5) != null;
8387
+ };
8388
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8389
+ /**
8390
+ * Creates an object representation of this proto.
8391
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8392
+ * Optional fields that are not set will be set to undefined.
8393
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8394
+ * For the list of reserved names please see:
8395
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8396
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8397
+ * JSPB instance for transitional soy proto support:
8398
+ * http://goto/soy-param-migration
8399
+ * @return {!Object}
8400
+ */
8401
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.toObject = function (opt_includeInstance) {
8402
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.toObject(opt_includeInstance, this);
8403
+ };
8404
+ /**
8405
+ * Static version of the {@see toObject} method.
8406
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8407
+ * the JSPB instance for transitional soy proto support:
8408
+ * http://goto/soy-param-migration
8409
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} msg The msg instance to transform.
8410
+ * @return {!Object}
8411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8412
+ */
8413
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.toObject = function (includeInstance, msg) {
8414
+ var f, obj = {
8415
+ operator: jspb.Message.getFieldWithDefault(msg, 1, 0),
8416
+ left: (f = msg.getLeft()) && proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject(includeInstance, f),
8417
+ right: (f = msg.getRight()) && proto.sass.embedded_protocol.Value.Calculation.CalculationValue.toObject(includeInstance, f)
8418
+ };
8419
+ if (includeInstance) {
8420
+ obj.$jspbMessageInstance = msg;
8421
+ }
8422
+ return obj;
8423
+ };
8424
+ }
8425
+ /**
8426
+ * Deserializes binary data (in protobuf wire format).
8427
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8428
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation}
8429
+ */
8430
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinary = function (bytes) {
8431
+ var reader = new jspb.BinaryReader(bytes);
8432
+ var msg = new proto.sass.embedded_protocol.Value.Calculation.CalculationOperation;
8433
+ return proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinaryFromReader(msg, reader);
8434
+ };
8435
+ /**
8436
+ * Deserializes binary data (in protobuf wire format) from the
8437
+ * given reader into the given message object.
8438
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} msg The message object to deserialize into.
8439
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8440
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation}
8441
+ */
8442
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.deserializeBinaryFromReader = function (msg, reader) {
8443
+ while (reader.nextField()) {
8444
+ if (reader.isEndGroup()) {
8445
+ break;
8446
+ }
8447
+ var field = reader.getFieldNumber();
8448
+ switch (field) {
8449
+ case 1:
8450
+ var value = /** @type {!proto.sass.embedded_protocol.CalculationOperator} */ (reader.readEnum());
8451
+ msg.setOperator(value);
8452
+ break;
8453
+ case 2:
8454
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8455
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader);
8456
+ msg.setLeft(value);
8457
+ break;
8458
+ case 3:
8459
+ var value = new proto.sass.embedded_protocol.Value.Calculation.CalculationValue;
8460
+ reader.readMessage(value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.deserializeBinaryFromReader);
8461
+ msg.setRight(value);
8462
+ break;
8463
+ default:
8464
+ reader.skipField();
8465
+ break;
8466
+ }
8467
+ }
8468
+ return msg;
8469
+ };
8470
+ /**
8471
+ * Serializes the message to binary data (in protobuf wire format).
8472
+ * @return {!Uint8Array}
8473
+ */
8474
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.serializeBinary = function () {
8475
+ var writer = new jspb.BinaryWriter();
8476
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.serializeBinaryToWriter(this, writer);
8477
+ return writer.getResultBuffer();
8478
+ };
8479
+ /**
8480
+ * Serializes the given message to binary data (in protobuf wire
8481
+ * format), writing to the given BinaryWriter.
8482
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} message
8483
+ * @param {!jspb.BinaryWriter} writer
8484
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8485
+ */
8486
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.serializeBinaryToWriter = function (message, writer) {
8487
+ var f = undefined;
8488
+ f = message.getOperator();
8489
+ if (f !== 0.0) {
8490
+ writer.writeEnum(1, f);
8491
+ }
8492
+ f = message.getLeft();
8493
+ if (f != null) {
8494
+ writer.writeMessage(2, f, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter);
8495
+ }
8496
+ f = message.getRight();
8497
+ if (f != null) {
8498
+ writer.writeMessage(3, f, proto.sass.embedded_protocol.Value.Calculation.CalculationValue.serializeBinaryToWriter);
8499
+ }
8500
+ };
8501
+ /**
8502
+ * optional CalculationOperator operator = 1;
8503
+ * @return {!proto.sass.embedded_protocol.CalculationOperator}
8504
+ */
8505
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.getOperator = function () {
8506
+ return /** @type {!proto.sass.embedded_protocol.CalculationOperator} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8507
+ };
8508
+ /**
8509
+ * @param {!proto.sass.embedded_protocol.CalculationOperator} value
8510
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8511
+ */
8512
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.setOperator = function (value) {
8513
+ return jspb.Message.setProto3EnumField(this, 1, value);
8514
+ };
8515
+ /**
8516
+ * optional CalculationValue left = 2;
8517
+ * @return {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8518
+ */
8519
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.getLeft = function () {
8520
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation.CalculationValue} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, 2));
8521
+ };
8522
+ /**
8523
+ * @param {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue|undefined} value
8524
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8525
+ */
8526
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.setLeft = function (value) {
8527
+ return jspb.Message.setWrapperField(this, 2, value);
8528
+ };
8529
+ /**
8530
+ * Clears the message field making it undefined.
8531
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8532
+ */
8533
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.clearLeft = function () {
8534
+ return this.setLeft(undefined);
8535
+ };
8536
+ /**
8537
+ * Returns whether this field is set.
8538
+ * @return {boolean}
8539
+ */
8540
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.hasLeft = function () {
8541
+ return jspb.Message.getField(this, 2) != null;
8542
+ };
8543
+ /**
8544
+ * optional CalculationValue right = 3;
8545
+ * @return {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8546
+ */
8547
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.getRight = function () {
8548
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation.CalculationValue} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, 3));
8549
+ };
8550
+ /**
8551
+ * @param {?proto.sass.embedded_protocol.Value.Calculation.CalculationValue|undefined} value
8552
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8553
+ */
8554
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.setRight = function (value) {
8555
+ return jspb.Message.setWrapperField(this, 3, value);
8556
+ };
8557
+ /**
8558
+ * Clears the message field making it undefined.
8559
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationOperation} returns this
8560
+ */
8561
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.clearRight = function () {
8562
+ return this.setRight(undefined);
8563
+ };
8564
+ /**
8565
+ * Returns whether this field is set.
8566
+ * @return {boolean}
8567
+ */
8568
+ proto.sass.embedded_protocol.Value.Calculation.CalculationOperation.prototype.hasRight = function () {
8569
+ return jspb.Message.getField(this, 3) != null;
8570
+ };
8571
+ /**
8572
+ * optional string name = 1;
8573
+ * @return {string}
8574
+ */
8575
+ proto.sass.embedded_protocol.Value.Calculation.prototype.getName = function () {
8576
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8577
+ };
8578
+ /**
8579
+ * @param {string} value
8580
+ * @return {!proto.sass.embedded_protocol.Value.Calculation} returns this
8581
+ */
8582
+ proto.sass.embedded_protocol.Value.Calculation.prototype.setName = function (value) {
8583
+ return jspb.Message.setProto3StringField(this, 1, value);
8584
+ };
8585
+ /**
8586
+ * repeated CalculationValue arguments = 2;
8587
+ * @return {!Array<!proto.sass.embedded_protocol.Value.Calculation.CalculationValue>}
8588
+ */
8589
+ proto.sass.embedded_protocol.Value.Calculation.prototype.getArgumentsList = function () {
8590
+ return /** @type{!Array<!proto.sass.embedded_protocol.Value.Calculation.CalculationValue>} */ (jspb.Message.getRepeatedWrapperField(this, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, 2));
8591
+ };
8592
+ /**
8593
+ * @param {!Array<!proto.sass.embedded_protocol.Value.Calculation.CalculationValue>} value
8594
+ * @return {!proto.sass.embedded_protocol.Value.Calculation} returns this
8595
+ */
8596
+ proto.sass.embedded_protocol.Value.Calculation.prototype.setArgumentsList = function (value) {
8597
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
8598
+ };
8599
+ /**
8600
+ * @param {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue=} opt_value
8601
+ * @param {number=} opt_index
8602
+ * @return {!proto.sass.embedded_protocol.Value.Calculation.CalculationValue}
8603
+ */
8604
+ proto.sass.embedded_protocol.Value.Calculation.prototype.addArguments = function (opt_value, opt_index) {
8605
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.sass.embedded_protocol.Value.Calculation.CalculationValue, opt_index);
8606
+ };
8607
+ /**
8608
+ * Clears the list making it empty but non-null.
8609
+ * @return {!proto.sass.embedded_protocol.Value.Calculation} returns this
8610
+ */
8611
+ proto.sass.embedded_protocol.Value.Calculation.prototype.clearArgumentsList = function () {
8612
+ return this.setArgumentsList([]);
8613
+ };
8614
+ /**
8615
+ * optional String string = 1;
8616
+ * @return {?proto.sass.embedded_protocol.Value.String}
8617
+ */
8618
+ proto.sass.embedded_protocol.Value.prototype.getString = function () {
8619
+ return /** @type{?proto.sass.embedded_protocol.Value.String} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.String, 1));
8620
+ };
8621
+ /**
8622
+ * @param {?proto.sass.embedded_protocol.Value.String|undefined} value
8623
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8624
+ */
8625
+ proto.sass.embedded_protocol.Value.prototype.setString = function (value) {
8626
+ return jspb.Message.setOneofWrapperField(this, 1, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
8627
+ };
8628
+ /**
8629
+ * Clears the message field making it undefined.
8630
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8631
+ */
8632
+ proto.sass.embedded_protocol.Value.prototype.clearString = function () {
8633
+ return this.setString(undefined);
8634
+ };
8635
+ /**
8636
+ * Returns whether this field is set.
8637
+ * @return {boolean}
8638
+ */
8639
+ proto.sass.embedded_protocol.Value.prototype.hasString = function () {
8640
+ return jspb.Message.getField(this, 1) != null;
8641
+ };
8642
+ /**
8643
+ * optional Number number = 2;
8644
+ * @return {?proto.sass.embedded_protocol.Value.Number}
8645
+ */
8646
+ proto.sass.embedded_protocol.Value.prototype.getNumber = function () {
8647
+ return /** @type{?proto.sass.embedded_protocol.Value.Number} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Number, 2));
8648
+ };
8649
+ /**
8650
+ * @param {?proto.sass.embedded_protocol.Value.Number|undefined} value
8651
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8652
+ */
8653
+ proto.sass.embedded_protocol.Value.prototype.setNumber = function (value) {
8654
+ return jspb.Message.setOneofWrapperField(this, 2, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
8655
+ };
8656
+ /**
8657
+ * Clears the message field making it undefined.
8658
+ * @return {!proto.sass.embedded_protocol.Value} returns this
7435
8659
  */
7436
8660
  proto.sass.embedded_protocol.Value.prototype.clearNumber = function () {
7437
8661
  return this.setNumber(undefined);
@@ -7639,6 +8863,90 @@ proto.sass.embedded_protocol.Value.prototype.clearHostFunction = function () {
7639
8863
  proto.sass.embedded_protocol.Value.prototype.hasHostFunction = function () {
7640
8864
  return jspb.Message.getField(this, 9) != null;
7641
8865
  };
8866
+ /**
8867
+ * optional ArgumentList argument_list = 10;
8868
+ * @return {?proto.sass.embedded_protocol.Value.ArgumentList}
8869
+ */
8870
+ proto.sass.embedded_protocol.Value.prototype.getArgumentList = function () {
8871
+ return /** @type{?proto.sass.embedded_protocol.Value.ArgumentList} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.ArgumentList, 10));
8872
+ };
8873
+ /**
8874
+ * @param {?proto.sass.embedded_protocol.Value.ArgumentList|undefined} value
8875
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8876
+ */
8877
+ proto.sass.embedded_protocol.Value.prototype.setArgumentList = function (value) {
8878
+ return jspb.Message.setOneofWrapperField(this, 10, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
8879
+ };
8880
+ /**
8881
+ * Clears the message field making it undefined.
8882
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8883
+ */
8884
+ proto.sass.embedded_protocol.Value.prototype.clearArgumentList = function () {
8885
+ return this.setArgumentList(undefined);
8886
+ };
8887
+ /**
8888
+ * Returns whether this field is set.
8889
+ * @return {boolean}
8890
+ */
8891
+ proto.sass.embedded_protocol.Value.prototype.hasArgumentList = function () {
8892
+ return jspb.Message.getField(this, 10) != null;
8893
+ };
8894
+ /**
8895
+ * optional HwbColor hwb_color = 11;
8896
+ * @return {?proto.sass.embedded_protocol.Value.HwbColor}
8897
+ */
8898
+ proto.sass.embedded_protocol.Value.prototype.getHwbColor = function () {
8899
+ return /** @type{?proto.sass.embedded_protocol.Value.HwbColor} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.HwbColor, 11));
8900
+ };
8901
+ /**
8902
+ * @param {?proto.sass.embedded_protocol.Value.HwbColor|undefined} value
8903
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8904
+ */
8905
+ proto.sass.embedded_protocol.Value.prototype.setHwbColor = function (value) {
8906
+ return jspb.Message.setOneofWrapperField(this, 11, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
8907
+ };
8908
+ /**
8909
+ * Clears the message field making it undefined.
8910
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8911
+ */
8912
+ proto.sass.embedded_protocol.Value.prototype.clearHwbColor = function () {
8913
+ return this.setHwbColor(undefined);
8914
+ };
8915
+ /**
8916
+ * Returns whether this field is set.
8917
+ * @return {boolean}
8918
+ */
8919
+ proto.sass.embedded_protocol.Value.prototype.hasHwbColor = function () {
8920
+ return jspb.Message.getField(this, 11) != null;
8921
+ };
8922
+ /**
8923
+ * optional Calculation calculation = 12;
8924
+ * @return {?proto.sass.embedded_protocol.Value.Calculation}
8925
+ */
8926
+ proto.sass.embedded_protocol.Value.prototype.getCalculation = function () {
8927
+ return /** @type{?proto.sass.embedded_protocol.Value.Calculation} */ (jspb.Message.getWrapperField(this, proto.sass.embedded_protocol.Value.Calculation, 12));
8928
+ };
8929
+ /**
8930
+ * @param {?proto.sass.embedded_protocol.Value.Calculation|undefined} value
8931
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8932
+ */
8933
+ proto.sass.embedded_protocol.Value.prototype.setCalculation = function (value) {
8934
+ return jspb.Message.setOneofWrapperField(this, 12, proto.sass.embedded_protocol.Value.oneofGroups_[0], value);
8935
+ };
8936
+ /**
8937
+ * Clears the message field making it undefined.
8938
+ * @return {!proto.sass.embedded_protocol.Value} returns this
8939
+ */
8940
+ proto.sass.embedded_protocol.Value.prototype.clearCalculation = function () {
8941
+ return this.setCalculation(undefined);
8942
+ };
8943
+ /**
8944
+ * Returns whether this field is set.
8945
+ * @return {boolean}
8946
+ */
8947
+ proto.sass.embedded_protocol.Value.prototype.hasCalculation = function () {
8948
+ return jspb.Message.getField(this, 12) != null;
8949
+ };
7642
8950
  /**
7643
8951
  * @enum {number}
7644
8952
  */
@@ -7687,5 +8995,14 @@ proto.sass.embedded_protocol.SingletonValue = {
7687
8995
  FALSE: 1,
7688
8996
  NULL: 2
7689
8997
  };
8998
+ /**
8999
+ * @enum {number}
9000
+ */
9001
+ proto.sass.embedded_protocol.CalculationOperator = {
9002
+ PLUS: 0,
9003
+ MINUS: 1,
9004
+ TIMES: 2,
9005
+ DIVIDE: 3
9006
+ };
7690
9007
  goog.object.extend(exports, proto.sass.embedded_protocol);
7691
9008
  //# sourceMappingURL=embedded_sass_pb.js.map