Boo.Lang.Compiler.Steps.PreErrorChecking.IsTopLevelOfConditional C# (CSharp) 메소드

IsTopLevelOfConditional() 개인적인 메소드

private IsTopLevelOfConditional ( Node child ) : bool
child Node
리턴 bool
        bool IsTopLevelOfConditional(Node child)
        {
            Node parent = child.ParentNode;
            return (parent.NodeType == NodeType.IfStatement
                || parent.NodeType == NodeType.UnlessStatement
                || parent.NodeType == NodeType.ConditionalExpression
                || parent.NodeType == NodeType.StatementModifier
                || parent.NodeType == NodeType.ReturnStatement
                || parent.NodeType == NodeType.YieldStatement);
        }