Skip to content

replace form not working as intended #5085

Discussion options

You must be logged in to vote

I made an investigation to find out that generated symbols cannot be used as source for derived, due to processing order: derived symbols are processed before generated. Opened #5115 to improve that.

Alternative way to do the same might be using forms only

  "symbols": {
    "nameUpperSnake": {
      "type": "derived",
      "valueSource": "name",
      "valueTransform": "identity", //avoids initial transformation
      "replaces": "My.Web.App",
      "forms": {
        "global": [ "UpperCaseForm", "UpperCaseSnake" ]
      }
    }
  },
  "forms": {
    "DotToSnake": {
      "identifier": "replace",
      "pattern": "\\.",
      "replacement": "_"
    },
    "UpperCaseForm": {
      "ident…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vlada-shubina
Comment options

Comment options

You must be logged in to vote
1 reply
@jbockle
Comment options

Answer selected by jbockle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants