Skip to content

Commit

Permalink
Add ImmutableKeyword
Browse files Browse the repository at this point in the history
  • Loading branch information
LadyCailin committed Sep 18, 2019
1 parent 56adaca commit e620ee2
Showing 1 changed file with 34 additions and 0 deletions.
@@ -0,0 +1,34 @@
package com.laytonsmith.core.compiler.keywords;

import com.laytonsmith.PureUtilities.Version;
import com.laytonsmith.core.MSVersion;
import com.laytonsmith.core.ParseTree;
import com.laytonsmith.core.compiler.Keyword;
import com.laytonsmith.core.exceptions.ConfigCompileException;
import java.util.List;

/**
*
*/
/**
*
*/
@Keyword.keyword("public")
public class ImmutableKeyword extends Keyword {

@Override
public int process(List<ParseTree> list, int keywordPosition) throws ConfigCompileException {
throw new ConfigCompileException("Keyword not supported yet.", list.get(keywordPosition).getTarget());
}

@Override
public String docs() {
return "Indicates that the class or variable is immutable.";
}

@Override
public Version since() {
return MSVersion.V0_0_0;
}

}

0 comments on commit e620ee2

Please sign in to comment.