CallableDeclaration constructor

CallableDeclaration(
  1. String originalName,
  2. ArgumentDeclaration arguments,
  3. Iterable<Statement> children,
  4. FileSpan span, {
  5. SilentComment? comment,
})

Implementation

CallableDeclaration(this.originalName, this.arguments,
    Iterable<Statement> children, this.span,
    {this.comment})
    : name = originalName.replaceAll('_', '-'),
      super(List.unmodifiable(children));