0c8ded72dc
This adds FileUriConstantExpression, a subclass of ConstantExpression, to support correct file offset of annotations for augmentations and patches. The FileUriExpression is used to carry the file uri of the expression before constant evaluation. TEST=general/patch_annotations Change-Id: I0dc8a0cb97dd530fd1960785d38c2d5e4883c3dd Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/311660 Commit-Queue: Johnni Winther <johnniwinther@google.com> Reviewed-by: Jens Johansen <jensj@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
22 lines
565 B
Dart
22 lines
565 B
Dart
// Copyright (c) 2023, 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.
|
|
|
|
@pragma('patch-library')
|
|
library;
|
|
|
|
// ignore: import_internal_library
|
|
import 'dart:_internal';
|
|
|
|
@patch
|
|
@pragma('patch-class')
|
|
class Class<@pragma('patch-class-type-variable') T> {
|
|
@patch
|
|
@pragma('patch-constructor')
|
|
external Class();
|
|
|
|
@patch
|
|
@pragma('patch-procedure')
|
|
external void method<@pragma('patch-method-type-variable') S>();
|
|
}
|