You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
* Specialised decorator implementation for the @readonly decorator.
22
+
*/
23
+
classReadOnlyDecoratorextendsDecorator{
24
+
25
+
/**
26
+
* Create a Decorator.
27
+
* @param {ClassDeclaration | Property} parent - the owner of this property
28
+
* @param {Object} ast - The AST created by the parser
29
+
* @throws {IllegalModelException}
30
+
*/
31
+
constructor(parent,ast){
32
+
super(parent,ast);
33
+
}
34
+
35
+
/**
36
+
* Process the AST and build the model
37
+
* @throws {IllegalModelException}
38
+
* @private
39
+
*/
40
+
process(){
41
+
super.process();
42
+
constargs=this.getArguments();
43
+
if(args.length!==0){
44
+
thrownewIllegalModelException(`@readonly decorator expects 0 arguments, but ${args.length} arguments were specified.`,this.parent.getModelFile(),this.ast.location);
0 commit comments