~eda-qa/leaflang/cpp

« back to all changes in this revision

Viewing changes to include/lang/context.hpp

  • Committer: edA-qa mort-ora-y
  • Date: 2017-06-03 05:03:54 UTC
  • mfrom: (98.1.18 typefixes)
  • Revision ID: eda-qa@disemia.com-20170603050354-6hfg5huvq56zjs66
merging typefixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        type_converter converter() const { 
34
34
                return type_converter( *this );
35
35
        }
36
 
        type_identifier identifier() const {
37
 
                return type_identifier( *this );
38
 
        }
39
36
        conversion_applicator applicator() const {
40
37
                return conversion_applicator( *this );
41
38
        }
67
64
        template<typename T>
68
65
        type_identifier::resolve_t determine_type( T const & source, 
69
66
                shared_ptr<type_spec> const & spec_type ) const {
70
 
                auto rt = identifier().determine( spec_type );
 
67
                auto rt = type_identifier::determine( *this, spec_type );
71
68
                STMT_CHECK( *source, rt.okay(), rt.explain_error() );
72
69
                return rt;
73
70
        }
86
83
                shared_ptr<scope> decl_sc = shared_ptr<scope>() );
87
84
        context() = delete;
88
85
        context( context const & ) = default;
 
86
        
 
87
        context derive( shared_ptr<scope> symbols ) const;
89
88
private:        
90
89
        typer * owner;
91
90