Changeset 13801 for src/Pugs/Eval

Show
Ignore:
Timestamp:
10/03/06 11:41:18 (2 years ago)
Author:
audreyt
Message:

* Move typeOfParam into Pugs.AST.

This is used in the previous commits to implement class-wide
attributes with accessors, namely "class C { my $.x }".

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Eval/Var.hs

    r13792 r13801  
    426426        var' = var{ v_meta = MNil } 
    427427        varInfix = var{ v_meta = MNil, v_categ = C_infix } 
    428  
    429 typeOfParam :: Param -> Type 
    430 typeOfParam p = case v_sigil (paramName p) of 
    431     SScalar -> typeOfCxt (paramContext p) 
    432     s       -> typeOfSigil s 
    433  
    434428 
    435429metaVar :: Pkg -> Var