Skip to content

Commit

Permalink
Change Variable to an interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jphalip authored and lippfi committed Nov 26, 2024
1 parent ec3db81 commit e32fa6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import com.maddyhome.idea.vim.vimscript.model.datatypes.VimString
* 'clipboard' contains "unnamed" or "unnamedplus", then it is
* "*" or '+' ("unnamedplus" prevails).
*/
class RegisterVariable : Variable() {
class RegisterVariable : Variable {

override fun evaluate(
name: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ import com.maddyhome.idea.vim.vimscript.model.datatypes.VimDataType
/**
* Base class for Vim variables
*/
abstract class Variable {
abstract fun evaluate(name: String, editor: VimEditor, context: ExecutionContext, vimContext: VimLContext): VimDataType
interface Variable {
fun evaluate(name: String, editor: VimEditor, context: ExecutionContext, vimContext: VimLContext): VimDataType
}

0 comments on commit e32fa6d

Please sign in to comment.