Skip to content

Commit

Permalink
Don't throw warning in NumberPrecSpec.setPrecision
Browse files Browse the repository at this point in the history
The precision is -1 when the node is created. Without this change an error is thrown.
  • Loading branch information
alexanderpann committed Jun 29, 2022
1 parent b30ef42 commit 83a5b1f
Showing 1 changed file with 29 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@
<concept id="1081236700937" name="jetbrains.mps.baseLanguage.structure.StaticMethodCall" flags="nn" index="2YIFZM">
<reference id="1144433194310" name="classConcept" index="1Pybhc" />
</concept>
<concept id="1164991038168" name="jetbrains.mps.baseLanguage.structure.ThrowStatement" flags="nn" index="YS8fn">
<child id="1164991057263" name="throwable" index="YScLw" />
</concept>
<concept id="1070533707846" name="jetbrains.mps.baseLanguage.structure.StaticFieldReference" flags="nn" index="10M0yZ">
<reference id="1144433057691" name="classifier" index="1PxDUh" />
</concept>
Expand Down Expand Up @@ -241,6 +238,12 @@
<child id="8182547171709752112" name="expression" index="36biLW" />
</concept>
</language>
<language id="760a0a8c-eabb-4521-8bfd-65db761a9ba3" name="jetbrains.mps.baseLanguage.logging">
<concept id="2034914114981261497" name="jetbrains.mps.baseLanguage.logging.structure.LogLowLevelStatement" flags="ng" index="RRSsy">
<property id="2034914114981261751" name="severity" index="RRSoG" />
<child id="2034914114981261753" name="message" index="RRSoy" />
</concept>
</language>
<language id="7866978e-a0f0-4cc7-81bc-4d213d9375e1" name="jetbrains.mps.lang.smodel">
<concept id="1177026924588" name="jetbrains.mps.lang.smodel.structure.RefConcept_Reference" flags="nn" index="chp4Y">
<reference id="1177026940964" name="conceptDeclaration" index="cht4Q" />
Expand Down Expand Up @@ -5266,14 +5269,10 @@
<node concept="3clFbS" id="7Wa2sv3EZOx" role="3clF47">
<node concept="3clFbJ" id="3z1zSuyKmFc" role="3cqZAp">
<node concept="3clFbS" id="3z1zSuyKmFe" role="3clFbx">
<node concept="YS8fn" id="3z1zSuyKnAM" role="3cqZAp">
<node concept="2ShNRf" id="3z1zSuyKnB8" role="YScLw">
<node concept="1pGfFk" id="3z1zSuyKoRx" role="2ShVmc">
<ref role="37wK5l" to="wyt6:~IllegalArgumentException.&lt;init&gt;(java.lang.String)" resolve="IllegalArgumentException" />
<node concept="Xl_RD" id="3z1zSuyKoUv" role="37wK5m">
<property role="Xl_RC" value="Negative number precision is not allowed" />
</node>
</node>
<node concept="RRSsy" id="7JKsSwYB_2j" role="3cqZAp">
<property role="RRSoG" value="gZ5fksE/warn" />
<node concept="Xl_RD" id="7JKsSwYB_2l" role="RRSoy">
<property role="Xl_RC" value="Negative number precision is not allowed" />
</node>
</node>
</node>
Expand All @@ -5285,21 +5284,25 @@
<ref role="3cqZAo" node="7Wa2sv3F02P" resolve="p" />
</node>
</node>
</node>
<node concept="3clFbF" id="7Wa2sv3F03e" role="3cqZAp">
<node concept="37vLTI" id="7Wa2sv3F0zj" role="3clFbG">
<node concept="3cpWs3" id="7Wa2sv3F1Pt" role="37vLTx">
<node concept="Xl_RD" id="7Wa2sv3F1Pw" role="3uHU7w">
<property role="Xl_RC" value="" />
</node>
<node concept="37vLTw" id="7Wa2sv3F0z_" role="3uHU7B">
<ref role="3cqZAo" node="7Wa2sv3F02P" resolve="p" />
</node>
</node>
<node concept="2OqwBi" id="7Wa2sv3F08C" role="37vLTJ">
<node concept="13iPFW" id="7Wa2sv3F03d" role="2Oq$k0" />
<node concept="3TrcHB" id="7Wa2sv3F0eI" role="2OqNvi">
<ref role="3TsBF5" to="5qo5:19PglA20qY6" resolve="prec" />
<node concept="9aQIb" id="7JKsSwYB_h_" role="9aQIa">
<node concept="3clFbS" id="7JKsSwYB_hA" role="9aQI4">
<node concept="3clFbF" id="7Wa2sv3F03e" role="3cqZAp">
<node concept="37vLTI" id="7Wa2sv3F0zj" role="3clFbG">
<node concept="3cpWs3" id="7Wa2sv3F1Pt" role="37vLTx">
<node concept="Xl_RD" id="7Wa2sv3F1Pw" role="3uHU7w">
<property role="Xl_RC" value="" />
</node>
<node concept="37vLTw" id="7Wa2sv3F0z_" role="3uHU7B">
<ref role="3cqZAo" node="7Wa2sv3F02P" resolve="p" />
</node>
</node>
<node concept="2OqwBi" id="7Wa2sv3F08C" role="37vLTJ">
<node concept="13iPFW" id="7Wa2sv3F03d" role="2Oq$k0" />
<node concept="3TrcHB" id="7Wa2sv3F0eI" role="2OqNvi">
<ref role="3TsBF5" to="5qo5:19PglA20qY6" resolve="prec" />
</node>
</node>
</node>
</node>
</node>
</node>
Expand Down

0 comments on commit 83a5b1f

Please sign in to comment.