odoo / odoo-ls

Odoo Language Server
Other
54 stars 11 forks source link

[REF] server: rewrite Symbol class + add log parameter #124

Closed fda-odoo closed 2 months ago

fda-odoo commented 2 months ago

This refactoring split the Symbol class into smaller ones and more specifics ones. There is now classes for variables, files, etc... Moreover, the code has been updated to be able to have multiple evaluations for a symbol. The goal is to handle indecisions like

if intput():
    x = 5
else:
    x = 'string'

print(x)

on the print(x) line, we should infer that x is either an int OR a string, so two possible evaluations

This commit introduces too a new parameter to specify the log directory to use for log files.