Files
sdk/pkg/dev_compiler/tool/input_sdk/private/annotations.dart
T
John Messerly 807d3b3b22 reorganize SDK inputs
it's all under input_sdk now:
  lib -> the lib folder
  private -> the dart:_* libs
  patch -> the files with @patch

I imagine we'll try and focus changes on the last two
2015-03-02 16:00:53 -08:00

37 lines
1.0 KiB
Dart

// 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 _js_helper;
/// Tells the optimizing compiler that the annotated method has no
/// side-effects.
/// Requires @NoInline() to function correctly.
class NoSideEffects {
const NoSideEffects();
}
/// Tells the optimizing compiler that the annotated method cannot throw.
/// Requires @NoInline() to function correctly.
class NoThrows {
const NoThrows();
}
/// Tells the optimizing compiler to not inline the annotated method.
class NoInline {
const NoInline();
}
// Ensures that the annotated method is represented internally using
// IR nodes ([:value == true:]) or AST nodes ([:value == false:]).
class IrRepresentation {
final bool value;
const IrRepresentation(this.value);
}
/// Marks a class as native and defines its JavaScript name(s).
class Native {
final String name;
const Native(this.name);
}