|
Dreamine.MVVM.Generators 1.0.13
Dreamine.MVVM.Generators 프로젝트의 API와 구성 요소를 제공합니다.
|
DreamineModelAttribute, DreamineEventAttribute, DreaminePropertyAttribute가 적용된 필드를 기반으로 보조 프로퍼티 코드를 생성하는 증분 생성기입니다.
더 자세히 ...


클래스 | |
| class | AttributeSymbolSet |
| Attribute 심볼 집합을 나타냅니다. 더 자세히 ... | |
| class | AutoWiringCandidate |
| 자동 생성 대상 필드 메타데이터를 나타냅니다. 더 자세히 ... | |
Public 멤버 함수 | |
| void | Initialize (IncrementalGeneratorInitializationContext context) |
| 증분 생성기 파이프라인을 초기화합니다. | |
Private 타입 | |
| enum | CandidateKind { Model , Event , Property } |
| 생성 대상 종류를 나타냅니다. 더 자세히 ... | |
정적 Private 멤버 함수 | |
| static bool | IsCandidateSyntax (SyntaxNode node) |
| 후보가 될 수 있는 구문인지 확인합니다. | |
| static ? AutoWiringCandidate | TryCreateCandidate (GeneratorSyntaxContext context, AttributeSymbolSet attributeSymbols) |
| 구문/시맨틱 정보를 바탕으로 생성 대상 후보를 만듭니다. | |
| static void | Emit (SourceProductionContext context, ImmutableArray< AutoWiringCandidate > candidates) |
| 수집된 후보를 기반으로 소스를 생성합니다. | |
| static ? CandidateKind | GetCandidateKind (IFieldSymbol fieldSymbol, AttributeSymbolSet attributeSymbols, out AttributeData? matchedAttribute) |
| 필드에 적용된 Attribute 종류를 판별합니다. | |
| static ? string | GetConfiguredPropertyName (AttributeData attribute) |
| Attribute에 지정된 명시적 프로퍼티 이름을 가져옵니다. | |
| static ? string | ResolveGeneratedPropertyName (string fieldName, string? configuredPropertyName) |
| 생성할 프로퍼티 이름을 결정합니다. | |
| static bool | HasConflictingMember (INamedTypeSymbol typeSymbol, string memberName) |
| 이미 같은 이름의 멤버가 존재하는지 확인합니다. | |
| static string | BuildFileName (AutoWiringCandidate candidate) |
| 생성 파일 이름을 만듭니다. | |
| static string | BuildSource (AutoWiringCandidate candidate) |
| 생성 코드를 만듭니다. | |
| static void | AppendPropertyCode (StringBuilder builder, CandidateKind kind, IFieldSymbol fieldSymbol, string typeName, string fieldName, string propertyName) |
| 종류에 맞는 프로퍼티 코드를 생성합니다. | |
| static void | AppendLazyAccessPropertyCode (StringBuilder builder, IFieldSymbol fieldSymbol, string typeName, string fieldName, string propertyName, string initializerExpression) |
| 지연 초기화 기반 읽기 전용 프로퍼티 코드를 생성합니다. | |
| static string | Sanitize (string name) |
| 파일 이름에 안전한 문자열로 변환합니다. | |
정적 Private 속성 | |
| const string | ModelAttributeMetadataName = "Dreamine.MVVM.Attributes.DreamineModelAttribute" |
| const string | EventAttributeMetadataName = "Dreamine.MVVM.Attributes.DreamineEventAttribute" |
| const string | PropertyAttributeMetadataName = "Dreamine.MVVM.Attributes.DreaminePropertyAttribute" |
DreamineModelAttribute, DreamineEventAttribute, DreaminePropertyAttribute가 적용된 필드를 기반으로 보조 프로퍼티 코드를 생성하는 증분 생성기입니다.
DreamineAutoWiringGenerator.cs 파일의 18 번째 라인에서 정의되었습니다.
생성 대상 종류를 나타냅니다.
| 열거형 멤버 | |
|---|---|
| Model | |
| Event | |
| Property | |
DreamineAutoWiringGenerator.cs 파일의 437 번째 라인에서 정의되었습니다.
|
inlinestaticprivate |
지연 초기화 기반 읽기 전용 프로퍼티 코드를 생성합니다.
| builder | 대상 문자열 빌더입니다. |
| fieldSymbol | 원본 필드 심볼입니다. |
| typeName | 필드 타입 이름입니다. |
| fieldName | 필드 이름입니다. |
| propertyName | 프로퍼티 이름입니다. |
| initializerExpression | 초기화 식입니다. |
DreamineAutoWiringGenerator.cs 파일의 392 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : AppendPropertyCode().

|
inlinestaticprivate |
종류에 맞는 프로퍼티 코드를 생성합니다.
| builder | 대상 문자열 빌더입니다. |
| kind | 생성 대상 종류입니다. |
| fieldSymbol | 원본 필드 심볼입니다. |
| typeName | 필드 타입 이름입니다. |
| fieldName | 필드 이름입니다. |
| propertyName | 생성할 프로퍼티 이름입니다. |
DreamineAutoWiringGenerator.cs 파일의 340 번째 라인에서 정의되었습니다.
다음을 참조함 : AppendLazyAccessPropertyCode().
다음에 의해서 참조됨 : BuildSource().


