Changeset 2424


Ignore:
Timestamp:
Oct 5, 2012, 4:53:50 PM (7 years ago)
Author:
ksherdy
Message:

Minor updates.

Location:
proto/pablo/src/compiler/lang/pablo/builtins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • proto/pablo/src/compiler/lang/pablo/builtins/Builtins.java

    r2415 r2424  
    4242       
    4343        for (CarryN builtin : CarryN.values()) {           
    44             if (isCall(node, Builtins.BUILTIN_PACKAGE_NAME, builtin.getFunctionName(), builtin.getArgCount())) {
     44            if (isCall(node, Builtins.BUILTIN_PACKAGE_NAME, builtin.functionName(), builtin.argCount())) {
    4545                return true;
    4646            }
     
    6565
    6666        for (Carry1 builtin : Carry1.values()) {
    67             if (isQualifiedName(nameNode, Builtins.BUILTIN_PACKAGE_NAME, builtin.getFunctionName())) {
     67            if (isQualifiedName(nameNode, Builtins.BUILTIN_PACKAGE_NAME, builtin.functionName())) {
    6868                return true;
    6969            }
     
    8282       
    8383        for (Carry1 builtin : Carry1.values()) {   
    84             if (isCall(node, Builtins.BUILTIN_PACKAGE_NAME, builtin.getFunctionName(), builtin.getArgCount())) {
     84            if (isCall(node, Builtins.BUILTIN_PACKAGE_NAME, builtin.functionName(), builtin.argCount())) {
    8585                return true;
    8686            }
  • proto/pablo/src/compiler/lang/pablo/builtins/Carry1.java

    r2414 r2424  
    1313    EXCLUSIVESPANs("ExclusiveSpan", 2);
    1414       
    15         private String name;
    16         private int argCount;
     15        private final String name;
     16        private final int argCount;
    1717       
    1818        private Carry1(String name, int argCount) {
     
    2121        }
    2222       
    23         public String getFunctionName() { return name; }
    24         public int getArgCount() { return argCount; }   
     23        public String functionName() { return name; }
     24        public int argCount() { return argCount; }     
    2525       
    2626}
  • proto/pablo/src/compiler/lang/pablo/builtins/CarryN.java

    r2414 r2424  
    66    ADVANCE("Advance", 2);
    77
    8         private String name;
    9         private int argCount;
     8        private final String name;
     9        private final int argCount;
    1010       
    1111        private CarryN(String name, int argCount) {
     
    1414        }
    1515       
    16         public String getFunctionName() { return name; }
    17         public int getArgCount() { return argCount; }   
     16        public String functionName() { return name; }
     17        public int argCount() { return argCount; }     
    1818       
    1919}
Note: See TracChangeset for help on using the changeset viewer.