NativeFunctionBodyImpl constructor

NativeFunctionBodyImpl({
  1. required Token nativeKeyword,
  2. required StringLiteralImpl? stringLiteral,
  3. required Token semicolon,
})

Initialize a newly created function body consisting of the 'native' token, a string literal, and a semicolon.

Implementation

NativeFunctionBodyImpl({
  required this.nativeKeyword,
  required StringLiteralImpl? stringLiteral,
  required this.semicolon,
}) : _stringLiteral = stringLiteral {
  _becomeParentOf(_stringLiteral);
}