C# Class Pchp.CodeAnalysis.Symbols.SourceFieldSymbol

Declares a CLR field representing a PHP field (a class constant or a field).
Its CLR properties vary depending on SourceFieldSymbol.Initializer and its evaluation. Some expressions have to be evaluated in runtime which causes the field to be contained in SynthesizedStaticFieldsHolder.
Inheritance: FieldSymbol
Mostra file Open project: iolevel/peachpie Class Usage Examples

Private Properties

Property Type Description
EmitInit void
GetConstantValue ConstantValue
GetFieldType TypeSymbol

Public Methods

Method Description
SourceFieldSymbol ( SourceTypeSymbol type, string name, Accessibility accessibility, PHPDocBlock phpdoc, KindEnum kind, BoundExpression initializer = null ) : System

Private Methods

Method Description
EmitInit ( CodeGenerator cg ) : void
GetConstantValue ( bool earlyDecodingWellKnownAttributes ) : ConstantValue
GetFieldType ( ConsList fieldsBeingBound ) : TypeSymbol

Method Details

SourceFieldSymbol() public method

public SourceFieldSymbol ( SourceTypeSymbol type, string name, Accessibility accessibility, PHPDocBlock phpdoc, KindEnum kind, BoundExpression initializer = null ) : System
type SourceTypeSymbol
name string
accessibility Accessibility
phpdoc PHPDocBlock
kind KindEnum
initializer Pchp.CodeAnalysis.Semantics.BoundExpression
return System