File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,13 @@ flowchart TB
74
74
3 . [ ParseDataProvider] ( server/src/parseDataProvider.ts ) reads the file using the ` fileContentProvider ` , ...
75
75
4 . ... which caches the file contents, to avoid re-reading files that have not changed.
76
76
5 . [ ParseDataProvider] ( server/src/parseDataProvider.ts ) parses the file using [ parser.ts] ( server/src/parser.ts ) , ...
77
- 6 . ... which parses it using the compiled ` fbuild-grammar.ts ` from step 0.
77
+ 6 . ... which parses it using the compiled ` fbuild-grammar.ts ` from step 0. This generates tokens and metadata.
78
78
7 . [ ParseDataProvider] ( server/src/parseDataProvider.ts ) caches the parse data, to avoid re-parsing files that have not changed.
79
- 8 . The [ server] ( server/src/server.ts ) evaluates the parsed data using [ evaluator.ts] ( server/src/evaluator.ts ) .
79
+ 8 . The [ server] ( server/src/server.ts ) evaluates the parsed data using [ evaluator.ts] ( server/src/evaluator.ts ) . This involves:
80
+ * Evaluating each statement while maintaining state for variables/defines
81
+ * Evaluating ` If ` , ` ForEach ` , ` Using ` , etc.
82
+ * ` #include ` ing other files
83
+ * etc.
80
84
9 . Evaluating the parsed data parses and evaluates any ` #import ` ed files.
81
85
10 . The [ server] ( server/src/server.ts ) caches the evaluated data, so that it can use it for future operations.
82
86
11 . The [ server] ( server/src/server.ts ) updates the diagnostics (e.g. errors) based on the evaluation.
You can’t perform that action at this time.
0 commit comments