[Chapel Merge] Fixed chpldoc issue #17110

Branch: refs/heads/master
Revision: a4a2c1a
Author: lydia-duncan
Log Message:

Merge pull request #17459 from tt-leader/fixchpldocIssue17110

Fixed chpldoc issue #17110
[contributed by @tt-leader, reviewed by Lydia]

Fixed chpldoc incorrect output for an initialization usecase issue #17110 by adding some condition statement of VarSymbol immediate const_kind.

Also removed the future test file and added some strong testcase in variableInitialization.doc.chpl Besides, an incorrect output been found in calls.doc.chpl and corrected.

Passed a full paratest with futures and make docs built appropriately.

Modified Files:
R test/chpldoc/globals/variableInitialization.doc.bad

R test/chpldoc/globals/variableInitialization.doc.future
M compiler/AST/AstToText.cpp
M test/chpldoc/globals/calls.doc.good
M test/chpldoc/globals/variableInitialization.doc.chpl
M test/chpldoc/globals/variableInitialization.doc.good

Compare: https://github.com/chapel-lang/chapel/compare/7a9292ae42d1...a4a2c1ae2f5a