blob: ca64994501a6a667b6a4ab89786f0ce6d760b2f4 [file] [log] [blame]
// Copyright (c) 2019, 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 $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
Entry getAsEntry() {
Entry entry = _webkitGetAsEntry() $#NULLSAFECAST(as Entry);
if (entry.isFile$NULLASSERT)
applyExtension('FileEntry', entry);
else if (entry.isDirectory$NULLASSERT)
applyExtension('DirectoryEntry', entry);
else
applyExtension('Entry', entry);
return entry;
}
$!MEMBERS
}