public class MyDecafAnalysis extends DecafAnalysis
Constructor and Description |
---|
MyDecafAnalysis() |
Modifier and Type | Method and Description |
---|---|
void |
assertType(ASTNode node,
ASTNode.DataType expectedType) |
void |
assertValidParameters(List<ASTNode.DataType> formalTypes,
List<ASTExpression> actualArgs,
SourceInfo src) |
void |
postVisit(ASTAssignment node) |
void |
postVisit(ASTBinaryExpr node) |
void |
postVisit(ASTBlock node) |
void |
postVisit(ASTBreak node) |
void |
postVisit(ASTConditional node) |
void |
postVisit(ASTContinue node) |
void |
postVisit(ASTFunctionCall node) |
void |
postVisit(ASTLocation node) |
void |
postVisit(ASTProgram node) |
void |
postVisit(ASTReturn node) |
void |
postVisit(ASTUnaryExpr node) |
void |
postVisit(ASTVariable node) |
void |
postVisit(ASTVoidFunctionCall node) |
void |
postVisit(ASTWhileLoop node) |
void |
preVisit(ASTBinaryExpr node) |
void |
preVisit(ASTFunction node) |
void |
preVisit(ASTFunctionCall node) |
void |
preVisit(ASTLiteral node) |
void |
preVisit(ASTLocation node) |
void |
preVisit(ASTProgram node) |
void |
preVisit(ASTUnaryExpr node) |
void |
preVisit(ASTWhileLoop node) |
lookupSymbol
addError, addError, getErrors, getErrorString, resetErrors
defaultInVisit, defaultPostVisit, defaultPreVisit, inVisit, postVisit, postVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit, preVisit
public void assertType(ASTNode node, ASTNode.DataType expectedType)
public void preVisit(ASTProgram node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTProgram node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTVariable node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void preVisit(ASTFunction node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTBlock node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTAssignment node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTConditional node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void preVisit(ASTWhileLoop node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTWhileLoop node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTBreak node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTContinue node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTReturn node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void preVisit(ASTLocation node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTLocation node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void preVisit(ASTLiteral node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void preVisit(ASTFunctionCall node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTFunctionCall node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void postVisit(ASTVoidFunctionCall node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void assertValidParameters(List<ASTNode.DataType> formalTypes, List<ASTExpression> actualArgs, SourceInfo src)
public void preVisit(ASTBinaryExpr node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTBinaryExpr node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
public void preVisit(ASTUnaryExpr node)
preVisit
in interface ASTVisitor
preVisit
in class DefaultASTVisitor
public void postVisit(ASTUnaryExpr node)
postVisit
in interface ASTVisitor
postVisit
in class DefaultASTVisitor
Copyright © 2019. All rights reserved.