Timothy Clem
30f937ecf0
Cleanup
2019-01-17 15:36:43 -08:00
Timothy Clem
5dc2ac2d04
Rename
2019-01-17 15:36:37 -08:00
Timothy Clem
e3afd9d684
Symbol rendering is entirely on the new path
2019-01-17 15:13:39 -08:00
Rick Winfrey
4998421038
Compare directly against SomeError ...
rather than String
values
...
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-17 14:02:54 -08:00
Rick Winfrey
548cfb9dd3
Add AccessControlError
to Eq1 instance of EvalError
...
This was preventing the specs from allowing an equality check of `AccessControlError`s, resulting in a strange null diff that appeared to be wrong (but was defaulting to `False` because `AccessControlError` was in the fall through case)
Co-Authored-By: Rob Rix <robrix@github.com>
2019-01-17 14:01:58 -08:00
Timothy Clem
8d5d3e45da
Factor back in the toc summary endpoint, now supported in twirp too
2019-01-17 14:00:13 -08:00
Rick Winfrey
c7b1d13ab0
Compare against strings
2019-01-17 12:50:33 -08:00
Rick Winfrey
ad57ac0967
Add missing case
2019-01-17 10:45:58 -08:00
Rick Winfrey
d4abe75456
Merge branch 'master' into visibility-resolution
2019-01-16 18:31:44 -08:00
Rick Winfrey
bf3ff6154a
Update tests for new AccessControl / Relation split
2019-01-16 18:20:33 -08:00
Rick Winfrey
12e63cac6d
Comment this for now
2019-01-16 18:19:51 -08:00
Rick Winfrey
2ba74ef97d
Fix lints
2019-01-16 18:19:38 -08:00
Rick Winfrey
b407882093
Provide convenience function for loookup of declaration info within a scope by name
2019-01-16 18:05:18 -08:00
Rick Winfrey
17e43eb226
Add AccessControlError
2019-01-16 18:04:24 -08:00
Rick Winfrey
39b056df47
Update name to be more accurate
2019-01-16 17:26:39 -08:00
Rick Winfrey
5076caa2d5
Reflow
2019-01-16 17:25:49 -08:00
Rick Winfrey
5f5df139ed
Update lookupDeclaration
to lookupSlot
...
The old name can be confusing, but we are actually returning `Slot` values from this function, not a `Declaration` or `Info`.
2019-01-16 17:25:18 -08:00
Timothy Clem
f38e10a9e6
Just remove this
2019-01-16 16:13:39 -08:00
Timothy Clem
8346f6aaa2
Start to fill out toc summaries endpoint
2019-01-16 15:49:36 -08:00
Timothy Clem
01af025638
Move parse back into semantic
2019-01-16 15:39:07 -08:00
Timothy Clem
8d989cdead
Remove crazy term and diff language specific protos
2019-01-16 12:41:32 -08:00
Ayman Nadeem
da6dd46bfe
Merge pull request #2299 from github/factor-abstract-value-as-value-effects
...
Factor AbstractValue as value effects
2019-01-16 14:18:12 -05:00
Ayman Nadeem
cef0b1cdb6
make sure haskell-tree-sitter reflects master
2019-01-16 13:53:07 -05:00
Timothy Clem
d80098615d
Fill out rest of languages, little bit of cleanup
2019-01-16 10:52:31 -08:00
Ayman Nadeem
b9f4d36272
fix accidental revert of patrick's changes
2019-01-16 12:57:30 -05:00
Rick Winfrey
8675f7485f
Define a specialized Ord instance for AccessControl
...
This makes it possible to express an order specification for AccessControl. The leftward entity's AccessControl is evaluated according to the order specification defined by `(<=)` with the rightward entity's AccessControl. Private is the bottom most AccessControl (implying anything that is Private can see anything above it), and Public is the topmost Access Control.
Public <= Private -- False
Private <= Public -- True
Public <= Protected -- False
Protected <= Public -- True
Unknown <= _ -- Always true
_ <= Unknown -- Always true
2019-01-15 18:56:06 -08:00
Rick Winfrey
73d98bc2f9
Use declarationsByRelation
2019-01-15 17:22:30 -08:00
Rick Winfrey
0fc01f2149
💅
2019-01-15 17:22:15 -08:00
Rick Winfrey
89ad50eb9a
Rename for clarity
2019-01-15 17:22:04 -08:00
Rick Winfrey
11b670b2ee
Simplify logic b/c relation and access control are no longer intertwined
2019-01-15 17:21:34 -08:00
Rick Winfrey
03375eff11
Add helper function for retrieving declarations by AccessControl
2019-01-15 17:20:24 -08:00
Rick Winfrey
5e56ae63d8
Correct applications of declare
to use AccessControl
2019-01-15 17:19:04 -08:00
Rick Winfrey
78fe6e33e2
Update applications of define
to include AccessControl as a separate parameter
2019-01-15 17:13:49 -08:00
Rick Winfrey
28fc303de4
Parameterize defineBuiltIn
with AccessControl
2019-01-15 17:13:12 -08:00
Rick Winfrey
3371b46b0b
Parameterize define
with AccessControl
2019-01-15 17:12:44 -08:00
Rick Winfrey
df18a4fa07
Construct info with access control
2019-01-15 17:12:11 -08:00
Rick Winfrey
71646b50db
Parameterize declare
with AccessControl
2019-01-15 17:11:53 -08:00
Rick Winfrey
dd85e414d6
Remove access control from Relation
2019-01-15 17:11:36 -08:00
Rick Winfrey
7326df0c65
Define access control on Info
2019-01-15 17:11:24 -08:00
Timothy Clem
e316385e1e
Comments in protos are nice
2019-01-15 15:58:58 -08:00
Ayman Nadeem
896cfe983c
Reference Data.Abstract.Value.Concrete and not Control.Abstract.Value
2019-01-15 16:54:00 -05:00
Ayman Nadeem
2f29c9a566
disambiguate
2019-01-15 16:47:40 -05:00
Ayman Nadeem
790bf4dd1c
refactor do block using monad laws
2019-01-15 16:35:10 -05:00
Ayman Nadeem
12ad3a8a37
remove superfluous parens
2019-01-15 16:33:39 -05:00
Ayman Nadeem
bab4759a2f
drop more misc comments
2019-01-15 16:31:10 -05:00
Ayman Nadeem
857b644c0d
clean up comments
2019-01-15 16:29:48 -05:00
Ayman Nadeem
238bc6ed88
hide hash from Prologue import for shorter export name
2019-01-15 16:27:08 -05:00
Ayman Nadeem
7b676dc038
move runBitwise near its friends
2019-01-15 16:23:08 -05:00
Rick Winfrey
439e9ff9ae
Update remaining
2019-01-15 12:27:09 -08:00
Rick Winfrey
2b1e3a9585
Update expression syntax
2019-01-15 12:26:45 -08:00