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); } }
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); }