Esempio n. 1
0
        private bool IsCallToGhost(SuffixExpr expr, ClassDecl classDecl)
        {
            var name    = "";
            var nameSeg = expr.Lhs as NameSegment;

            if (nameSeg != null)
            {
                name = nameSeg.Name;
            }

            // Look through all the methods within the current scope and return whether it is ghost or not
            return((from method in _allMethods[classDecl.Module][classDecl] where method.Name == name select method.IsGhost).FirstOrDefault());
        }
Esempio n. 2
0
        private bool IsCallToGhost(SuffixExpr expr, ClassDecl classDecl)
        {
            var name = "";
            var nameSeg = expr.Lhs as NameSegment;
            if (nameSeg != null)
                name = nameSeg.Name;

            // Look through all the methods within the current scope and return whether it is ghost or not
            return (from method in _allMethods[classDecl.Module][classDecl] where method.Name == name select method.IsGhost).FirstOrDefault();
        }