private void DeclareLocalVariable(Token variableType)
{
_source.IgnoreAsteriskIfPresent();
Token variableName = _source.ReadNextTokenAndThrowIfAlreadyDefined();
CompilerUtils.SetArrayPropertiesOnTokenFromStream(_source, variableName);
CompilerUtils.VerifyModifiersAgainstType(ModifierTargets.LocalVariable, _state.NextTokenModifiers);
/* TODO: get this working
ScriptVariable newVariable = ProcessVariableDeclaration(variableType, _output.GlobalData, null, _state.NextTokenModifiers);
variableName.Define(TokenType.LocalVariable, newVariable); */
if (_source.NextIsKeyword(PredefinedSymbol.SetEqual))
{
Expression setEqualTo = ReadExpression(false, PredefinedSymbol.Semicolon, PredefinedSymbol.Comma);
// TODO: check types, assign result to variable
}
}