Page MenuHomePhabricator

edje_cc: Allow aliases to be defined inside part
Open, TODOPublic

Description

There's two places inside an edc file where you can define aliases, and the syntax is different for each one:

group {
   name: "group/name";
   alias: "another/group/name";

   parts {
      alias: "another.part.name" "part.name";
      part {
         name: "part.name";
      }
   }
}

It would simplify edc learning and writing if alias was allowed inside part, because then it could have the same syntax as the group alias:

parts {
   part {
      name: "part.name";
      alias: "another.part.name";
   }
}

The current alias in parts can be allowed too, to support old edc files.

segfaultxavi triaged this task as TODO priority.
Herald raised the priority of this task from TODO to Incoming Queue. · View Herald Transcript

Agree 1000% here ... the parts alias: that asthis is confusing (and should probably be alias: this asthat anyway as all of our code and style is left to right... but that is a different story)

zmike triaged this task as TODO priority.Jun 22 2018, 2:27 PM