protected SourceFileSymbol(PhpCompilation compilation, PhpSyntaxTree syntaxTree) { Contract.ThrowIfNull(compilation); Contract.ThrowIfNull(syntaxTree); _compilation = compilation; _syntaxTree = syntaxTree; _mainMethod = new SourceGlobalMethodSymbol(this); }
public SourceFileSymbol(PhpCompilation compilation, GlobalCode syntax) { Contract.ThrowIfNull(compilation); Contract.ThrowIfNull(syntax); _compilation = compilation; _syntax = syntax; _mainMethod = new SourceGlobalMethodSymbol(this); }