Changeset 14303 for src/Pugs/AST.hs
- Timestamp:
- 10/12/06 23:26:57 (2 years ago)
- svk:copy_cache_prev:
- 21165
- Files:
-
- 1 modified
-
src/Pugs/AST.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/AST.hs
r14138 r14303 18 18 mergeStmts, isEmptyParams, 19 19 newPackage, newType, newMetaType, typeMacro, isScalarLValue, 20 filterPrim, filterUserDefinedPad, typeOfParam, listVal, 20 filterPrim, filterUserDefinedPad, typeOfParam, listVal, isImmediateMatchContext, 21 21 22 22 module Pugs.AST.Internals, … … 363 363 listVal x = [x] 364 364 365 isImmediateMatchContext :: Eval Bool 366 isImmediateMatchContext = do 367 env <- ask 368 let cls = envClasses env 369 cxt = envContext env 370 typ = typeOfCxt cxt 371 return (cxt == CxtVoid || (any (\x -> isaType cls x typ) ["Bool", "Num", "Str"]))
