Skip to content

What should astValue be? #358

@bruntib

Description

@bruntib

I think we should discuss what astValue in CppAstNode table ought to be? We have always used this field as a human-readable description about the symbol which can be displayed in the Info Tree for example. However, in some situations this field is used as a meaningful part of the logic. For example syntax highlight uses it to find the borders of a symbol's name.

In case of functions currently astValue contains their signature. This is good for displaying in Info Tree, but not suitable for syntax highlight. By the way now we can't highlight functions until it's fixed. The name and the signature of a function are stored in CppNamedEntity, but I don't think it would be efficient to select all symbols in this table for syntax highlight.

So what is astValue of a function? Maybe this could contain only the function name and the signature could go to some CppFunction table. This way the signature still remains available for Info Tree where it is fetched more rarely.

Metadata

Metadata

Labels

Kind: Discussion 💬Plugin: C++Issues related to the parsing and presentation of C++ projects.Target: DatabaseIssues related to the database schema of the core or a plugin, or database handling in general.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions