Beispiel #1
0
 internal Statement(ProtoCore.AST.Node astNode)
 {
     if (astNode is BinaryExpressionNode)
         Initialize((BinaryExpressionNode)astNode);
     else if (astNode is ClassDeclNode)
         Initialize((ClassDeclNode)astNode);
     else if (astNode is FunctionDefinitionNode)
         Initialize((FunctionDefinitionNode)astNode);
     else
     {
         string type = (astNode == null ? "null" : astNode.GetType().ToString());
         string message = string.Format("AST Node '{0}' is not supported (C71AB50DA47C)", type);
         throw new NotImplementedException(message); // @TODO(Done): GUID?
     }
 }