@@ -26,7 +26,7 @@ import * as MechanismContainerHolder from '../blocks/mrc_mechanism_component_hol
2626
2727export class OpModeDetails {
2828 constructor ( private name : string , private group : string , private enabled : boolean , private type : string ) { }
29- annotations ( className : string ) : string {
29+ decorations ( className : string ) : string {
3030 let code = '' ;
3131
3232 if ( this . enabled ) {
@@ -195,11 +195,11 @@ export class ExtendedPythonGenerator extends PythonGenerator {
195195 if ( this . context && this . workspace ) {
196196 const className = this . context . getClassName ( ) ;
197197 const classParent = this . context . getClassParent ( ) ;
198- const annotations = this . details ?. annotations ( className ) ;
199- const import_annotations = this . details ?. imports ( ) ;
198+ const decorations = this . details ?. decorations ( className ) ;
199+ const import_decorations = this . details ?. imports ( ) ;
200200
201- if ( import_annotations ) {
202- this . definitions_ [ 'import_annotations ' ] = import_annotations ;
201+ if ( import_decorations ) {
202+ this . definitions_ [ 'import_decorations ' ] = import_decorations ;
203203 }
204204
205205 this . addImport ( classParent ) ;
@@ -222,8 +222,8 @@ export class ExtendedPythonGenerator extends PythonGenerator {
222222 this . classMethods = Object . create ( null ) ;
223223 this . ports = Object . create ( null ) ;
224224 code = classDef + this . prefixLines ( classMethods . join ( '\n\n' ) , this . INDENT ) ;
225- if ( annotations ) {
226- code = annotations + code ;
225+ if ( decorations ) {
226+ code = decorations + code ;
227227 }
228228 this . details = null ;
229229 }
0 commit comments