a71d91ea62
Bug: Change-Id: I4a93d2ab0a052b61d3819d04316c05f534057f02 Reviewed-on: https://dart-review.googlesource.com/5266 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
29 lines
951 B
Dart
29 lines
951 B
Dart
// Copyright (c) 2017, 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.
|
|
//
|
|
// Please see the comments in `pkg/kernel/lib/transformations/coq.dart` for more
|
|
// info.
|
|
|
|
library kernel.coq_annot;
|
|
|
|
const coq = 1; // field or class
|
|
const coqref = 2; // class only
|
|
const nocoq = 3; // field only
|
|
const coqopt = 4; // field only
|
|
const coqsingle = 5; // treat List<A> as just A
|
|
const coqdef = 6;
|
|
const coqsingledef = 7;
|
|
|
|
// library only
|
|
class CoqLib {
|
|
final String destPathRelative;
|
|
const CoqLib(this.destPathRelative);
|
|
}
|
|
|
|
// TODO(30609): Since fasta currently throws away annotations on Enums, we use a
|
|
// list to identify which enums to convert.
|
|
//
|
|
// We'll uncomment these enums once the Coq formalization is sufficiently complete.
|
|
var coqEnums = [/*"kernel.ast::ProcedureKind", "kernel.ast::AsyncMarker"*/];
|