C# Class Pchp.CodeAnalysis.Symbols.SourceFileSymbol

Represents a file within the mudule as a CLR type.
namespace [DIR]{ class [FNAME] { object [Main](){ ... } } }
Inheritance: NamedTypeSymbol
显示文件 Open project: iolevel/peachpie Class Usage Examples

Private Properties

Property Type Description
AddFunction void
GetDeclaredInterfaces ImmutableArray
GetFieldsToEmit IEnumerable
GetInterfacesToEmit ImmutableArray

Public Methods

Method Description
GetAttributes ( ) : ImmutableArray
GetMembers ( ) : ImmutableArray
GetMembers ( string name ) : ImmutableArray
GetTypeMembers ( ) : ImmutableArray
GetTypeMembers ( string name ) : ImmutableArray
SourceFileSymbol ( PhpCompilation compilation, GlobalCode syntax ) : System

Private Methods

Method Description
AddFunction ( SourceFunctionSymbol routine ) : void

Lazily adds a function into the list of global functions declared within this file.

GetDeclaredInterfaces ( ConsList basesBeingResolved ) : ImmutableArray
GetFieldsToEmit ( ) : IEnumerable
GetInterfacesToEmit ( ) : ImmutableArray

Method Details

GetAttributes() public method

public GetAttributes ( ) : ImmutableArray
return ImmutableArray

GetMembers() public method

public GetMembers ( ) : ImmutableArray
return ImmutableArray

GetMembers() public method

public GetMembers ( string name ) : ImmutableArray
name string
return ImmutableArray

GetTypeMembers() public method

public GetTypeMembers ( ) : ImmutableArray
return ImmutableArray

GetTypeMembers() public method

public GetTypeMembers ( string name ) : ImmutableArray
name string
return ImmutableArray

SourceFileSymbol() public method

public SourceFileSymbol ( PhpCompilation compilation, GlobalCode syntax ) : System
compilation PhpCompilation
syntax GlobalCode
return System