Represents declarations within given source trees.
Inheritance: ISemanticModel
Ejemplo n.º 1
0
 public SourceModuleSymbol(SourceAssemblySymbol sourceAssembly, SourceDeclarations tables, string name)
 {
     _sourceAssembly = sourceAssembly;
     _name           = name;
     _tables         = tables;
     _ns             = new SourceGlobalNamespaceSymbol(this);
 }
Ejemplo n.º 2
0
 public SourceModuleSymbol(SourceAssemblySymbol sourceAssembly, SourceDeclarations tables, string name)
 {
     _sourceAssembly = sourceAssembly;
     _name = name;
     _tables = tables;
     _ns = new SourceGlobalNamespaceSymbol(this);
 }
Ejemplo n.º 3
0
 public PopulatorVisitor(PhpCompilation compilation, SourceDeclarations tables)
 {
     _tables      = tables;
     _compilation = compilation;
 }
Ejemplo n.º 4
0
        private PhpCompilation(
            string assemblyName,
            PhpCompilationOptions options,
            ImmutableArray<MetadataReference> references,
            //ReferenceManager referenceManager,
            //SyntaxAndDeclarationManager syntaxAndDeclarations
            AsyncQueue<CompilationEvent> eventQueue = null
            )
            : base(assemblyName, references, SyntaxTreeCommonFeatures(ImmutableArray<SyntaxTree>.Empty), false, eventQueue)
        {
            _wellKnownMemberSignatureComparer = new WellKnownMembersSignatureComparer(this);

            _options = options;
            _referenceManager = new ReferenceManager(options.SdkDirectory);
            _tables = new SourceDeclarations();
            _coreTypes = new CoreTypes(this);
            _coreMethods = new CoreMethods(_coreTypes);

            _anonymousTypeManager = new AnonymousTypeManager(this);
        }
Ejemplo n.º 5
0
 public PopulatorVisitor(PhpCompilation compilation, SourceDeclarations tables)
 {
     _tables = tables;
     _compilation = compilation;
 }