Skip to content

Commit a3f20db

Browse files
Amith Bhat Nekkarefacebook-github-bot
authored andcommitted
Land chef.angle
Summary: I want to land chef.angle Reviewed By: dafyddcrosby Differential Revision: D78491373 fbshipit-source-id: 8d6f8776ab4d630331bd7bcb98d17ed267e6b170
1 parent d807030 commit a3f20db

3 files changed

Lines changed: 60 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ SCHEMAS= \
156156
anglelang \
157157
buck \
158158
builtin \
159+
chef \
159160
code \
160161
code_anglelang \
161162
code_buck \

glean/schema/source/chef.angle

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
schema chef.1{
2+
import src
3+
4+
predicate Name : string
5+
6+
predicate Location: src.FileLocation
7+
8+
# FQN = fully qualified name (name which uniquely describes the identifier)
9+
# Ex: methodXYZ's FQN will be moduleA.classB.classC.methodXYZ
10+
predicate Symbol :
11+
{
12+
identifier: Name, # Ex: methodXYZ
13+
qualifiedName: [Name] # Qualified name of the symbol, [moduleA,classB,classC]
14+
}
15+
16+
predicate Cookbook :
17+
{
18+
cookbookName: Name, # name of the cookbook
19+
cookbookLocation: Location,
20+
}
21+
22+
# list of cookbooks this cookbook depends on
23+
predicate CookbookDependsOn :
24+
{
25+
cookbook: Cookbook,
26+
dependsOn: Cookbook,
27+
}
28+
29+
# list of cookbooks which are depending on a cookbook
30+
predicate CookbookDependedOnBy :
31+
{
32+
cookbook: Cookbook,
33+
dependedOnBy: Cookbook,
34+
} stored {C,D} where CookbookDependsOn {D,C}
35+
36+
predicate DefinedAt :
37+
{
38+
symbol: Symbol,
39+
definitionLocation: Location,
40+
}
41+
42+
predicate ReferencedAt :
43+
{
44+
symbol: Symbol,
45+
referenceLocation: Location,
46+
}
47+
48+
predicate DefLocationSymbol :{
49+
definitionLocation: Location,
50+
symbol: Symbol,
51+
} stored {L,S} where DefinedAt {S,L}
52+
53+
predicate RefLocationSymbol :{
54+
referenceLocation: Location,
55+
symbol: Symbol,
56+
} stored {L,S} where ReferencedAt {S,L}
57+
58+
}

glean/schema/source/github/schema.angle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
schema all.1 :
44
builtin,
5+
chef,
56
code,
67
code.anglelang,
78
code.buck,

0 commit comments

Comments
 (0)