1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 13:21:59 +03:00
Commit Graph

27162 Commits

Author SHA1 Message Date
Rick Winfrey
d8c291bdc0 Destructure not needed here 2018-12-13 11:34:14 -08:00
Rick Winfrey
d0a571e851 Replace instances of name "__self" with __semantic_self 2018-12-13 11:33:55 -08:00
Rick Winfrey
0c22d4da4b Define __semantic_self
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-12-13 11:32:24 -08:00
joshvera
317462e73a Add bindThis to bind objects to closures
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
Co-Authored-By: Rob Rix <rob.rix@github.com>
2018-12-13 14:11:37 -05:00
joshvera
a69991309c Revert generic changes to class2.ts
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-12-13 13:14:56 -05:00
joshvera
0eaa362b3a Rename InstanceOf to Instance
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-12-13 13:14:45 -05:00
joshvera
a6657cc679 Redeclare Instance members within an object frame in New
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-12-13 13:14:33 -05:00
joshvera
0dc1ad4e35 Add relationsOfScope
Co-Authored-By: Rick Winfrey <rick.winfrey@gmail.com>
2018-12-13 13:14:15 -05:00
Rob Rix
594979543c 🔥 Located. 2018-12-13 12:04:24 -05:00
Rob Rix
595f0fa2a3 Whitespace error. 2018-12-13 12:04:06 -05:00
Rob Rix
45071b81a9 Use Monovariant addresses for the call graph. 2018-12-13 12:03:26 -05:00
Rob Rix
034e4bc9b2 Further generalize graphingTerms over the address type. 2018-12-13 12:02:26 -05:00
Rob Rix
6eeb75bf1b Generalize graphingTerms over the address type. 2018-12-13 12:01:25 -05:00
joshvera
512f4246cb Merge branch 'new-expressions' of https://github.com/github/semantic into new-expressions 2018-12-13 10:42:44 -05:00
Rick Winfrey
92d540dac7 Update remaining declarations 2018-12-12 16:58:33 -08:00
Rick Winfrey
869789ce48 Clean up this sketch 2018-12-12 16:58:06 -08:00
Rick Winfrey
d0afae8cba Declarations specify their Relations 2018-12-12 16:57:52 -08:00
Rick Winfrey
feff7f8e89 Builtins now specify their Relations 2018-12-12 16:57:30 -08:00
Rick Winfrey
0499bd5f7d Re-export Relation from Control.Abstract.ScopeGraph 2018-12-12 16:57:05 -08:00
Rick Winfrey
bc46e4882e Defining builtins, namespaces, and classes require specifying the Relation 2018-12-12 16:56:46 -08:00
Rick Winfrey
eefac23e6a Callers of define are expected to also specify the Relation of their declaration 2018-12-12 16:56:14 -08:00
Rick Winfrey
a189ad0d2e Import Relation 2018-12-12 16:55:55 -08:00
Rick Winfrey
ff30c73ff6 Update declare for Control.Abstract.ScopeGraph 2018-12-12 16:23:10 -08:00
Rick Winfrey
4de9ff4b48 Import Relation in Control.Abstract.ScopeGraph 2018-12-12 16:22:48 -08:00
Rick Winfrey
565fbfd2d0 Export Relation 2018-12-12 16:22:33 -08:00
Rick Winfrey
8e520132ce Simplify match predicate now we use (Data address, Position) for lookups 2018-12-12 16:22:27 -08:00
Rick Winfrey
e305f547bc Update insertDeclarationSpan and reuse insertScope 2018-12-12 16:21:46 -08:00
Rick Winfrey
59e72bda46 Fix up insertDeclarationScope and reuse insertScope helper 2018-12-12 16:21:31 -08:00
Rick Winfrey
5bca5276b8 Update 📝 for insertDeclarationScope 2018-12-12 16:21:00 -08:00
Rick Winfrey
4f9b717dad Destructure according to Data 2018-12-12 16:20:47 -08:00
Rick Winfrey
a69e93edb8 Use field accessor as we no longer work in (Declaration, (Span, Maybe scopeAddress)) 2018-12-12 16:20:27 -08:00
Rick Winfrey
9b3b6b70c0 Use correct field name 2018-12-12 16:19:33 -08:00
Rick Winfrey
4cb27b3eb6 Update type 2018-12-12 16:19:22 -08:00
Rick Winfrey
501f5ea9dc Update boolean check for finding the position of a declaration 2018-12-12 16:19:07 -08:00
Rick Winfrey
b8352790be Consistent ordering of params (Control.Abstract.ScopeGraph) 2018-12-12 16:18:22 -08:00
Rick Winfrey
53e6405486 Help to resolve ambiguities in the field names of Data by prefixing with data 2018-12-12 16:17:58 -08:00
Rick Winfrey
0650fa087f Remove address type variable on Relation for now 2018-12-12 16:17:30 -08:00
joshvera
09c3cce304 WIP 2018-12-12 17:13:52 -05:00
joshvera
c5a08df1c4 WIP add Relation to declaration and make a scope data type 2018-12-12 16:52:14 -05:00
joshvera
ea5d09bed5 Remove instance scope from klass 2018-12-12 16:51:43 -05:00
joshvera
b6dd4fe090 ++haskell-tree-sitter 2018-12-12 16:18:25 -05:00
joshvera
de1719c128 Merge remote-tracking branch 'origin/master' into new-expressions 2018-12-12 15:59:41 -05:00
Josh Vera
1be95883dc Merge pull request #2297 from github/bump-ts-go-and-ruby
Bump haskell-tree-sitter submodules.
2018-12-12 13:28:33 -05:00
joshvera
8bf1b40342 Merge branch 'bump-ts-go-and-ruby' of https://github.com/github/semantic into bump-ts-go-and-ruby 2018-12-12 12:51:05 -05:00
Patrick Thomson
02c66ad210 Merge branch 'master' into bump-ts-go-and-ruby 2018-12-12 12:23:40 -05:00
Patrick Thomson
da711689af Merge pull request #2300 from github/unify-matching-rewriting
Unify APIs for matching and rewriting syntax trees.
2018-12-12 12:23:15 -05:00
Patrick Thomson
55870d8605 Merge branch 'master' into bump-ts-go-and-ruby 2018-12-12 12:21:06 -05:00
Patrick Thomson
98fc4aa494 Merge branch 'master' into unify-matching-rewriting 2018-12-12 12:01:08 -05:00
Patrick Thomson
3135426fcd Use clone-example-repos to get Go and Ruby examples.
Go tests appear to be broken. Gonna file an issue about it.
2018-12-12 11:14:16 -05:00
Patrick Thomson
51331c505e turn the last spec back on and add docs 2018-12-11 18:10:57 -05:00