コード例 #1
0
ファイル: Serializer.cs プロジェクト: FarrukhAmiir/GamePiano
 public static PBXElement ParseValueAST(ValueAST ast, TokenList tokens, string text)
 {
     if (ast is TreeAST)
     {
         return(ParseTreeAST((TreeAST)ast, tokens, text));
     }
     if (ast is ArrayAST)
     {
         return(ParseArrayAST((ArrayAST)ast, tokens, text));
     }
     if (ast is IdentifierAST)
     {
         return(ParseIdentifierAST((IdentifierAST)ast, tokens, text));
     }
     return(null);
 }
コード例 #2
0
 public static PBXElement ParseValueAST(ValueAST ast, TokenList tokens, string text)
 {
     if (ast is TreeAST)
     {
         return ParseTreeAST((TreeAST) ast, tokens, text);
     }
     if (ast is ArrayAST)
     {
         return ParseArrayAST((ArrayAST) ast, tokens, text);
     }
     if (ast is IdentifierAST)
     {
         return ParseIdentifierAST((IdentifierAST) ast, tokens, text);
     }
     return null;
 }