Changeset 3346 for proto


Ignore:
Timestamp:
Jun 21, 2013, 3:21:22 PM (6 years ago)
Author:
ksherdy
Message:

Resolved issues, removed comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/pabloj/trunk/src/toolchain/pabloS/transformer/visitors/SurroundAssert0sWithIfs.java

    r3345 r3346  
    4545                        if (isAssertZeroCall(node)) {
    4646
    47                                 // should this be exception?  Does grammar prevent programmer from doing this?
    48                                 // i.e. are function calls allowed at the non-statement level?
    49                                 assert (node.getParent() instanceof BlockStmtNode);
    5047                                Locator locator = (Locator)node;
    5148
    5249                                ASTNode errorStream = Accessors.argument(node, 0);
    5350                                ASTNode errorMsg    = Accessors.argument(node, 1);
    54                                
    55                                 // should this be exception?  Does grammar or typechecking prevent programmer from doing this?
    56                                 assert errorMsg instanceof StringConstantNode;
    5751                                                               
    5852                                ASTNode assert0Call
Note: See TracChangeset for help on using the changeset viewer.