dtr_to_rust 0.13.0 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 159dd48a238334709063b4cf8412eb41ac4d2365b1ba19a1e44a769db1105852
4
- data.tar.gz: ebea69c27f3325cbe6886fbe9f03e3926ef89f3c4a79b796dc78e3e1b6f54fc8
3
+ metadata.gz: 0666a8051d639b4c24ad1a9808718ad9bd50fa31daae67c1089b8fff80ac9aa5
4
+ data.tar.gz: 89638c1b4fb12d91fc927b7d81a8630d21217dcc4f79118a46a5f696ea3279ad
5
5
  SHA512:
6
- metadata.gz: 80b1596a4070c89e64b3f52f95557cb7cd41b5d75e999b83952ee30bb35c439fe216e90742f1ac31604252453f0e051ba66a747d5cafc4974bee39f061c7a980
7
- data.tar.gz: e00c32786d303609e6846b0314557f3fefc55bf149ea52830908649135ed10da88051798b62b8f0d6ede80c7d69a1ee59ee27435898d17ae47d8deabf8358f22
6
+ metadata.gz: 28aa249428173393a0ced355090cbae716dca31f96c1ff7035db7b4917d092ec6405c9b44eef070c77202c559b36804287c4cba4ad5855c59e7fe4ac8c2d9a12
7
+ data.tar.gz: 59600afdff5758b45948c721abd81c5486601ccae9e3db3f74edfef919a57557851b89d417363ef6f8485a37928417b5a71343ab641ce887fb8769af8529a582
@@ -25,7 +25,7 @@ module SorobanRustBackend
25
25
 
26
26
  return_string << "#{' ' * indentation}#{InstructionHandler.new(instruction, y[2]).generate_rust}\n"
27
27
 
28
- if instruction.instruction == 'exit_with_message' && instruction.scope != 0
28
+ if (instruction.instruction == 'exit_with_message' || instruction.instruction == 'return' || instruction.instruction == 'goto') && instruction.scope != 0
29
29
  jump_back_indent = indentation - 1
30
30
  return_string << "#{' ' * jump_back_indent}}\n"
31
31
  end
@@ -12,39 +12,39 @@ module SorobanRustBackend
12
12
 
13
13
  # This module contains all the classes that handle the different types of instructions.
14
14
  module Instruction
15
- autoload :Evaluate, './lib/instruction/evaluate'
16
- autoload :Field, './lib/instruction/field'
17
- autoload :Handler, './lib/instruction/handler'
18
- autoload :Print, './lib/instruction/print'
19
- autoload :Return, './lib/instruction/return'
20
- autoload :InstantiateObject, './lib/instruction/instantiate_object'
21
- autoload :Add, './lib/instruction/add'
22
- autoload :Subtract, './lib/instruction/subtract'
23
- autoload :Multiply, './lib/instruction/multiply'
24
- autoload :Divide, './lib/instruction/divide'
25
- autoload :Assign, './lib/instruction/assign'
26
- autoload :Jump, './lib/instruction/jump'
27
- autoload :Goto, './lib/instruction/goto'
28
- autoload :ExitWithMessage, './lib/instruction/exit_with_message'
29
- autoload :And, './lib/instruction/and'
30
- autoload :Or, './lib/instruction/or'
31
- autoload :EndOfIterationCheck, './lib/instruction/end_of_iteration_check'
32
- autoload :Increment, './lib/instruction/increment'
33
- autoload :TryAssign, './lib/instruction/try_assign'
34
- autoload :Break, './lib/instruction/break'
35
- autoload :BinaryInstruction, './lib/instruction/binary_instruction'
15
+ autoload :Evaluate, 'instruction/evaluate'
16
+ autoload :Field, 'instruction/field'
17
+ autoload :Handler, 'instruction/handler'
18
+ autoload :Print, 'instruction/print'
19
+ autoload :Return, 'instruction/return'
20
+ autoload :InstantiateObject, 'instruction/instantiate_object'
21
+ autoload :Add, 'instruction/add'
22
+ autoload :Subtract, 'instruction/subtract'
23
+ autoload :Multiply, 'instruction/multiply'
24
+ autoload :Divide, 'instruction/divide'
25
+ autoload :Assign, 'instruction/assign'
26
+ autoload :Jump, 'instruction/jump'
27
+ autoload :Goto, 'instruction/goto'
28
+ autoload :ExitWithMessage, 'instruction/exit_with_message'
29
+ autoload :And, 'instruction/and'
30
+ autoload :Or, 'instruction/or'
31
+ autoload :EndOfIterationCheck, 'instruction/end_of_iteration_check'
32
+ autoload :Increment, 'instruction/increment'
33
+ autoload :TryAssign, 'instruction/try_assign'
34
+ autoload :Break, 'instruction/break'
35
+ autoload :BinaryInstruction, 'instruction/binary_instruction'
36
36
  end
37
37
 
38
38
  module Common
39
- autoload :TypeTranslator, './lib/common/type_translator'
40
- autoload :InputInterpreter, './lib/common/input_interpreter'
39
+ autoload :TypeTranslator, 'common/type_translator'
40
+ autoload :InputInterpreter, 'common/input_interpreter'
41
41
  end
42
42
 
43
43
  module NonTranslatables
44
- autoload :Handler, './lib/non_translatables/handler'
44
+ autoload :Handler, 'non_translatables/handler'
45
45
  end
46
46
 
47
47
  module ContractState
48
- autoload :Handler, './lib/contract_state/handler'
48
+ autoload :Handler, 'contract_state/handler'
49
49
  end
50
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtr_to_rust
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Durst