- Cleaned up commented-out code
feature/modifiers
parent db8c1475f6
commit 6f8f4ff310

@ -2230,70 +2230,6 @@ public final class Parser
expect("Expected one of the following: (, ; or =");
}
// /**
// * If this is a function or variable declaration
// * then optional AccessModifier is allowed
// */
// if(hasModifierItems())
// {
// ModifierItem modItem = popModifierFront();
// if(modItem.isAccessModifier())
// {
// if(cast(Variable)generated || cast(Function)generated)
// {
// Entity ent = cast(Entity)generated;
// if(allowModifiers)
// {
// ent.setAccessorType(modItem.getAccessModifier());
// }
// else
// {
// expect("Access modifiers cannot be applied to variable are function decleration in this context");
// }
// }
// else
// {
// expect("Cannot apply an access modifier to something that is not a variable or function");
// }
// }
// else
// {
// expect("Can only apply an access modifier here");
// }
// }
// /* Optional InitScope modifier check-and-apply */
// if(hasModifierItems())
// {
// ModifierItem modItem = popModifierFront();
// if(modItem.isInitScope())
// {
// if(cast(Variable)generated || cast(Function)generated)
// {
// Entity ent = cast(Entity)generated;
// if(allowsInitScopeOnDec)
// {
// ent.setModifierType(modItem.getInitScope());
// }
// else
// {
// expect("Initscope cannot be applied to variable are function decleration in this context");
// }
// }
// else
// {
// expect("Cannot apply an initscope to something that is not a variable or function");
// }
// }
// else
// {
// expect("Only an initscope is allowed here");
// }
// }
WARN("parseTypedDeclaration(): Leave");
return generated;

Loading…
Cancel
Save