shell icon indicating copy to clipboard operation
shell copied to clipboard

Support naming inline functions

Open cfjedimaster opened this issue 8 years ago • 2 comments

The shell does a good job of handling inline functions:

image

It basically just shows a code snippet. But it would be nice if I could somehow annotate my code and have that show up instead. If I want the code I can still get it via the links at the bottom, but I'd much rather have a short name instead of a code snippet.

cfjedimaster avatar Oct 20 '17 16:10 cfjedimaster

Hi Raymond, a clarifying question - do you wish to, when writing the composition code, to be able to

  1. give a name to an inline function to show in the graph (instead of showing code) without deploying it as an actual action, or
  2. deploy an inline function as an action with a given name. in this case, since the inline function becomes an action, it will be shown in its action name in the graph

Which one do you have in mind?

kerryspchang avatar Jan 04 '18 16:01 kerryspchang

Um, I'm guessing 1. I'd be fine with it being just a visual clue. Maybe something like //@name="getHighValue"

cfjedimaster avatar Jan 04 '18 19:01 cfjedimaster