Class ExpansionUtilities


  • public class ExpansionUtilities
    extends Object
    • Constructor Detail

      • ExpansionUtilities

        public ExpansionUtilities()
    • Method Detail

      • getVariableDeclaration

        public static Optional<AVariableDeclaration> getVariableDeclaration​(LexIdentifier name,
                                                                            org.intocps.maestro.ast.node.SBlockStm containingBlock,
                                                                            int maxAncestorLevel)
        Looks up the tree for a given variabledeclaration
        Parameters:
        name -
        containingBlock -
        maxAncestorLevel -
        Returns:
      • getVariableDeclaration

        public static Optional<AVariableDeclaration> getVariableDeclaration​(LexIdentifier name,
                                                                            org.intocps.maestro.ast.node.SBlockStm containingBlock,
                                                                            int maxAncestorLevel,
                                                                            int currentAncestorLevel)