| Index: dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0b891d0b943a3bd8014dc15b8683c69a649f7427
|
| --- /dev/null
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +part of dart2js.js_emitter;
|
| +
|
| +/**
|
| + * A function element that represents a closure call. The signature is copied
|
| + * from the given element.
|
| + */
|
| +class ClosureInvocationElement extends FunctionElementX {
|
| + ClosureInvocationElement(String name,
|
| + FunctionElement other)
|
| + : super.from(name, other, other.enclosingElement),
|
| + methodElement = other;
|
| +
|
| + isInstanceMember() => true;
|
| +
|
| + Element getOutermostEnclosingMemberOrTopLevel() => methodElement;
|
| +
|
| + /**
|
| + * The [member] this invocation refers to.
|
| + */
|
| + Element methodElement;
|
| +}
|
|
|