src/main/java/me/senseiwells/arucas/api/ArucasClassExtension.java
@Override
	public Value createNewDefinition(Context context, List<Value> parameters, ISyntax syntaxPosition) throws CodeError {
		// We don't need to get local context because this isn't user defined
		if (this.constructors.isEmpty()) {
			throw new RuntimeError("%s cannot be constructed".formatted(this.getName()), syntaxPosition, context);
		}

		ConstructorFunction constructor = this.constructors.get("", parameters.size());
		if (constructor == null) {
			throw new RuntimeError("No such constructor for %s".formatted(this.getName()), syntaxPosition, context);
		}

		return constructor.call(context, parameters, false);
	}
/**
	 * This returns the new value that was returned inside the constructor.
	 */
This returns the new value that was returned inside the constructor.
This returns the new value that was returned inside the constructor .
@Override
	public Value createNewDefinition(Context context, List<Value> parameters, ISyntax syntaxPosition) throws CodeError {
		if (this.constructors.isEmpty()) {
			throw new RuntimeError("%s cannot be constructed".formatted(this.getName()), syntaxPosition, context);
		}
		ConstructorFunction constructor = this.constructors.get("", parameters.size());
		if (constructor == null) {
			throw new RuntimeError("No such constructor for %s".formatted(this.getName()), syntaxPosition, context);
		}
		return constructor.call(context, parameters, false);
	}
@ Override public Value createNewDefinition ( Context context , List < Value > parameters , ISyntax syntaxPosition ) throws CodeError { if ( this . constructors . isEmpty ( ) ) { throw new RuntimeError ( "%s cannot be constructed" . formatted ( this . getName ( ) ) , syntaxPosition , context ) ; } ConstructorFunction constructor = this . constructors . get ( "" , parameters . size ( ) ) ; if ( constructor == null ) { throw new RuntimeError ( "No such constructor for %s" . formatted ( this . getName ( ) ) , syntaxPosition , context ) ; } return constructor . call ( context , parameters , false ) ; }
This returns the new value that was returned inside the constructor.
This returns the new value that was returned inside the constructor .
// We don't need to get local context because this isn't user defined