1
1
mirror of https://github.com/github/semantic.git synced 2024-12-15 18:13:38 +03:00
Commit Graph

26586 Commits

Author SHA1 Message Date
Rick Winfrey
f4dd062f51 Update Ruby Syntax to take scope and frame addresses
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 17:18:36 -08:00
Rick Winfrey
9b93fcd69b No longer using bindAll or ScopeError
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 17:18:14 -08:00
Rick Winfrey
b7bd00b682 Update Go syntax to take scope and frame addresses
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 17:17:57 -08:00
Rick Winfrey
124c7593f4 Handle scope and frame edges
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 17:17:00 -08:00
Rick Winfrey
93b06f9a58 🔥 unnecessary constraint
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 17:16:08 -08:00
Rick Winfrey
68a5978c0a Fix up PHP evaluatable instances
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 15:49:08 -08:00
Rick Winfrey
92b5d82cfb Update Python QualifiedImport for scope / frames
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 15:42:07 -08:00
Rick Winfrey
f74b7810cd Handle RelativeQualifiedName Python imports for scopes / frames
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 15:37:38 -08:00
Rick Winfrey
c9d0c00b13 Set the correct scope when inserting import references
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 15:37:08 -08:00
Rick Winfrey
acafd59fed Use strict Map
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 15:12:25 -08:00
Rick Winfrey
4317960df3 Update TypeScript and JavaScript scope / frames for qualified imports
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 15:12:16 -08:00
Rick Winfrey
07c1b2202b Update scope graph and frame for Python imports with or without aliases
Co-Authored-By: Josh Vera <vera@github.com>
2018-11-27 15:11:46 -08:00
Rick Winfrey
0490f621b3 No longer need maybe 2018-11-27 14:14:10 -08:00
Rick Winfrey
356790b075 Add Data.Map 2018-11-27 14:13:58 -08:00
Rick Winfrey
3969261554 Merge branch 'heap-frames' of https://github.com/github/semantic into heap-frames 2018-11-27 13:32:51 -08:00
joshvera
b6e789fff7 Use a Reader for the scope address and frame address
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-27 14:16:27 -05:00
Rick Winfrey
d44169b6f6 Merge branch 'master' into heap-frames 2018-11-27 08:32:00 -08:00
joshvera
fd516f0573 Fix Delete test since JS delete deletes the slot 2018-11-27 11:14:21 -05:00
joshvera
2b11d7aa2a Fix up python test and function args 2018-11-26 20:07:37 -05:00
joshvera
57015e94cc Type apply value instead of address in currentFrame
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:57:19 -05:00
joshvera
c0567f50f3 Implement QualifiedImport to look things up in objects
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:56:56 -05:00
joshvera
121207965e QualifiedImport stores Strings not FilePaths
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:56:18 -05:00
joshvera
024da78987 Rename name to relPath
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:55:51 -05:00
joshvera
5084eece82 Pass prelude scope graph and heap to evalModule
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:55:29 -05:00
joshvera
87d2b68e4d Implement QualifiedImport for Go
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:55:12 -05:00
joshvera
ccb044ac6b Export scopeLookup
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:54:49 -05:00
joshvera
ff1543f434 Implement Method
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:54:37 -05:00
joshvera
e9a999b69e Eval params to names in Evaluatable Function
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:54:28 -05:00
joshvera
af0184a195 Store names as params in Closure
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-11-26 19:53:58 -05:00
Rob Rix
f94647cb62 Merge pull request #2270 from github/readable-integration-test-errors
Readable integration test errors
2018-11-26 16:58:11 -05:00
Rob Rix
51d5719632 Decode the bytes in Verbatim. 2018-11-26 15:19:12 -05:00
joshvera
0186178ce1 Add import across modules test back
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 13:33:28 -05:00
joshvera
cda046910a Add Bar call back in fixtures
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 13:30:19 -05:00
joshvera
799baa9415 Enable go import tests
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 13:29:59 -05:00
joshvera
a1d2a09548 Merge the heap and insert a frame link in Evaluatable Import
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 13:29:48 -05:00
joshvera
7ade83a367 objectMembers
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 13:06:01 -05:00
joshvera
ce40ee2d37 declarationNames traverses edges
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 13:05:37 -05:00
joshvera
0cf8bb1b87 Throw UninitializedAddress from deref
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-11-26 12:31:41 -05:00
joshvera
4379bcca4e syntax errors 2018-11-26 12:31:21 -05:00
joshvera
bf4401d79b Revert newFrame changes 2018-11-26 12:04:49 -05:00
joshvera
e67862a575 Implement in terms of go 2018-11-26 12:03:49 -05:00
joshvera
fd979562ff Revert "Throw UninitializedAddress from value"
This reverts commit 36e1e09af13f8a0cbab286dc5724af5dd11213db.
2018-11-26 12:03:12 -05:00
joshvera
f1ea66012b Initialize the slots of a frame when creating it 2018-11-20 20:03:17 -05:00
joshvera
878a92eda1 Instantiate an object in the heap for a QualifiedImport
if none exists and we're trying to construct edges to imported frames
2018-11-20 19:28:52 -05:00
joshvera
9b2355b521 Throw UninitializedAddress from value 2018-11-20 19:28:15 -05:00
joshvera
0a7dd5c187 Remove makeNamespace for now 2018-11-20 19:28:04 -05:00
joshvera
d485923816 Return Maybe from deref
So we can case on uninitialized slots in the heap
2018-11-20 19:27:51 -05:00
joshvera
f3cb6d4f8c Implement QualifiedImport for Go 2018-11-20 19:04:32 -05:00
joshvera
83722bc8f6 Ask for the span in QualifiedAliasedImport 2018-11-20 19:04:04 -05:00
joshvera
86aa9c9950 Move defaultAlias to Data.ImportPath 2018-11-20 19:03:46 -05:00