OCFunction constructor

OCFunction({
  1. String functionName = '',
  2. List<Variable> params = const [],
  3. bool isInstanceMethod = false,
  4. bool isClassMethod = false,
  5. bool isDeclaration = false,
  6. bool isCFlavor = false,
  7. bool isExternal = false,
  8. bool isStatic = false,
  9. FunctionBodyBuilder? body,
  10. AstType returnType = const AstVoid(),
  11. int depth = 0,
})

Implementation

OCFunction(
    {this.functionName = '',
    this.params = const [],
    this.isInstanceMethod = false,
    this.isClassMethod = false,
    this.isDeclaration = false,
    this.isCFlavor = false,
    this.isExternal = false,
    this.isStatic = false,
    this.body,
    this.returnType = const AstVoid(),
    int depth = 0})
    : super(depth);