|
inlinestaticprivate |
생성 파일 이름을 만듭니다.
| candidate | 대상 후보입니다. |
DreamineAutoWiringGenerator.cs 파일의 278 번째 라인에서 정의되었습니다.
다음을 참조함 : Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AutoWiringCandidate.ContainingType, Sanitize().
다음에 의해서 참조됨 : Emit().


|
inlinestaticprivate |
생성 코드를 만듭니다.
| candidate | 생성 대상 후보입니다. |
DreamineAutoWiringGenerator.cs 파일의 294 번째 라인에서 정의되었습니다.
다음을 참조함 : AppendPropertyCode(), Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AutoWiringCandidate.ContainingType, Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AutoWiringCandidate.FieldSymbol, Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AutoWiringCandidate.GeneratedPropertyName, Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AutoWiringCandidate.Kind.
다음에 의해서 참조됨 : Emit().


|
inlinestaticprivate |
수집된 후보를 기반으로 소스를 생성합니다.
| context | 소스 출력 컨텍스트입니다. |
| candidates | 수집된 후보 목록입니다. |
DreamineAutoWiringGenerator.cs 파일의 142 번째 라인에서 정의되었습니다.
다음을 참조함 : BuildFileName(), BuildSource(), Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AutoWiringCandidate.ContainingType, Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AutoWiringCandidate.GeneratedPropertyName, HasConflictingMember().
다음에 의해서 참조됨 : Initialize().


|
inlinestaticprivate |
필드에 적용된 Attribute 종류를 판별합니다.
| fieldSymbol | 검사할 필드 심볼입니다. |
| attributeSymbols | 비교할 Attribute 심볼 집합입니다. |
| matchedAttribute | 일치한 Attribute 데이터입니다. |
null을 반환합니다.DreamineAutoWiringGenerator.cs 파일의 172 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : TryCreateCandidate().

|
inlinestaticprivate |
Attribute에 지정된 명시적 프로퍼티 이름을 가져옵니다.
| attribute | 검사할 Attribute 데이터입니다. |
null을 반환합니다.DreamineAutoWiringGenerator.cs 파일의 213 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : TryCreateCandidate().

|
inlinestaticprivate |
이미 같은 이름의 멤버가 존재하는지 확인합니다.
| typeSymbol | 검사 대상 타입입니다. |
| memberName | 확인할 멤버 이름입니다. |
true이고, 아니면 false입니다.DreamineAutoWiringGenerator.cs 파일의 268 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Emit().

|
inline |
증분 생성기 파이프라인을 초기화합니다.
| context | 생성기 초기화 컨텍스트입니다. |
DreamineAutoWiringGenerator.cs 파일의 28 번째 라인에서 정의되었습니다.
다음을 참조함 : Emit(), EventAttributeMetadataName, IsCandidateSyntax(), ModelAttributeMetadataName, PropertyAttributeMetadataName, TryCreateCandidate().

|
inlinestaticprivate |
후보가 될 수 있는 구문인지 확인합니다.
| node | 검사할 구문 노드입니다. |
true이고, 아니면 false입니다.DreamineAutoWiringGenerator.cs 파일의 59 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Initialize().

|
inlinestaticprivate |
생성할 프로퍼티 이름을 결정합니다.
| fieldName | 원본 필드 이름입니다. |
| configuredPropertyName | 명시적으로 지정된 프로퍼티 이름입니다. |
null을 반환합니다.DreamineAutoWiringGenerator.cs 파일의 241 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : TryCreateCandidate().

|
inlinestaticprivate |
파일 이름에 안전한 문자열로 변환합니다.
| name | 원본 문자열입니다. |
DreamineAutoWiringGenerator.cs 파일의 429 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : BuildFileName().

|
inlinestaticprivate |
구문/시맨틱 정보를 바탕으로 생성 대상 후보를 만듭니다.
| context | 구문 분석 컨텍스트입니다. |
| attributeSymbols | 사용할 Attribute 심볼 집합입니다. |
null을 반환합니다.DreamineAutoWiringGenerator.cs 파일의 85 번째 라인에서 정의되었습니다.
다음을 참조함 : GetCandidateKind(), GetConfiguredPropertyName(), Dreamine.MVVM.Generators.DreamineAutoWiringGenerator.AttributeSymbolSet.IsIncomplete, ResolveGeneratedPropertyName().
다음에 의해서 참조됨 : Initialize().


|
staticprivate |
DreamineAutoWiringGenerator.cs 파일의 21 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Initialize().
|
staticprivate |
DreamineAutoWiringGenerator.cs 파일의 20 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Initialize().
|
staticprivate |
DreamineAutoWiringGenerator.cs 파일의 22 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Initialize().