Exemplo n.º 1
0
        public static void ResolveIdentifierExpressions(SyntaxTreeNode inNode, Table.Table table)
        {
            EmbeddedStatement body = (EmbeddedStatement)inNode.GetParentByType(typeof(EmbeddedStatement));

            foreach (IdentifierExpression identifier in inNode.GetChildsByType(typeof(IdentifierExpression), true))
            {
                ResolveIdentifierExpression(identifier, table, body);
            }
        }
Exemplo n.º 2
0
 public bool IsInitializedInBlock(IdentifierExpression identifierExpression, EmbeddedStatement block)
 {
     for (SyntaxTreeNode thisBlock = block; thisBlock != null; thisBlock = thisBlock.GetParentByType(typeof(EmbeddedStatement)))
     {
         if (this.FetchIdentifier(identifierExpression.Name).InitializedBlocks.Contains((EmbeddedStatement)thisBlock))
         {
             return(true);
         }
     }
     return(false);
 }