[Chapel Merge] appendExpr(): Improve handling of operators

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

Merge pull request #16893 from cassella/append-two-actual-expr

appendExpr(): Improve handling of operators
[contributed by @cassella, reviewed by Lydia]

Handle prefix-~ and postfix-!

If the two-actual expr’s name starts with a letter (or _), don’t print
it as an operator. Treat it the same as an expr with other than two
actuals.

Also tidy the logic so that two-arg non-operators use the same else
block as not-two-arg cases.

Add three tests locking in the changed behavior.

Add futures for #16939, #16940, and #16941, done in this PR since they depend on files added for one of the above tests.

Resolves #13626

Passed a full std paratest with futures

Modified Files:
A test/chpldoc/functions/CHPLDOCOPTS
A test/chpldoc/functions/CLEANFILES
A test/chpldoc/functions/functionArgDefaultNil.doc.bad
A test/chpldoc/functions/functionArgDefaultNil.doc.catfiles
A test/chpldoc/functions/functionArgDefaultNil.doc.chpl
A test/chpldoc/functions/functionArgDefaultNil.doc.future
A test/chpldoc/functions/functionArgDefaultNil.doc.good
A test/chpldoc/functions/functionArgDefaultOneTuple.doc.bad
A test/chpldoc/functions/functionArgDefaultOneTuple.doc.catfiles
A test/chpldoc/functions/functionArgDefaultOneTuple.doc.chpl
A test/chpldoc/functions/functionArgDefaultOneTuple.doc.future
A test/chpldoc/functions/functionArgDefaultOneTuple.doc.good
A test/chpldoc/functions/functionArgDefaultWithParens.doc.bad
A test/chpldoc/functions/functionArgDefaultWithParens.doc.catfiles
A test/chpldoc/functions/functionArgDefaultWithParens.doc.chpl
A test/chpldoc/functions/functionArgDefaultWithParens.doc.future
A test/chpldoc/functions/functionArgDefaultWithParens.doc.good
A test/chpldoc/functions/functionArgDefaults.doc.catfiles
A test/chpldoc/functions/functionArgDefaults.doc.chpl
A test/chpldoc/functions/functionArgDefaults.doc.good
A test/chpldoc/globals/variableDefaultValues.doc.catfiles
A test/chpldoc/globals/variableDefaultValues.doc.chpl
A test/chpldoc/globals/variableDefaultValues.doc.good
A test/chpldoc/types/fields/fieldDefaultValues.doc.catfiles
A test/chpldoc/types/fields/fieldDefaultValues.doc.chpl
A test/chpldoc/types/fields/fieldDefaultValues.doc.good
M compiler/AST/AstToText.cpp

Compare: Comparing 993f9bdaad96...95375d8df69f · chapel-lang/chapel · GitHub