import { SourcePosition } from "@opticss/element-analysis" ; import { Optimizations } from "../../OpticssOptions" ; import { Action } from "../Action" ; /**
 * Make a note about something discovered during optimization.
 */ export class Note extends Action { private _position : SourcePosition | undefined ; reason : string ; constructor ( optimization , reason , position ? ) { super ( optimization ) ; this . reason = reason ; this . _position = position ; } get sourcePosition ( ) : SourcePosition | undefined { return this . _position ; } perform ( ) { return this ; } logString ( ) { return this . annotateLogMessage ( this . reason ) ; } }