Commit Graph

1566 Commits

Author SHA1 Message Date
collin
87d440dfa1 fix symbol table test 2020-10-30 11:10:29 -07:00
collin
7cf41558bc rename static-check -> symbol-table 3 2020-10-30 10:51:45 -07:00
collin
b5a05be09d rename static-check -> symbol-table 2 2020-10-30 10:44:44 -07:00
collin
20ac83265d rename static-check -> symbol-table 1 2020-10-30 10:25:44 -07:00
Howard Wu
b695d36459
Merge pull request #406 from AleoHQ/dependabot/cargo/tracing-subscriber-0.2.14
build(deps): bump tracing-subscriber from 0.2.13 to 0.2.14
2020-10-28 19:47:18 -07:00
Howard Wu
63335c00e6
Merge pull request #404 from AleoHQ/fix/examples
Fix/examples
2020-10-28 18:04:47 -07:00
Howard Wu
2d931d3e3a
Merge pull request #373 from AleoHQ/feature/license-header
add license header check and missing licenses
2020-10-28 16:52:27 -07:00
collin
833eb51c68 fix type assertion error 2020-10-28 09:53:27 -07:00
collin
cb3ad47f4f use derive Default for Spans 2020-10-27 21:53:40 -07:00
collin
665cb3f466 use copy on write data structure for array type flatten method 2020-10-27 17:32:00 -07:00
collin
1779bb04e0 Prefer manual Eq impl 2020-10-27 16:56:47 -07:00
collin
1ef9b33dec Prefer manual PartialEq and Hash impls to save space 2020-10-27 16:47:28 -07:00
collin
078827310c fix type variable tuple parsing 2020-10-27 15:08:22 -07:00
collin
085d59e67a Batch changes for static check module 1 2020-10-27 14:27:18 -07:00
collin
f275a7cddf Batch changes for imports module 2020-10-27 13:13:16 -07:00
collin
817a3bd450 Batch changes for scope.rs 2020-10-27 12:54:02 -07:00
collin
0fbb797f20 Batch changes for frame.rs 2020-10-27 12:48:44 -07:00
collin
f0a2e8298a fix compilation errors 2020-10-27 12:22:07 -07:00
Collin Chin
e58f00d8b5
Prefer iterator over vector in parse_array
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:25:43 -07:00
Collin Chin
0636997ddb
Prefer Vec new over with capacity in parse_statement_expression
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:23:19 -07:00
Collin Chin
74bfe113d0
Prefer iterator over vector in parse_iteration
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:21:51 -07:00
Collin Chin
6cb0d5c3c1
Prefer cloned over map + clone in parse_block
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:20:01 -07:00
Collin Chin
d5d34d3bdf
Prefer iterator over vector in parse_block
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:18:32 -07:00
Collin Chin
b987a6df7c
Iterate over references instead of cloning in parse_statements
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:14:02 -07:00
Collin Chin
2288510fec
Prefer str over String in get_circuit
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:12:23 -07:00
Collin Chin
c05fe32d77
Prefer str over String get_function
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:11:28 -07:00
Collin Chin
3c30ca342b
Prefer string slice over string reference get_variable
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:09:12 -07:00
Collin Chin
c4f5d61a17
Prefer slice over vector reference in undefined_variable_name
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:08:17 -07:00
Collin Chin
2133756d50
Prefer slice over vector reference in membership_failed
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:07:35 -07:00
Collin Chin
21c569d950
Prefer iterator over vector in parse_functions
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:05:42 -07:00
Collin Chin
6931cadd71
Prefer iterator over vector in parse_circuits
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 11:04:48 -07:00
Collin Chin
ff03e64314
Prefer to_vec over to_owned 2020-10-27 10:58:09 -07:00
collin
861e092485 push arguments by value 2020-10-27 10:39:45 -07:00
Collin Chin
e68c7ad563
Update dynamic-check/src/assertions/type_variable_pair.rs
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-10-27 10:09:55 -07:00
Collin Chin
1a39ae93ca
Use matches macro 2020-10-27 10:06:50 -07:00
collin
46f585e2ff refactor compiler methods 2020-10-27 00:31:36 -07:00
collin
52810588ff refactor modules and make function names more clear 2020-10-26 23:42:01 -07:00
collin
fe79cfcf71 merge master 2020-10-26 22:05:03 -07:00
collin
b28cbc7680 remove unused errors, add tests for new errors 2020-10-26 20:02:44 -07:00
collin
c4a7e36623 add new dynamic check errors and tests for tuples and arrays 2020-10-26 19:13:37 -07:00
collin
d3125a0f9f add new dynamic check errors and tests for variables 2020-10-26 18:41:51 -07:00
collin
84861dde32 remove more unused code 2020-10-26 17:57:37 -07:00
collin
9024fb0968 remove unused code 2020-10-26 17:52:32 -07:00
collin
c87ee5e632 fix serialization test 2020-10-26 17:46:42 -07:00
collin
b6d0f9daca fix static and dynamic check test runners 2020-10-26 16:46:11 -07:00
Collin Chin
6ed436c3cf
Merge pull request #403 from ljedrz/arithmetic_benches
Arithmetic benchmarks and perf improvements
2020-10-26 16:31:52 -07:00
collin
020773fb2a impl dynamic checks for imports. all tests pass 2020-10-26 16:05:02 -07:00
collin
09d86576ea add import parsing to first pass of static check 2020-10-26 15:51:46 -07:00
collin
d5bc0d2b7f make type variables more unique 2020-10-26 13:31:34 -07:00
collin
b3c140d5bb fix array function input bug 2020-10-26 13:14:36 -07:00