Skip to content

Commit fc3c69a

Browse files
committed
Finalize
1 parent 721b215 commit fc3c69a

6 files changed

Lines changed: 56 additions & 5 deletions

File tree

schemas

Submodule schemas updated 40 files

src/TL_file_ref_map_schema.json

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"type": "Vector t"
2626
},
2727
{
28-
"id": "1923715664",
28+
"id": "737228241",
2929
"predicate": "fileReferenceMap",
3030
"params": [
3131
{
@@ -40,6 +40,14 @@
4040
"name": "db_schema_json",
4141
"type": "string"
4242
},
43+
{
44+
"name": "locations",
45+
"type": "Vector<Location>"
46+
},
47+
{
48+
"name": "sources",
49+
"type": "Vector<Source>"
50+
},
4351
{
4452
"name": "traversers_incoming",
4553
"type": "Vector<TraverserIncoming>"
@@ -59,6 +67,44 @@
5967
],
6068
"type": "FileReferenceMap"
6169
},
70+
{
71+
"id": "-1395917194",
72+
"predicate": "locationIncoming",
73+
"params": [
74+
{
75+
"name": "type",
76+
"type": "string"
77+
},
78+
{
79+
"name": "predicate",
80+
"type": "string"
81+
},
82+
{
83+
"name": "stored_constructor",
84+
"type": "string"
85+
}
86+
],
87+
"type": "Location"
88+
},
89+
{
90+
"id": "926510226",
91+
"predicate": "locationOutgoing",
92+
"params": [
93+
{
94+
"name": "type",
95+
"type": "string"
96+
},
97+
{
98+
"name": "predicate",
99+
"type": "string"
100+
},
101+
{
102+
"name": "stored_constructor",
103+
"type": "string"
104+
}
105+
],
106+
"type": "Location"
107+
},
62108
{
63109
"id": "1645615975",
64110
"predicate": "traverseParam",

src/TL_file_ref_map_schema.tl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ true#3fedd339 = True;
55
vector#1cb5c415 {t:Type} # [ t ] = Vector t;
66

77
// Root
8-
fileReferenceMap#72a99250 layer:int db_schema:string db_schema_json:string traversers_incoming:Vector<TraverserIncoming> traversers_outgoing:Vector<TraverserOutgoing> refresh_actions:Vector<RefreshAction> skipped_incoming_sources:Vector<SkippedSource> = FileReferenceMap;
8+
fileReferenceMap#2bf135d1 layer:int db_schema:string db_schema_json:string locations:Vector<Location> sources:Vector<Source> traversers_incoming:Vector<TraverserIncoming> traversers_outgoing:Vector<TraverserOutgoing> refresh_actions:Vector<RefreshAction> skipped_incoming_sources:Vector<SkippedSource> = FileReferenceMap;
9+
10+
// Locations
11+
locationIncoming#accbfe76 type:string predicate:string stored_constructor:string = Location;
12+
locationOutgoing#37396c92 type:string predicate:string stored_constructor:string = Location;
913

1014
// Traversers (incoming)
1115
traverseParam#62161b67 flags:# name:string is_flag:flags.0?true is_vector:flags.1?true type:string = TraverseParam;

src/file_ref_map.dat

12.5 KB
Binary file not shown.

src/file_ref_map.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

tools/FileRefExtractor/BuildMode/Ast.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ public function finalize(
128128
'layer' => $layer,
129129
'db_schema' => $dbSchema,
130130
'db_schema_json' => json_encode($dbSchemaJSON, flags: JSON_THROW_ON_ERROR),
131-
//'locations' => $locations,
131+
'locations' => $locations,
132+
'sources' => array_merge(...array_values($this->output)),
132133
'traversers_incoming' => $incomingTraversalPairs,
133134
'traversers_outgoing' => $outgoingTraversalPairs,
134135
'skipped_incoming_sources' => $this->skipped,

0 commit comments

Comments
 (0)