2016-08-27 11:06:15 +02:00
|
|
|
// Copyright 2016 Google Inc. Use of this source code is governed by an
|
|
|
|
// MIT-style license that can be found in the LICENSE file or at
|
|
|
|
// https://opensource.org/licenses/MIT.
|
|
|
|
|
|
|
|
import 'package:source_span/source_span.dart';
|
|
|
|
|
|
|
|
import 'argument_declaration.dart';
|
|
|
|
import 'statement.dart';
|
|
|
|
|
|
|
|
abstract class CallableDeclaration implements Statement {
|
|
|
|
final String name;
|
|
|
|
|
|
|
|
final ArgumentDeclaration arguments;
|
|
|
|
|
|
|
|
final List<Statement> children;
|
|
|
|
|
|
|
|
final FileSpan span;
|
|
|
|
|
2016-08-29 00:04:48 +02:00
|
|
|
CallableDeclaration(
|
|
|
|
this.name, this.arguments, Iterable<Statement> children, this.span)
|
2016-08-27 11:06:15 +02:00
|
|
|
: children = new List.unmodifiable(children);
|
|
|
|
}
|