Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access the Documentation via the TypeSymbol #29287

Closed
nadeeshaan opened this issue Mar 17, 2021 · 0 comments · Fixed by #29626
Closed

Cannot access the Documentation via the TypeSymbol #29287

nadeeshaan opened this issue Mar 17, 2021 · 0 comments · Fixed by #29626
Assignees
Labels
Area/SemanticAPI Semantic API Related Issues #Compiler SwanLakeDump All issues planned for Swan Lake GA release Type/Improvement

Comments

@nadeeshaan
Copy link
Contributor

Description:
Consider the following source snippet

# Description for TestRecordType1
#
# + field1 - field1 Parameter Description 
# + field2 - field2 Parameter Description 
# + field3 - field3 Parameter Description
type TestRecordType1 record {
    int field1;
    int field2?;
    int field3 = 123;
};

TestRecord<cursor>Type1 var9 = {
        field1: 0,
        field2: 0,
        field3: 0
};

At the cursor position, in order to provide the hover information it is necessary to access the TypeDefinition. At the cursor position, we can only access the TypeSymbol - RecordTypeSymbol and it does not contain the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/SemanticAPI Semantic API Related Issues #Compiler SwanLakeDump All issues planned for Swan Lake GA release Type/Improvement
Projects
No open projects
3 participants