Made PushLoop protected
This commit is contained in:
parent
fe69761fc9
commit
8ff73fe0f4
1 changed files with 2 additions and 2 deletions
|
@ -31,14 +31,14 @@ namespace arookas {
|
|||
protected sunLoopNode(sunSourceLocation location)
|
||||
: base(location) { }
|
||||
|
||||
public sunLoop PushLoop(sunContext context) {
|
||||
protected sunLoop PushLoop(sunContext context) {
|
||||
var name = context.PopNameLabel();
|
||||
if (name == null) {
|
||||
return context.Loops.Push();
|
||||
}
|
||||
return context.Loops.Push(name.Label.Value);
|
||||
}
|
||||
public sunLoop PushLoop(sunContext context, sunLoopFlags flags) {
|
||||
protected sunLoop PushLoop(sunContext context, sunLoopFlags flags) {
|
||||
var name = context.PopNameLabel();
|
||||
if (name == null) {
|
||||
return context.Loops.Push(flags);
|
||||
|
|
Loading…
Reference in a new issue